/* Local font faces. Unused faces are not fetched by the browser. */
@font-face {
  font-family: "Atkinson Hyperlegible Docs";
  src: url("fonts/atkinson-hyperlegible-latin-ext-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Docs";
  src: url("fonts/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Docs";
  src: url("fonts/atkinson-hyperlegible-latin-ext-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Docs";
  src: url("fonts/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Docs";
  src: url("fonts/atkinson-hyperlegible-latin-ext-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Docs";
  src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Docs";
  src: url("fonts/atkinson-hyperlegible-latin-ext-700-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Docs";
  src: url("fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cooper Hewitt Docs";
  src: url("fonts/cooper-hewitt-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cooper Hewitt Docs";
  src: url("fonts/cooper-hewitt-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Docs";
  src: url("fonts/ibm-plex-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Docs";
  src: url("fonts/ibm-plex-sans-italic-variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono Docs";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope Docs";
  src: url("fonts/manrope-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Lora Docs";
  src: url("fonts/lora-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Lora Docs";
  src: url("fonts/lora-italic-variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3 Docs";
  src: url("fonts/source-sans-3-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville Docs";
  src: url("fonts/libre-baskerville-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Docs";
  src: url("fonts/fraunces-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist Docs";
  src: url("fonts/geist-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Mozilla Headline Docs";
  src: url("fonts/mozilla-headline-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather Docs";
  src: url("fonts/merriweather-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

/* Shared semantic roles, type rhythm, and geometry. Presets choose the font families. */
@font-face {
  font-family: "Inter Variable";
  src: url("fonts/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-body: "Inter Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --variation-body: "opsz" 14;
  --variation-emphasis: "opsz" 18;
  --variation-display: "opsz" 25;
  --optical-sizing: none;
  --fs-display: 28px;
  --lh-display: 34px;
  --fs-title: 16px;
  --lh-title: 22px;
  --fs-subtitle: 14px;
  --lh-subtitle: 20px;
  --fs-body: 13px;
  --lh-body: 20px;
  --fs-caption: 12px;
  --lh-caption: 16px;
  --fs-micro: 11px;
  --lh-micro: 14px;
  --weight-normal: 400;
  --weight-semibold: 550;
  --weight-bold: 700;
  --space-block: 12px;
  --space-heading: 24px;
  --space-subheading: 20px;
  --space-heading-follow: 8px;
  --space-list-item: 4px;
  --space-rule: 24px;
  --control-height: 36px;
  --control-compact: 28px;
  --motion-fast: 80ms;
  --motion-fast-exit: 60ms;
  --motion-moderate: 160ms;
  --motion-moderate-exit: 120ms;
  --motion-slow: 240ms;
  --motion-settle: cubic-bezier(.16, 1, .3, 1);
  --code-inline-background: var(--muted);
  --code-inline-foreground: var(--foreground);
  --sidebar-width: 16.5rem;
  --toc-width: 13.5rem;
  --content-width: 39rem;
  /* Every appearance sets one radius; smaller surfaces keep its proportions. */
  --radius-panel: 1rem;
  --radius-sm: calc(var(--radius-panel) * .25);
  --radius-md: calc(var(--radius-panel) * .5);
  --radius-lg: calc(var(--radius-panel) * .75);
  --radius-round: 50%;

  /* Component aliases follow the selected palette. */
  --surface: var(--card);
  --surface-hover: var(--muted);
  --border-strong: var(--border);
  --accent: var(--link);
  --accent-hover: var(--link-hover);
  --accent-soft: var(--primary-soft);
  --accent-foreground: var(--primary-foreground);

  font-family: var(--font-body);
  font-synthesis: style;
  text-rendering: optimizeLegibility;
}

/* Aceit Warm: Aceit Demo Kit's warm palette with a quieter documentation shell. */
:root[data-theme-variant="aceit-warm"] {
  color-scheme: light dark;
  --background: light-dark(oklch(0.955 0.006 75), oklch(0.205 0.005 75));
  --content-surface: light-dark(oklch(0.985 0.002 85), oklch(0.265 0.005 75));
  --foreground: light-dark(oklch(0.18 0 0), oklch(0.97 0.002 85));
  --card: light-dark(oklch(1 0 0), oklch(0.29 0.005 75));
  --muted: light-dark(oklch(0.94 0.006 75), oklch(0.25 0.005 75));
  --muted-foreground: light-dark(oklch(0.42 0.008 75), oklch(0.76 0.005 75));
  --subtle-foreground: var(--muted-foreground);
  --border: light-dark(oklch(0.62 0.006 75), oklch(0.55 0.005 75));
  --border-subtle: light-dark(oklch(0.89 0.006 75), oklch(0.38 0.005 75));
  --primary: light-dark(oklch(0.7 0.19 55.15), oklch(0.82 0.14 70));
  --primary-foreground: light-dark(oklch(0.15 0.04 55), oklch(0.15 0.04 39));
  --link: light-dark(oklch(0.4 0.12 55), oklch(0.86 0.13 70));
  --link-hover: light-dark(oklch(0.32 0.1 55), oklch(0.94 0.06 85));
  --primary-soft: light-dark(oklch(0.95 0.05 85), oklch(0.37 0.055 55));
  --status: light-dark(oklch(0.45 0.14 150), oklch(0.73 0.13 150));
}

:root[data-theme-variant="aceit-warm"][data-theme="light"] { color-scheme: only light; }
:root[data-theme-variant="aceit-warm"][data-theme="dark"] { color-scheme: only dark; }

/* Self-contained documentation presets. All share the same type and spacing roles. */
:root[data-theme-variant^="docs-"] {
  color-scheme: light dark;
  --font-mono: "IBM Plex Mono Docs", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --variation-body: normal;
  --variation-emphasis: normal;
  --variation-display: normal;
  --optical-sizing: auto;
  --preset-surface-chroma: var(--palette-surface-chroma);
  --preset-dark-chroma: var(--palette-dark-chroma);
  --preset-accent-chroma: var(--palette-accent-chroma);
  --background: light-dark(oklch(var(--palette-background-light) var(--preset-surface-chroma) var(--preset-hue)), oklch(var(--palette-background-dark) var(--preset-dark-chroma) var(--preset-hue)));
  --content-surface: light-dark(oklch(var(--palette-content-light) calc(var(--preset-surface-chroma) * .45) var(--preset-hue)), oklch(var(--palette-content-dark) var(--preset-dark-chroma) var(--preset-hue)));
  --foreground: light-dark(oklch(.18 .002 var(--preset-hue)), oklch(.97 .002 var(--preset-hue)));
  --card: light-dark(oklch(.995 calc(var(--preset-surface-chroma) * .3) var(--preset-hue)), oklch(var(--palette-card-dark) var(--preset-dark-chroma) var(--preset-hue)));
  --muted: light-dark(oklch(var(--palette-muted-light) var(--preset-surface-chroma) var(--preset-hue)), oklch(var(--palette-muted-dark) var(--preset-dark-chroma) var(--preset-hue)));
  --muted-foreground: light-dark(oklch(.40 .004 var(--preset-hue)), oklch(.76 .004 var(--preset-hue)));
  --subtle-foreground: var(--muted-foreground);
  --border: light-dark(oklch(.62 .004 var(--preset-hue)), oklch(.55 .004 var(--preset-hue)));
  --border-subtle: light-dark(oklch(.87 var(--preset-surface-chroma) var(--preset-hue)), oklch(.38 var(--preset-dark-chroma) var(--preset-hue)));
  --primary: light-dark(oklch(var(--palette-primary-light) var(--preset-accent-chroma) var(--preset-hue)), oklch(.80 calc(var(--preset-accent-chroma) * .8) var(--preset-hue)));
  --primary-foreground: oklch(.16 .01 var(--preset-hue));
  --link: light-dark(oklch(.38 calc(var(--preset-accent-chroma) * .9) var(--preset-hue)), oklch(.84 calc(var(--preset-accent-chroma) * .7) var(--preset-hue)));
  --link-hover: light-dark(oklch(.29 calc(var(--preset-accent-chroma) * .75) var(--preset-hue)), oklch(.94 calc(var(--preset-accent-chroma) * .3) var(--preset-hue)));
  --primary-soft: light-dark(oklch(.92 calc(var(--preset-surface-chroma) * 1.4) var(--preset-hue)), oklch(.36 calc(var(--preset-dark-chroma) * 1.4) var(--preset-hue)));
  --table-header-surface: light-dark(oklch(.92 .004 80), oklch(.40 .006 80));
  --status: light-dark(oklch(.45 .14 150), oklch(.73 .13 150));
}

:root[data-theme-variant^="docs-"][data-theme="light"] { color-scheme: only light; }
:root[data-theme-variant^="docs-"][data-theme="dark"] { color-scheme: only dark; }

/* Palette changes accent strength; reading surfaces retain a near-neutral ground. */
:root[data-palette="muted"] {
  --palette-background-light: .955;
  --palette-content-light: .985;
  --palette-muted-light: .94;
  --palette-background-dark: .205;
  --palette-content-dark: .265;
  --palette-card-dark: .29;
  --palette-muted-dark: .25;
  --palette-surface-chroma: .003;
  --palette-dark-chroma: .004;
  --palette-primary-light: .71;
  --palette-accent-chroma: .12;
}

:root[data-palette="bright"] {
  --palette-background-light: .97;
  --palette-content-light: .995;
  --palette-muted-light: .95;
  --palette-background-dark: .21;
  --palette-content-dark: .28;
  --palette-card-dark: .32;
  --palette-muted-dark: .265;
  --palette-surface-chroma: .003;
  --palette-dark-chroma: .004;
  --palette-primary-light: .68;
  --palette-accent-chroma: .16;
}

:root[data-palette="rich"] {
  --palette-background-light: .95;
  --palette-content-light: .985;
  --palette-muted-light: .935;
  --palette-background-dark: .18;
  --palette-content-dark: .245;
  --palette-card-dark: .285;
  --palette-muted-dark: .235;
  --palette-surface-chroma: .005;
  --palette-dark-chroma: .006;
  --palette-primary-light: .64;
  --palette-accent-chroma: .18;
}

/* Each direction keeps the shared type scale while selecting its own font pairing. */
:root[data-theme-variant="docs-workshop"] { --preset-hue: 255; --font-body: "IBM Plex Sans Docs", ui-sans-serif, sans-serif; --font-heading: var(--font-body); --radius-panel: .65rem; }
:root[data-theme-variant="docs-relay"] { --preset-hue: 325; --font-body: "IBM Plex Sans Docs", ui-sans-serif, sans-serif; --font-heading: "Manrope Docs", ui-sans-serif, sans-serif; --radius-panel: 1.25rem; }
:root[data-theme-variant="docs-tempo"] { --preset-hue: 145; --font-body: "Source Sans 3 Docs", ui-sans-serif, sans-serif; --font-heading: "Lora Docs", Georgia, serif; --radius-panel: 1rem; }
:root[data-theme-variant="docs-ledger"] { --preset-hue: 86; --font-body: "IBM Plex Sans Docs", ui-sans-serif, sans-serif; --font-heading: "Merriweather Docs", Georgia, serif; --radius-panel: .45rem; }
:root[data-theme-variant="docs-bookleaf"] { --preset-hue: 45; --font-body: "Source Sans 3 Docs", ui-sans-serif, sans-serif; --font-heading: "Fraunces Docs", Georgia, serif; --radius-panel: 1.35rem; }
:root[data-theme-variant="docs-beacon"] { --preset-hue: 72; --font-body: "Geist Docs", ui-sans-serif, sans-serif; --font-heading: var(--font-body); --radius-panel: .8rem; }
:root[data-theme-variant="docs-foundry"] { --preset-hue: 260; --preset-surface-chroma: calc(var(--palette-surface-chroma) * .35); --preset-dark-chroma: calc(var(--palette-dark-chroma) * .5); --preset-accent-chroma: calc(var(--palette-accent-chroma) * .55); --font-body: "Geist Docs", ui-sans-serif, sans-serif; --font-heading: "Mozilla Headline Docs", ui-sans-serif, sans-serif; --radius-panel: 1rem; }

/* Press adapts the separate paper-and-signal system as a fixed docs palette. */
:root[data-theme-variant="docs-press"] {
  --font-body: "Atkinson Hyperlegible Docs", "Geist Docs", ui-sans-serif, sans-serif;
  --font-heading: "Cooper Hewitt Docs", "Geist Docs", ui-sans-serif, sans-serif;
  --background: light-dark(oklch(.945 .01 82), oklch(.24 .01 78));
  --content-surface: light-dark(oklch(.982 .0054 82), oklch(.30 .012 78));
  --foreground: light-dark(oklch(.15 .012 78), oklch(.95 .005 78));
  --card: light-dark(oklch(.982 .0054 82), oklch(.34 .012 79));
  --muted: light-dark(oklch(.945 .01 82), oklch(.34 .012 79));
  --muted-foreground: light-dark(oklch(.41 .008 78), oklch(.76 .008 78));
  --subtle-foreground: var(--muted-foreground);
  --border: light-dark(oklch(.30 .008 78), oklch(.66 .008 78));
  --border-subtle: light-dark(oklch(.88 .012 82), oklch(.43 .012 79));
  --primary: light-dark(oklch(.69 .19 56), oklch(.77 .16 56));
  --primary-foreground: oklch(.15 .012 78);
  --link: light-dark(oklch(.47 .18 56), oklch(.80 .13 56));
  --link-hover: light-dark(oklch(.38 .16 56), oklch(.91 .06 56));
  --primary-soft: light-dark(oklch(.94 .025 56), oklch(.36 .035 56));
  --status: light-dark(oklch(.45 .14 150), oklch(.73 .13 150));
  --radius-panel: .5rem;

}

/* Linen uses the four supplied neutrals as distinct light-mode surfaces. */
:root[data-theme-variant="docs-linen"] {
  --font-body: "Geist Docs", ui-sans-serif, sans-serif;
  --font-heading: Georgia, serif;
  --background: light-dark(#f2f1ea, #24221f); /* Coconut White */
  --content-surface: light-dark(#fcf6ed, #302d29); /* Cream Veil */
  --card: light-dark(#faf0e6, #38332e); /* Linen */
  --muted: light-dark(#f0eee9, #403a34); /* Cloud Dancer */
  --foreground: light-dark(#211e1b, #f6f0e8);
  --muted-foreground: light-dark(#625b54, #d4c8ba);
  --subtle-foreground: var(--muted-foreground);
  --border: light-dark(#786d63, #aa9987);
  --border-subtle: light-dark(#d7d0c7, #5c5147);
  --primary: light-dark(#674d3b, #dec0a1);
  --primary-foreground: light-dark(#fcf6ed, #24221f);
  --link: light-dark(#654a36, #eacba8);
  --link-hover: light-dark(#483526, #fce6c8);
  --primary-soft: light-dark(#e8d9ca, #4b4036);
  --table-header-surface: var(--muted);
  --status: light-dark(#486d55, #91b89b);
  --radius-panel: 1.15rem;

}

:root { --icon-chevron-right: url("data:image/svg+xml,%3Csvg%20class%3D%22hugeicon%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cpath%20d%3D%22M9.00005%206C9.00005%206%2015%2010.4189%2015%2012C15%2013.5812%209%2018%209%2018%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); --icon-close: url("data:image/svg+xml,%3Csvg%20class%3D%22hugeicon%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cpath%20d%3D%22M18.9991%2019L5%205.00098%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M19%205L5.00092%2018.999%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; min-width: 20rem; background: var(--background); color: var(--foreground); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-normal); font-optical-sizing: var(--optical-sizing); font-variation-settings: var(--variation-body); -webkit-font-smoothing: antialiased; }
/* The primary input decides this: touch and non-hovering pens keep native overscroll. */
html, body { overscroll-behavior: auto; }
@media (hover: hover) and (pointer: fine) {
  html, body { overscroll-behavior: none; }
}

/* Theme native scrollbars while leaving their behavior to the browser. */
html,
:where(pre, .sidebar-navigation, .toc-inner, .search-dialog, .search-results, .prose table, .code-tabs, .scroll-thin, [data-scroll-surface]) {
  --scroll-thumb-default: var(--muted-foreground);

  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb, var(--scroll-thumb-default)) var(--scroll-track, transparent);
}

html {
  scrollbar-color: var(--scroll-thumb, var(--scroll-thumb-default)) var(--scroll-track, var(--background));
}

@media (prefers-contrast: more) {
  html,
  :where(pre, .sidebar-navigation, .toc-inner, .search-dialog, .search-results, .prose table, .code-tabs, .scroll-thin, [data-scroll-surface]) {
    --scroll-thumb-default: var(--foreground);

    scrollbar-width: auto;
  }
}

@media (forced-colors: active) {
  html,
  :where(pre, .sidebar-navigation, .toc-inner, .search-dialog, .search-results, .prose table, .code-tabs, .scroll-thin, [data-scroll-surface]) {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { color: var(--accent-hover); }
::selection { color: var(--primary-foreground); background: var(--primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .5rem .75rem; transform: translateY(-150%); color: var(--primary-foreground); background: var(--primary); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.skip-link:focus { transform: translateY(0); }

.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; color: var(--foreground); text-decoration: none; font-family: var(--font-heading); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); white-space: nowrap; }
.brand:hover { color: var(--foreground); }
.brand-mark { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.brand-divider { margin: 0 .55rem; color: var(--muted-foreground); font-weight: var(--weight-normal); }
.brand-subtitle { color: var(--muted-foreground); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-normal); font-variation-settings: var(--variation-body); }
.search-trigger { display: flex; align-items: center; gap: .65rem; flex: none; width: 13rem; height: var(--control-height); padding: 0 .7rem; color: var(--muted-foreground); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); text-align: left; font-size: var(--fs-body); line-height: var(--lh-body); }
.search-trigger:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.search-trigger svg { width: 1rem; height: 1rem; }
.search-trigger kbd { display: inline-flex; align-items: center; gap: .2rem; margin-left: auto; padding: .1rem .4rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted-foreground); font-family: var(--font-mono); font-size: var(--fs-micro); line-height: var(--lh-micro); }
.search-trigger kbd svg { width: .75rem; height: .75rem; }
.icon-button { display: inline-grid; place-items: center; width: var(--control-height); height: var(--control-height); padding: 0; color: var(--muted-foreground); background: transparent; border: 1px solid transparent; border-radius: var(--radius-md); }
.icon-button:hover { color: var(--foreground); background: var(--surface-hover); }
.appearance-picker { position: relative; flex: 1; min-width: 0; }
.appearance-picker summary { list-style: none; cursor: pointer; }
.appearance-picker summary::-webkit-details-marker { display: none; }
.appearance-picker[open] summary { color: var(--foreground); background: var(--surface-hover); }
.appearance-panel { position: absolute; z-index: 50; bottom: calc(100% + .5rem); left: 0; display: grid; gap: .5rem; width: 14rem; padding: 1rem; color: var(--foreground); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 30px light-dark(rgb(0 0 0 / .12), rgb(0 0 0 / .24)); }
.appearance-panel strong { margin-bottom: .25rem; font-size: var(--fs-subtitle); line-height: var(--lh-subtitle); font-weight: var(--weight-semibold); }
.appearance-panel label { margin-top: .25rem; color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.select-field { position: relative; }
.select-field > svg { position: absolute; top: 50%; right: .55rem; width: 1rem; height: 1rem; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.appearance-panel select { appearance: none; width: 100%; min-height: var(--control-height); padding: .35rem 2rem .35rem .55rem; color: var(--foreground); background: var(--content-surface); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: var(--fs-body); line-height: var(--lh-body); }
.appearance-panel select:disabled { opacity: .55; cursor: not-allowed; }
.select-field select:disabled + svg { opacity: .55; }
.appearance-panel p { margin: .25rem 0 0; color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.moon-icon, .sun-icon { display: none; }
:root[data-theme="light"] .system-icon, :root[data-theme="dark"] .system-icon { display: none; }
:root[data-theme="light"] .sun-icon { display: block; }
:root[data-theme="dark"] .moon-icon { display: block; }
.mobile-menu, .sidebar-close { display: none; }

.docs-shell { display: grid; grid-template-columns: minmax(0, var(--sidebar-width)) minmax(0, 1fr) minmax(0, var(--toc-width)); max-width: 100rem; margin: auto; }
.sidebar { min-width: 0; background: var(--background); }
.sidebar-inner { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 2rem 1rem 1.3rem 1.6rem; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 .65rem 2.7rem; flex: none; }
.sidebar-navigation { flex: 1; min-height: 0; overflow-y: auto; }
.sidebar-navigation nav { position: relative; isolation: isolate; }
.sidebar-heading, .toc-heading { margin: 0 0 var(--space-block) .65rem; color: var(--muted-foreground); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); }
.nav-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.nav-list .nav-list { margin: .15rem 0 .78rem .8rem; padding-left: .65rem; border-left: 1px solid var(--border-subtle); }
.nav-list > li { margin: .1rem 0; }
.nav-link { display: block; padding: 8px .65rem; color: var(--muted-foreground); border-radius: var(--radius-md); text-decoration: none; font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-normal); }
.nav-link:hover, .nav-link:focus-visible { color: var(--foreground); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.has-magnetic-hover .nav-link:hover, .has-magnetic-hover .nav-link:focus-visible { background: transparent; }
.nav-link.is-active, .has-magnetic-hover .nav-link.is-active { color: var(--foreground); background: color-mix(in srgb, var(--accent) 11%, transparent); font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); }
.nav-link.is-active:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.nav-hover-surface { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; pointer-events: none; opacity: 0; background: color-mix(in srgb, var(--accent) 5%, transparent); border-radius: var(--radius-md); transform: translate3d(0, 0, 0); transition: transform var(--motion-fast) var(--motion-settle), opacity var(--motion-fast-exit) ease-out; }
.nav-hover-surface.is-visible { opacity: 1; }
.sidebar-footer { display: grid; gap: .7rem; margin: 0 .65rem; padding-top: 1.5rem; flex: none; color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.sidebar-secondary { display: flex; align-items: center; justify-content: space-between; min-height: var(--control-height); padding: .45rem .55rem; color: var(--muted-foreground); border-top: 1px solid var(--border-subtle); text-decoration: none; font-size: var(--fs-body); line-height: var(--lh-body); }
.sidebar-secondary:hover { color: var(--foreground); }
.sidebar-secondary svg { width: .9rem; height: .9rem; }
.sidebar-controls { display: flex; gap: .4rem; }
.sidebar-control { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; min-height: var(--control-height); padding: .35rem .45rem; color: var(--muted-foreground); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); font-size: var(--fs-caption); line-height: var(--lh-caption); white-space: nowrap; }
.sidebar-control:hover { color: var(--foreground); background: var(--surface-hover); }
.sidebar-control svg { width: 1rem; height: 1rem; }
.sidebar-controls .theme-toggle { flex: 0 0 5.4rem; }
.sidebar-meta { display: flex; align-items: center; gap: .55rem; padding: .25rem .55rem; }
.sidebar-meta svg { width: 1rem; height: 1rem; }
.sidebar-scrim { display: none; }

.main-content { min-width: 0; min-height: calc(100dvh - 2rem); margin: .75rem 0 1.25rem; background: var(--content-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-panel); }
.article-wrap { max-width: calc(var(--content-width) + 5rem); margin: 0 auto; padding: 2rem 2.5rem 5rem; }
.article-toolbar { display: flex; align-items: center; gap: .75rem; min-height: var(--control-height); }
.breadcrumb { display: flex; align-items: center; gap: .45rem; flex: 1; min-width: 0; color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); white-space: nowrap; }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: var(--muted-foreground); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: .72rem; height: .72rem; }
.page-heading { margin: var(--space-heading) 0 var(--space-heading); }
.page-heading h1 { margin: 0; font-family: var(--font-heading); font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--weight-bold); font-variation-settings: var(--variation-display); text-wrap: balance; }
.lead { max-width: var(--content-width); margin: var(--space-heading-follow) 0 0; color: var(--muted-foreground); font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
.prose { max-width: var(--content-width); color: var(--foreground); font-size: var(--fs-body); line-height: var(--lh-body); }
.prose > * { margin-block: 0; }
.prose > * + * { margin-block-start: var(--space-block); }
.prose p { color: var(--muted-foreground); line-height: var(--lh-body); text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { padding-left: 4px; }
.prose li + li, .prose li > :is(ul, ol) { margin-block-start: var(--space-list-item); }
.prose li::marker { color: var(--muted-foreground); }
.prose strong { color: var(--foreground); font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); }
.prose :is(h2, h3, h4, h5, h6) { position: relative; color: var(--foreground); font-family: var(--font-heading); font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); scroll-margin-top: 2rem; text-wrap: balance; }
.prose h2 { margin-block-start: var(--space-heading); font-size: var(--fs-title); line-height: var(--lh-title); }
.prose :is(h3, h4, h5, h6) { margin-block-start: var(--space-subheading); font-size: var(--fs-subtitle); line-height: var(--lh-subtitle); }
.prose :is(h2, h3, h4, h5, h6) + * { margin-block-start: var(--space-heading-follow); }
.header-anchor { display: inline-flex; vertical-align: middle; margin-left: .4rem; color: var(--muted-foreground); text-decoration: none; opacity: 0; }
.header-anchor svg { width: 1rem; height: 1rem; }
.prose :is(h1, h2, h3, h4, h5, h6):hover .header-anchor, .header-anchor:focus-visible { opacity: 1; }
.prose a:not(.header-anchor) { text-decoration-color: color-mix(in srgb, var(--accent), transparent 55%); }
.prose a:hover { text-decoration-color: currentColor; }
.starter-heading h1 {
  color: var(--foreground);
  font-size: clamp(var(--fs-display), 6vw, calc(var(--fs-display) * 2));
  line-height: 1.05;
  letter-spacing: -.035em;
}
.starter-heading .lead {
  max-width: 44ch;
  font-size: var(--fs-subtitle);
  line-height: var(--lh-subtitle);
}
.starter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-heading-follow);
}
.starter-action {
  display: inline-flex;
  align-items: center;
  min-height: max(2.75rem, var(--control-height));
  padding-inline: var(--space-block);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--foreground);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.starter-action:hover { background: var(--surface-hover); }
.starter-action-primary {
  border-color: transparent;
  background: var(--foreground);
  color: var(--content-surface);
}
.starter-action-primary:hover { background: var(--accent); color: var(--content-surface); }
.prose blockquote { margin-inline: 0; padding: var(--space-list-item) 0 var(--space-list-item) var(--space-block); color: var(--muted-foreground); border-inline-start: 2px solid var(--border-subtle); }
.prose blockquote > * { margin: 0; }
.prose blockquote > * + * { margin-block-start: var(--space-block); }
.prose figure { margin-inline: 0; }
.prose figure blockquote { margin: 0; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-md); }
.prose figcaption { margin-top: var(--space-heading-follow); color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.prose kbd { padding: .1rem .3rem; color: var(--foreground); background: var(--surface); border: 1px solid var(--border-subtle); border-bottom-width: 2px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.prose :is(p, li, h2, h3, h4, h5, h6, td) { overflow-wrap: anywhere; }
.prose blockquote strong { color: var(--foreground); }
.prose .callout { padding: var(--space-block); background: var(--surface); border: 1px solid var(--border-subtle); border-inline-start: 2px solid var(--accent); border-radius: var(--radius-md); }
.prose .callout > * { margin-block: 0; }
.prose .callout > * + * { margin-block-start: var(--space-block); }
.prose .callout > strong { display: block; }
.prose .callout > strong + * { margin-block-start: var(--space-list-item); }
.prose .disclosure { padding: .85rem 1rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.prose .disclosure summary { display: flex; align-items: baseline; gap: .5rem; list-style: none; cursor: pointer; font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); }
.prose .disclosure summary::-webkit-details-marker { display: none; }
.prose .disclosure summary::before { content: ""; flex: none; width: 1rem; height: 1rem; align-self: center; background: currentColor; mask: var(--icon-chevron-right) center / contain no-repeat; }
.prose .disclosure[open] > summary::before { transform: rotate(90deg); }
.prose .disclosure p { margin: var(--space-heading-follow) 0 0; color: var(--muted-foreground); }
.prose :not(pre) > code { padding: .16rem .35rem; color: var(--code-inline-foreground); background: var(--code-inline-background); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.prose pre { padding: 1.2rem 1.35rem; overflow-x: auto; color: var(--code-foreground); background: var(--code-background); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: var(--fs-caption); line-height: var(--lh-caption); tab-size: 2; }
.prose pre code { font-family: var(--font-mono); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); line-height: var(--lh-body); }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }
.prose th { color: var(--foreground); background: color-mix(in srgb, var(--table-header-surface, var(--surface)) 50%, transparent); font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); }
.prose td { color: var(--muted-foreground); }
.prose hr { height: 1px; margin-block-start: var(--space-rule); background: var(--border); border: 0; }
.prose hr + * { margin-block-start: var(--space-rule); }

.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-block); margin-top: calc(var(--space-heading) * 2); padding-top: var(--space-block); border-top: 1px solid var(--border-subtle); }
.page-nav a { display: flex; flex-direction: column; min-width: 0; padding: var(--space-block); color: var(--foreground); border: 1px solid transparent; border-radius: var(--radius-md); text-decoration: none; }
.page-nav a:hover { background: var(--surface); border-color: var(--border-subtle); }
.page-nav small { color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.page-nav span { display: flex; align-items: center; gap: .4rem; margin-top: .2rem; font-family: var(--font-heading); font-size: var(--fs-subtitle); line-height: var(--lh-subtitle); font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); }
.page-nav svg { width: .95rem; height: .95rem; }
.page-nav .next { align-items: flex-end; text-align: right; }

.toc-inner { position: sticky; top: 0; max-height: 100dvh; padding: 2.9rem 1rem 1rem 1rem; overflow-y: auto; }
.toc-heading { display: inline-flex; align-items: center; gap: .375rem; margin-left: 0; }
.toc-heading svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#toc-list { position: relative; }
#toc-list::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1px; width: 1px; background: var(--border-subtle); }
#toc-list.is-ready::before { display: none; }
#toc-list ol { margin: 0; padding: 0; list-style: none; }
#toc-list a { display: block; padding: .35rem 0 .35rem 1.55rem; color: var(--muted-foreground); text-decoration: none; font-size: var(--fs-caption); line-height: var(--lh-caption); }
#toc-list a:hover, #toc-list a.is-visible, #toc-list a[aria-current="location"] { color: var(--accent); }
#toc-list a[aria-current="location"] { font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); }
#toc-list a.toc-sub { padding-left: 2.35rem; }
#toc-list .toc-rail { position: absolute; top: 0; left: 0; width: 1.25rem; pointer-events: none; }
#toc-list .toc-rail svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#toc-list .toc-rail-track, #toc-list .toc-rail-active { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#toc-list .toc-rail-track { stroke: var(--border-subtle); stroke-width: 1.25; }
#toc-list .toc-rail-active { stroke: var(--accent); stroke-width: 2; }
#toc-list .toc-rail-dot { position: absolute; top: 0; left: 0; width: 4px; height: 4px; border-radius: var(--radius-round); background: var(--accent); }
#toc-list .toc-empty { margin: 0; color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }

.search-dialog { width: min(36rem, calc(100% - 2rem)); max-height: min(70vh, 34rem); padding: 0; color: var(--foreground); background: var(--background); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 16px 50px light-dark(rgb(0 0 0 / .18), rgb(0 0 0 / .3)); }
.search-dialog::backdrop { background: rgb(0 0 0 / .48); }
.search-input-wrap { display: flex; align-items: center; gap: .7rem; height: 3.5rem; padding: 0 1rem; border-bottom: 1px solid var(--border); }
.search-input-wrap svg { color: var(--subtle-foreground); }
.search-input-wrap input { flex: 1; min-width: 0; height: 100%; color: var(--foreground); background: transparent; border: 0; outline: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.search-input-wrap input::placeholder { color: var(--subtle-foreground); }
.search-input-wrap:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.search-input-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; width: 1rem; height: 1rem; margin-left: .5rem; cursor: pointer; color: var(--muted-foreground); background: currentColor; mask: var(--icon-close) center / contain no-repeat; }
.search-input-wrap button { padding: .12rem .42rem; color: var(--muted-foreground); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--fs-micro); line-height: var(--lh-micro); }
.search-results { min-height: 8rem; max-height: 22rem; padding: .65rem; overflow-y: auto; }
.search-results p { margin: 1.5rem .8rem; color: var(--muted-foreground); font-size: var(--fs-body); line-height: var(--lh-body); text-align: center; }
.search-result { display: block; padding: .7rem .8rem; color: var(--foreground); border-radius: var(--radius-md); text-decoration: none; overflow-wrap: anywhere; }
.search-result:hover, .search-result:focus-visible { color: var(--foreground); background: var(--accent-soft); }
.search-result strong { display: block; font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-semibold); font-variation-settings: var(--variation-emphasis); }
.search-result span:not(:empty) { display: block; margin-top: var(--space-list-item); color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }

@media (max-width: 73rem) {
  .docs-shell { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
  .main-content { margin-right: .75rem; }
  .toc { display: none; }
}
@media (max-width: 50rem) {
  .mobile-menu { display: inline-grid; }
  .sidebar-close { display: inline-grid; }
  .article-toolbar { gap: .4rem; }
  .search-trigger { justify-content: center; width: var(--control-height); padding: 0; background: transparent; border-color: transparent; box-shadow: none; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .docs-shell { display: block; }
  .main-content { margin: .75rem .75rem 1rem; }
  .sidebar { position: fixed; z-index: 41; inset: 0 auto 0 0; width: min(19rem, 85vw); background: var(--background); transform: translateX(-105%); transition: transform var(--motion-moderate-exit) ease-out; box-shadow: 8px 0 22px rgb(0 0 0 / .08); }
  .sidebar-inner { height: 100dvh; }
  .sidebar-scrim { position: fixed; z-index: 40; inset: 0; width: 100%; padding: 0; background: rgb(0 0 0 / .42); border: 0; }
  .menu-open .sidebar { transform: translateX(0); transition-duration: var(--motion-moderate); transition-timing-function: var(--motion-settle); }
  .menu-open .sidebar-scrim { display: block; }
  .menu-open { overflow: hidden; }
  .article-wrap { padding: 1.4rem 1.4rem 4rem; }
}
@media (max-width: 31rem) {
  .page-heading { margin: var(--space-heading) 0; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .page-nav { gap: .55rem; }
  .page-nav a { padding: .65rem; }
}
@media (pointer: coarse) {
  .search-input-wrap input, .appearance-panel select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar, .menu-open .sidebar { transition: none; }
  .nav-hover-surface { transition: opacity var(--motion-fast) ease-out; }
}

/* Code colors follow color-scheme; appearance presets own the surrounding geometry. */
:root {
  --code-background: light-dark(color-mix(in srgb, var(--content-surface) 35%, white), color-mix(in srgb, var(--content-surface) 35%, #0d1117));
  --code-foreground: light-dark(#24292e, #e6edf3);
  --code-header-background: color-mix(in srgb, var(--code-background) 80%, var(--background));
  --code-highlight-background: light-dark(#fff8c5, #34301c);
  --code-insert-background: light-dark(#dafbe1, #163427);
  --code-delete-background: light-dark(#ffebe9, #412326);
}
.code-block { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--code-background); }
.code-block [hidden] { display: none !important; }
.code-header { display: flex; align-items: center; gap: .5rem; min-height: calc(var(--control-height) + 8px); padding: 0 .75rem; background: var(--code-header-background); border-bottom: 1px solid var(--border-subtle); }
.code-title, .code-language { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.code-title { font-family: var(--font-mono); }
.code-copy { display: inline-grid; place-items: center; flex: none; margin-left: auto; width: var(--control-compact); height: var(--control-compact); padding: 0; color: var(--muted-foreground); border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; }
.code-copy svg { grid-area: 1 / 1; opacity: 1; transform: scale(1); filter: blur(0); transition: opacity var(--motion-fast) ease-out, transform var(--motion-fast) ease-out, filter var(--motion-fast) ease-out; }
.code-copy .code-copied-icon, .code-copy.is-copied .code-copy-icon { opacity: 0; transform: scale(.6); filter: blur(4px); transition-duration: var(--motion-fast-exit); }
.code-copy.is-copied .code-copied-icon { opacity: 1; transform: scale(1); filter: blur(0); transition-duration: var(--motion-fast); }
.code-copy.is-copied { color: var(--foreground); }
.code-copy:disabled { cursor: wait; opacity: .65; }
.code-copy:focus-visible { outline-offset: -2px; }
.code-tabs { align-self: center; display: flex; gap: .25rem; min-width: 0; overflow-x: auto; }
.code-tabs button { position: relative; flex: none; padding: 0 .65rem; border: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: transparent; color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.code-tabs button[aria-selected="true"] { color: var(--foreground); font-weight: var(--weight-semibold); }
.code-tabs button { display: grid; place-items: center; min-height: var(--control-height); }
.code-tabs button > span { grid-area: 1 / 1; }
.code-tabs .code-tab-reserve { visibility: hidden; font-weight: var(--weight-semibold); }
.code-tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; inset-inline: .65rem; height: 2px; background: var(--accent); border-radius: var(--radius-sm); }
.code-tabs button:focus-visible { outline-offset: -3px; }
.code-panel { min-width: 0; }
.code-panel-label { display: block; padding: .5rem 1rem; color: var(--muted-foreground); font-size: var(--fs-caption); border-bottom: 1px solid var(--border-subtle); }
.code-block:not(.code-block-group) .code-panel-label, .code-block.is-enhanced .code-panel-label { display: none; }
.code-block-group:not(.is-enhanced) > .code-header { display: none; }
.code-block-group:not(.is-enhanced) > .code-panel + .code-panel { border-top: 1px solid var(--border-subtle); }
.prose .code-block pre { margin: 0; padding: 1rem 0; border: 0; border-radius: inherit; background: var(--code-background); color: var(--code-foreground); font-family: var(--font-mono); font-size: var(--fs-body); line-height: var(--lh-body); font-variation-settings: normal; overflow-x: auto; }
.prose .code-block pre:focus-visible { outline-offset: -3px; }
.prose .code-block pre code { display: block; min-width: max-content; font: inherit; font-variant-ligatures: none; }
.code-block .shiki span { color: light-dark(var(--shiki-light, var(--code-foreground)), var(--shiki-dark, var(--code-foreground))); }
.code-block .line { position: relative; display: inline-block; width: 100%; padding-inline: 1rem; }
.code-block .line.highlighted { background: var(--code-highlight-background); }
.code-block .line.diff.add { background: var(--code-insert-background); }
.code-block .line.diff.remove { background: var(--code-delete-background); }
.code-block .has-diff .line { padding-inline-start: 2rem; }
.code-block .line.diff::after { position: absolute; left: .65rem; color: var(--code-foreground); }
.code-block .line.diff.add::after { content: "+"; }
.code-block .line.diff.remove::after { content: "−"; }
.code-block [data-code-line-numbers] .line { padding-inline-start: 3.5rem; }
.code-block [data-code-line-numbers] .line::before { content: attr(data-line); position: absolute; left: .5rem; width: 2rem; text-align: right; color: var(--muted-foreground); font-variant-numeric: tabular-nums; user-select: none; }
.code-block [data-code-line-numbers] .line.diff::after { left: 2.8rem; }
.prose .code-block [data-code-wrap] pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose .code-block [data-code-wrap] code { min-width: 0; }
.code-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.code-block.has-copy-error .code-header { flex-wrap: wrap; }
.code-block.has-copy-error .code-status { position: static; flex-basis: 100%; width: auto; height: auto; padding-bottom: .5rem; clip-path: none; white-space: normal; color: var(--foreground); font-size: var(--fs-caption); }
@media (hover: hover) {
  .code-copy:hover { color: var(--foreground); border-color: var(--border-subtle); background: var(--surface); }
  .code-tabs button:hover { color: var(--foreground); }
}
@media (pointer: coarse) {
  .code-copy, .code-tabs button { min-height: 2.75rem; }
  .code-copy { min-width: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .code-copy svg, .code-copy.is-copied svg { transform: none; filter: none; transition-property: opacity; }
}
@media print {
  .code-block .code-panel[hidden] { display: block !important; }
  .code-block .code-panel-label { display: block; }
  .code-tabs, .code-copy { display: none !important; }
}

/* A semantic list: dates stay beside releases on wide screens and above on mobile. */
.prose .release-timeline { list-style: none; padding: 0; }
.prose .release-entry { position: relative; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 2rem; padding: 0 0 2rem; margin: 0; }
.release-entry::before { content: ""; position: absolute; inset-block: .4rem 0; inset-inline-start: 8rem; width: 1px; background: var(--border-subtle); }
.release-entry::after { content: ""; position: absolute; top: .4rem; left: calc(8rem - 3px); width: 7px; height: 7px; border: 1px solid var(--accent); border-radius: var(--radius-round); background: var(--content-surface); }
.release-entry:first-child::after { background: var(--accent); }
.release-entry:last-child { padding-bottom: 0; }
.release-entry:last-child::before { display: none; }
.release-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; color: var(--muted-foreground); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.release-version { display: inline-block; padding: .15rem .4rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--foreground); background: var(--surface); font-family: var(--font-mono); }
.release-content { min-width: 0; }
.prose .release-content > * { margin-block: 0; }
.prose .release-content > * + * { margin-block-start: var(--space-block); }
.prose .release-content h2 { margin-top: 0; }
.prose .release-content h3 { margin-block-start: var(--space-subheading); }
.prose .release-content :is(h2, h3) + * { margin-block-start: var(--space-heading-follow); }
@media (max-width: 50rem) {
  .prose .release-entry { grid-template-columns: minmax(0, 1fr); gap: var(--space-block); padding-inline-start: 1.5rem; }
  .release-entry::before { inset-inline-start: 3px; }
  .release-entry::after { left: 0; }
  .release-meta { flex-direction: row; align-items: center; gap: .75rem; flex-wrap: wrap; }
}
