@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/google-sans-latin-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Google Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/google-sans-latin-italic.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/DMMono-Regular.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --chrome: #292b2a;
  --bg: #1c1d1c;
  --bg-subtle: #222423;
  --bg-inset: #282a29;
  --bg-elevated: #252725;
  --selected: #363a35;
  --text: #dedfdd;
  --text-muted: #b3b8b1;
  --text-faint: #a0a69e;
  --border: #2f322f;
  --border-strong: #484d46;
  --accent: #b5cea5;
  --accent-hover: #c5dbb7;
  --accent-text: #b5cea5;
  --accent-soft: #2d3529;
  --accent-line: #4b5a42;
  --accent-ink: #1c211b;
  --neutral-fill: #363a35;
  --neutral-fill-hover: #41473e;
  --neutral-ink: #dedfdd;
  --danger: #e7a3a3;
  --danger-hover: #f0b6b6;
  --danger-soft: #392a29;
  --danger-ink: #251b1b;
  --disabled-bg: #282a29;
  --warn: #f5c86f;
  --code-bg: #222423;
  --code-border: #353a33;
  --shadow-sm: 0 2px 6px rgb(0 0 0 / 8%);
  --shadow-lg: 0 24px 72px -20px rgb(0 0 0 / 48%);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --sidebar-w: 244px;
  --toc-w: 206px;
  --maxw: 1512px;
  --font-sans: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --logo-filter: brightness(.88);
}

html[data-theme="light"] {
  color-scheme: light;
  --chrome: #e3e7e4;
  --bg: #f0f2ef;
  --bg-subtle: #e9ede8;
  --bg-inset: #e3e8e1;
  --bg-elevated: #f7f8f5;
  --selected: #dce3d8;
  --text: #232b26;
  --text-muted: #526057;
  --text-faint: #5e6a60;
  --border: #d8ded8;
  --border-strong: #bac5b6;
  --accent: #b5cea5;
  --accent-hover: #a6c293;
  --accent-text: #4e653f;
  --accent-soft: #e1e9db;
  --accent-line: #a0b590;
  --accent-ink: #232b26;
  --neutral-fill: #dfe5dc;
  --neutral-fill-hover: #d4ddce;
  --neutral-ink: #232b26;
  --danger: #a13a3a;
  --danger-hover: #852c2c;
  --danger-soft: #f5e4e0;
  --danger-ink: #fff;
  --disabled-bg: #e3e8e1;
  --warn: #8b610f;
  --code-bg: #e9ede8;
  --code-border: #d1dacd;
  --shadow-sm: 0 2px 6px rgb(28 33 27 / 4%);
  --shadow-lg: 0 24px 72px -20px rgb(28 33 27 / 22%);
  --logo-filter: brightness(0) invert(.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-color: var(--border-strong) var(--chrome); }
body { margin: 0; background: var(--chrome); color: var(--text); font: 400 15.5px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; font-synthesis: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--accent-text); text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
svg, img { display: block; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea { caret-color: var(--accent-text); }
input::placeholder, textarea::placeholder { color: var(--text-faint); opacity: 1; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border: 2px solid var(--bg); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }
h1, h2, h3 { text-wrap: balance; }

.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.skip-link:focus-visible { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--chrome); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 100%; max-width: var(--maxw); margin: auto; padding: 0 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 25px; height: 25px; }
.brand-mark img { width: 25px; height: 25px; filter: var(--logo-filter); }
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.brand-divider { margin: 0 4px 0 8px; color: var(--text-faint); font-size: 20px; font-weight: 400; }
.brand-docs { color: var(--text-muted); font-size: 15px; }
.header-actions { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }
.icon-btn { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); }
.icon-btn:hover { background: var(--selected); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="light"] .icon-sun, html[data-theme="dark"] .icon-moon { display: none; }
.nav-toggle, .sidebar-close { display: none; }
.header-community { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 13px; text-decoration: none; }
.header-community:hover { color: var(--text); }
.header-community .icon { width: 13px; height: 13px; }
.search-trigger { display: flex; align-items: center; gap: 10px; width: min(320px, 30vw); min-height: 36px; margin-right: auto; margin-left: clamp(20px, 7vw, 112px); padding: 6px 10px 6px 13px; border: 1px solid var(--border-strong); border-radius: 12px; background: transparent; color: var(--text-faint); font-size: 13px; text-align: left; }
.search-trigger span { flex: 1; }
.search-trigger svg { width: 15px; height: 15px; }
.search-trigger:hover { background: var(--selected); color: var(--text); }
kbd { display: inline-block; padding: 2px 6px; border: 1px solid var(--border-strong); border-radius: 5px; background: transparent; color: var(--text-faint); font: 400 11px/1.5 var(--font-sans); white-space: nowrap; }

