/* Aurifern Solver Dashboard — aurifern.com brand ("field notes").
 * Tokens mirror site/src/styles/tokens.css (see site/docs/brand-tokens.md):
 *   ember  — brand, signal, historical evidence      fern   — verified, healthy, pass
 *   pollen — pending, late, open condition            rust   — failure, blocked
 * Fonts are self-hosted, same-origin: dist/public/fonts/ is served at /dashboard/fonts/ for all
 * three pages (the stylesheet itself is served from two different paths, so the URLs are
 * absolute). SIL OFL 1.1 license texts ship next to the files. No external requests. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/dashboard/fonts/bricolage-grotesque-display.woff2") format("woff2-variations"),
    url("/dashboard/fonts/bricolage-grotesque-display.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/dashboard/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations"),
    url("/dashboard/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/dashboard/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/dashboard/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* brand tokens (site/src/styles/tokens.css) */
  --af-bark: #121911;
  --af-moss: #19221a;
  --af-lichen-bg: #212c20;
  --af-line: #34422f;
  --af-line-strong: #4b5b44;
  --af-bone: #ece6d6;
  --af-text-soft: #cfc8b6;
  --af-muted: #a09d8b;
  --af-lichen: #a9bd92;
  --af-ember: #f2833a;
  --af-ember-bright: #f7a56b;
  --af-fern: #7bd88f;
  --af-fern-bright: #a6e8b2;
  --af-pollen: #e8c35a;
  --af-rust: #e4604e;
  --af-focus: #f7c96b;
  /* surfaces */
  --bg: var(--af-bark);
  --bg-raise: var(--af-moss);
  --bg-raise2: var(--af-lichen-bg);
  --line: var(--af-line);
  --line-strong: var(--af-line-strong);
  /* text */
  --text: var(--af-bone);
  --text-2: var(--af-text-soft);
  --muted: var(--af-muted);
  /* accents. Legacy names kept for existing class names: "gold" is the brand/historical
     accent (ember), "blue" the quiet neutral accent (lichen). */
  --gold: var(--af-ember);
  --gold-soft: rgba(242, 131, 58, 0.12);
  --green: var(--af-fern);
  --green-soft: rgba(123, 216, 143, 0.12);
  --amber: var(--af-pollen);
  --amber-soft: rgba(232, 195, 90, 0.1);
  --red: var(--af-rust);
  --red-soft: rgba(228, 96, 78, 0.12);
  --blue: var(--af-lichen);
  --blue-soft: rgba(169, 189, 146, 0.12);
  --link: var(--af-fern-bright);
  --focus: var(--af-focus);
  --chip-ink: var(--af-bark);
  --ember-2: #b8652f; /* darker ember steps for class splits */
  --ember-3: #7d4a2b;
  --hatch: rgba(160, 157, 139, 0.18);
  /* legacy aliases kept for existing class names */
  --accent: var(--green);
  --accent-dim: #24503a;
  --warn: var(--amber);
  --err: var(--red);
  --border: var(--line);
  /* type */
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: var(--f-display); /* legacy name: headings */
  --f-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.1875rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --t-xl: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  /* space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2.25rem;
  --s7: 4rem;
  --radius: 0;
  --measure: 78rem;
  font-size: 16px;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  font-kerning: normal;
}
/* grain (site/public/art/grain.svg) over the moss ground, as on aurifern.com */
body { overflow-x: hidden; background: url("/dashboard/brand/grain.svg"), var(--bg); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: rgba(166, 232, 178, 0.4); text-underline-offset: 0.2em; }
a:hover { color: var(--af-ember-bright); text-decoration-color: currentColor; }
::selection { background: var(--af-ember); color: var(--af-bark); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 0; }
code, .mono { font-family: var(--f-mono); font-size: 0.88em; }
code { background: var(--bg-raise2); padding: 0.08em 0.35em; border-radius: 0; overflow-wrap: anywhere; }
.mono { overflow-wrap: anywhere; word-break: break-word; }
strong { font-weight: 600; color: var(--text); }
.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; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--chip-ink); padding: var(--s2) var(--s3); z-index: 20; }
.skip:focus { left: var(--s3); top: var(--s3); }

/* ---- top bar -------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 25, 17, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line);
}
.topbar-inner {
  max-width: var(--measure); margin: 0 auto;
  min-height: 4rem;
  padding: 0.6rem var(--s5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
/* the aurifern.com lockup (outlined wordmark, no webfont), linking home */
.wordmark { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.lockup { display: block; height: 1.3rem; width: auto; }
.lockup__word { fill: var(--text); }
.brand-sub { font-family: var(--f-mono); font-size: var(--t-xs); line-height: 1.35; color: var(--gold); border: 1px solid currentColor; padding: 0.2rem 0.5rem; white-space: nowrap; }
.statusbox { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; min-width: 0; }
.net { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--text-2); }
.muted { color: var(--muted); font-size: var(--t-sm); }

.banner { max-width: var(--measure); margin: 0 auto; padding: 0.5rem var(--s5); font-size: var(--t-sm); }
.banner-error { color: var(--red); border-top: 1px solid var(--red); background: var(--red-soft); }
.banner-warn { color: var(--amber); border-top: 1px solid var(--amber); background: var(--amber-soft); }

