/* reflex.gist.rs — site CSS. Loads AFTER /assets/family.css (the gist-family
   v1 tokens + base components, byte-identical copy of riir-ai
   .docs/13_web_family/family.css). The site's historical variable names are
   ALIASES onto the family tokens, so every existing rule (charts, arena,
   playground) re-themes without a rewrite. Never fork a family token here. */
:root {
  --bg2: var(--bg-2);
  --panel: var(--surface);
  --ember: var(--accent);
  --rust-bright: var(--accent);
  --rust: var(--accent);
  --dark-red: var(--accent-soft);
  /* chart series that name a family product use the family product colors */
  --lane-reflex: var(--c-reflex);
  --lane-instinct: var(--c-instinct);
  --lane-rethink: var(--c-rethink);
}

/* ── chrome: family header + nav (gf-head/gf-nav from family.css) ───────── */
.gf-brand span { color: var(--muted); font-weight: 500; }
.gf-nav a.gh { display: inline-flex; align-items: center; }
.gf-nav a.gh svg { display: block; }
.gf-nav a[aria-current="page"] { font-weight: 650; }

.hero { padding: var(--s-7) 0 var(--s-5); }
.hero h1 { font-size: var(--fs-5); line-height: 1.12; margin: 0 0 var(--s-4); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lead { font-size: var(--fs-2); color: var(--text-2); max-width: var(--measure); margin: 0 0 var(--s-5); }

.cmd {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-2); padding: 10px 14px; margin: 10px 0;
  font-family: var(--mono); font-size: 14px;
  overflow-x: auto;
}
.cmd code { background: none; border: 0; padding: 0; }
.cmd code { white-space: nowrap; flex: 1; min-width: 0; overflow-x: auto; }
/* #triage — the caller-policy snippet: a multi-line machine block, mono and
   scrollable in its own wrapper (the mobile law). */
.policy {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-2); padding: 12px 14px; margin: 10px 0;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
  overflow-x: auto;
}
.policy code { background: none; border: 0; padding: 0; white-space: pre; }
.cmd .os, .cmd button { flex: none; }
.cmd .os { color: var(--muted); min-width: 118px; }
.cmd button, .wire-h button {
  margin-left: auto; background: var(--accent-soft); color: var(--text);
  border: 1px solid var(--accent-line); border-radius: var(--r-1); padding: 6px 12px; min-height: 32px;
  cursor: pointer; font: 600 var(--fs-0) var(--mono);
}
.cmd button:hover, .wire-h button:hover { background: var(--accent); color: var(--accent-ink); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.badge {
  font: 500 var(--fs-0)/1.6 var(--mono); padding: 3px 11px; border-radius: var(--pill);
  border: 1px solid var(--accent-line); color: var(--accent); background: var(--accent-soft);
}
.badge.muted { border-color: var(--line); color: var(--muted); background: transparent; }

section { padding: var(--s-7) 0; border-top: 1px solid var(--line); }
section h2 { font-size: var(--fs-4); margin: 0 0 var(--s-2); }
@media (max-width: 640px) { section { padding: var(--s-6) 0; } }

/* Section titles are self-links: click to set the fragment (shareable
   #anchor), hover for the # affordance. */
h2 a.hlink, h3 a.hlink { color: inherit; }
h2 a.hlink:hover, h3 a.hlink:hover { text-decoration: none; }
h2 a.hlink::after, h3 a.hlink::after {
  content: "#"; margin-left: 8px; color: var(--ember);
  opacity: 0; transition: opacity 0.12s;
}
h2 a.hlink:hover::after, h3 a.hlink:hover::after { opacity: 0.75; }
section p.sub, p.sub { color: var(--muted); margin: 0 0 var(--s-5); max-width: var(--measure); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 18px;
}
.step h3 { margin: 0 0 6px; font-size: var(--fs-2); color: var(--accent); }
.step p { margin: 0; font-size: var(--fs-1); color: var(--muted); }
.step code { color: var(--text); font-size: 13px; }

/* Playground */
#status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; padding: 6px 14px; border-radius: 8px; margin-bottom: 16px;
  border: 1px solid var(--line); color: var(--muted);
}
#status .dot { width: 9px; height: 9px; border-radius: 50%; background: #666; }
#status.ok { border-color: var(--ok); color: var(--ok); }
#status.ok .dot { background: var(--ok); }
#status.err { border-color: var(--warn); color: var(--warn); }
#status.err .dot { background: var(--warn); }

