/* ============================================================
   Canuto Documentation
   1. Design tokens
   ============================================================ */

:root {
    --brand-primary: #73976a;
    --brand-secondary: #9ab17a;
    --brand-soft: #c3cc9b;
    --brand-warm: #e4dfb5;
    --brand-cream: #fbe8ce;
    --brand-hover: #526f4c;
    --color-navy: #1e211d;
    --color-blue: var(--brand-primary);
    --color-accent: var(--brand-primary);
    --color-ink: #1e211d;
    --color-muted: #5d655a;
    --color-border: #deddd1;
    --color-paper: #ffffff;
    --color-surface: #f8f6f1;
    --color-heading: #1e211d;
    --sidebar-start: #ffffff;
    --sidebar-end: #f8f6f1;
    --intro-start: #ffffff;
    --intro-end: #f4f1e7;

    --sidebar-width: 360px;
    --sidebar-collapsed-width: 64px;
    --header-height: 72px;
    --content-width: 1180px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.dark-mode {
    --color-blue: #c3cc9b;
    --color-accent: #c3cc9b;
    --color-ink: #f8f6f1;
    --color-muted: #c8cbc3;
    --color-border: rgba(255, 255, 255, 0.14);
    --color-paper: #20251f;
    --color-surface: #171a17;
    --color-heading: #f8f6f1;
    --sidebar-start: #20251f;
    --sidebar-end: #171a17;
    --intro-start: #20251f;
    --intro-end: #171a17;
}

/* ============================================================
   2. Base styles
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 88% 6%, #f4f0de 0, transparent 22rem),
        var(--color-surface);
    color: var(--color-ink);
    font: 17px/1.7 var(--font-family);
}

body.dark-mode {
    background:
        radial-gradient(circle at 88% 6%, rgba(115, 151, 106, 0.16) 0, transparent 22rem),
        var(--color-surface);
}

a {
    color: var(--color-blue);
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #eef0e5;
    color: #425b3d;
    font: 0.86em ui-monospace, monospace;
}

body.dark-mode code {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-accent);
}

body.dark-mode pre {
    background: #111411;
}

pre {
    overflow: auto;
    padding: 18px;
    border-radius: 10px;
    background: var(--color-navy);
    color: var(--color-paper);
}

/* ============================================================
   3. Sidebar and navigation
   ============================================================ */

aside {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 5;
    width: var(--sidebar-width);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 28px 20px;
    background: linear-gradient(180deg, var(--sidebar-start) 0%, var(--sidebar-end) 100%);
    border-right: 1px solid var(--color-border);
    transition: width 0.24s ease, padding 0.24s ease, transform 0.25s ease;
}

.docs-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 8px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    color: var(--color-blue);
    font-size: 1.5rem;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(30, 33, 29, 0.16);
}

.docs-sidebar-toggle {
    display: inline-grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    place-items: center;
    background: var(--color-paper);
    color: var(--brand-hover);
    cursor: pointer;
    font: 700 1.25rem/1 var(--font-family);
}

.docs-sidebar-toggle:hover {
    background: #edf0e4;
}

body.dark-mode .docs-sidebar-toggle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-accent);
}

body.dark-mode .docs-sidebar-toggle:hover {
    background: rgba(195, 204, 155, 0.14);
}

.docs-search {
    position: relative;
    margin: 0 0 18px;
}

.docs-search-control {
    position: relative;
}

.docs-search-control svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
    color: var(--color-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.docs-search input {
    width: 100%;
    height: 42px;
    padding: 8px 34px 8px 40px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-paper);
    color: var(--color-ink);
    font: 0.86rem var(--font-family);
}

.docs-search input::placeholder {
    color: var(--color-muted);
}

.docs-search input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(115, 151, 106, 0.14);
}

.docs-search-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 8;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-paper);
    box-shadow: 0 14px 34px rgba(30, 33, 29, 0.18);
}

.docs-search-result {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--color-ink);
    line-height: 1.3;
    text-decoration: none;
}

.docs-search-result:hover,
.docs-search-result.is-active {
    background: #edf0e4;
    color: var(--brand-hover);
}

body.dark-mode .docs-search-result:hover,
body.dark-mode .docs-search-result.is-active {
    background: rgba(195, 204, 155, 0.14);
    color: var(--color-accent);
}

.docs-search-result strong,
.docs-search-result small {
    display: block;
}

.docs-search-result strong {
    font-size: 0.83rem;
}

