:root {
    --bg: #ffffff;
    --bg-soft: #f7f7fb;
    --bg-raised: #ffffff;
    --border: #e6e6ef;
    --border-strong: #d5d5e2;
    --text: #16161d;
    --text-soft: #5a5a6e;
    --text-faint: #8a8a9c;
    --accent: #5b4ae0;
    --accent-soft: #efecff;
    --accent-text: #4a3ad0;
    --code-bg: #f5f4fb;
    --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 8px 24px rgba(20, 20, 40, .06);
    --radius: 12px;
    --radius-sm: 8px;
    --header-height: 60px;
    --sidebar-width: 268px;
    --toc-width: 232px;
    --measure: 74ch;
    --ease: cubic-bezier(.2, .7, .3, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f0f14;
        --bg-soft: #16161d;
        --bg-raised: #1a1a23;
        --border: #26262f;
        --border-strong: #34343f;
        --text: #ececf2;
        --text-soft: #a5a5b8;
        --text-faint: #7c7c90;
        --accent: #a99bff;
        --accent-soft: #211d3d;
        --accent-text: #b9adff;
        --code-bg: #16161f;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0f0f14;
    --bg-soft: #16161d;
    --bg-raised: #1a1a23;
    --border: #26262f;
    --border-strong: #34343f;
    --text: #ececf2;
    --text-soft: #a5a5b8;
    --text-faint: #7c7c90;
    --accent: #a99bff;
    --accent-soft: #211d3d;
    --accent-text: #b9adff;
    --code-bg: #16161f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[tabindex="-1"]:focus { outline: none; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code, pre {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: .88em;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    z-index: 100;
}
.skip:focus { left: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1px;
    color: var(--text);
    flex: none;
}
.brand:hover { text-decoration: none; }

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.03rem;
    letter-spacing: -.015em;
}
.brand-name { font-weight: 630; color: var(--text); }

.mark {
    width: 22px;
    height: 22px;
    flex: none;
    overflow: visible;
    transition: transform .35s var(--ease), filter .35s var(--ease);
}
.facet { fill: var(--accent); transition: opacity .35s var(--ease); }
.facet-a { opacity: .38; }
.facet-b { opacity: .68; }
.facet-c { opacity: .55; }
.facet-d { opacity: .92; }
.outline { fill: none; stroke: var(--accent); stroke-width: .6; stroke-linejoin: round; opacity: .35; }

.brand:hover .mark {
    transform: scale(1.08) rotate(-4deg);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
}
.shine {
    transform: translateX(-24px);
    transition: transform .65s var(--ease);
}
.brand:hover .shine { transform: translateX(24px); }
.brand:hover .facet-a { opacity: .55; }
.brand:hover .facet-b { opacity: .85; }
.brand:hover .facet-c { opacity: .7; }
.brand:hover .facet-d { opacity: 1; }



.search {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 460px;
    margin-left: auto;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--text-faint);
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}
.search input[type="search"] {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 36px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--text);
    font: inherit;
    font-size: .92rem;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.search input[type="search"]:focus {
    outline: none;
    background: var(--bg-raised);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.menu { position: relative; }
.menu-button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.menu-button:hover { background: var(--bg-soft); color: var(--text); }
.chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.menu.open .chevron { transform: rotate(180deg); }

.menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    padding: 6px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.menu.open .menu-panel { opacity: 1; transform: none; pointer-events: auto; }
.menu-panel a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
}
.menu-panel a:hover { background: var(--bg-soft); text-decoration: none; }
.menu-panel a.active { color: var(--accent-text); font-weight: 600; }
.menu-note { color: var(--text-faint); font-size: .78rem; }

.flag { width: 20px; height: 14px; display: block; border-radius: 2px; }

.menu-button .flag { width: 22px; height: 15px; }

.menu-panel.flags {
    display: flex;
    gap: 4px;
    min-width: 0;
    padding: 5px;
}
.menu-panel.flags a {
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.menu-panel.flags a:hover { background: var(--bg-soft); transform: translateY(-1px); }
.menu-panel.flags a.active { border-color: var(--accent); background: var(--accent-soft); }

.icon-link {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-faint);
    transition: color .18s var(--ease), background .18s var(--ease);
}
.icon-link svg { width: 17px; height: 17px; fill: currentColor; }
.icon-link:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }

.supporter {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: .87rem;
    font-weight: 580;
    white-space: nowrap;
    transition: filter .18s var(--ease), transform .18s var(--ease);
}
.supporter:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
:root[data-theme="dark"] .supporter { color: #14121f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .supporter { color: #14121f; } }

.suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 6px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 60vh;
    overflow-y: auto;
    z-index: 60;
}
.suggestions a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
}
.suggestions a:hover, .suggestions a.active { background: var(--bg-soft); text-decoration: none; }
.suggestions .s-where { display: block; color: var(--text-faint); font-size: .74rem; }
.suggestions .s-title { display: block; font-weight: 560; font-size: .92rem; }
.suggestions .s-desc { display: block; color: var(--text-soft); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestions .s-empty { padding: 12px; color: var(--text-faint); font-size: .88rem; }
.suggestions mark { background: var(--accent-soft); color: var(--accent-text); border-radius: 3px; padding: 0 1px; }

.theme-toggle {
    display: flex;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.theme-toggle button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
    transition: background .18s var(--ease), color .18s var(--ease);
}
.theme-toggle button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle button:hover { color: var(--text); }
.theme-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }

main { min-height: calc(100vh - var(--header-height) - 90px); }

.hub { max-width: 1000px; margin: 0 auto; padding: 72px 24px 96px; }
.hub-lede { max-width: 620px; }
.hub h1 {
    margin: 0 0 14px;
    font-size: clamp(2.1rem, 4.5vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 680;
}
.hub-lede p { margin: 0; color: var(--text-soft); font-size: 1.12rem; }

.install {
    margin-top: 40px;
    padding: 26px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.install h2 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -.015em; }
.install p { margin: 0 0 18px; color: var(--text-soft); font-size: .95rem; max-width: 62ch; }

.install-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.install-row code {
    flex: 1;
    min-width: 260px;
    padding: 10px 14px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .86rem;
    overflow-x: auto;
    white-space: nowrap;
}
.install-row .copy {
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text);
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    transition: background .18s var(--ease), border-color .18s var(--ease);
}
.install-row .copy:hover { border-color: var(--border-strong); }
.install-row .cta {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-weight: 580;
    font-size: .9rem;
    transition: filter .18s var(--ease), transform .18s var(--ease);
}
.install-row .cta:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
:root[data-theme="dark"] .install-row .cta { color: #14121f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .install-row .cta { color: #14121f; } }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.product-card {
    display: block;
    padding: 24px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.product-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.product-card h2 { margin: 0 0 8px; font-size: 1.18rem; letter-spacing: -.015em; }
.product-card p { margin: 0 0 16px; color: var(--text-soft); font-size: .95rem; }
.product-meta { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: .82rem; }
.product-cta { color: var(--accent-text); font-weight: 560; font-size: .9rem; }
.product-card:hover .product-cta .arrow { transform: translateX(3px); }
.arrow { display: inline-block; transition: transform .22s var(--ease); }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.docs-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width);
    gap: 48px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: var(--header-height);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 32px 0 48px;
    font-size: .92rem;
}
.sidebar-product { margin-bottom: 22px; padding-left: 14px; font-weight: 640; letter-spacing: -.01em; }
.sidebar h3 {
    margin: 22px 0 8px;
    padding-left: 14px;
    font-size: .74rem;
    font-weight: 640;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-faint);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
    display: block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    transition: color .16s var(--ease), background .16s var(--ease);
}
.sidebar li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sidebar li a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.sidebar li a.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 560; }

.doc { padding: 40px 0 88px; min-width: 0; animation: rise .32s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.crumbs { display: flex; gap: 8px; color: var(--text-faint); font-size: .85rem; margin-bottom: 14px; }
.crumbs a { color: var(--text-faint); }
.crumbs a:hover { color: var(--text-soft); }

.doc h1 {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 3.4vw, 2.4rem);
    line-height: 1.18;
    letter-spacing: -.025em;
    font-weight: 680;
}
.doc-lede { margin: 0 0 8px; color: var(--text-soft); font-size: 1.08rem; }
.doc-meta { color: var(--text-faint); font-size: .82rem; margin-bottom: 32px; }