.shell { position: relative; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); align-items: start; width: calc(100% - 28px); max-width: calc(var(--maxw) - 28px); min-height: calc(100vh - 136px); margin: 0 auto; overflow: clip; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg); }
.shell::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--sidebar-w); border-right: 1px solid var(--border); background: var(--bg-subtle); pointer-events: none; }
.page-home .shell, .page-404 .shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.sidebar { position: sticky; top: calc(var(--header-h) + 1px); z-index: 1; height: calc(100dvh - var(--header-h) - 1px); overflow-y: auto; padding: 22px 12px; background: var(--bg-subtle); scrollbar-width: thin; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 20px; color: var(--text-muted); font-size: 13px; }
.sidebar-heading > span { display: flex; align-items: center; gap: 9px; }
.sidebar-heading .icon { width: 16px; height: 16px; }
.nav-home { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 9px 12px; border-radius: 10px; color: var(--text-muted); font-size: 14px; text-decoration: none; }
.nav-home:hover, .nav-home.is-active { background: var(--selected); color: var(--text); }
.nav-group { margin: 6px 0; }
.nav-label { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 8px 10px; border-radius: 9px; color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; }
.nav-label::-webkit-details-marker { display: none; }
.nav-label::marker { content: ""; }
.nav-label:hover { background: var(--bg-inset); color: var(--text); }
.nav-label .icon { width: 15px; height: 15px; }
.nav-label .nav-chevron { width: 12px; height: 12px; margin-left: auto; transition: transform .18s ease; }
.nav-group[open] .nav-chevron { transform: rotate(90deg); }
.nav-list { margin: 2px 0 12px 17px; padding: 0 0 0 11px; border-left: 1px solid var(--border-strong); list-style: none; }
.nav-list a { display: block; margin: 2px 0; padding: 7px 9px; border-radius: 7px; color: var(--text-faint); font-size: 13px; line-height: 1.5; text-decoration: none; }
.nav-list a:hover { background: var(--bg-inset); color: var(--text); }
.nav-list a.is-active { background: var(--selected); color: var(--accent-text); font-weight: 500; }
.sidebar-discord { display: flex; align-items: center; gap: 9px; margin: 28px 7px 0; padding: 15px 3px 0; border: 0; border-top: 1px solid var(--border-strong); color: var(--text-muted); font-size: 12px; text-decoration: none; }
.sidebar-discord:hover { color: var(--accent-text); }
.sidebar-discord .icon { width: 15px; height: 15px; }
.sidebar-discord .icon:last-child { margin-left: auto; }
.scrim { display: none; }
.main { min-width: 0; width: 100%; padding: 22px clamp(26px, 3.7vw, 56px) 64px; outline: none; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 44px; color: var(--text-faint); font-size: 12px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); text-decoration: none; flex-shrink: 0; }
.breadcrumbs > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.breadcrumbs .icon { width: 13px; height: 13px; }
.source-link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--text-faint); text-decoration: none; }
.source-link .icon { width: 12px; height: 12px; }
.source-link:hover, .breadcrumbs a:hover { color: var(--text); }