/* ---- chips ----------------------------------------------------------- */
/* status tags: DM Mono in a 1 px border (brand status badge) */
.chip {
  display: inline-block; font-family: var(--f-mono);
  font-size: var(--t-xs); font-weight: 500; letter-spacing: 0;
  padding: 0.15rem 0.5rem; border: 1px solid currentColor;
  white-space: nowrap; line-height: 1.35;
}
.chip-current { background: var(--green-soft); color: var(--green); }
.chip-stale { background: var(--amber-soft); color: var(--amber); }
.chip-error { background: var(--red-soft); color: var(--red); }
.chip-unknown { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.chip-tie { background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(169, 189, 146, 0.45); }
.chip-near { background: var(--green-soft); color: var(--green); border: 1px solid rgba(123, 216, 143, 0.45); }
.chip-indet { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(232, 195, 90, 0.45); }
.chip-deficit { background: var(--red-soft); color: var(--red); border: 1px solid rgba(228, 96, 78, 0.5); }
.chip-pass { background: transparent; color: var(--green); border: 1px solid rgba(123, 216, 143, 0.45); }
.chip-section { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }

/* ---- layout ---------------------------------------------------------- */
main { max-width: var(--measure); min-width: 0; margin: 0 auto; padding: var(--s5) var(--s5) var(--s6); }
section { min-width: 0; }

.hero { padding: var(--s7) 0 var(--s5); max-width: 56rem; }
/* eyebrow = the brand's stamped mono tag, tilted like section tags on aurifern.com */
.eyebrow { display: inline-block; margin: 0 0 var(--s5); padding: 0.25rem 0.6rem; color: var(--gold); border: 1px solid currentColor; font-size: 0.8125rem; font-family: var(--f-mono); letter-spacing: 0.01em; line-height: 1.35; transform: rotate(-1deg); }
.hero h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); line-height: 1; letter-spacing: -0.03em; margin: 0 0 var(--s5); }
.lede { font-size: var(--t-md); line-height: 1.5; color: var(--text-2); margin: 0; max-width: 46rem; }

/* decision summary: three distinct states */
.state-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.state {
  min-width: 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-raise); border-top-width: 3px;
}
.state-ops { border-top-color: var(--blue); }
.state-hist { border-top-color: var(--gold); }
.state-fresh { border-top-color: var(--amber); }
.state-k { margin: 0 0 var(--s2); font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); }
.idx { display: inline-block; min-width: 1.3em; color: var(--text-2); font-family: var(--f-mono); }
.state-v { margin: 0 0 var(--s2); font-family: var(--f-serif); font-size: var(--t-lg); line-height: 1.2; }
.state-hist .state-v { color: var(--gold); }
.state-note { margin: 0; font-size: var(--t-sm); color: var(--text-2); }

/* proven / open / next */
.ledger { margin-top: var(--s5); }
.ledger-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ledger-col { min-width: 0; padding: var(--s4) var(--s4) var(--s3); }
.ledger-col + .ledger-col { border-left: 1px solid var(--line); }
.ledger-col h3 { margin: 0 0 var(--s3); font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; }
.col-proven h3 { color: var(--green); }
.col-open h3 { color: var(--amber); }
.ledger-col ul { list-style: none; margin: 0; padding: 0; }
.ledger-col li { font-size: var(--t-sm); color: var(--text-2); margin: 0 0 var(--s3); padding-left: 0.95rem; position: relative; }
.ledger-col li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 1px; background: currentColor; opacity: 0.6; }

/* numbered blocks */
.block { margin-top: var(--s7); }
/* section head as on aurifern.com: light outlined-tone numeral, display heading, mono tag;
   sections are divided by the dashed rule */
.block-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: var(--s3) var(--s4); padding: var(--s5) 0 var(--s3); margin-bottom: var(--s4); background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 16px) top left / 100% 1.5px no-repeat; }
.block-idx { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); line-height: 0.85; letter-spacing: -0.04em; color: #56684f; }
.block h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--t-lg); line-height: 1.05; letter-spacing: -0.02em; text-transform: none; color: var(--text); border: 0; padding: 0; min-width: 0; }
.block-tag { margin: 0; justify-self: end; align-self: center; padding: 0.2rem 0.5rem; border: 1px solid currentColor; font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; line-height: 1.35; color: var(--muted); transform: rotate(-1deg); white-space: nowrap; }
.tag-hist { color: var(--gold); }
.tag-fresh { color: var(--amber); }
.block-lede { color: var(--text-2); max-width: 50rem; margin: 0 0 var(--s4); }
.sub-h { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); margin: var(--s5) 0 var(--s3); font-weight: 500; }
.fine { font-size: var(--t-sm); color: var(--muted); margin: var(--s3) 0 0; max-width: 50rem; }

