/* Beuk Help (H1) — the redesigned help pages, in the Voyage theme: the
   palette of the landing page (Beuk Landing Page.html :root), so help,
   support and the landing page read as one place. Paper values marked
   (V) are the landing page's own; the rest are derived from them and
   checked for contrast (body text >= 4.5:1). The landing page has no
   dark mode, so Candlelight is a derived night version of the same
   blues and ambers. Type: Literata (reading, as on the landing page),
   Karla (interface), IBM Plex Mono (codes). */
:root {
  color-scheme: light;
  --bg: #eef0e2;        /* (V) --bg2 */
  --panel: #f8f4e9;     /* (V) --bg */
  --panel-2: #fffdf4;   /* (V) --card */
  --panel-3: #eef0e2;   /* (V) --bg2 */
  --ink: #22333a;       /* (V) 11.9:1 */
  --ink-2: #34474d;     /* 8.9:1 */
  --muted: #5d6d66;     /* (V) 5.0:1 */
  --line: #d5dcc9;      /* (V) */
  --line-2: #c3ccb5;
  --accent: #14607a;    /* (V) 6.4:1 */
  --accent-soft: #dcebee;
  --accent-ink: #f4fbfa; /* (V) --cta-ink, 6.7:1 on the accent */
  --gold: #8a6620;      /* the landing page's amber #a87e2c darkened: 3.4:1 -> 4.8:1 for small text */
  --good: #3d7a4a;
  --bad: #b3352b;
  --shadow: 0 10px 30px rgba(13, 53, 66, 0.14);
  --hl: rgba(20, 96, 122, 0.09);
  --amber-soft: #f6ecd2;
  --serif: "Literata", "EB Garamond", Georgia, serif;
  --ui: "Karla", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
:root[data-theme="candlelight"] {
  color-scheme: dark;
  --bg: #0a171c;
  --panel: #0f2027;     /* the landing page's #0d3542 deepened for a night page */
  --panel-2: #152b33;
  --panel-3: #1a323b;
  --ink: #eaf4f1;       /* (V) spine ink, 14.9:1 */
  --ink-2: #c9d8d4;     /* 11.4:1 */
  --muted: #8fa39d;     /* 6.3:1 */
  --line: #24414a;
  --line-2: #2f525c;
  --accent: #5fa9c2;    /* the Zen leaf's night blue, 6.3:1 */
  --accent-soft: #163a46;
  --accent-ink: #06161b;
  --gold: #e8c877;      /* (V) */
  --good: #7fbf8f;
  --bad: #e58a7a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --hl: rgba(95, 169, 194, 0.12);
  --amber-soft: #2e2714;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.help {
  margin: 0;
  min-height: 100vh;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--accent-soft); }
input, textarea, button { font-family: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 6px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.kicker.gold { color: var(--gold); letter-spacing: .16em; }
.kicker.accent { color: var(--accent); }
.kicker.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .06em; }
.new { display: inline-block; margin-left: 8px; font-family: var(--ui); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0 5px; vertical-align: 3px; line-height: 1.5; }