.article { max-width: 74ch; margin: auto; overflow-wrap: anywhere; }
.article h1 { margin: 0 0 16px; font-size: clamp(30px, 3vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.18; }
.article .lede { margin: 0 0 32px; color: var(--text-muted); font-size: 17px; line-height: 1.65; }
.article h2, .home-prose h2 { margin: 44px 0 14px; font-size: 23px; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.article h3 { margin: 30px 0 10px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.5; }
.article p, .home-prose p { margin: 0 0 18px; color: var(--text-muted); }
.article strong, .home-prose strong { color: var(--text); font-weight: 600; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 23px; color: var(--text-muted); }
.article li { margin-bottom: 9px; }
.article li::marker { color: var(--text-faint); }
.article > p > code, .article li code, .article td code { padding: 2px 5px; border: 1px solid var(--code-border); border-radius: 5px; background: var(--code-bg); color: var(--text); font: 400 .83em/1.6 var(--font-mono); overflow-wrap: anywhere; }
.article pre, .home-prose pre { margin: 0 0 22px; padding: 22px 22px 44px; overflow-x: auto; border: 1px solid var(--code-border); border-radius: 14px; background: var(--code-bg); font: 400 12px/1.85 var(--font-mono); scrollbar-width: thin; }
.article pre code, .home-prose pre code { font-family: var(--font-mono); color: var(--text); white-space: pre; }
.article hr { margin: 40px 0; border: 0; border-top: 1px solid var(--border); }
.table-scroll { max-width: 100%; overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 12px; scrollbar-width: thin; }
.article table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.article th, .article td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; min-width: 110px; }
.article th { background: var(--bg-subtle); color: var(--text); font-size: 12px; font-weight: 500; }
.article td { color: var(--text-muted); }
.article tr:last-child td { border-bottom: 0; }
.callout { position: relative; margin: 22px 0; padding: 18px 20px 18px 46px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg-subtle); color: var(--text-muted); font-size: 14px; }
.callout > :last-child { margin-bottom: 0; }
.callout::before { content: ""; position: absolute; left: 18px; top: 22px; width: 16px; height: 16px; background: var(--text-faint); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.6v.2'/%3E%3C/svg%3E") no-repeat center / contain; }
.callout-info { background: var(--accent-soft); border-color: var(--accent-line); }
.callout-info::before { background: var(--accent-text); }
.callout-warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--border)); background: color-mix(in srgb, var(--warn) 7%, var(--bg)); }
.callout-warn::before { background: var(--warn); }
.toc { position: sticky; top: calc(var(--header-h) + 1px); max-height: calc(100dvh - var(--header-h) - 30px); overflow-y: auto; padding: 94px 22px 32px 0; scrollbar-width: thin; }
.toc-label { margin: 0 0 16px; color: var(--text-muted); font-size: 12px; font-weight: 500; }
.toc-list { margin: 0; padding: 0 0 0 13px; border-left: 1px solid var(--border-strong); list-style: none; }
.toc-item a { display: block; margin-left: -14px; padding: 6px 0 6px 13px; border-left: 1px solid transparent; color: var(--text-faint); font-size: 12px; line-height: 1.6; text-decoration: none; }
.toc-item a:hover { color: var(--text); }
.toc-item a.is-active { color: var(--accent-text); border-left-color: var(--accent-text); }
.toc-level-3 a { padding-left: 23px; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 74ch; margin: 48px auto 0; }
.pager-card { display: flex; flex-direction: column; gap: 5px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.pager-card:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
.pager-next { align-items: flex-end; text-align: right; }
.pager-next:only-child { grid-column: 2; }
.pager-dir { color: var(--text-faint); font-size: 12px; }
.pager-title { color: var(--text); font-size: 14px; font-weight: 500; }

.home { max-width: 1016px; margin: 0 auto; }
.hero { max-width: 750px; padding: 4px 0 38px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(35px, 3.8vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero-lede { max-width: 53ch; margin: 0 0 28px; color: var(--text-muted); font-size: 16px; line-height: 1.75; }
.hero-search { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; width: 100%; min-height: 130px; padding: 22px 18px 14px 23px; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--bg-elevated); color: var(--text-faint); text-align: left; transition: border-color .18s ease, background .18s ease; }
.hero-search:hover { border-color: var(--accent-line); background: var(--bg-inset); }
.hero-search-prompt { font-size: 17px; }
.hero-search-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.hero-search-label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.hero-search-label .icon { width: 14px; height: 14px; }
.hero-search-action { display: flex; align-items: center; gap: 12px; }
.hero-search-send { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.hero-search-send .icon { width: 17px; height: 17px; }
.hero-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.hero-shortcuts a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: 11.5px; text-decoration: none; transition: background .15s ease; }
.hero-shortcuts a:hover { background: var(--selected); color: var(--text); }
.hero-shortcuts .icon { width: 13px; height: 13px; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 36px 0 20px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--text-faint); font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; margin: 0; padding: 0; list-style: none; }
.card-grid li { min-width: 0; }
.card { display: grid; position: relative; grid-template-columns: 26px minmax(0, 1fr); align-content: start; gap: 5px 12px; height: 100%; padding: 19px 24px 19px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; transition: background .15s ease; }
.card::after { content: ""; position: absolute; top: 24px; right: 6px; width: 6px; height: 6px; border-top: 1px solid var(--text-faint); border-right: 1px solid var(--text-faint); transform: rotate(45deg); transition: transform .18s ease; }
.card:hover::after { transform: translateX(3px) rotate(45deg); border-color: var(--accent-text); }
.card:hover .card-title { color: var(--accent-text); }
.card-icon { display: grid; place-items: center; align-self: start; width: 24px; height: 24px; color: var(--text-muted); grid-row: 1 / 3; }
.card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-title { color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.6; }
.card-desc { grid-column: 2; color: var(--text-faint); font-size: 12.5px; line-height: 1.65; }
.start-grid { gap: 12px; }
.start-grid .card { padding: 20px 28px 20px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-subtle); }
.start-grid .card:hover { background: var(--bg-inset); border-color: var(--border-strong); }
.start-grid .card::after { top: 29px; right: 16px; }
.start-grid .card-icon { color: var(--accent-text); }
.home-prose { max-width: 74ch; margin-top: 48px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; margin: 24px 0 32px; padding: 0; list-style: none; }
.steps li { position: relative; padding-left: 38px; color: var(--text-muted); font-size: 13px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--selected); color: var(--accent-text); font-size: 11px; font-variant-numeric: tabular-nums; }
.steps strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; font-weight: 500; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid transparent; border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .15s ease; }
.btn-primary, .btn-discord { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-discord:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-sm { padding: 8px 12px; font-size: 12px; }
.help-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 40px; padding: 22px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--bg-subtle); }
.help-cta-copy p { margin: 0; font-size: 14px; }
.help-cta-copy .help-cta-label { margin: 0 0 7px; color: var(--text); font-size: 17px; font-weight: 500; }
.site-footer { max-width: var(--maxw); margin: 0 auto; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 22px 30px; color: var(--text-faint); font-size: 11px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; font-weight: 500; text-decoration: none; }
.footer-brand img { filter: var(--logo-filter); }
.footer-inner a { color: var(--text-muted); }
.footer-discord { margin-left: auto; }