/* historical parity */
.parity { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--s5); align-items: start; }
.big { margin: 0; font-family: var(--f-serif); line-height: 1; color: var(--gold); }
.big-n { font-size: clamp(3.6rem, 2.6rem + 3.4vw, 5.4rem); }
.big-d { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: var(--text-2); }
.big-cap { margin: var(--s3) 0 0; color: var(--text-2); font-size: var(--t-sm); max-width: 22rem; }
.parity-gates { display: grid; gap: var(--s4); min-width: 0; }
.gb-k { margin: 0 0 0.35rem; font-size: var(--t-sm); color: var(--text-2); display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.gb-v { font-family: var(--f-mono); color: var(--text); }
.bar { position: relative; height: 8px; background: var(--bg-raise2); border-radius: 0; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 0; transition: width 600ms ease; }
.fill-hist { background: var(--gold); }
.fill-fresh { background: var(--amber); }
.bar-fill.is-unknown { width: 100%; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--hatch) 6px 12px); }
.bar-split { display: flex; }
.seg { display: block; height: 100%; width: calc(var(--p) * 100%); }
.seg + .seg { border-left: 2px solid var(--bg); }
.seg-1, .lg-1 { background: var(--gold); }
.seg-2, .lg-2 { background: var(--ember-2); }
.seg-3, .lg-3 { background: var(--ember-3); }
.legend { margin: 0.45rem 0 0; font-size: var(--t-xs); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.lg { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 0; margin-right: -0.3rem; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s5); margin: var(--s5) 0 0; }
.facts > div { min-width: 0; border-top: 1px solid var(--line); padding-top: var(--s2); }
.facts dt { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); margin-bottom: 0.15rem; }
.facts dd { margin: 0; font-size: var(--t-sm); color: var(--text-2); overflow-wrap: anywhere; }
.facts-tight { grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin-top: var(--s3); }

.boundary { margin-top: var(--s5); border-left: 2px solid var(--gold); padding: var(--s2) var(--s4); background: var(--gold-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.boundary p { margin: 0; font-size: var(--t-sm); color: var(--text-2); }
.boundary .boundary-k { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--gold); margin-bottom: 0.2rem; }

/* fresh campaign */
.fresh-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: var(--s5); align-items: start; margin-bottom: var(--s5); }
.verdict-box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s4); min-width: 0; }
.vb-k { margin: 0; font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); }
.vb-v { margin: var(--s1) 0 var(--s2); font-family: var(--f-mono); font-size: var(--t-lg); letter-spacing: 0.04em; color: var(--amber); overflow-wrap: anywhere; }
.vb-v.v-pass { color: var(--green); }
.vb-v.v-nopass { color: var(--red); }
.tag-fresh.v-pass { color: var(--green); }
.tag-fresh.v-nopass { color: var(--red); }
.vb-note { margin: 0; font-size: var(--t-sm); color: var(--text-2); }
.progress { display: grid; gap: var(--s3); min-width: 0; }
.prog-k { margin: 0 0 0.3rem; font-size: var(--t-sm); color: var(--text-2); }
.gate-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.gate-cols > * { min-width: 0; }
.gate-h { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); margin: 0 0 var(--s2); font-weight: 600; }
.gate-h + .gate-list + .gate-h, .gate-list + .gate-h { margin-top: var(--s4); }
.gate-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gate-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 0.8fr) 5.2rem; gap: var(--s2); align-items: baseline; padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.g-name { color: var(--text-2); min-width: 0; }
.g-thr { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); }
.g-obs { font-family: var(--f-mono); font-size: var(--t-xs); text-align: right; color: var(--text); }
.g-obs.unknown { color: var(--muted); font-style: italic; }
.g-st { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; text-align: right; }
.g-met .g-st { color: var(--green); }
.g-unmet .g-st { color: var(--red); }
.g-open .g-st { color: var(--amber); }

/* frozen window stats */
.identity { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); margin: 0 0 var(--s3); overflow-wrap: anywhere; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-grid > p { background: var(--bg); margin: 0; padding: var(--s3); }
.stat { background: var(--bg); padding: var(--s3) var(--s3) 0.65rem; min-width: 0; }
.stat .k { color: var(--muted); font-size: 0.68rem; font-family: var(--f-mono); letter-spacing: 0.01em; display: block; margin-bottom: 0.2rem; }
.stat .v { font-family: var(--f-mono); font-size: 0.92rem; font-weight: 500; overflow-wrap: anywhere; color: var(--text); }
.stat .v.unknown, .v.unknown { color: var(--amber); font-weight: 400; font-style: italic; }
.unknown-note { margin-top: var(--s3); font-size: var(--t-sm); color: var(--amber); border: 1px dashed var(--amber); border-radius: var(--radius); padding: var(--s2) var(--s3); overflow-wrap: anywhere; }

/* auction table */
.table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; border: 1.5px solid var(--line); background: rgba(25, 34, 26, 0.6); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
.table-wrap > table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--t-sm); }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { color: var(--muted); font-size: var(--t-xs); font-weight: 400; font-family: var(--f-mono); letter-spacing: 0.01em; background: var(--bg-raise); border-bottom-color: var(--line-strong); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-raise); }
td.num, th.num { text-align: right; white-space: nowrap; font-family: var(--f-mono); }
tbody td:first-child { font-family: var(--f-mono); }
/* scroll sideways on phones instead of breaking dates over four lines */
.pub .table-wrap > table th, .pub .table-wrap > table td, .ops .table-wrap > table th, .ops .table-wrap > table td { white-space: nowrap; }