.docs-search-result small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-search-empty {
    margin: 0;
    padding: 12px 10px;
    color: var(--color-muted);
    font-size: 0.82rem;
    text-align: center;
}

nav a {
    display: block;
    padding: 7px 10px;
    border-radius: 7px;
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

nav a:hover,
nav a.active {
    background: #edf0e4;
    color: var(--brand-hover);
}

body.dark-mode nav a:hover,
body.dark-mode nav a.active {
    background: rgba(195, 204, 155, 0.14);
    color: var(--color-accent);
}

nav a.active {
    box-shadow: inset 3px 0 0 var(--color-accent);
}

/* ============================================================
   4. Main content
   ============================================================ */

main {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.24s ease;
}

.docs-sidebar-backdrop {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 4;
    display: none;
    padding: 0;
    border: 0;
    background: rgba(30, 33, 29, 0.5);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.docs-search-target {
    outline: 3px solid rgba(115, 151, 106, 0.42);
    outline-offset: 7px;
}

header {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--header-height);
    padding: 0 clamp(24px, 5vw, 80px);
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-border);
}

.documentation-version {
    color: var(--color-blue);
    font-size: 0.9rem;
    font-weight: 700;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 14px;
    border: 0;
    border-radius: 50%;
    background: #eef0e5;
    color: var(--color-blue);
    cursor: pointer;
    font-size: 1rem;
}

.theme-toggle .theme-icon-light {
    display: none;
}

body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-accent);
}

body.dark-mode .theme-toggle .theme-icon-light {
    display: block;
}

body.dark-mode .theme-toggle .theme-icon-dark {
    display: none;
}

article {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding: clamp(50px, 7vw, 96px) clamp(24px, 6vw, 90px) 120px;
}

section {
    scroll-margin-top: 25px;
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--color-border);
}

section:last-child {
    border: 0;
}

section:not(:first-child) {
    padding: clamp(28px, 4vw, 42px);
    margin-right: -18px;
    margin-left: -18px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-paper);
    box-shadow: 0 12px 32px rgba(30, 33, 29, 0.05);
}

body.dark-mode section:not(:first-child) {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

li {
    margin: 7px 0;
}

/* ============================================================
   5. Typography
   ============================================================ */

h1,
h2,
h3 {
    color: var(--color-heading);
    line-height: 1.18;
}

h1 {
    max-width: 820px;
    margin: 0 0 22px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.055em;
}

h2 {
    margin: 0 0 22px;
    font-size: clamp(1.6rem, 1.5vw, 2.2rem);
    letter-spacing: -0.04em;
}

h2::after {
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--color-accent);
    content: "";
}

h3 {
    margin: 30px 0 8px;
    font-size: 1.25rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.lead {
    max-width: 760px;
    color: var(--color-muted);
    font-size: 1.15rem;
}

.documentation-updated {
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 18px;
    font-size: 0.9rem;
}

.quick-links a {
    font-weight: 700;
}

#introduction {
    position: relative;
    padding: clamp(28px, 5vw, 54px);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--intro-start) 0%, var(--intro-end) 100%);
    box-shadow: 0 18px 40px rgba(30, 33, 29, 0.08);
}

#introduction::after {
    position: absolute;
    right: -52px;
    bottom: -78px;
    width: 210px;
    height: 210px;
    border: 34px solid rgba(115, 151, 106, 0.09);
    border-radius: 50%;
    content: "";
}

#introduction > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   6. Documentation components
   ============================================================ */

.notice {
    padding: 18px 20px;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 10px 10px 0;
    background: #fbe8ce;
    box-shadow: 0 6px 16px rgba(30, 33, 29, 0.06);
}

.table-scroll {
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: var(--color-paper);
    font-size: 0.96rem;
}

th,
td {
    padding: 14px 16px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--color-heading);
    font-weight: 750;
}

thead th {
    background: rgba(195, 204, 155, 0.42);
}

tr:last-child > * {
    border-bottom: 0;
}

tr > *:last-child {
    border-right: 0;
}

body.dark-mode .notice {
    background: rgba(228, 223, 181, 0.12);
}

.documentation-screenshot {
    margin: 26px 0;
}

.docs-screenshot-media {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.documentation-screenshot.is-portrait .docs-screenshot-media {
    width: fit-content;
    margin-inline: auto;
}

.documentation-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgba(30, 33, 29, 0.08);
    cursor: pointer;
}

.documentation-screenshot.is-portrait img {
    width: auto;
    max-width: min(100%, 560px);
    max-height: min(760px, 75vh);
    margin-inline: auto;
    object-fit: contain;
}