.lang-tag {
    flex: none;
    padding: 1px 5px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    color: var(--text-faint);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.5;
}

.notice-lang { display: flex; align-items: center; gap: 10px; }
.notice-lang .lang-tag { border-color: var(--accent); color: var(--accent-text); }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.doc-body .tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .86rem;
    color: var(--text-soft);
    line-height: 1.3;
}
.doc-body .tag code {
    padding: 0;
    background: none;
    border: 0;
    color: var(--text);
    font-weight: 560;
}

.notice {
    padding: 12px 16px;
    margin: 0 0 28px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text-soft);
    font-size: .9rem;
}

.doc-body > *:first-child { margin-top: 0; }
.doc-body > p,
.doc-body > ul,
.doc-body > ol,
.doc-body > blockquote,
.doc-body > h2,
.doc-body > h3,
.doc-body > h4 { max-width: var(--measure); }
.doc-body > pre,
.doc-body > .table-wrap,
.doc-body > img { max-width: 100%; }
.doc-body h2 {
    margin: 44px 0 14px;
    padding-top: 8px;
    font-size: 1.42rem;
    letter-spacing: -.02em;
    font-weight: 660;
}
.doc-body h3 { margin: 32px 0 10px; font-size: 1.12rem; font-weight: 640; letter-spacing: -.01em; }
.doc-body h4 { margin: 26px 0 8px; font-size: 1rem; font-weight: 640; }
.doc-body p { margin: 0 0 18px; }
.doc-body ul, .doc-body ol { margin: 0 0 18px; padding-left: 24px; }
.doc-body li { margin-bottom: 7px; }
.doc-body li::marker { color: var(--text-faint); }

.doc-body h2 a.anchor, .doc-body h3 a.anchor { opacity: 0; margin-left: 8px; color: var(--text-faint); transition: opacity .16s var(--ease); }
.doc-body h2:hover a.anchor, .doc-body h3:hover a.anchor { opacity: 1; }

.doc-body code {
    padding: .15em .4em;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
}
.doc-body pre {
    margin: 0 0 22px;
    padding: 16px 18px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    line-height: 1.6;
}
.doc-body pre code { padding: 0; background: none; border: 0; tab-size: 4; }

