/* RoRo Quantum use cases: the shared sheet of the two decks (fair draw, finance), in brand v5.
   Cool paper, deep ink, one petrol accent, hairlines instead of shadows, squared corners, wide
   uppercase labels, figures in mono. One page, read as a keyboard presentation on desktop and a
   swipe story on phones. Self-hosted: the faces sit in ../fonts, no third-party request.
   This file is the same bytes in web/fair-draw/css and web/finance-usecase/css. */

/* The brand faces, copied from the product's brand package with their licences (../fonts/*-OFL.txt).
   Archivo and Archivo Expanded are one variable-weight file per subset; a unicode-range tells the
   browser which file holds a character, so an English page never downloads latin-ext. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/archivo-var-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/archivo-var-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo Expanded"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/archivo-expanded-var-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo Expanded"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/archivo-expanded-var-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/jetbrains-mono-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── roles ────────────────────────────────────────────────────────────────────────────────
   Light is the ground the site is read on; the dark set is the brand's cool dark ramp and follows
   the system setting or the header's switch. Every colour below is a brand v5 value.
   What a chart or a figure reads: --roro (the run on real hardware) is the one accent, --q
   (textbook quantum) is ink, --ai (the classical reference) is muted, --wall (the classical
   ceiling) and --lose are the critical tone, --win the positive tone. */
:root {
  --bg: #f9fbfc; --bg-1: #ffffff; --bg-2: #f2f7f8; --bg-3: #d5dee0;
  --card: #ffffff;
  --line: #d5dee0; --line-2: #becacd; --edge: #808e92;
  --tx: #091619; --tx-2: #38484c; --mu: #627174; --dim: #97a4a8;
  --on-tx: #ffffff; --tx-hover: #203135;
  --accent: #004c5d; --accent-hover: #003642; --accent-tint: #edf8fb; --accent-line: #daf0f6;
  --positive: #007563; --positive-tint: #e6f8f3; --positive-line: #bae3d9;
  --caution: #955e00; --caution-tint: #fdf2dd; --caution-line: #ebd3a1;
  --critical: #951f1d; --critical-tint: #ffefec; --critical-line: #f9cdc7;
  --progress: #1d49a0; --progress-tint: #eef4ff; --progress-line: #c9daf8;
  --field-ring: 0 0 0 3px rgba(0, 76, 93, .16);
  --signal-a: #132d94; --signal-b: #007382; --signal-c: #1ca44f;
  --roro: var(--accent); --on-roro: var(--on-tx); --q: var(--tx); --ai: var(--mu);
  --wall: var(--critical); --win: var(--positive); --lose: var(--critical);
  --desk-a: var(--tx); --desk-b: var(--mu);
  --f-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --f-ui: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-chip: 2px; --r-control: 4px; --r-card: 6px;
  --bar: 62px;
  --pad: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #091619; --bg-1: #122125; --bg-2: #040e11; --bg-3: #203135;
    --card: #122125;
    --line: #203135; --line-2: #38484c; --edge: #627174;
    --tx: #f2f7f8; --tx-2: #d5dee0; --mu: #97a4a8; --dim: #627174;
    --on-tx: #040e11; --tx-hover: #ffffff;
    --accent: #90c8d8; --accent-hover: #bbe0ec; --accent-tint: #00242e; --accent-line: #02667a;
    --positive: #5cceb7; --positive-tint: #122125; --positive-line: #38484c;
    --caution: #e6b55d; --caution-tint: #122125; --caution-line: #38484c;
    --critical: #f68678; --critical-tint: #122125; --critical-line: #38484c;
    --progress: #90c8d8; --progress-tint: #122125; --progress-line: #38484c;
    --field-ring: 0 0 0 3px rgba(144, 200, 216, .24);
    --signal-a: #5283e0; --signal-b: #48b7c2; --signal-c: #5edb81;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #091619; --bg-1: #122125; --bg-2: #040e11; --bg-3: #203135;
  --card: #122125;
  --line: #203135; --line-2: #38484c; --edge: #627174;
  --tx: #f2f7f8; --tx-2: #d5dee0; --mu: #97a4a8; --dim: #627174;
  --on-tx: #040e11; --tx-hover: #ffffff;
  --accent: #90c8d8; --accent-hover: #bbe0ec; --accent-tint: #00242e; --accent-line: #02667a;
  --positive: #5cceb7; --positive-tint: #122125; --positive-line: #38484c;
  --caution: #e6b55d; --caution-tint: #122125; --caution-line: #38484c;
  --critical: #f68678; --critical-tint: #122125; --critical-line: #38484c;
  --progress: #90c8d8; --progress-tint: #122125; --progress-line: #38484c;
  --field-ring: 0 0 0 3px rgba(144, 200, 216, .24);
  --signal-a: #5283e0; --signal-b: #48b7c2; --signal-c: #5edb81;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); }
body { font: 400 16px/26px var(--f-ui); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--tx); outline-offset: 2px; }
::selection { background: var(--tx); color: var(--on-tx); }