.search-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding: min(14vh, 140px) 20px 20px; }
.search-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 60%); }
.search-panel { position: relative; width: min(640px, 100%); max-height: calc(100dvh - min(14vh, 140px) - 40px); overflow: auto; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--bg-elevated); box-shadow: var(--shadow-lg); }
.search-field { display: flex; align-items: center; gap: 13px; padding: 20px; border-bottom: 1px solid var(--border); }
.search-field > .icon { width: 18px; height: 18px; color: var(--accent-text); }
.search-field input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--text); font-size: 16px; outline: none; }
.search-close { padding: 4px 7px; border: 1px solid var(--border-strong); border-radius: 6px; background: transparent; color: var(--text-muted); font-size: 11px; }
.search-close:hover { background: var(--selected); }
.search-results { max-height: min(53vh, 440px); overflow-y: auto; margin: 0; padding: 8px; list-style: none; }
.search-results:empty { display: none; }
.search-result a { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border-radius: 12px; color: var(--text); text-decoration: none; }
.search-result.is-active a, .search-result a:hover { background: var(--selected); }
.result-tag { flex: 0 0 105px; padding-top: 2px; color: var(--text-faint); font-size: 10px; line-height: 1.6; }
.result-body { min-width: 0; }
.result-title { display: block; color: var(--text); font-size: 14px; line-height: 1.5; }
.result-sub { display: block; overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.result-title mark, .result-sub mark { background: transparent; color: var(--accent-text); font-weight: 600; }
.search-status, .search-empty { margin: 0; padding: 28px 20px; color: var(--text-muted); font-size: 13px; text-align: center; }

@media (min-width: 1600px) {
  .header-inner { padding-right: 18px; padding-left: 18px; }
}

@media (max-width: 1200px) {
  .shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
  .header-community { display: none; }
  .main { padding-right: 32px; padding-left: 32px; }
  .search-trigger { margin-left: 30px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 20px; gap: 10px; }
  .header-actions { gap: 12px; }
  .brand-name { font-size: 21px; }
  .brand-divider { margin-left: 3px; margin-right: 0; }
  .search-trigger { width: auto; margin-left: auto; margin-right: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; }
  .nav-toggle { display: grid; }
  .shell, .page-home .shell, .page-404 .shell { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .shell::before { display: none; }
  .main { padding: 22px 32px 48px; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 55; width: min(310px, 86vw); height: 100dvh; max-height: none; padding: 22px 14px; border-right: 1px solid var(--border); border-radius: 0 20px 20px 0; background: var(--bg-subtle); transform: translateX(-102%); transition: transform .24s cubic-bezier(.16, 1, .3, 1); }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-heading { padding-bottom: 14px; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 55%); }
  body.nav-open { overflow: hidden; }
  .page-toolbar { margin-bottom: 34px; }
  .hero { max-width: 750px; }
  .hero h1 { font-size: clamp(34px, 5vw, 48px); }
  .home, .article { max-width: 750px; }
  .footer-inner { gap: 10px 20px; padding: 22px; }
  .footer-discord { margin-left: 0; }
}

@media (max-width: 560px) {
  .header-inner { gap: 6px; padding: 0 14px; }
  .header-actions { gap: 4px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 19px; }
  .brand-mark, .brand-mark img { width: 21px; height: 21px; }
  .brand-divider, .brand-docs, .header-actions .header-open { display: none; }
  .shell { width: calc(100% - 16px); border-radius: 18px; }
  .main { padding: 19px 20px 40px; }
  .page-toolbar { margin-bottom: 32px; font-size: 11px; }
  .breadcrumbs { gap: 7px; }
  .hero { padding: 0 0 18px; }
  .hero h1 { font-size: clamp(29px, 8.3vw, 43px); letter-spacing: -.035em; line-height: 1.2; }
  .hero-lede { font-size: 14px; margin-bottom: 24px; }
  .hero-search { min-height: 136px; padding: 19px 14px 13px 17px; border-radius: 19px; }
  .hero-search-prompt { font-size: 15px; }
  .hero-search-label { max-width: 180px; font-size: 10.5px; }
  .hero-search-action { gap: 6px; }
  .hero-search-action kbd { display: none; }
  .hero-shortcuts { gap: 6px; }
  .hero-shortcuts a { padding: 6px 8px; font-size: 10.5px; }
  .section-head { margin-top: 30px; gap: 5px; }
  .section-head h2 { font-size: 20px; }
  .section-head p { font-size: 12px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .start-grid { gap: 10px; }
  .start-grid .card { padding: 17px 28px 17px 14px; }
  .card-title { font-size: 14px; }
  .card-desc { font-size: 12px; }
  .article { font-size: 14.5px; }
  .article h1 { font-size: 31px; }
  .article .lede { font-size: 16px; }
  .article h2, .home-prose h2 { font-size: 21px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next:only-child { grid-column: auto; }
  .search-modal { padding: 70px 12px 12px; }
  .search-panel { max-height: calc(100dvh - 90px); border-radius: 18px; }
  .search-field { gap: 10px; padding: 17px 14px; }
  .search-field input { font-size: 14px; }
  .result-tag { display: none; }
  .footer-inner { font-size: 10px; }
  .footer-meta { width: 100%; }
  .callout { padding-right: 16px; }
}

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