.t-keyword { color: #8250df; }
.t-string { color: #0a7d55; }
.t-comment { color: #7c7c90; font-style: italic; }
.t-number { color: #a8480a; }
.t-type { color: #1f6feb; }
.t-attribute { color: #a8480a; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .t-keyword { color: #c9a3ff; }
    :root:not([data-theme="light"]) .t-string { color: #7ee0a8; }
    :root:not([data-theme="light"]) .t-comment { color: #6f6f85; }
    :root:not([data-theme="light"]) .t-number { color: #ffb37a; }
    :root:not([data-theme="light"]) .t-type { color: #7cc4ff; }
    :root:not([data-theme="light"]) .t-attribute { color: #ffb37a; }
}

:root[data-theme="dark"] .t-keyword { color: #c9a3ff; }
:root[data-theme="dark"] .t-string { color: #7ee0a8; }
:root[data-theme="dark"] .t-comment { color: #6f6f85; }
:root[data-theme="dark"] .t-number { color: #ffb37a; }
:root[data-theme="dark"] .t-type { color: #7cc4ff; }
:root[data-theme="dark"] .t-attribute { color: #ffb37a; }

.doc-body blockquote {
    margin: 0 0 22px;
    padding: 2px 18px;
    border-left: 3px solid var(--border-strong);
    color: var(--text-soft);
}

.table-wrap {
    margin: 0 0 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    background: var(--bg-raised);
}
.doc-body table { width: 100%; border-collapse: collapse; margin: 0; font-size: .92rem; }
.doc-body thead { background: var(--bg-soft); }
.doc-body th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 620;
    color: var(--text-faint);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.doc-body td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.doc-body tbody tr:last-child td { border-bottom: 0; }
.doc-body tbody tr { transition: background .14s var(--ease); }
.doc-body tbody tr:hover { background: var(--bg-soft); }
.doc-body td code {
    padding: .1em .35em;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    white-space: nowrap;
}
.doc-body td:first-child { color: var(--text-soft); }

.doc-body .note,
.doc-body .tip,
.doc-body .warning {
    margin: 0 0 24px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    max-width: var(--measure);
}
.doc-body .note > *:last-child,
.doc-body .tip > *:last-child,
.doc-body .warning > *:last-child { margin-bottom: 0; }
.doc-body .warning { border-left-color: #d97706; }
.doc-body .tip { border-left-color: #0a7d55; }
:root[data-theme="dark"] .doc-body .warning { border-left-color: #f59e0b; }
:root[data-theme="dark"] .doc-body .tip { border-left-color: #4ade80; }

.doc-body hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

.pager { display: flex; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.pager a {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pager a:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); }
.pager .dir { display: block; color: var(--text-faint); font-size: .78rem; margin-bottom: 3px; }
.pager .next { text-align: right; }

.toc { position: sticky; top: var(--header-height); padding: 44px 0 48px; font-size: .87rem; }
.toc h2 { margin: 0 0 10px; font-size: .74rem; font-weight: 640; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc li a {
    display: block;
    padding: 4px 0 4px 14px;
    margin-left: -1px;
    border-left: 1px solid transparent;
    color: var(--text-faint);
    transition: color .16s var(--ease), border-color .16s var(--ease);
}
.toc li a:hover { color: var(--text); text-decoration: none; }
.toc li a.active { color: var(--accent-text); border-left-color: var(--accent); }
.toc .lvl-3 { padding-left: 26px; }

.results { max-width: 760px; margin: 0 auto; padding: 48px 24px 88px; }
.results h1 { margin: 0 0 6px; font-size: 1.9rem; letter-spacing: -.02em; }
.results-count { color: var(--text-faint); margin-bottom: 28px; }
.result {
    display: block;
    padding: 18px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.result:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); }
.result .where { color: var(--text-faint); font-size: .78rem; }
.result h2 { margin: 3px 0 6px; font-size: 1.05rem; }
.result p { margin: 0; color: var(--text-soft); font-size: .9rem; }

.nav-toggle { display: none; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    color: var(--text-faint);
    font-size: .85rem;
}
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { color: var(--text-soft); }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: #ffe8a3;
    color: #3b2f00;
    z-index: 200;
}

@media (min-width: 1600px) {
    :root {
        --sidebar-width: 288px;
        --toc-width: 256px;
        --measure: 80ch;
    }
    .docs-shell { max-width: 1580px; gap: 56px; }
    .hub { max-width: 1120px; }
}

@media (min-width: 1920px) {
    :root {
        --sidebar-width: 304px;
        --toc-width: 272px;
        --measure: 86ch;
    }
    .docs-shell { max-width: 1780px; gap: 64px; }
    .hub { max-width: 1240px; padding-top: 88px; }
}

@media (max-width: 1180px) {
    .docs-shell { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: 40px; }
    .toc { display: none; }
}

@media (max-width: 860px) {
    .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sidebar {
        position: fixed;
        inset: var(--header-height) auto 0 0;
        width: 280px;
        padding: 24px;
        background: var(--bg-raised);
        border-right: 1px solid var(--border);
        transform: translateX(-100%);
        transition: transform .26s var(--ease);
        z-index: 40;
    }
    body.nav-open .sidebar { transform: none; }
    body:has(.sidebar) .nav-toggle {
        display: grid;
        place-items: center;
        flex: none;
        width: 34px;
        height: 34px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--bg-soft);
        color: var(--text-soft);
        cursor: pointer;
    }
    body:has(.sidebar) .nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
    .brand-name { display: none; }
    .supporter { display: none; }
    .icon-link { display: none; }
    .header-inner { gap: 12px; padding: 0 16px; }
    .doc { padding-top: 24px; }
    .pager { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