/* ── chrome: the signal line, the lockup, where you are, the theme switch ───────────────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: var(--bg); border-bottom: 1px solid var(--line); }
.signal { display: block; height: 2px; background: linear-gradient(90deg, var(--signal-a), var(--signal-b) 50%, var(--signal-c)); }
.top-in { display: flex; align-items: center; gap: 16px; height: var(--bar); max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--tx); text-decoration: none; line-height: 0; }
.brand:hover { color: var(--tx); }
.brand .rq-logo { display: inline-flex; align-items: center; color: inherit; }
.brand svg { display: block; width: 218px; height: 24px; flex: none; }
.brand .product { padding-left: 12px; border-left: 1px solid var(--line-2); font: 600 11px/16px var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--mu); white-space: nowrap; }
.progress { flex: 1; display: flex; gap: 4px; max-width: 480px; margin-left: auto; }
.progress button { flex: 1; height: 24px; padding: 0; border: 0; background: none; position: relative; }
.progress button::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line-2); transition: background-color .12s var(--ease); }
.progress button:hover::after { background: var(--edge); }
.progress button.done::after { background: var(--tx); }
.progress button.on::after { background: var(--accent); }
.counter { font: 500 12px/16px var(--f-mono); color: var(--mu); min-width: 52px; text-align: right; }
.theme-btn { width: 40px; height: 40px; border-radius: var(--r-control); border: 1px solid var(--edge); background: var(--bg-1); display: grid; place-items: center; flex: none; transition: border-color .12s var(--ease); }
.theme-btn:hover { border-color: var(--tx); }
.theme-btn svg { width: 18px; height: 18px; stroke: var(--tx); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.nav { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: max(var(--pad), calc((100vw - 1200px) / 2)); z-index: 20; display: flex; gap: 8px; align-items: center; }
.nav .hint { font: 400 12px/16px var(--f-ui); color: var(--mu); margin-right: 8px; }
.nav button { width: 44px; height: 44px; border-radius: var(--r-control); border: 1px solid var(--edge); background: var(--bg-1); display: grid; place-items: center; transition: border-color .12s var(--ease); }
.nav button:hover { border-color: var(--tx); }
.nav button:disabled { border-color: var(--line); background: var(--bg-2); pointer-events: none; }
.nav button:disabled svg { stroke: var(--dim); }
.nav svg { width: 18px; height: 18px; stroke: var(--tx); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* a notice under the header: caution for the preview data, critical when the results did not load */
.banner { position: fixed; left: 50%; top: calc(var(--bar) + 15px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); font: 500 13px/20px var(--f-ui); color: var(--caution); background: var(--caution-tint); border: 1px solid var(--caution-line); padding: 6px 12px; border-radius: var(--r-control); }
.banner.err { color: var(--critical); background: var(--critical-tint); border-color: var(--critical-line); }

/* ── deck ─────────────────────────────────────────────────────────────────────────────── */
.deck { position: fixed; inset: 0; z-index: 2; }
.slide { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: calc(var(--bar) + 43px + env(safe-area-inset-top, 0px)) var(--pad) 96px; display: flex; flex-direction: column; justify-content: safe center; opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), visibility 0s .18s; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .18s var(--ease); }
.slide > .in { width: 100%; max-width: 1200px; margin: 0 auto; min-width: 0; }