/* case cards */
.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: var(--s3); }
.case { min-width: 0; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); }
.case.case-appendix { border-style: dashed; border-color: rgba(228, 96, 78, 0.5); }
.case-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s2); }
.case-head .aid { font-family: var(--f-mono); font-weight: 600; font-size: var(--t-base); margin-right: auto; }
.case-summary { color: var(--text-2); font-size: var(--t-sm); margin: 0 0 var(--s3); }
.case-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: var(--s4); }
.case-cols > * { min-width: 0; }
.case h4 { margin: 0 0 var(--s2); font-size: 0.68rem; font-weight: 600; font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); }
.route { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); color: var(--text-2); }
.route li { position: relative; padding: 0 0 0.45rem 1.2rem; margin: 0; }
.route li::before { content: ""; position: absolute; left: 0.18rem; top: 0.45em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--bg-raise); border: 2px solid var(--gold); }
.route li:not(:last-child)::after { content: ""; position: absolute; left: 0.52rem; top: 1.15em; bottom: -0.1em; width: 1px; background: var(--line-strong); }
.route li.step-end::before { border-color: var(--green); background: var(--green); }
.route li.step-fail::before { border-color: var(--red); background: var(--red); }
.kv { width: 100%; font-size: var(--t-xs); border-collapse: collapse; table-layout: fixed; }
.kv td { padding: 0.18rem 0.4rem 0.18rem 0; border-bottom: none; vertical-align: top; }
.kv td:first-child { color: var(--muted); width: 46%; }
.kv td:last-child { font-family: var(--f-mono); color: var(--text); overflow-wrap: anywhere; }
.digest { color: var(--muted); font-family: var(--f-mono); font-size: 0.7rem; word-break: break-all; margin: var(--s2) 0 0; }


/* appendix */
.appendix details { border-top: 1px solid var(--line); }
.appendix details:last-of-type { border-bottom: 1px solid var(--line); }
.appendix summary { cursor: pointer; padding: var(--s3) 0; font-family: var(--f-display); font-size: var(--t-md); list-style: none; display: flex; align-items: center; gap: var(--s2); }
.appendix summary::-webkit-details-marker { display: none; }
.appendix summary::before { content: "+"; font-family: var(--f-mono); color: var(--gold); width: 1rem; }
.appendix details[open] > summary::before { content: "\2212"; }
.appendix details > ul { margin: 0 0 var(--s4); padding-left: 1.1rem; color: var(--text-2); font-size: var(--t-sm); max-width: 56rem; }
.appendix details > ul li { margin-bottom: var(--s2); }
.defs { margin: 0 0 var(--s4); display: grid; gap: var(--s2); font-size: var(--t-sm); }
.defs > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s2); }
.defs dt { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--text); overflow-wrap: anywhere; }
.defs dd { margin: 0; color: var(--text-2); }

footer { border-top: 1.5px solid var(--line); margin-top: var(--s7); }
footer .foot { max-width: var(--measure); margin: 0 auto; padding: var(--s5); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; }
footer .muted { display: block; max-width: var(--measure); margin: 0 auto; padding: 0.8rem 1rem; font-size: 0.76rem; }

/* ---- D2 charts ------------------------------------------------------- */
/* Sizes flow through the --p custom property, set by site.js via CSSOM
   (style-src 'self' forbids inline style attributes, not CSSOM). */
.present-btn { display: inline-flex; align-items: center; min-height: 2.25rem; font-size: var(--t-sm); font-weight: 500; color: var(--text); border: 1.5px solid var(--text-2); padding: 0.3rem 0.85rem; text-decoration: none; white-space: nowrap; }
.present-btn:hover { color: var(--text); background: rgba(236, 230, 214, 0.08); }
.present-btn[aria-pressed="true"] { background: var(--af-ember); color: var(--af-bark); border-color: var(--af-bark); box-shadow: 4px 4px 0 var(--af-fern); }
.chart { margin: 0; min-width: 0; }
.chart figcaption { margin: 0 0 var(--s3); }
.chart-title { margin: 0; font-size: var(--t-sm); color: var(--text); font-weight: 600; }
.chart-scope { margin: 0.15rem 0 0; font-size: var(--t-xs); color: var(--muted); max-width: 52rem; }
.chart-text { margin: var(--s2) 0 0; font-size: var(--t-sm); color: var(--text-2); max-width: 52rem; }
.asof { margin: 0.25rem 0 0; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; }
.fallback { margin-top: var(--s3); }
.fallback > summary { cursor: pointer; font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--text-2); padding: 0.2rem 0; }
.fallback .table-wrap { margin-top: var(--s2); }
.table-short { max-height: 18rem; overflow-y: auto; }
.table-short > table { min-width: 420px; }
.seg-equal, .lg-equal { background: var(--gold); }
.seg-above, .lg-above { background: var(--green); }
.seg-below, .lg-below { background: var(--red); }
.seg-c1 { background: var(--gold); }
.seg-c2 { background: var(--ember-2); }
.seg-c3 { background: var(--ember-3); }
.strip-k { margin-top: var(--s2); }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 2px; }
.strip .cell { display: grid; grid-template-rows: 1fr 1fr; gap: 1px; height: 30px; min-width: 0; border-bottom: 3px solid transparent; }
.strip .cell-c1 { border-bottom-color: var(--gold); }
.strip .cell-c2 { border-bottom-color: var(--ember-2); }
.strip .cell-c3 { border-bottom-color: var(--ember-3); }
.strip .half { display: block; border-radius: 0; }
.half.o-equal { background: var(--gold); }
.half.o-above { background: var(--green); }
.half.o-below { background: var(--red); }
.strip-empty, .series-empty { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--amber); border: 1px dashed var(--amber); border-radius: var(--radius); padding: var(--s2) var(--s3); list-style: none; }