/* ---------- header ---------- */
.hh { border-bottom: 1px solid var(--line); background: var(--panel); }
.hh-in { max-width: 84rem; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { flex: none; display: block; }
.brand-txt { line-height: 1.05; }
.brand-name { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.brand-sub { display: block; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 1px; }
.brand-div { width: 1px; align-self: stretch; background: var(--line); }
.hh-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.hh-nav a { color: var(--ink-2); text-decoration: none; }
.hh-nav a:hover, .hh-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.caife-link { display: inline-flex; align-items: center; gap: 0.3em; }
.caife-cup { width: 1.05em; height: 1.05em; flex: none; }
.hh-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel-3); color: var(--ink-2); font-size: 12px; font-weight: 500; text-decoration: none; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.pill.is-well .dot { background: var(--good); }
.pill.is-tidy .dot { background: var(--gold); }
.pill.is-down .dot { background: var(--bad); }
.theme-btn { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 500; }
.open-studio { display: inline-flex; align-items: center; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; text-decoration: none; }

/* ---------- page frame ---------- */
.h-main { max-width: 76rem; margin: 0 auto; padding: 0 24px 64px; }
.h-main.wide { max-width: 84rem; }
.hero { padding: 56px 0 28px; max-width: 48rem; }
.hero.slim { padding: 40px 0 18px; }
.hero h1, .err-page h1, .g-art h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; }
.lede { margin: 12px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.h-sec { margin-top: 64px; }
.h-sec.tight { margin-top: 24px; }
.h-sec h2, .h-founders h2, .h-support h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.sub { margin: 0 0 18px; color: var(--ink-2); max-width: 40rem; text-wrap: pretty; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sec-head .sub { margin-bottom: 0; }

/* ---------- search ---------- */
.search-wrap { max-width: 52rem; }
.h-search { display: flex; align-items: flex-start; gap: 10px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 8px 8px 18px; }
.h-search.big { box-shadow: var(--shadow); }
.h-search .prompt { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 12px; }
.h-search textarea { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 17px; line-height: 1.45; padding: 9px 0; resize: none; max-height: 12em; overflow-y: auto; }
.h-search:focus-within { border-color: var(--accent); }
.h-search .clear { border: none; background: none; color: var(--muted); font-size: 13px; padding: 10px 8px; }
.h-search .go { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; font-size: 12.5px; }
.chip { display: inline-block; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; text-decoration: none; line-height: 1.3; }
.chip.mono { font-family: var(--mono); }
.chip.on, .chip[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.chip.ghost { background: transparent; }
.search-out:empty { display: none; }
.results { margin-top: 22px; display: grid; gap: 18px; }
.hit-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.hit { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hit:last-child { border-bottom: none; }
.hit:hover { background: var(--hl); }
.hit .code { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.hit:not(.err) .t { grid-column: 1 / 3; }
.hit .t { font-weight: 600; }
.hit .how { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.hit .snip { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }
.hit mark { background: var(--accent-soft); color: inherit; padding: 0 2px; border-radius: 2px; }
.no-hits { color: var(--ink-2); }
.no-hits p { margin: 0 0 8px; }

/* ---------- home: paths + guide index ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.path-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.path-card .kicker { margin: 0; font-size: 11px; }
.path-card h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.path-links { display: grid; gap: 2px; margin-top: 2px; }
.path-links a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.path-links a span:last-child { color: var(--accent); }
.g-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.g-col-h { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.g-item { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.g-item .g-t { display: block; font-family: var(--serif); font-size: 18.5px; font-weight: 600; }
.g-item .g-b { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; text-wrap: pretty; }
.g-item:hover .g-t { color: var(--accent); }

/* ---------- error dictionary table ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.err-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.err-head, .err-row > summary { display: grid; grid-template-columns: 96px 150px minmax(0, 1fr) 80px; gap: 12px; align-items: baseline; padding: 10px 16px; }
.err-head { background: var(--panel-3); border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.err-row { border-bottom: 1px solid var(--line); }
.err-row:last-child { border-bottom: none; }
.err-row[hidden] { display: none; }
.err-row > summary { cursor: pointer; list-style: none; }
.err-row > summary::-webkit-details-marker { display: none; }
.err-row > summary:hover { background: var(--hl); }
.err-row[open] { background: var(--panel); }
.c-code { font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-weight: 500; }
.c-see { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.c-title { font-weight: 600; font-size: 14.5px; }
.c-cat { text-align: right; font-size: 12px; color: var(--muted); }
.err-row > summary .c-cat::after { content: " +"; }
.err-row[open] > summary .c-cat::after { content: " −"; }
.err-head .c-cat { text-align: right; }
.err-body { display: flex; flex-wrap: wrap; gap: 20px; padding: 4px 16px 18px 124px; }
.eb-a { flex: 1 1 300px; min-width: 0; }
.eb-b { flex: 1 1 260px; min-width: 0; }
.eb-b ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 5px; font-size: 14px; }
.eb-b .links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; font-weight: 600; margin: 0; }
.cause { margin: 0; font-family: var(--serif); font-size: 17.5px; line-height: 1.55; text-wrap: pretty; }
.cause.big { font-size: 19px; }
.says-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.says-list li { display: grid; gap: 2px; }
.says-list .from { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.says, p.says { font-family: var(--mono); font-size: 12px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; white-space: pre-wrap; color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
p.says { margin: 0 0 10px; }

/* ---------- support + status ---------- */
.duo { display: flex; flex-wrap: wrap; gap: 16px; }
.h-support { flex: 2 1 420px; border: 1px solid var(--accent); border-radius: 12px; background: var(--panel-2); padding: 22px; }
.h-support p { margin: 0 0 12px; max-width: 38rem; color: var(--ink-2); }
.h-support .support-email { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.h-status { flex: 1 1 260px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.h-status .kicker { margin: 0; }
.status-line { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.status-rows { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.status-rows li { display: grid; grid-template-columns: 84px auto; gap: 0 10px; }
.status-rows .v.ok { color: var(--good); }
.status-rows .v.bad { color: var(--bad); }
.status-rows .note { grid-column: 2; color: var(--muted); font-size: 10.5px; }
.h-status .small { margin: 0; }
/* BEUK:lighthouse — the night harbour over the Help home's status */
.h-lighthouse { margin-top: 28px; padding: 18px 18px 16px; }
.lh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lh-meteor { border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; cursor: pointer; }
.lh-meteor:hover { border-color: var(--accent); }
.lh-scene { position: relative; height: 420px; border-radius: 10px; overflow: hidden; background: #06121a; }
.lh-scene[hidden] { display: none; }
.lh-scene canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.lh-scene .tag { position: absolute; left: 0; top: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(6, 16, 20, .72); border: 1px solid rgba(255, 255, 255, .12); color: #e9f1ee; font: 600 11px/1.2 var(--ui); white-space: nowrap; will-change: transform; }
.lh-scene .tag i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.lh-scene .tag small { font-weight: 500; color: #a9bab5; }
.lh-scene .tip { position: absolute; pointer-events: none; max-width: 250px; background: rgba(255, 253, 244, .97); color: #22333a; border-radius: 8px; padding: 9px 11px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); opacity: 0; transform: translate(-50%, calc(-100% - 44px)); transition: opacity .15s; z-index: 2; }
.lh-scene .tip b { display: block; margin-bottom: 2px; }
.lh-scene .tip.show { opacity: 1; }
.lh-since { margin: -4px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.lh-since:empty { display: none; }
.lh-reading summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.lh-reading[open] summary { margin-bottom: 8px; }
@media (max-width: 640px) { .lh-scene { height: 300px; } }
.h-founders { margin-top: 64px; max-width: 52rem; }
.h-founders > p { color: var(--ink-2); }
.founders-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; align-items: end; }
.founders-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.founders-form .wide { grid-column: 1 / -1; }
.founders-form input { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 8px; padding: 9px 11px; font-size: 14px; font-weight: 400; min-width: 0; }
.founders-form p { margin: 0; grid-column: 1 / -1; }
.founders-form button { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; }

/* ---------- guide page ---------- */
.g-page { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "nav art"; gap: 36px; align-items: start; }
.g-page.has-pane { grid-template-columns: 200px minmax(0, 40rem) minmax(320px, 30rem); grid-template-areas: "nav art pane"; gap: 32px; }
.g-nav { grid-area: nav; position: sticky; top: 16px; padding-top: 36px; font-size: 13.5px; max-height: 100vh; overflow-y: auto; }
.g-nav .back { display: block; margin-bottom: 18px; text-decoration: none; font-size: 13px; }
.g-nav-h { margin: 16px 0 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.g-nav a:not(.back) { display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-2); }
.g-nav a[aria-current="page"] { border-left-color: var(--accent); color: var(--ink); font-weight: 700; }
.g-art { grid-area: art; min-width: 0; max-width: 40rem; padding-top: 36px; }
.g-art h1 { font-size: 40px; line-height: 1.1; }
.g-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 4px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.g-time { margin-left: auto; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--panel-3); }
.seg button { border: none; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; background: transparent; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.g-sec h2 { margin: 36px 0 10px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.g-sec p, .g-sec li { font-family: var(--serif); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.g-sec p { margin: 0 0 12px; }
.plain-list, .num-list { margin: 0 0 12px; padding-left: 22px; }
.plain-list li, .num-list li { margin: 0 0 8px; padding-left: 2px; }
.code-chips { display: inline-block; margin-left: 6px; font-size: 11px; }
.code-chips a { font-family: var(--mono); text-decoration: none; }
li.pick { cursor: pointer; border-radius: 8px; }
li.pick.on { background: var(--hl); }
.see { display: inline-block; border: none; background: none; padding: 0; margin: 4px 0 0; font-size: 12px; color: var(--accent); font-family: var(--ui); text-align: left; }
html:not(.js) .see { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { display: flex; gap: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.step.pick:hover { border-color: var(--line-2); }
.step.on { border-color: var(--accent); background: var(--hl); }
.step .num { flex: 0 0 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 500; background: var(--panel-3); color: var(--ink-2); }
.step.on .num { background: var(--accent); color: var(--accent-ink); }
.st { min-width: 0; display: block; }
.st-t { display: block; font-size: 15.5px; line-height: 1.5; }
.tech { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.tech code { font-size: 1em; }
html[data-detail="plain"] .tech { display: none; }
.trouble { margin: 28px 0 0; padding: 4px 18px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.trouble .g-sec h2 { margin-top: 14px; font-size: 21px; }
.trouble .g-sec p { font-family: var(--ui); font-size: 14.5px; color: var(--ink-2); }
.related { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; font-size: 14px; }
.related .kicker { margin: 0; width: 100%; }

.g-pane { grid-area: pane; min-width: 0; position: sticky; top: 16px; padding-top: 36px; }
.pane-box { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); overflow: hidden; box-shadow: var(--shadow); }
.pane-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--panel-3); }
.pane-tabs button { flex: 1; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 11px 8px; font-size: 12.5px; font-weight: 600; }
.pane-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); background: var(--panel-2); color: var(--ink); }
html.js .pane[data-start-hidden] { display: none; }
.pane[hidden] { display: none !important; }
html.js .pane:not([hidden]):not([data-start-hidden]) { display: block; }
.pane + .pane { border-top: 1px solid var(--line); }
html.js .pane + .pane { border-top: none; }
.pane-cap { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pane-lines { padding: 10px 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; overflow-x: auto; max-height: min(70vh, 640px); overflow-y: auto; }
.ln { display: flex; border-left: 2px solid transparent; min-width: max-content; }
.ln .n { flex: 0 0 34px; text-align: right; padding-right: 12px; color: var(--muted); opacity: .7; user-select: none; }
.ln .t { white-space: pre; color: var(--ink-2); padding-right: 14px; }
.ln.lit { background: var(--hl); border-left-color: var(--accent); }
.ln.lit .t { color: var(--ink); }
.pane-foot { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); background: var(--panel); }

/* ---------- error page ---------- */
.err-page { max-width: 64rem; padding-top: 28px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.err-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.code-chip { font-family: var(--mono); font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.err-chips .chip { font-size: 12px; padding: 2px 9px; }
.err-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; margin-top: 18px; }
.err-cols h2 { margin: 22px 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.err-cols > div > h2:first-child { margin-top: 0; }
.num-list li { font-size: 15px; }
.maps { border-collapse: collapse; font-size: 13.5px; width: 100%; }
.maps th { text-align: left; font-weight: 600; padding: 6px 12px 6px 0; vertical-align: top; white-space: nowrap; color: var(--ink-2); }
.maps td { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sources { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 4px; overflow-wrap: anywhere; }
a.strong { font-weight: 600; }

/* ---------- footer (+ the Ko-fi jar, when configured) ---------- */
.hf { border-top: 1px solid var(--line); margin-top: 32px; }
.hf-in { max-width: 76rem; margin: 0 auto; padding: 20px 24px 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.foot-note { margin: 0; font-family: var(--serif); font-size: 15px; font-style: italic; }
.hf-links { display: flex; gap: 16px; flex-wrap: wrap; }
.kofi-jar { max-width: 76rem; margin: 0 auto 32px; padding: 18px 24px; border-top: 1px dashed var(--line-2); color: var(--ink-2); }
.kofi-jar h2 { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; color: var(--ink); }
.kofi-jar p { margin: 0 0 8px; max-width: 46rem; }
.kofi-button { display: inline-block; border: 1px solid var(--accent); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; }
.kofi-note { font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .g-page.has-pane { grid-template-columns: minmax(0, 1fr) minmax(300px, 26rem); grid-template-areas: "art pane" "nav nav"; gap: 28px; }
  .g-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "nav"; }
  .g-nav { position: static; max-height: none; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
  .g-nav .back { width: 100%; margin: 12px 0 0; }
  .g-nav-h { width: 100%; margin: 12px 0 2px; }
  .g-nav a:not(.back) { padding: 2px 0; border-left: none; }
}
@media (max-width: 899px) {
  .g-page.has-pane { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "pane" "nav"; }
  .g-pane { position: static; padding-top: 8px; }
  .pane-lines { max-height: 60vh; }
  .err-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 720px) {
  .hh-in { padding: 10px 16px; gap: 10px; }
  .brand-div { display: none; }
  .hh-nav { order: 3; width: 100%; gap: 6px 14px; }
  .hh-right { margin-left: auto; }
  .hh-right .status-pill { display: none; }
  .h-main { padding: 0 16px 48px; }
  .hero { padding: 32px 0 20px; }
  .lede { font-size: 18px; }
  .h-sec { margin-top: 44px; }
  .g-art h1 { font-size: 32px; }
  .err-head { display: none; }
  .err-row > summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 14px; }
  .err-row > summary .c-see { grid-column: 2; grid-row: 1; justify-self: start; }
  .err-row > summary .c-cat { grid-column: 3; grid-row: 1; }
  .err-row > summary .c-title { grid-column: 1 / -1; }
  .err-body { padding: 4px 14px 16px; }
  .h-search { padding-left: 12px; }
  .h-search textarea { font-size: 16px; }
  .h-search .go { padding: 10px 14px; }
  .hit { grid-template-columns: auto minmax(0, 1fr); }
  .hit .how { grid-column: 1 / -1; }
  .hf-in { padding: 18px 16px 28px; }
  .kofi-jar { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .step, li.pick, .ln { transition: background-color .15s ease, border-color .15s ease; }
}
/* Steps read in the interface face (the design's step cards), not the reading serif. */
.g-sec li.step { font-family: var(--ui); font-size: 15.5px; line-height: 1.5; }
li.pick .see { margin-left: 8px; }

/* ==== /roadmap as a board (src/warmth/roadmap.ts) and /changelog in this frame ====
   Each item is its title and one line; the rest folds under More. In progress
   is the band across the top, Planned (numbered: it is the build order) and
   Exploring sit side by side, Shipped is a dated list with the older releases
   folded. Colours are the Help tokens, so Candlelight follows. */
.rm { padding-top: 36px; }
.rm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rm-top h1 { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.01em; }
.rm-intro { margin: 10px 0 0; max-width: 40rem; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.rm-updated { margin: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.rm-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 10px; }
.rm-jump { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel-2); color: var(--ink); text-decoration: none; font-size: 14px; }
.rm-jump b { font-variant-numeric: tabular-nums; color: var(--accent); }
.rm-jump:hover { border-color: var(--accent); }
.rm-jump:focus-visible, .rm summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-key { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-2); max-width: 46rem; }
.rm-key p { margin: 8px 0 0; line-height: 1.55; }
.rm summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; width: fit-content; }
.rm-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "now now" "next later" "done done"; gap: 20px 40px; margin-top: 18px; }
.rm-in-progress { grid-area: now; }
.rm-planned { grid-area: next; }
.rm-exploring { grid-area: later; }
.rm-shipped { grid-area: done; }
.rm-other { grid-column: 1 / -1; }
.rm-col { min-width: 0; padding-top: 18px; border-top: 2px solid var(--line-2); }
.rm-head { display: flex; align-items: baseline; gap: 10px; }
.rm-head h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.rm-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rm-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.rm-list { list-style: none; margin: 10px 0 0; padding: 0; }
.rm-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rm-item:last-child { border-bottom: 0; }
.rm-t { margin: 0; font-family: var(--ui); font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.rm-lead { margin: 4px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 42rem; text-wrap: pretty; }
.rm-more { margin-top: 6px; }
.rm-more p { margin: 6px 0 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 42rem; }
/* the build order: its numbers are the sequence */
.rm-planned .rm-item { grid-template-columns: 2rem minmax(0, 1fr); }
.rm-n { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }
/* in progress: the one thing being built now, given the room */
.rm-in-progress { border-top-color: var(--gold); }
.rm-in-progress .rm-item { padding: 16px 20px; margin-top: 6px; background: var(--amber-soft); border: 0; border-radius: 10px; }
.rm-in-progress .rm-t { font-size: 19px; }
/* exploring: may change shape, so it is drawn lighter */
.rm-exploring .rm-t { font-weight: 600; color: var(--ink-2); }
/* shipped: a dated list */
.rm-shipped .rm-item { grid-template-columns: 8.5rem minmax(0, 1fr); }
.rm-when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.rm-older { margin-top: 10px; }
.rm-older > summary { padding: 8px 0; }
/* /changelog: a release table (after docs.stripe.com/changelog). Each
   change is one row — what changed, its area on the right — and the detail
   folds under it. Help tokens throughout, so Candlelight follows. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cl { padding-top: 36px; }
.cl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cl-top h1 { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.01em; }
.cl-intro { margin: 10px 0 0; max-width: 40rem; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.cl-card { max-width: 17rem; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cl-card p { margin: 0; }
.cl-card p + p { margin-top: 6px; }
.cl-card a { color: var(--accent); font-weight: 600; }
.cl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 20px 0 8px; }
.cl-search input { width: 15rem; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); color: var(--ink); font: 14px var(--ui); }
.cl-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border: 1px dashed var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 13.5px var(--ui); cursor: pointer; }
.cl-chip b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-chip:hover { border-color: var(--accent); }
.cl-chip[aria-pressed="true"] { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cl-chip[aria-pressed="true"] b { color: var(--accent); }
.cl-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-count { margin: 0 0 0 auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-layout { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 40px; margin-top: 12px; }
.cl-side { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; font-size: 13.5px; }
.cl-side-h { margin: 14px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cl-side-h:first-child { margin-top: 4px; }
.cl-side a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.cl-side a time { display: block; font: 12px var(--mono); color: var(--muted); }
.cl-side a span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cl-side a:hover, .cl-side a.on { border-left-color: var(--accent); color: var(--accent); }
.cl-rel { padding: 26px 0 6px; scroll-margin-top: 16px; }
.cl-rel[hidden] { display: none; }
.cl-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 12px; }
.cl-h time { font: 600 19px var(--mono); color: var(--ink); letter-spacing: -.01em; }
.cl-title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink-2); }
.cl-group { margin: 16px 0 8px; font: 700 14.5px var(--ui); color: var(--ink); }
.cl-note { margin: 0 0 10px; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 46rem; }
.cl-table { border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); overflow: hidden; }
.cl-row { border-top: 1px solid var(--line); }
.cl-row:first-child { border-top: 0; }
.cl-row[hidden] { display: none; }
.cl-row > summary, .cl-plain { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; align-items: baseline; gap: 16px; padding: 10px 14px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.cl-row > summary { cursor: pointer; list-style: none; }
.cl-row > summary::-webkit-details-marker { display: none; }
.cl-row > summary .cl-t::before { content: "›"; display: inline-block; width: 1em; color: var(--muted); transition: transform .15s; }
.cl-row[open] > summary .cl-t::before { transform: rotate(90deg); }
.cl-plain .cl-t { padding-left: 1em; }
.cl-row > summary:hover { background: var(--hl); }
.cl-row > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cl-t strong { font-weight: 600; }
.cl-t code, .cl-body code { font: .9em var(--mono); }
.cl-tag { font-size: 12.5px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tag[data-area="Fixes"] { color: var(--gold); }
.cl-body { margin: 0; padding: 2px 14px 14px calc(14px + 1em); max-width: 50rem; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.cl a { color: var(--accent); }
.cl-empty { margin: 30px 0; color: var(--muted); }
@media (max-width: 860px) {
  .cl-layout { grid-template-columns: minmax(0, 1fr); }
  .cl-side { display: none; }
}
@media (max-width: 560px) {
  .cl-top h1 { font-size: 34px; }
  .cl-search input { width: 100%; }
  .cl-search { flex: 1 1 100%; }
  .cl-row > summary, .cl-plain { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cl-tag { padding-left: 1em; }
}
@media print {
  .cl-tools, .cl-side { display: none; }
  .cl-layout { display: block; }
}
/* /changelog: long-form notes in the reading face */
.doc { max-width: 46rem; padding-top: 36px; }
.doc h1 { margin: 0 0 10px; font-family: var(--serif); font-size: 40px; line-height: 1.1; font-weight: 600; }
.doc h2 { margin: 40px 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.doc p, .doc li { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); }
@media (max-width: 760px) {
  .rm-board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "now" "next" "later" "done"; }
  .rm-top h1 { font-size: 34px; }
  .rm-shipped .rm-item { grid-template-columns: minmax(0, 1fr); }
  .rm-when { padding-top: 0; }
  .doc h1 { font-size: 32px; }
}