.launch {
  background: color-mix(in srgb, var(--warn) 7%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: var(--r-2); padding: 14px 16px; margin-bottom: 18px; font-size: var(--fs-1);
}
/* The boxed command block is a code that is a DIRECT child of .launch
   (home page). Inline code inside launch prose (arena page) and the code in
   a .cmd run row are NOT blocks — block-styling them shatters the sentence
   around them (the "; allow it." render bug). */
.launch > code {
  display: block; font-family: var(--mono); font-size: 13.5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 12px; margin-top: 8px; overflow-x: auto; white-space: nowrap;
  color: var(--ember);
}
.launch p code {
  display: inline; font-family: var(--mono); font-size: 0.9em;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; white-space: nowrap; color: var(--ember);
}
.launch .cmd code { color: var(--ember); }

.play { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .play { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 18px;
}
.card label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
.card label:first-child { margin-top: 0; }
.card textarea, .card input[type="text"] {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; color: var(--text); padding: 10px 12px;
  font-family: var(--mono); font-size: 13.5px;
}
.card textarea { min-height: 110px; resize: vertical; }
.card select {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; color: var(--text); padding: 9px 12px; font-size: 14px;
}
.card .options { display: none; }
.card .options.on { display: block; }
.card button.go {
  margin-top: 14px; width: 100%; min-height: 42px; padding: 11px; font-size: var(--fs-1); font-weight: 700;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--r-2); cursor: pointer;
}
.card button.go:hover { filter: brightness(1.08); }
.card button.go:disabled { opacity: 0.5; cursor: wait; }

.answer { margin: 10px 0 0; }
.answer .q { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.answer .row {
  display: flex; justify-content: space-between; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; margin-bottom: 6px; font-size: 14px;
}
.answer .row.abstain { border-color: var(--warn); color: var(--warn); }
.answer .conf { color: var(--muted); font-variant-numeric: tabular-nums; }
.answer .meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } }
.teaser .cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 16px 18px; }
.teaser .big { font-size: 30px; font-weight: 800; color: var(--accent); }
.teaser .lbl { font: 600 var(--fs-0)/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.teaser table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
.teaser td, .teaser th { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.teaser th { color: var(--muted); font-weight: 500; }
.teaser td:first-child, .teaser th:first-child { text-align: left; }

/* the family footer (gf-foot) carries the site's credit + source links in its legal row */
footer.site .gf-legal { flex-direction: column; gap: var(--s-2); }
footer.site .fine { font-size: var(--fs-0); max-width: var(--measure); }
footer.site .credit { color: var(--text-2); }

/* #skill — the agent-skill section */
.faq {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); padding: 10px 16px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--fs-1); }
.faq p { color: var(--text-2); margin: 8px 0 2px; font-size: var(--fs-1); }
#skill .fine { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* inline aside inside an install-command row (e.g. the brew formula vs
   the command it installs) */