.docs-screenshot-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(30, 33, 29, 0.86);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    cursor: pointer;
}

.docs-screenshot-zoom:hover {
    background: var(--brand-hover);
}

.docs-screenshot-zoom svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.documentation-screenshot figcaption {
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.shot {
    display: grid;
    min-height: 145px;
    place-items: center;
    gap: 8px;
    margin-top: 24px;
    border: 2px dashed #c9cabb;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(195, 204, 155, 0.16));
    color: var(--color-muted);
    font-size: 0.9rem;
    text-align: center;
}

.shot::before {
    color: var(--color-accent);
    font: 700 1.5rem var(--font-family);
    content: "▣";
}

section ul,
section ol {
    padding: 18px 22px 18px 40px;
    border-radius: 12px;
    background: rgba(195, 204, 155, 0.16);
}

section li::marker {
    color: var(--color-accent);
    font-weight: 800;
}

.mode-summary-grid,
.comparison-grid,
.expected-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 30px 0;
}

.mode-summary {
    max-width: none;
    padding: 4px 0 2px 20px;
    border-left: 2px solid var(--color-accent);
}

.mode-summary h3,
.comparison-item h5,
.expected-result-grid h5 {
    margin: 5px 0 10px;
}

.mode-summary p:last-child,
.comparison-item p:last-child,
.annotation-item p:last-child {
    margin-bottom: 0;
}

.section-label,
.step-label {
    margin: 0 0 7px;
    color: var(--color-accent);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.doc-path {
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(195, 204, 155, 0.18);
    color: var(--color-muted);
    font-size: 0.93rem;
}

.doc-subsection {
    padding-top: 34px;
    margin-top: 46px;
    border-top: 1px solid var(--color-border);
}

.doc-subsection > h3:first-child {
    margin-top: 0;
}

.doc-step {
    padding-top: 42px;
    margin-top: 42px;
    border-top: 1px solid var(--color-border);
}

.doc-step h4 {
    margin: 0 0 10px;
    color: var(--color-heading);
    font-size: 1.18rem;
    line-height: 1.3;
}

.doc-step h5,
.annotation-item h5,
.field-guide dt,
.doc-example dt,
.comparison-item dt {
    color: var(--color-heading);
    font-size: 0.97rem;
    font-weight: 750;
}

.comparison-item,
.expected-result-grid article {
    max-width: none;
    padding: 18px 0 0;
    border-top: 2px solid var(--color-border);
}

.comparison-item:first-child,
.expected-result-grid article:first-child {
    border-top-color: var(--color-accent);
}

.comparison-item dl,
.field-guide,
.doc-example dl {
    margin: 18px 0 0;
}

.comparison-item dl > div,
.doc-example dl > div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.comparison-item dl > div:last-child,
.doc-example dl > div:last-child {
    border-bottom: 0;
}

.comparison-item dd,
.doc-example dd {
    margin: 0;
    color: var(--color-muted);
}

.doc-callout,
.doc-example {
    padding: 16px 18px;
    margin: 24px 0;
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    background: rgba(195, 204, 155, 0.13);
}

.doc-callout-muted {
    border-left-color: var(--color-border);
    background: var(--color-surface);
}

.field-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.field-guide > div {
    padding: 15px 0;
    border-top: 1px solid var(--color-border);
}

.field-guide dt,
.field-guide dd {
    margin: 0;
}

.field-guide dd {
    margin-top: 4px;
    color: var(--color-muted);
}

.doc-example {
    max-width: 560px;
}

.annotation-list {
    display: grid;
    gap: 14px;
    margin: 18px 0 30px;
}

.annotation-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.annotation-item > span {
    display: grid;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    place-items: center;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.annotation-item h5,
.annotation-item p {
    margin: 0;
}

.annotation-item p {
    margin-top: 2px;
    color: var(--color-muted);
    font-size: 0.96rem;
}

.expected-result-grid ul {
    padding: 0;
    margin: 12px 0 0;
    background: transparent;
    list-style-position: inside;
}

.expected-result-grid li {
    margin: 3px 0;
}

.woocommerce-scope-note {
    color: var(--color-muted);
    font-size: 0.96rem;
}

/* ============================================================
   7. Interactive controls
   ============================================================ */

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--color-blue);
    font: 700 1rem var(--font-family);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(95, 129, 88, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

body.docs-lightbox-open {
    overflow: hidden;
}

.docs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    padding: clamp(56px, 7vw, 88px) clamp(16px, 4vw, 56px);
    place-items: center;
    background: rgba(8, 10, 8, 0.9);
    cursor: pointer;
}

.docs-lightbox[hidden] {
    display: none;
}

.docs-lightbox-image {
    display: block;
    max-width: min(94vw, 1800px);
    max-height: 88vh;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
    cursor: default;
    object-fit: contain;
}

.docs-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 50%;
    background: rgba(20, 24, 20, 0.9);
    color: #ffffff;
    cursor: pointer;
    font: 300 2rem/1 var(--font-family);
}