/* ── type ─────────────────────────────────────────────────────────────────────────────── */
.eyebrow { display: block; font: 600 11px/16px var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--mu); margin-bottom: 16px; }
.eyebrow b { color: var(--accent); font-weight: 600; }
h1, h2, h3 { margin: 0; color: var(--tx); text-wrap: balance; }
/* the one title of the page, in the wide face */
h1 { font: 500 clamp(28px, 3.4vw, 48px)/1.1 var(--f-display); letter-spacing: -.01em; }
h2 { font: 600 clamp(24px, 2.6vw, 36px)/1.16 var(--f-ui); letter-spacing: -.01em; max-width: 24ch; }
h2.closing { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.015em; max-width: none; }
h3 { font: 600 clamp(16px, 1.3vw, 18px)/1.35 var(--f-ui); letter-spacing: 0; }
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--tx-2); max-width: 60ch; margin: 16px 0 0; }
.lede.sm { font-size: clamp(14px, 1.1vw, 16px); }
:where(.lede, .card p) b { color: var(--tx); }
.small { font-size: 13px; line-height: 20px; color: var(--mu); }
.mono { font-family: var(--f-mono); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.c-ai { color: var(--ai); } .c-q { color: var(--q); } .c-roro { color: var(--roro); } .c-wall { color: var(--wall); }
.c-win { color: var(--win); } .c-lose { color: var(--lose); } .c-mu { color: var(--mu); }
/* the two desks are told apart by name; in the market chart by ink and muted */
.c-a, .c-b { color: var(--tx); font-weight: 600; }
em { font-style: normal; font-weight: 600; color: var(--tx); }

/* ── blocks ───────────────────────────────────────────────────────────────────────────── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.grid2.wide-r { grid-template-columns: .85fr 1.15fr; }
.grid2 > *, .grid3 > *, .grid4 > *, .big3 > * { min-width: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: end; }
.head-split .lede { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card.hl { border-color: var(--accent); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--tx-2); font-size: 15px; line-height: 24px; }
/* a tag is a small uppercase label in a 2px box; its dot is the key of a chart series */
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 20px; font: 600 10.5px/18px var(--f-display); letter-spacing: .14em; text-transform: uppercase; padding: 0 8px; border-radius: var(--r-chip); border: 1px solid var(--line); background: var(--bg-2); color: var(--tx-2); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.tag.ai i { background: var(--ai); } .tag.q i { background: var(--q); } .tag.wall i { background: var(--wall); }
.tag.roro { color: var(--accent); background: var(--accent-tint); border-color: var(--accent-line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: var(--r-control); padding: 0 20px; border: 1px solid var(--edge); background: var(--bg-1); font: 500 15px/20px var(--f-ui); white-space: nowrap; text-decoration: none; color: var(--tx); transition: background-color .12s var(--ease), border-color .12s var(--ease); }
.btn:hover { border-color: var(--tx); color: var(--tx); }
.btn.primary { background: var(--tx); color: var(--on-tx); border-color: var(--tx); }
.btn.primary:hover { background: var(--tx-hover); border-color: var(--tx-hover); color: var(--on-tx); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seg { display: inline-flex; gap: 2px; border: 1px solid var(--edge); border-radius: var(--r-control); padding: 2px; background: var(--bg-1); }
.seg button { border: 0; background: none; min-height: 28px; padding: 0 12px; border-radius: var(--r-chip); font: 500 12px/16px var(--f-mono); color: var(--mu); transition: background-color .12s var(--ease), color .12s var(--ease); }
.seg button:hover { color: var(--tx); }
.seg button.on { background: var(--tx); color: var(--on-tx); }
.state { display: inline-flex; align-items: center; min-height: 20px; font: 600 10.5px/18px var(--f-display); letter-spacing: .14em; text-transform: uppercase; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-chip); white-space: nowrap; vertical-align: 1px; }
.state.calm { background: var(--positive-tint); border-color: var(--positive-line); color: var(--positive); }
.state.stress { background: var(--critical-tint); border-color: var(--critical-line); color: var(--critical); }

.stats { display: flex; gap: 32px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stats b { display: block; font: 500 26px/32px var(--f-mono); font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: 13px; line-height: 20px; color: var(--mu); }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.big3 .card b { display: block; font: 500 clamp(32px, 3.6vw, 48px)/1 var(--f-mono); font-variant-numeric: tabular-nums; margin: 14px 0 8px; }
.big3 .card span:not(.tag) { font-size: 13px; line-height: 20px; color: var(--mu); }

.gauge { position: relative; height: 48px; margin-bottom: 28px; border-radius: var(--r-control); background: var(--bg-2); border: 1px solid var(--line); }
.gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px 0 0 3px; transition: width .32s var(--ease); }
.gauge .wall-line { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--wall); }
.gauge .q-line { position: absolute; top: -8px; bottom: -8px; border-left: 1px dashed var(--q); }
.gauge .lbl { position: absolute; top: -28px; transform: translateX(-50%); font: 500 11px/16px var(--f-mono); white-space: nowrap; }
.gauge .lbl.below { top: auto; bottom: -28px; }
/* the reading sits above the right end of the bar, clear of the fill and of the two marks */
.gauge .val { position: absolute; right: 0; top: -32px; font: 500 20px/24px var(--f-mono); font-variant-numeric: tabular-nums; }

.chart { width: 100%; height: auto; overflow: visible; display: block; }
/* a wide chart keeps a readable size on a phone and scrolls inside its own box */
.scroll-x { min-width: 0; }
.chart text { font: 400 11px var(--f-mono); fill: var(--mu); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; line-height: 20px; color: var(--tx-2); margin-top: 12px; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 8px; }

.days { display: grid; gap: 12px; }
.day { display: grid; grid-template-columns: 132px 1fr 1fr 160px; gap: 16px; align-items: center; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); }
.day.split { border-color: var(--critical-line); }
.day .date { font: 500 14px/20px var(--f-mono); }
.day .note { font-size: 12px; line-height: 18px; color: var(--mu); }
.day .mkt { display: grid; gap: 4px; justify-items: start; font-size: 14px; color: var(--tx-2); }
.day .verdict { font: 600 15px/20px var(--f-ui); text-align: right; }