.hint-inline {
  color: var(--muted, #9a8f88);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.hint-inline code {
  color: inherit;
}


/* ── TL;DR strip — the measured lead on a page (home hero + arena share the
   visual language). The verdict-row vocabulary is the BASE here (style.css
   is the one stylesheet every page loads), so the bench page's Instinct
   rows render identically; arena.css repeats the same rules as page-local
   refinements. "warn" = the yellow ✓: a majority verdict that is not a
   sweep (owner call 2026-09-29 — Reflex at-or-above on most suites shows
   as a win, trailing minority still named). ── */
.tldr {
  border: 1px solid var(--accent-line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: var(--r-2);
  padding: 12px 16px; margin: 22px 0 18px; font-size: var(--fs-1); color: var(--text-2);
}
.tldr > b { color: var(--accent); font-family: var(--mono); letter-spacing: 0.06em; margin-right: 6px; }
.tldr p { margin: 0 0 6px; display: inline; }
.tldr .num { color: var(--ember); font-weight: 700; }
.tldr ul { list-style: none; margin: 8px 0 0; padding: 0; }
.tldr li { margin: 4px 0; }
.tldr li b { color: var(--text); }
.tldr li i { font-style: normal; font-weight: 700; display: inline-block; width: 1.2em; }
.tldr li.ok i { color: var(--ok); }
.tldr li.warn i { color: var(--warn); }
.tldr li.gap i { color: var(--ember); }
.tldr li.eq i { color: var(--muted); }

/* ── bench-charts.js — minimal bars (lane colors validated all-pairs on the
   dark surfaces; shared by /bench/ and the home summary card) ────────── */
.bc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bc-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text); }
.bc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bc-legend a { color: var(--ember); }
.bc-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.bc-legend .bc-sw { margin-right: 0; }
.bc-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.bc-toggle button { background: transparent; color: var(--muted); border: 0; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.bc-toggle button + button { border-left: 1px solid var(--line); }
.bc-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.bc-hgrid { display: grid; grid-template-columns: 150px 1fr; column-gap: 12px; row-gap: 9px; align-items: center; }
.bc-hlabel { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-hlabel:hover { color: var(--ember); }
.bc-htrack { position: relative; display: flex; flex-direction: column; gap: 2px; }
.bc-hbar { position: relative; height: 6px; display: flex; align-items: center; gap: 6px; }
.bc-hbar i, .bc-cell i { display: block; height: 100%; border-radius: 0 4px 4px 0; flex: none; }
.bc-hbar:hover i, .bc-hbar:focus i, .bc-cell:hover i, .bc-cell:focus i { filter: brightness(1.25); }
.bc-hbar, .bc-cell { outline: none; }
.bc-hbar.bc-none { height: 6px; font-size: 9.5px; line-height: 6px; color: var(--muted); opacity: .7; }
.bc-val { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bc-grid { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--line); opacity: .7; pointer-events: none; }
.bc-hbar .bc-range { position: absolute; top: 0; bottom: 0; border: 1px solid; border-radius: 3px; }
.bc-hbar .bc-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; transform: translateX(-1px); border-radius: 1px; }
.bc-summary-body .bc-hbar { height: 18px; }
.bc-summary-body .bc-hbar .bc-mark { top: 0; bottom: 0; width: 3px; transform: translateX(-50%); border-radius: 0; }
.bc-summary-body .bc-val { position: absolute; top: 50%; background: color-mix(in srgb, var(--bg) 55%, transparent); padding: 1px 3px; border-radius: 3px; }
.bc-axis { position: relative; height: 14px; font: 11px var(--mono); color: var(--muted); }
.bc-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.bc-axis span:first-child { transform: none; }
.bc-axis span:last-child { transform: translateX(-100%); }
.bc-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.bc-mut { color: var(--muted); font-weight: 400; }
.bc-tip { position: fixed; display: none; z-index: 20; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: 12px; line-height: 1.5; color: var(--text); box-shadow: 0 4px 18px rgba(0,0,0,.45); max-width: min(360px, calc(100vw - 16px)); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .bc-hgrid { grid-template-columns: 96px 1fr; }
}

/* ── home: the averaged-bench card in the hero, the flow figure, the
   per-page explore cards ─────────────────────────────────────────────── */
#bench-summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: 14px 18px 8px; margin: 26px 0 0;
}
.after-chart { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; }
.after-chart a { font-weight: 700; font-size: 14px; }
.prov { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

.figure { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-4); overflow-x: auto; margin: var(--s-5) 0; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.page-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: 18px; display: flex; flex-direction: column;
}
.page-card h3 { margin: 0 0 6px; font-size: var(--fs-2); color: var(--text); }
.page-card p { margin: 0 0 14px; font-size: var(--fs-1); color: var(--muted); flex: 1; }
.page-card p:last-of-type { margin-bottom: 14px; }
.page-card .cta { font-weight: 700; font-size: 14px; margin-top: auto; }
.page-card .cta::after { content: " →"; }
.page-card .cta:hover { text-decoration: underline; }