/* proof ladder */
.ladder { margin-top: var(--s6); }
.ladder-h { margin: 0 0 var(--s3); font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); font-weight: 600; }
.ladder-sub { letter-spacing: 0.02em; text-transform: none; font-weight: 400; }
.rungs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); counter-reset: rung; }
.rung { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); background: var(--bg-raise); display: grid; gap: 0.3rem; align-content: start; position: relative; }
.rung-k { font-family: var(--f-serif); font-size: var(--t-md); color: var(--text); }
.rung-v { font-size: var(--t-xs); color: var(--text-2); }
.rung-st { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; }
.r-ok { color: var(--green); }
.r-warn { color: var(--amber); }
.r-open { color: var(--red); }

/* runtime clocks + rolling series */
.tag-series.s-live { color: var(--green); }
.tag-series.s-collecting, .tag-series.s-stale { color: var(--amber); }
.tag-series.s-unavailable { color: var(--red); }
.clocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
.clocks > div { min-width: 0; border-top: 1px solid var(--line); padding-top: var(--s2); }
.clocks dt { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); }
.clocks dd { margin: 0.15rem 0 0; font-family: var(--f-mono); font-size: var(--t-sm); color: var(--text); overflow-wrap: anywhere; }
.clock-n { margin: 0.15rem 0 0; font-size: var(--t-xs); color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(96, minmax(0, 1fr)); gap: 1px; height: 72px; align-items: end; border-bottom: 1px solid var(--line-strong); }
.tick { height: 100%; min-width: 0; display: flex; align-items: flex-end; position: relative; }
.tick-bar { display: block; width: 100%; height: calc(var(--p, 0) * 100%); border-radius: 0 1px 0 0; }
.t-full .tick-bar { background: var(--green); }
.t-part .tick-bar { background: var(--amber); }
.t-gap { background: var(--red-soft); }
.t-gap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.t-nc { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--hatch) 3px 6px); }
.t-stale::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--amber); }
.lg-full { background: var(--green); }
.lg-part { background: var(--amber); }
.lg-gap { background: var(--red); }
.lg-nc { background: repeating-linear-gradient(135deg, transparent 0 2px, rgba(160, 157, 139, 0.5) 2px 4px); border: 1px solid var(--line-strong); }
.lg-stale { background: transparent; border-top: 3px solid var(--amber); border-radius: 0; }
.axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); margin-top: 0.2rem; }

/* frozen-window filters (log scale) */
.funnel-chart { margin: 0 0 var(--s5); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.fn-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 5rem; gap: 0.2rem var(--s3); align-items: center; font-size: var(--t-sm); }
.fn-k { color: var(--text-2); }
.fn-bar { position: relative; height: 10px; background: var(--bg-raise2); border-radius: 0; overflow: hidden; }
.fn-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--blue); }
.fn-fill.is-unknown { width: 100%; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--hatch) 6px 12px); }
.fn-v { font-family: var(--f-mono); text-align: right; color: var(--text); }
.fn-v.unknown { color: var(--amber); font-style: italic; }
.fn-n { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--muted); margin-top: -0.15rem; }

/* ---- presentation mode ---------------------------------------------- */
/* Same content; larger type and one section per screen. */
body.present { font-size: 1.12rem; }
body.present main { max-width: 1320px; }
body.present [data-slide] { min-height: calc(100vh - 4rem); scroll-margin-top: 3.4rem; padding-top: var(--s5); }
body.present .hero h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
body.present .lede, body.present .block-lede { font-size: 1.2rem; }
body.present .state-v { font-size: 1.7rem; }
body.present .ticks { height: 120px; }
body.present .strip .cell { height: 44px; }