.plan { display: grid; gap: 12px; }
.plan-desk { border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; background: var(--card); }
.plan-desk h3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 16px; }
.plan-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; line-height: 22px; }
.strat16 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 12px; }
.strat16 div { border-radius: var(--r-chip); border: 1px solid var(--line); background: var(--bg-1); padding: 6px 2px; text-align: center; font: 500 12px/16px var(--f-mono); color: var(--mu); }
.strat16 div.best { border-color: var(--wall); color: var(--wall); }
.strat16 div.mine { outline: 2px solid var(--tx); outline-offset: 1px; }

.qplay { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.qwin { border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; background: var(--card); display: grid; gap: 14px; }
.qdesk { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.qubit { min-width: 72px; height: 40px; padding: 0 12px; border-radius: var(--r-control); display: grid; place-items: center; font: 500 13px/16px var(--f-mono); border: 1px solid var(--accent-line); background: var(--accent-tint); color: var(--accent); }
.qubit.flip { animation: flip .18s var(--ease); }
@keyframes flip { from { opacity: .3; } }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
.tally div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; }
.tally b { display: block; font: 500 22px/28px var(--f-mono); }
.tally span { font-size: 12px; line-height: 16px; color: var(--mu); }

.eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr; gap: 12px; align-items: stretch; }
.eq .op { display: grid; place-items: center; font: 400 24px/1 var(--f-mono); color: var(--mu); }

.netbars { display: grid; gap: 16px; }
.netbar { display: grid; grid-template-columns: 200px 1fr 150px; gap: 16px; align-items: center; }
.netbar .who { font: 600 15px/20px var(--f-ui); }
.netbar .track { position: relative; height: 32px; border-radius: var(--r-control); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.netbar .fill { position: absolute; left: 0; top: 0; bottom: 0; transform-origin: left; animation: grow .32s var(--ease) both; }
.netbar b { font-size: 20px; font-weight: 500; text-align: right; }
@keyframes grow { from { transform: scaleX(0); } }

.evidence { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.kv { display: grid; grid-template-columns: 190px 1fr; gap: 10px 16px; font-size: 14px; line-height: 22px; margin: 0; }
.kv dt { color: var(--mu); font: 600 10.5px/22px var(--f-display); text-transform: uppercase; letter-spacing: .14em; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
details { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
details summary { cursor: pointer; padding: 12px 16px; font: 600 14px/20px var(--f-ui); }
details > :not(summary) { margin: 0 16px 12px; }
details .runs { font: 400 12px var(--f-mono); color: var(--mu); max-height: 220px; overflow: auto; line-height: 1.7; }
.sources a { display: block; font-size: 14px; line-height: 22px; padding: 6px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.sources a:last-child { border-bottom: 0; }
.sources a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kv a { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .grid2, .grid2.wide-r, .evidence, .qplay, .head-split { grid-template-columns: 1fr; }
  .grid3, .grid4, .big3 { grid-template-columns: 1fr 1fr; }
  .eq { grid-template-columns: 1fr; }
  .eq .op { font-size: 20px; }
  .progress, .nav .hint { display: none; }
  .counter { margin-left: auto; }
  .day { grid-template-columns: 1fr 1fr; }
  .day .verdict { text-align: left; }
}
@media (max-width: 620px) {
  :root { --bar: 54px; }
  body { font-size: 15px; line-height: 24px; }
  .brand svg { width: 182px; height: 20px; }
  .slide { justify-content: flex-start; padding-top: calc(var(--bar) + 27px + env(safe-area-inset-top, 0px)); }
  .grid3, .grid4, .big3 { grid-template-columns: 1fr; }
  .strat16 { grid-template-columns: repeat(4, 1fr); }
  .kv { grid-template-columns: 1fr; gap: 2px 16px; }
  .kv dd { margin-bottom: 10px; }
  .brand .product, .gauge .lbl { display: none; }
  .day > :first-child, .day .verdict { grid-column: 1 / -1; }
  .seg button { min-height: 36px; }
  .netbar { grid-template-columns: 1fr auto; }
  .netbar .track { grid-column: 1 / -1; }
  .tally { margin-bottom: 44px; }
  .scroll-x { overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scrollbar-width: thin; }
  .scroll-x .chart { width: 760px; max-width: none; }
  .tally b { font-size: 18px; }
  .stats { gap: 20px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
