/* bongo-project.org
   Tokens mirror the Bongo web UI (internal/web/static/css/bongo.css and
   componentlib/colors_and_type.css): warm-neutral surfaces, amber accent,
   Geist and Geist Mono. Components reference tokens only. */

/* ---------- Fonts (local, SIL OFL 1.1, see /assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --bg: #FCFCFD;
  --surface: #FFFFFF;
  --surface-2: #F4F5F7;
  --surface-3: #E9ECEF;
  --border: #E2E5E9;
  --border-strong: #CED4DA;
  --text: #212529;
  --text-2: #495057;
  --muted: #5C636A;
  --ink: #1A1D21;            /* product charcoal (sidebar) */
  --on-ink: #F2F3F5;
  --on-ink-2: #B4BAC0;

  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-text: #B45309;     /* 4.9:1 on --bg */
  --accent-subtle: #FEF3C7;
  --on-accent: #1A1D21;
  --focus: #B45309;

  --logo-word: #1A1D21;
  --logo-project: #D97706;
  --logo-petal: #F59E0B;
  --logo-petal-2: #D97706;

  --code-bg: #F4F5F7;
  --tok-comment: #5C636A;
  --tok-keyword: #9A3412;
  --tok-string: #166534;
  --tok-number: #1D4ED8;
  --tok-name: #7C2D12;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 18, 20, .04), 0 8px 24px rgba(16, 18, 20, .06);
  --measure: 72ch;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0B0D;
    --surface: #111316;
    --surface-2: #1A1D21;
    --surface-3: #232629;
    --border: #2A2E33;
    --border-strong: #3A3F44;
    --text: #F2F3F5;
    --text-2: #C9CCD1;
    --muted: #9AA0A6;
    --ink: #1A1D21;
    --on-ink: #F2F3F5;
    --on-ink-2: #B4BAC0;

    --accent: #FBBF24;
    --accent-hover: #F59E0B;
    --accent-text: #FBBF24;
    --accent-subtle: rgba(251, 191, 36, .14);
    --on-accent: #1A1D21;
    --focus: #FBBF24;

    --logo-word: #F2F3F5;
    --logo-project: #FBBF24;
    --logo-petal: #FBBF24;
    --logo-petal-2: #F59E0B;

    --code-bg: #15181B;
    --tok-comment: #9AA0A6;
    --tok-keyword: #FDBA74;
    --tok-string: #86EFAC;
    --tok-number: #93C5FD;
    --tok-name: #FCD34D;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: var(--step-4); letter-spacing: -0.03em; font-weight: 650; }
h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .9em; }
.mono { font-size: inherit; }
::selection { background: var(--accent-subtle); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--on-ink); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { display: inline-flex; padding: .25rem 0; }
.brand .logo { width: 168px; height: auto; }
.logo .logo-word { fill: var(--logo-word); }
.logo .logo-project { fill: var(--logo-project); }
.logo .logo-petal { fill: var(--logo-petal); }
.logo .logo-petal-2 { fill: var(--logo-petal-2); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a {
  display: inline-block; padding: .4rem .7rem; border-radius: var(--radius-sm);
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav__ext::after { content: " \2197"; font-size: .8em; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: clamp(3rem, 8vw, 6rem); background: var(--surface-2); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; padding-block: 2.5rem; font-size: var(--step--1); color: var(--text-2); }
.site-footer__title { font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__links a, .site-footer__copy a { color: var(--text-2); }
.site-footer__links a:hover, .site-footer__copy a:hover { color: var(--text); }
.site-footer__copy { grid-column: 1 / -1; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--muted); }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1.1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-weight: 550; text-decoration: none; line-height: 1.2;
}
.btn:hover { border-color: var(--text-2); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--quiet { border-color: transparent; background: transparent; color: var(--text-2); text-decoration: underline; text-underline-offset: .2em; }
.btn--quiet:hover { color: var(--text); border-color: transparent; }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__inner > * { max-width: 52rem; }
.eyebrow { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); letter-spacing: .02em; margin-bottom: 1.5rem; }
.eyebrow .mono { color: var(--accent-text); font-weight: 500; }
.hero h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.lead { font-size: var(--step-1); color: var(--text-2); max-width: 62ch; line-height: 1.65; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--border); }
.section__head { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: .5rem 3rem; align-items: baseline; margin-bottom: 2.5rem; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--text-2); max-width: 60ch; }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Home: architecture figure ---------- */
.arch { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 0 2.5rem; align-items: end; }
.arch figcaption { grid-column: 1 / -1; margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }

.pins { list-style: none; margin: 0; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.pins li { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 1.6rem; font-family: var(--font-mono); }
.pins li::after {
  /* the pin: a lead running down into the chip */
  content: ""; position: absolute; left: .55rem; bottom: 0; width: 2px; height: 1.25rem;
  background: var(--accent);
}
.pins li::before {
  content: ""; position: absolute; left: .3rem; bottom: 1.25rem; width: .55rem; height: .55rem; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg);
}
.pin__name { font-weight: 500; font-size: .95rem; color: var(--text); padding-left: 1.25rem; }
.pin__port { font-size: .8rem; color: var(--muted); padding-left: 1.25rem; word-spacing: .2em; }

.chip {
  border: 1.5px solid var(--text); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.chip__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.25rem; background: var(--ink); color: var(--on-ink); font-family: var(--font-mono);
}
.chip__name { font-weight: 500; }
.chip__name::before { content: "$ "; color: var(--accent); }
.chip__meta { color: var(--on-ink-2); font-size: .8rem; }
.chip__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px dashed var(--border-strong); }
.chip__label, .tier__name { font-family: var(--font-mono); font-weight: 500; font-size: .9rem; }
.chip__text, .tier__text { color: var(--text-2); font-size: .95rem; }
.chip__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier { padding: 1rem 1.25rem 1.2rem; display: grid; gap: .3rem; align-content: start; }
.tier + .tier { border-left: 1px dashed var(--border-strong); }
.tier__name::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem; border-radius: 2px; background: var(--accent); vertical-align: .05em; }

.arch__peers { position: relative; display: grid; gap: .75rem; padding-left: 1.25rem; border-left: 2px dashed var(--border-strong); align-self: stretch; align-content: end; padding-top: 5.75rem; }
.peers__link { display: grid; gap: .1rem; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.peer {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); padding: .65rem .8rem;
  font-size: .85rem; color: var(--text-2); background: var(--bg);
}
.peer .mono { color: var(--text); font-weight: 500; margin-right: .35rem; }

@media (max-width: 980px) {
  .arch { grid-template-columns: 1fr; }
  .arch__peers { border-left: 0; border-top: 2px dashed var(--border-strong); padding: 1rem 0 0; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); align-items: center; }
  .peers__link { grid-column: 1 / -1; display: flex; gap: 1rem; }
}
@media (max-width: 760px) {
  .pins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: 0; margin-bottom: .75rem; }
  .pins li { padding: .45rem .6rem; border: 1px solid var(--border-strong); border-top: 2px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); }
  .pins li::before, .pins li::after { display: none; }
  .pin__name, .pin__port { padding-left: 0; }
  .chip__tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; border-top: 1px dashed var(--border-strong); }
  .chip__row { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Home: features ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 2.5rem; }