/* ---- responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
  .case-list { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .state-grid, .ledger-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger-col + .ledger-col { border-left: 0; border-top: 1px solid var(--line); }
  .parity, .fresh-top, .gate-cols { grid-template-columns: minmax(0, 1fr); }
  .rungs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(20, minmax(0, 1fr)); }
  /* keep all 96 buckets so the stated 24 h window and axis stay true */
  .ticks { gap: 0; }
}
@media (max-width: 700px) {
  .case-cols { grid-template-columns: minmax(0, 1fr); }
  .topbar-inner { padding: 0.55rem var(--s4); }
  .banner { padding: 0.45rem var(--s4); }
  main { padding: var(--s3) var(--s4) var(--s5); }
  .hero { padding: var(--s5) 0 var(--s4); }
  .block { margin-top: var(--s6); }
  .block-head { grid-template-columns: auto minmax(0, 1fr); }
  .block-tag { grid-column: 1 / -1; justify-self: start; }
  .lockup { height: 1.1rem; }
  .topbar-inner { min-height: 3.5rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .table-wrap > table { min-width: 560px; }
  .gate-row { grid-template-columns: minmax(0, 1fr) auto; }
  .gate-row .g-thr { grid-column: 1; grid-row: 2; }
  .gate-row .g-obs { grid-column: 2; grid-row: 1; }
  .gate-row .g-st { grid-column: 2; grid-row: 2; }
  .defs > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .rungs, .clocks { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .fn-row { grid-template-columns: minmax(0, 1fr) 4.5rem; }
  .fn-row .fn-bar { grid-column: 1 / -1; grid-row: 2; }
  body.present [data-slide] { min-height: 0; }
  footer .foot { padding: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* shared charts (charts.js): public live section + operator view */
/* Series colours come from the brand palette and keep their brand meaning:
   fern = good, pollen = needs a look, rust = failure, ember = volume/brand, neutral = everything
   else. Hues differ AND lightness differs, and every chart has a legend, tooltip and table. */
:root {
  --series-1: var(--af-pollen);  /* ops: simulation failed (mostly the winner settling first) */
  --series-2: var(--af-rust);    /* ops: timeout */
  --series-3: #8d8a79;           /* ops: empty solution */
  --series-4: var(--af-fern);    /* ops: other / no verdict yet (no complaint from CoW) */
  --s-ok: var(--af-fern);        /* public: answered in time */
  --s-late: var(--af-pollen);    /* public: answered late */
  --s-none: var(--af-rust);      /* public: no answer */
  --l-p50: var(--af-fern);       /* answer time: typical */
  --l-p95: var(--af-ember);      /* answer time: slowest 5% */
  --volume: var(--af-ember);
  --grid: #26321f;
}
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.ops-chart { margin: 0; background: var(--bg-raise); border: 1.5px solid var(--line); padding: var(--s4) var(--s4) var(--s3); min-width: 0; }
.ops-chart .chart-title { margin: 0; color: var(--text); font-family: var(--f-display); font-weight: 500; font-size: var(--t-md); letter-spacing: -0.01em; line-height: 1.2; }
.ops-chart .chart-scope { margin: var(--s1) 0 var(--s3); color: var(--muted); font-family: var(--f-mono); font-size: var(--t-xs); }
.ops-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ops-chart .axis-t { fill: var(--muted); font-size: 10px; font-family: var(--f-mono); }
.ops-chart .grid-l { stroke: var(--grid); stroke-width: 1; }
.ops-chart .base-l { stroke: var(--line-strong); stroke-width: 1; }
.ops-chart .hit { fill: transparent; cursor: crosshair; }
.ops-chart .hit:hover + .hover-l, .ops-chart .hover-l.on { stroke: var(--text-2); }
.ops-chart .hover-l { stroke: transparent; stroke-width: 1; pointer-events: none; }
.bar-v { fill: var(--volume); }
.bar-s1 { fill: var(--series-1); } .bar-s2 { fill: var(--series-2); } .bar-s3 { fill: var(--series-3); } .bar-s4 { fill: var(--series-4); }
.bar-ok { fill: var(--s-ok); } .bar-late { fill: var(--s-late); } .bar-none { fill: var(--s-none); }
/* answered, but no answer time or deadline recorded: neither on time nor late */
.bar-unk { fill: var(--muted); fill-opacity: 0.55; } .bar-bad { fill: var(--red); }
.line-s1 { stroke: var(--l-p50); stroke-width: 2; fill: none; } .line-s2 { stroke: var(--l-p95); stroke-width: 2; fill: none; }
.ops-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s2) 0 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--text-2); }
.ops-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.sw { width: 0.7rem; height: 0.7rem; border-radius: 0; display: inline-block; }
.sw-v { background: var(--volume); } .sw-1 { background: var(--series-1); } .sw-2 { background: var(--series-2); } .sw-3 { background: var(--series-3); } .sw-4 { background: var(--series-4); }
.sw-ok { background: var(--s-ok); } .sw-late { background: var(--s-late); } .sw-none { background: var(--s-none); }
.sw-unk { background: var(--muted); opacity: 0.55; } .sw-bad { background: var(--red); }
.sw-l1 { height: 2px; background: var(--l-p50); } .sw-l2 { height: 2px; background: var(--l-p95); }
/* leading hours before the first recorded data are not drawn (see charts.js trimLeading) */
.chart-note { margin: var(--s1) 0 0; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); }
.chart-sum { margin: var(--s2) 0 0; font-size: var(--t-sm); color: var(--text-2); }
.ops-chart details { margin-top: var(--s2); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); }
.ops-chart details > summary { cursor: pointer; }
.ops-chart details table { font-size: var(--t-xs); }
.empty-note { color: var(--muted); font-size: var(--t-sm); margin: var(--s4) 0; }
.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--bg-raise2); border: 1px solid var(--line-strong); border-radius: 0; padding: 0.45rem 0.6rem; font-size: var(--t-xs); color: var(--text); max-width: 16rem; left: var(--tx, 0); top: var(--ty, 0); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); }
.tip b { display: block; color: var(--text-2); font-weight: 500; margin-bottom: 0.2rem; }
.tip span { display: flex; justify-content: space-between; gap: var(--s3); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 0; overflow: hidden; }
.seg button { background: transparent; color: var(--text-2); border: 0; padding: 0.35rem 0.8rem; font: inherit; font-family: var(--f-mono); font-size: var(--t-xs); cursor: pointer; min-height: 2.25rem; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--af-ember); color: var(--af-bark); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5px; background: var(--line); border: 1.5px solid var(--line); overflow: hidden; }
.tile { background: var(--bg-raise); padding: var(--s4); min-width: 0; }
.tile-k { margin: 0; font-size: var(--t-xs); color: var(--muted); font-family: var(--f-mono); letter-spacing: 0.01em; }
.tile-v { margin: var(--s2) 0 0; font-family: var(--f-display); font-weight: 400; font-size: var(--t-lg); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.tile-n { margin: var(--s1) 0 0; font-size: var(--t-sm); color: var(--text-2); }
.tile.hl { background: var(--bg-raise2); }
.tile .st-bad { color: var(--red); }
.tile .st-good { color: var(--green); }
.seg-row { display: flex; justify-content: flex-end; margin: 0 0 var(--s3); }
.live .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--s4); }
.live-scope { margin: var(--s1) 0 var(--s3); color: var(--muted); font-family: var(--f-mono); font-size: var(--t-xs); }
.live-note { margin: 0 0 var(--s3); max-width: 50rem; color: var(--text-2); font-size: var(--t-sm); }
.line-ref { stroke: var(--af-bone); stroke-opacity: 0.7; stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.sw-ref { height: 0; border-top: 2px dashed var(--af-bone); background: none; }
.archive-d { border-top: 1px solid var(--line); }
.archive-d:last-of-type { border-bottom: 1px solid var(--line); }
.archive-d > summary { cursor: pointer; padding: var(--s3) 0; color: var(--text-2); font-size: var(--t-base); }
.archive-d > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.archive-d > .block { margin-top: 0; padding-top: var(--s2); border-top: 0; }
@media (max-width: 900px) { .tiles, .live .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles, .live .tiles { grid-template-columns: minmax(0, 1fr); } }
.live-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--muted); display: inline-block; }
.live-dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.live-dot.warn { background: var(--amber); }
.live-dot.err { background: var(--red); }
/* feed fresh, engine healthy, no CoW auction for a while: normal between traffic blocks */
.live-dot.idle { background: var(--text-2); box-shadow: 0 0 0 3px var(--hatch); }
/* public presentation page */
.pub-hero .lede { max-width: 58rem; }
.headline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin: var(--s6) 0 0; }
.headline > div { border-top: 3px solid var(--af-fern); padding-top: var(--s3); min-width: 0; }
.headline > div:nth-child(2) { border-top-color: var(--af-ember); }
.headline > div:nth-child(3) { border-top-color: var(--af-lichen); }
.headline > div:nth-child(4) { border-top-color: var(--af-ember); }
.headline dt { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.01em; color: var(--muted); }
.headline dd { margin: var(--s2) 0 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.headline p { margin: var(--s1) 0 0; font-size: var(--t-sm); color: var(--text-2); }
.replay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s6); align-items: start; }
.replay-strip { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.rs { aspect-ratio: 1; border-radius: 0; background: var(--line-strong); }
.rs-equal { background: var(--gold); } .rs-above { background: var(--green); } .rs-below { background: var(--red); }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.how-grid article { background: rgba(25, 34, 26, 0.8); border: 1.5px dashed var(--line-strong); padding: var(--s5) var(--s4); }
.how-grid h3 { margin: 0 0 var(--s2); font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.05; letter-spacing: -0.02em; color: var(--text); font-weight: 400; }
.how-grid p { margin: 0; font-size: var(--t-sm); color: var(--text-2); }
.pub footer a, .foot a { color: var(--link); }
@media (max-width: 900px) {
  .headline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .replay { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .how-grid { grid-template-columns: minmax(0, 1fr); } .replay-strip { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
/* clickable auctions + details dialog (public page) */
.sub-h { font-family: var(--f-display); font-weight: 500; font-size: var(--t-md); letter-spacing: -0.01em; margin: var(--s6) 0 var(--s2); color: var(--text); }
.click-table .linkish { background: none; border: 0; padding: 0; font: inherit; font-family: var(--f-mono); color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.click-table .linkish:focus-visible, .rs:focus-visible, .ad-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.outcome { font-family: var(--f-mono); font-size: var(--t-xs); padding: 0.15rem 0.45rem; border: 1px solid var(--line-strong); white-space: nowrap; }
.o-ok { color: var(--green); } .o-info { color: var(--amber); } .o-bad { color: var(--red); } .o-neutral { color: var(--text-2); }
.outcome.o-ok { border-color: rgba(123, 216, 143, 0.45); } .outcome.o-info { border-color: rgba(232, 195, 90, 0.45); } .outcome.o-bad { border-color: rgba(228, 96, 78, 0.5); }
/* "settled by another solver first": the normal shadow outcome, deliberately neither good nor bad */
.outcome.o-neutral { border-color: var(--line-strong); border-style: dashed; }
.table-note { margin: var(--s2) 0 0; font-size: var(--t-sm); color: var(--text-2); max-width: 50rem; }
.more-row { display: flex; justify-content: flex-start; margin: var(--s3) 0 0; }
.more-btn { background: transparent; color: var(--text); border: 1.5px solid var(--text-2); padding: 0.45rem 1rem; min-height: 2.5rem; font: inherit; font-size: var(--t-sm); font-weight: 500; cursor: pointer; }
.more-btn:hover { background: rgba(236, 230, 214, 0.08); }
.more-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.replay-strip li { list-style: none; display: block; }
button.rs { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; }
button.rs:hover { filter: brightness(1.2); }
.ad { background: var(--bg-raise); color: var(--text); border: 1.5px solid var(--line-strong); padding: var(--s5); width: min(34rem, calc(100vw - 2rem)); box-shadow: 8px 8px 0 var(--af-ember); }
.ad::backdrop { background: rgba(10, 14, 9, 0.75); }
.ad h2 { margin: var(--s1) 0 var(--s4); font-family: var(--f-display); font-weight: 400; }
.ad-close-form { float: right; margin: 0; }
.ad-close { background: none; border: 0; color: var(--text-2); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.ad-facts { margin: 0; display: grid; gap: var(--s2); }
.ad-facts > div { display: flex; justify-content: space-between; gap: var(--s4); border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.ad-facts dt { color: var(--muted); font-size: var(--t-sm); }
.ad-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ad-bar { height: 6px; background: var(--line); border-radius: 0; margin: var(--s3) 0 0; overflow: hidden; }
.ad-bar-fill { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--gold); }
.ad-note { color: var(--text-2); font-size: var(--t-sm); margin: var(--s4) 0 var(--s3); }
.ad-links a { color: var(--link); font-size: var(--t-sm); }

/* against the winners (public page, section 03) */
.caveat { margin: 0 0 var(--s4); max-width: 50rem; padding: var(--s3) var(--s4); border: 1.5px dashed var(--af-pollen); color: var(--text-2); font-size: var(--t-sm); }
.caveat strong { color: var(--af-pollen); font-weight: 600; }
.pub .table-wrap > table.field-table { min-width: 860px; }
.pub .table-wrap > table td.how { white-space: normal; min-width: 26rem; color: var(--text-2); }
.field-table tbody td:first-child { font-family: var(--f-sans); font-weight: 500; }
.field-table tr.row-replay td { border-top: 1.5px dashed var(--af-ember); background: rgba(242, 131, 58, 0.06); }
.field-table tr.row-replay .outcome { margin-left: var(--s1); }
.explain { max-width: 50rem; }
/* phones: the two section-03 tables stack into cards instead of scrolling sideways */
@media (max-width: 700px) {
  .pub .table-wrap > table.field-table, .pub .table-wrap > table.cmp-table { min-width: 0; }
  .field-table thead, .cmp-table thead { display: none; }
  .field-table tr, .cmp-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem var(--s3); padding: var(--s3); border-bottom: 1px solid var(--line); }
  .field-table tbody tr:last-child, .cmp-table tbody tr:last-child { border-bottom: 0; }
  .pub .field-table td, .pub .cmp-table td { border: 0; padding: 0; background: none; }
  .field-table tr.row-replay td { border: 0; background: none; }
  .field-table tr.row-replay { border-top: 1.5px dashed var(--af-ember); background: rgba(242, 131, 58, 0.06); }
  .field-table td.share, .pub .table-wrap > table td.how { grid-column: 1 / -1; text-align: left; min-width: 0; }
  .field-table td.share::after { content: " of winning score"; font-family: var(--f-sans); color: var(--muted); }
  .field-table td.share.none { display: none; }
  .field-table td.wins::after { content: " wins"; font-family: var(--f-sans); color: var(--muted); }
  .cmp-table td:nth-child(1) { grid-row: 1; grid-column: 1; }
  .cmp-table td:nth-child(6) { grid-row: 1; grid-column: 2; }
  .cmp-table td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; color: var(--text-2); }
  .cmp-table td:nth-child(3) { grid-row: 3; grid-column: 1; }
  .cmp-table td:nth-child(4) { grid-row: 3; grid-column: 2; }
  .cmp-table td:nth-child(5) { grid-row: 4; grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--s3); }
  .cmp-table td:nth-child(5)::before { content: "Aurifern, replayed"; font-family: var(--f-sans); color: var(--text-2); }
}