.docs-lightbox-close:hover {
    background: #ffffff;
    color: #1e211d;
}

/* ============================================================
   8. Responsive layout
   ============================================================ */

@media (min-width: 901px) {
    .docs-sidebar-toggle span {
        display: block;
        width: 8px;
        height: 8px;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        font-size: 0;
        transform: rotate(135deg);
        transform-origin: center;
    }

    html.docs-sidebar-collapsed .docs-sidebar-toggle span {
        transform: rotate(-45deg);
    }

    html.docs-sidebar-collapsed aside {
        width: var(--sidebar-collapsed-width);
        padding: 18px 14px;
    }

    html.docs-sidebar-collapsed .docs-sidebar-header {
        justify-content: center;
        margin: 0;
    }

    html.docs-sidebar-collapsed .brand,
    html.docs-sidebar-collapsed .docs-search,
    html.docs-sidebar-collapsed aside nav {
        display: none;
    }

    html.docs-sidebar-collapsed main {
        margin-left: var(--sidebar-collapsed-width);
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 64px;
    }

    .docs-search input {
        font-size: 0.78rem;
    }

    aside {
        inset: var(--header-height) auto 0 0;
        width: min(84vw, 300px);
        padding: 22px 18px;
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        box-shadow: 10px 0 30px rgba(30, 33, 29, 0.13);
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }

    body.sidebar-open aside {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .docs-sidebar-backdrop {
        display: block;
        opacity: 1;
    }

    main {
        margin-left: 0;
    }

    header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 6;
        gap: 12px;
        justify-content: space-between;
        padding: 0 20px;
    }

    article {
        padding-top: calc(var(--header-height) + 48px);
    }

    .menu-button {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 8px 4px;
        white-space: nowrap;
    }

    .docs-sidebar-header {
        margin: 0 4px 18px;
    }

    .documentation-version {
        min-width: 0;
        margin-left: auto;
        white-space: nowrap;
    }

    .comparison-item dl > div {
        display: block;
    }

    .comparison-item dd {
        margin-top: 2px;
    }
}

@media (max-width: 560px) {
    header {
        padding: 0 16px;
    }

    .documentation-version {
        font-size: 0.8rem;
    }

    .menu-button {
        gap: 6px;
        font-size: 0.9rem;
    }

    article {
        padding-top: 48px;
    }

    section {
        padding-bottom: 42px;
        margin-bottom: 42px;
    }

    section:not(:first-child) {
        padding: 24px;
        margin-right: 0;
        margin-left: 0;
        border-radius: 14px;
    }

    .mode-summary-grid,
    .comparison-grid,
    .expected-result-grid,
    .field-guide {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doc-subsection,
    .doc-step {
        padding-top: 32px;
        margin-top: 32px;
    }

    .comparison-item dl > div,
    .doc-example dl > div {
        display: block;
    }

    .comparison-item dd,
    .doc-example dd {
        margin-top: 2px;
        text-align: left;
    }

    .docs-lightbox {
        padding: 64px 12px 16px;
    }

    .docs-lightbox-image {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 80px);
    }

    .docs-lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 360px) {
    .menu-button span:last-child {
        display: none;
    }

    .documentation-version {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    aside,
    main,
    .docs-sidebar-backdrop,
    .back-to-top,
    .docs-lightbox {
        transition: none;
    }
}

@media print {
    body,
    body.dark-mode {
        background: #ffffff;
        color: #182b47;
    }

    aside,
    .docs-sidebar-backdrop,
    main > header,
    .back-to-top,
    .quick-links,
    .docs-lightbox {
        display: none;
    }

    main {
        margin: 0;
    }

    article {
        max-width: none;
        padding: 0;
    }

    section,
    section:not(:first-child),
    #introduction {
        break-inside: avoid;
        margin: 0 0 24px;
        padding: 20px;
        border: 1px solid #dce4ee;
        box-shadow: none;
        background: #ffffff;
    }

    h1,
    h2,
    h3,
    a {
        color: #1e211d;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: 400;
    }
}