/* a standalone page (the playground) — an h1 of its own */
h1.page-title { font-size: var(--fs-5); margin: var(--s-6) 0 var(--s-2); }

/* ── home: the two-lanes section — lane process cards + structural diffs ── */
#twolanes .cell h3 { margin: 8px 0 10px; font-size: var(--fs-2); color: var(--text); }
#twolanes .cell ol { margin: 0; padding-left: 18px; font-size: var(--fs-1); color: var(--muted); }
#twolanes .cell ol li { margin: 0 0 9px; }
#twolanes .cell ol li:last-child { margin-bottom: 0; }
#twolanes .cell ol li b { color: var(--text); }
#twolanes .cell code { color: var(--text); font-size: 12.5px; }
.diffs { overflow-x: auto; }
.diffs table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 20px; }
.diffs th, .diffs td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.diffs thead th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.diffs td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.diffs td { color: var(--muted); }

/* ── #sizes — the disk-footprint chart (size-charts.js) ───────────────────
   Reuses the bc-hbar/bc-htrack/bc-grid/bc-axis/bc-legend atoms; adds the
   three-column row (label | bars | total) and the target chips. */
.sz-grid { display: grid; grid-template-columns: 190px 1fr 76px; column-gap: 12px; row-gap: 16px; align-items: center; }
.sz-row, .sz-axisrow { display: contents; }
.sz-label { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
.sz-name { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sz-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.sz-chip { font-size: 11px; line-height: 1.5; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.sz-total { text-align: right; font-variant-numeric: tabular-nums; }
.sz-stack { height: 8px; gap: 0; }
.sz-bar { display: flex; height: 100%; }
/* the 3px floor + 1px separator guarantee every sliver shows ≥2px of its own
   color after the gap — a 0.5%-share stack component (the Rethink heads)
   must still read as color on the bar, not vanish into its separator */
.sz-stack i { border-radius: 0; outline: none; min-width: 3px; position: relative; overflow: hidden; }
.sz-stack i:last-child { border-radius: 0 3px 3px 0; }
.sz-stack i + i { box-shadow: inset 1px 0 0 var(--bg2); }
/* the break sign: a slanted cut through the bar at the 1 GB line (size-charts.js BREAK_AT).
   height:auto matters: `.bc-hbar i` (the same element) sets height:100%, and an abs-positioned
   box with top+height set ignores `bottom` - so the sign rode 4px high, covering only the
   bar's top half. height:auto lets top/bottom stretch it to 16px, centered on the bar. */
.bc-hbar i.sz-break, .bc-cell i.sz-break { position: absolute; top: -4px; bottom: -4px; height: auto; width: 9px; min-width: 0; margin-left: -4.5px;
  background: var(--bg); border-left: 2px solid var(--text); border-right: 2px solid var(--text);
  transform: skewX(-22deg); border-radius: 0; box-shadow: none; pointer-events: none; }
.bc-grid.sz-grid-break { background: none; border-left: 1px dashed var(--muted); opacity: .6; }
/* byte labels under the bar, right-aligned to its end; a bar shorter than its
   labels grows the row to max-content, so the labels start at the track origin */
.sz-lbls { position: relative; display: flex; justify-content: flex-end; gap: 8px; min-width: max-content; margin-top: 6px; }
.sz-lbl { background: var(--bg); padding: 0 2px; font-size: 11px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sz-stack:hover i { filter: none; }
.sz-stack i:hover, .sz-stack i:focus { filter: brightness(1.25); }
/* tap-to-expand: the bar is the row's toggle (hover tooltips have no touch
   equivalent — the detail block carries the tooltip's full content under
   the row); the caret in the totals column marks it */
.sz-stack[role="button"] { cursor: pointer; }
.sz-stack[role="button"]:focus-visible { outline: 1px solid var(--muted); outline-offset: 2px; }
.sz-caret { display: inline-block; font-size: 9px; color: var(--muted); transition: transform .15s ease; }
.sz-open .sz-caret { transform: rotate(180deg); }
.sz-open .sz-total { color: var(--text); }
.sz-detail, .bc-detail { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 10px 12px; margin: 2px 0 8px; font-size: 12px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.sz-detail[hidden], .bc-detail[hidden] { display: none; }
.sz-detail ul.sz-tip, .bc-detail ul.sz-tip, .bc-tip ul.sz-tip { list-style: none; margin: 6px 0; padding: 0; }
.sz-detail ul.sz-tip li, .bc-detail ul.sz-tip li, .bc-tip ul.sz-tip li { margin: 4px 0; }
.sz-prov { color: var(--muted); font-size: 11.5px; margin: 5px 0 0; }
/* the expanded row's breakdown chart: one labeled bar per measured part,
   runtime side + model side (side by side on desktop, stacked on mobile) */
.sz-bd-title { margin-bottom: 8px; }
.sz-bd { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 22px; }
.sz-bd-side { min-width: 0; }
.sz-bd-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.sz-bd-head .bc-sw { margin-right: 6px; }
.sz-bd-what { color: var(--muted); font-size: 11.5px; margin: 4px 0 6px; }
.sz-bd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; margin: 7px 0 0; }
.sz-bd-lbl { overflow-wrap: anywhere; }
.sz-bd-val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sz-bd-track { grid-column: 1 / -1; height: 6px; margin-top: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sz-bd-track i { display: block; height: 100%; min-width: 2px; border-radius: 3px; }
.sz-bd-total { margin: 12px 0 0; }
.sz-src { margin-top: 10px; color: var(--muted); font-size: 11.5px; }
.sz-src summary { cursor: pointer; color: var(--text); font-size: 12px; min-height: 40px; display: flex; align-items: center; }
.sz-src summary::before { content: "\25B8"; display: inline-block; margin-right: 6px; color: var(--muted); transition: transform .15s ease; }
.sz-src[open] summary::before { transform: rotate(90deg); }
.sz-src summary::-webkit-details-marker { display: none; }
.sz-src ol { margin: 4px 0 0; padding-left: 18px; }
.sz-src li { margin: 0 0 8px; }
.sz-src li b { color: var(--text); }
.sz-src-how { font-family: var(--mono); font-size: 11px; }
.sz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sz-axis { align-self: end; margin-bottom: -6px; }
@media (max-width: 720px) {
  .sz-grid { grid-template-columns: 108px 1fr 62px; }
  .sz-chips { display: none; } /* the chips re-read from each bar's tooltip on small screens */
  .sz-tick-minor, .sz-tick-max { display: none; }
}

/* Playground · Reflexer — the board editor (canvas left, text right) and
   the graphical answer. Same palette as the arena boards (tetris_view.js). */
.rx-edit { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 420px) { .rx-edit { grid-template-columns: 1fr; } }
.rx-grid {
  display: block; width: 200px; height: 400px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px;
}
#rx-canvas { cursor: crosshair; touch-action: none; }
.rx-text, .card textarea#rx-board {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.15; font-variant-ligatures: none;
}
.card textarea#rx-board { height: 400px; min-height: 400px; white-space: pre; overflow: auto; resize: none; }
.card textarea#rx-board[aria-invalid="true"] { border-color: var(--warn); }
.rx-board-err { color: var(--warn); font-size: 13px; margin-top: 6px; }
pre.rx-text {
  margin: 0; height: 400px; overflow: auto; white-space: pre;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
.rx-pieces { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rx-piece { display: flex; gap: 8px; align-items: center; }
.rx-piece select { width: auto; }
.rx-mini {
  display: block; width: 48px; height: 48px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px;
}
/* a grid item's min-width is its content's: the long endpoint URL pushed the
   board card past a phone viewport */
#reflexer .play > .card { min-width: 0; }
#rx-endpoint { overflow-wrap: anywhere; }

/* ── redesign 2026-09-26: hook + CTA hero, FAQ-as-buttons, collapsed
   tables/notes (charts stay visible; everything else is one click away) ── */
.hero .kicker { font: 600 var(--fs-0)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s-3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
/* .btn = the family button (gf-btn) under the site's historical class name */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  padding: 0 18px; border-radius: var(--r-2); font-weight: 600; font-size: var(--fs-1);
  border: 1px solid var(--line-2); color: var(--text); background: var(--surface);
}
.btn:hover { text-decoration: none; border-color: var(--accent-line); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
@media (max-width: 640px) { .cta-row .btn { flex: 1 1 auto; } }

/* FAQ: each question is a button; open answers take the full row. */
.faqs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.faqs > details.faq { border: 0; background: transparent; padding: 0; margin: 0; }
.faqs > details.faq[open] { flex-basis: 100%; }
.faqs > details.faq > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--surface); font-size: var(--fs-1); font-weight: 600; color: var(--text); cursor: pointer;
}
.faqs > details.faq > summary::-webkit-details-marker { display: none; }
.faqs > details.faq > summary::before { content: "+"; color: var(--ember); font-weight: 800; }
.faqs > details.faq[open] > summary { border-color: var(--accent-line); }
.faqs > details.faq[open] > summary::before { content: "–"; }
.faqs > details.faq > summary:hover { border-color: var(--accent-line); }
.faqs > details.faq > :not(summary) {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 16px; margin: 8px 0 4px;
}
.faqs > details.faq > p { color: var(--text-2); font-size: var(--fs-1); }

/* A collapsed block (tables, notes, long explanations). */
details.more { margin: 14px 0 0; }
details.more > summary {
  cursor: pointer; color: var(--accent); font-size: var(--fs-1); font-weight: 600; list-style: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸ "; }
details.more[open] > summary::before { content: "▾ "; }
details.more > summary .chip { margin-left: 6px; }
.chip { font: 600 11.5px/1.6 var(--mono); padding: 1px 8px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--muted); }
.chip.pass { border-color: var(--ok); color: var(--ok); }
.chip.fail { border-color: var(--warn); color: var(--warn); }
.chip.ok { border-color: var(--ok); color: var(--ok); }
.chip.poc { border-color: var(--warn); color: var(--warn); }

/* Notes & sources — the long-form material, cited. */
.notes-list { padding-left: 20px; margin: 8px 0 0; }
.notes-list li { font-size: var(--fs-1); color: var(--muted); margin: 0 0 8px; }
.notes-list li b { color: var(--text); }
.src { font-size: 12px; white-space: nowrap; }
.src::before { content: "["; color: var(--muted); }
.src::after { content: "]"; color: var(--muted); }

/* Footer credit line. */
.credit { color: var(--text); }
.credit a { font-weight: 700; }
.launch > details.more { margin: 0; }
.launch > details.more[open] > summary { margin-bottom: 8px; }
/* Issue-021 verdict: timing a run judged unfit to quote (bench_provenance.js). */
.caveat { color: var(--warn); font-size: 0.92em; }
td.unq { color: var(--warn); }
td.unq sup { margin-left: 1px; }

/* ── mobile (390 px): the page never scrolls sideways (design guide §6) ──
   Inline code in prose may wrap (family.css keeps code nowrap, which pushed
   the long origin command past a phone viewport); wide charts scroll inside
   their own box — the per-bar host tags hang past the track end. */
p code, li code, dd code, summary code { white-space: normal; overflow-wrap: anywhere; }
#bench-hero, #bench-summary { overflow-x: auto; }
.faqs > details.faq, .faqs > details.faq > summary { max-width: 100%; }
.src { white-space: normal; overflow-wrap: anywhere; }

/* ── /resources #learn — the Jev primer ───────────────────────────────── */
#learn h3 { margin-top: var(--s-6); }
#learn > p { max-width: var(--measure); color: var(--text-2); }
.learn-hero { max-width: var(--measure); }
.learn-hero img { width: 100%; }
.learn-gloss { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); background: var(--surface); border-color: var(--line); border-left-color: var(--accent); }
#learn .gf-card h3 { margin-top: 0; }
.wire { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--s-4); }
.wire .wire-pane { margin: 0; padding: 0; min-width: 0; }
.wire .wire-h { margin: 0; padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line);
  font: 600 var(--fs-0)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.wire pre { margin: 0; border: 0; border-radius: 0; background: transparent; font-size: 13px; }
.wire-note { font-size: var(--fs-0); max-width: var(--measure); margin-top: var(--s-3); }
.fig-scroll img { min-width: 760px; width: 100%; }
.learn-diff { margin: var(--s-5) 0; }
.learn-diff .gf-card p { margin: 0; color: var(--text-2); }
.clef-note { margin: var(--s-5) 0; }
.clef-note p { margin: 0; }
.scroll-hint { display: none; color: var(--accent); }
@media (max-width: 800px) { .scroll-hint { display: inline; } }
/* a page's first section under the sticky header carries no rule of its own */
main > section:first-child, .wrap > section:first-child { border-top: 0; }

/* Big flow figures on a phone: below 760 px they keep a legible minimum
   width (each <img> carries --minw = its viewBox width x 11/16, i.e. the
   16 px label font never renders under 11 px) and scroll INSIDE the figure;
   the page itself never scrolls sideways. */
@media (max-width: 760px) {
  .figure.scrolls img { min-width: var(--minw, 0); }
  .figure.scrolls figcaption::before { content: "Swipe the figure sideways. "; color: var(--accent); }
}
.gloss-box > .learn-gloss { margin-top: var(--s-3); }
.gloss-more { margin: var(--s-3) 0 0; font-size: var(--fs-0); }

/* Captured wire examples (scripts/render_wire.mjs fills them from
   data/wire.json): request | response side by side, stacked on a phone.
   min-width:0 keeps a long line scrolling INSIDE its pane, never the page. */
.wire-cap { font-size: var(--fs-2); margin: var(--s-5) 0 var(--s-1); }
.wire-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 10px 0 var(--s-4); }
.wire-pane { min-width: 0; display: flex; flex-direction: column; }
.wire-h { display: flex; align-items: center; gap: 8px; font: 600 var(--fs-0) var(--mono); color: var(--muted); margin: 0 0 6px; min-height: 32px; }
.wire-pane pre { margin: 0; flex: 1; font-size: 13px; }
/* wrap long strings inside the pane: the copy button carries the exact command */
.wire-pane pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 900px) { .wire-pair { grid-template-columns: minmax(0, 1fr); } }
.api-ref td:last-child { white-space: normal; min-width: 16rem; }

/* Flow step-through, no-JS fallback (riir-ai Plan 620; family design guide
   §8.4): the walker (assets/flow_walk.js) injects its own zero-specificity
   chrome and hides this block once mounted; these rules style the
   <details> IN/OUT list the renderer fills between the gfflow:walk markers.
   Same block as the rethink storefront's style.css. */
.gf-walk-static { margin: var(--s-4) 0 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); padding: var(--s-3) var(--s-4); }
.gf-walk-static summary { cursor: pointer; color: var(--text); font-weight: 600; }
.gf-walk-list { margin: var(--s-3) 0 0; padding-left: 1.2rem; color: var(--text-2); }
.gf-walk-list li { margin: 0 0 var(--s-4); }
.gf-walk-list p { margin: 0 0 var(--s-2); }
.gf-walk-h b { color: var(--text); }
.gf-walk-illu, .gf-walk-from { font: 500 var(--fs-0)/1.5 var(--mono); color: var(--muted); }
.gf-walk-io { font: 600 var(--fs-0)/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); margin-top: var(--s-3) !important; }
.gf-walk-list pre.gf-code { max-height: 16rem; font-size: var(--fs-0); margin: 0 0 var(--s-2); }