@media (max-width: 1100px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature h3 { font-size: var(--step-1); padding-bottom: .6rem; margin-bottom: .9rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.feature li { position: relative; padding-left: 1.1rem; color: var(--text-2); font-size: .97rem; line-height: 1.5; }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: 1.5px; background: var(--muted); }
.feature code { font-size: .88em; color: var(--text); }

/* ---------- Home: screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.shot { margin: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot:not(.shot--wide) img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); background: var(--surface-2);
}
.shot figcaption { margin-top: .65rem; font-size: var(--step--1); color: var(--muted); font-family: var(--font-mono); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* ---------- Home: get started ---------- */
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem 3.5rem; align-items: start; }
.start__text p { color: var(--text-2); max-width: 58ch; }
.start code { color: var(--text); }
@media (max-width: 900px) { .start { grid-template-columns: 1fr; } }
.link-list { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list a { display: flex; justify-content: space-between; padding: .7rem 0; color: var(--text); text-decoration: none; font-weight: 500; }
.link-list a::after { content: "\2192"; color: var(--accent-text); }
.link-list a:hover { color: var(--accent-text); }

.terminal { border-radius: var(--radius); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #2D3135; }
.terminal__bar { padding: .55rem 1rem; font-family: var(--font-mono); font-size: .75rem; color: var(--on-ink-2); border-bottom: 1px solid #2D3135; display: flex; align-items: center; gap: .5rem; }
.terminal__bar::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #FBBF24; }
.terminal pre { margin: 0; padding: 1.1rem 1.25rem 1.3rem; overflow-x: auto; font-size: .88rem; line-height: 1.7; background: transparent; border: 0; color: var(--on-ink); }
.terminal code { font-size: inherit; color: inherit; background: none; padding: 0; }
.terminal .c { color: #9AA0A6; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2rem 3rem; }
.two-col h2 { font-size: var(--step-2); }
.two-col p { color: var(--text-2); }
.two-col code { color: var(--text); }

/* ---------- Page head (Releases, History) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; max-width: 60rem; }
.page-head h1 { font-size: var(--step-4); }
.note { border-left: 3px solid var(--accent); padding: .75rem 1rem; background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); max-width: 62ch; }

/* ---------- Prose (docs, history, release notes) ---------- */
.prose { max-width: var(--measure); min-width: 0; }
.prose h1 { font-size: var(--step-4); margin: 0 0 1rem; }
.prose h2 { font-size: var(--step-3); margin: 2.5rem 0 .75rem; padding-top: .5rem; }
.prose h3 { font-size: var(--step-2); margin: 2rem 0 .6rem; }
.prose h4 { font-size: var(--step-1); margin: 1.6rem 0 .5rem; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose li { margin: .3rem 0; }
.prose li > p { margin: 0 0 .4em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--accent); color: var(--text-2); }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; }
.prose :not(pre) > code {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: 4px; padding: .08em .35em; font-size: .86em; color: var(--text);
  overflow-wrap: anywhere;
}
.prose pre, .prose div.highlight {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.prose pre { margin: 0 0 1.25rem; padding: .9rem 1.1rem; overflow-x: auto; font-size: .86rem; line-height: 1.6; }
.prose div.highlight { margin: 0 0 1.25rem; }
.prose div.highlight pre { margin: 0; border: 0; background: none; }
.prose pre code { font-size: inherit; background: none; border: 0; padding: 0; }
.prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .45rem .75rem; text-align: left; vertical-align: top; }
.prose thead th, .prose th { background: var(--surface-2); font-weight: 600; }
.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.prose dl dt { font-weight: 600; margin-top: 1rem; }
.prose dl dd { margin: .25rem 0 0; color: var(--text-2); }

.heading-anchor { margin-left: .4rem; color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity .15s; }
h2:hover .heading-anchor, h3:hover .heading-anchor, h4:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
@media (hover: none) { .heading-anchor { opacity: .5; } }

/* Rouge tokens */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cp { color: var(--tok-comment); font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt, .highlight .nb, .highlight .o { color: var(--tok-keyword); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sh, .highlight .se, .highlight .si { color: var(--tok-string); }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .il { color: var(--tok-number); }
.highlight .na, .highlight .nv, .highlight .nt, .highlight .nf, .highlight .nx { color: var(--tok-name); }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; padding-top: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.docs-nav { position: sticky; top: 1.5rem; font-size: .93rem; }
.docs-nav__title { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.docs-nav__title a { color: var(--muted); text-decoration: none; }
.docs-nav__title a[aria-current="page"] { color: var(--text); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.docs-nav li a { display: block; padding: .35rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; }
.docs-nav li a:hover { color: var(--text); border-left-color: var(--border-strong); }
.docs-nav li a[aria-current="page"] { color: var(--text); font-weight: 600; border-left-color: var(--accent); }
.docs-nav__meta { margin-top: 1.25rem; font-size: .8rem; color: var(--muted); }
.docs-nav__meta a { color: var(--muted); }
.docs-source { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: var(--step--1); }
.doc-index dt a { font-size: var(--step-1); }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 1.5rem; }
  .docs-nav { position: static; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; border: 0; }
  .docs-nav li a { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .3rem .6rem; margin: 0; font-size: .85rem; }
  .docs-nav li a[aria-current="page"] { border-color: var(--accent); background: var(--accent-subtle); }
  .docs-nav__meta { display: none; }
}

/* ---------- Releases ---------- */
.release-index ul { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.release-index a { display: inline-block; padding: .25rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-size: .85rem; }
.release-index a:hover { border-color: var(--accent); color: var(--text); }
.release { border-top: 1px solid var(--border); padding-block: 2.25rem; display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: .5rem 3rem; scroll-margin-top: 1rem; }
.release__head h2 { font-family: var(--font-mono); font-size: var(--step-2); font-weight: 500; letter-spacing: 0; margin-bottom: .25rem; }
.release__head h2 a { color: var(--text); text-decoration: none; }
.release__head h2 a:hover { color: var(--accent-text); text-decoration: underline; }
.release__title { display: block; font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--text-2); margin-top: .3rem; letter-spacing: 0; }
.release__date { font-size: var(--step--1); color: var(--muted); margin: 0; }
.badge { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; background: var(--accent-subtle); color: var(--accent-text); font-size: .75rem; font-weight: 600; }
.release > .prose, .release > .release__empty, .release > .patches { grid-column: 2; }
.release__notes h3 { font-size: var(--step-1); margin: 1.4rem 0 .4rem; }
.release__notes h3:first-child { margin-top: 0; }
.release__notes ul { padding-left: 1.2rem; }
.release__empty { color: var(--muted); font-size: .95rem; margin: 0; }
.patches { margin-top: 1.25rem; }
.patches__label { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.patch { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .5rem; }
.patch summary { cursor: pointer; padding: .6rem .9rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; list-style-position: outside; }
.patch summary::marker { color: var(--muted); }
.patch summary .mono { font-weight: 500; }
.patch summary time { font-size: var(--step--1); color: var(--muted); }
.patch__title { color: var(--text-2); font-size: .95rem; }
.patch__body { padding: .25rem 1rem 1rem; border-top: 1px solid var(--border); }
.patch__body .prose { margin-top: .75rem; }
.patch__body h4 { font-size: 1rem; margin: 1rem 0 .3rem; }
.patch__body > p { margin: .5rem 0 0; font-size: var(--step--1); }
@media (max-width: 760px) {
  .release { grid-template-columns: 1fr; }
  .release > .prose, .release > .release__empty, .release > .patches { grid-column: 1; }
}

/* ---------- History ---------- */
.history-index .page-head { padding-bottom: .5rem; }
.history-logo { margin: 0 0 2.5rem; display: inline-block; }
.history-logo img { background: #FFFFFF; padding: 1rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--border); box-sizing: content-box; }
.history-logo figcaption { margin-top: .5rem; font-size: var(--step--1); color: var(--muted); }
.history-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2rem 2.5rem; }
.history-group h2 { font-size: var(--step-1); padding-bottom: .5rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.history-group ul { list-style: none; margin: 0; padding: 0; }
.history-group li a { display: block; padding: .3rem 0; color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border); }
.history-group li a:hover { color: var(--accent-text); }

.history { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.history-banner {
  max-width: var(--measure); margin-bottom: 2rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--accent-subtle); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text);
}
.history-banner p { margin: 0; }
.history-banner__links { margin-top: .4rem !important; font-size: var(--step--1); }
.history-note { color: var(--muted); font-size: var(--step--1); }
.history-body h1 { font-size: var(--step-3); }
/* Legacy class names used by the archived pages */
.history-body .warning-alpha { border-left: 3px solid var(--accent); background: var(--surface-2); padding: .75rem 1rem; margin: 0 0 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.history-body .faq-table td, .history-body .faq-table th { vertical-align: top; }
.history-body .planned { color: var(--muted); }
.history-body .yes { color: var(--tok-string); font-weight: 600; }
.history-body .no { color: var(--tok-keyword); font-weight: 600; }

/* ---------- Docs index page ---------- */
.docs-body .lead { font-size: var(--step-1); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  .site-header, .site-footer, .docs-nav, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
