/* Pitchside, paper edition: a sports paper set like a stock page.
   One material (newsprint), one ink, one spot colour (the green of the pitch). */

:root {
  --paper: #ede6d6;
  --paper-hi: #f4eee0;      /* the plate, boxes */
  --paper-lo: #e2d9c5;      /* tints */
  --ink: #191713;
  --ink-2: #5a5448;
  --hair: rgba(25, 23, 19, 0.3);
  --turf: #0d6a3e;
  --screen: #141210;        /* the app's own dark */

  --display: 'League Gothic', 'Helvetica Neue Condensed', 'Arial Narrow', Impact, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --agate: 'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gut: clamp(16px, 3.2vw, 44px);
  --gap: clamp(20px, 2.6vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 0px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* a jump to anything inside a page lands clear of the floating bar; the pages themselves carry that room as padding */
[id] { scroll-margin-top: 92px; }
main, .page, .front { scroll-margin-top: 0; }

body {
  margin: 0;
  background-color: var(--paper);
  /* the tooth of newsprint */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .09  0 0 0 0 .07  0 0 0 .2 -.07'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--turf); }
:focus-visible { outline: 2px solid var(--turf); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: 0.84em; }
code { background: var(--paper-lo); padding: 0.08em 0.32em; border-radius: 3px; }
kbd { display: inline-block; min-width: 1.9em; padding: 0.1em 0.42em; text-align: center; border: 1px solid var(--ink); border-bottom-width: 2px; border-radius: 4px; background: var(--paper-hi); line-height: 1.35; }
em { font-style: italic; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 500 15px/1 var(--agate); border-radius: 3px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }

.wrap { max-width: 1340px; margin: 0 auto; padding: 0 var(--gut); }

/* ───────── navigation (Float Nav owns the geometry) ───────── */
.nav { font-family: var(--agate); font-size: 15px; font-weight: 500; z-index: 40; --fn-gutter: max(var(--gut), calc((100vw - 1340px) / 2 + var(--gut))); --fn-end-gap: 10px; }
.nav a { text-decoration: none; color: var(--fn-ink, var(--ink)); }
.nav a:hover { color: var(--fn-accent, var(--turf)); }
/* The bar's left slot, always there. While the nameplate below is in sight it holds the folio line ("Preview edition
   0.1"); as the nameplate goes under the bar the name rolls up into the slot, one line for one line, with the scroll
   (--bq, 0..1, set in main.js), and back the same way. The slot is one line high and cut top and bottom only; its box
   is as wide as the name, whatever it shows, so the pill's width never depends on the scroll. */
.nav-brand { display: flex; align-items: center; height: 44px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.nav-slot { display: block; height: 28px; clip-path: inset(0 -240px 0 0); }
.nav-roll { display: block; transform: translateY(calc(var(--bq, 0) * -28px)); }
.nav-roll > span { display: block; height: 28px; line-height: 28px; white-space: nowrap; }
.nav-roll .fol { width: 0; font: 400 14px/28px var(--agate); letter-spacing: 0; color: var(--ink-2); }
/* the open bar is paper: the tape and the nameplate pass under it, not through its words; a hairline once the page has moved (--bs) */
.nav::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .09  0 0 0 0 .07  0 0 0 .2 -.07'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: calc(1 - var(--fn-p, 0)); box-shadow: 0 1px 0 rgb(25 23 19 / calc(0.35 * var(--bs, 0))); pointer-events: none; }
@media (max-width: 429px) { .nav-roll .fol-w { display: none; } }
.nav nav { display: flex; gap: clamp(14px, 2vw, 26px); }
.nav .nav-cta { background: var(--fn-ink, var(--ink)); color: var(--fn-paper, var(--paper)); padding: 0 14px; height: 36px; display: inline-flex; align-items: center; border-radius: 18px; white-space: nowrap; }
.nav .nav-cta:hover { background: var(--turf); color: var(--paper-hi); }
.fnav-sheet a { font-family: var(--agate); font-size: 17px; display: flex; align-items: center; min-height: 44px; }
/* the pill is a solid slip of paper with a hairline round it (the fill is set opaque in main.js); the hairline comes in with the pill */
.nav .fnav-shell { outline: 1px solid rgb(25 23 19 / calc(0.3 * var(--fn-p, 0))); outline-offset: -1px; }
/* keep the scroll-progress hairline clear of the pill's rounded corners so no stray green stub peeks in the corner */
.nav .fnav-line { left: 26px; right: 26px; }
.nav .fnav-line > i { opacity: var(--fn-p, 0); }

/* ───────── front page ───────── */
.front { padding-top: 72px; }

.tape { position: relative; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--agate); font-size: 14px; font-variant-numeric: tabular-nums; }
.tape-row { padding: 7px 0; cursor: grab; }
.tape-row:active { cursor: grabbing; }
.tape.still .tape-row { display: flex; flex-wrap: wrap; gap: 6px 0; padding: 7px var(--gut); cursor: auto; }
.tape.still .q { margin-right: 22px; }
.q.tag { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.tape-pause { position: absolute; z-index: 2; right: 0; top: 0; bottom: 0; padding: 0 14px; font: 500 13px/1 var(--agate); color: var(--ink); background: var(--paper); border: 0; border-left: 1px solid var(--ink); cursor: pointer; }
.tape-pause:hover { background: var(--ink); color: var(--paper); }
.tape.still .tape-row { padding-right: 84px; }
.q { width: max-content; white-space: nowrap; padding-right: 22px; border-right: 1px solid var(--hair); }
.q b { font-weight: 600; margin-right: 6px; }
.q i { font-style: normal; margin-left: 6px; color: var(--ink-2); }
.q i.up { color: var(--turf); }
/* the figures that follow the hero match keep one width whatever they say, so the tape never shifts */
.q [data-mq] { display: inline-block; font-variant-numeric: tabular-nums; }
.q .mq-clock { min-width: 2.7em; text-align: right; }
.q .mq-chg { min-width: 3.3em; }

.plate-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px; padding: 18px 0 10px; border-bottom: 3px double var(--ink); font-family: var(--agate); font-size: 14px; color: var(--ink-2); }
.plate-line > .wordmark { grid-column: 2; }      /* the folio line that stood left of it is in the bar's left slot (.nav-brand) */
.plate-line > :last-child { grid-column: 3; text-align: right; }
.wordmark { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); font-weight: 560; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }

.headline { margin: clamp(14px, 2vw, 26px) 0 clamp(16px, 2.2vw, 30px); font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 12vw, 168px); line-height: 0.9; color: var(--ink); }

.lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 16px var(--gap); border-top: 1px solid var(--ink); padding-top: var(--gap); }
.lead > .deck { grid-column: 1 / span 4; grid-row: 1; }
.lead-copy { grid-column: 1 / span 4; grid-row: 2; display: flex; flex-direction: column; gap: 16px; }
.plate { grid-column: 5 / span 8; grid-row: 1 / span 2; margin: 0; padding-left: var(--gap); border-left: 1px solid var(--hair); }

.deck { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.24; font-weight: 420; letter-spacing: -0.008em; text-wrap: pretty; }
.byline { font-family: var(--agate); font-size: 15px; line-height: 1.4; color: var(--ink-2); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn { font: 500 16px/1 var(--agate); color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 3px; padding: 13px 16px; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--turf); border-color: var(--turf); color: var(--paper-hi); }

.index { list-style: none; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--ink); font-family: var(--agate); font-size: 15px; }
.index li { border-bottom: 1px solid var(--hair); }
.index a { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; text-decoration: none; }
.index a span { flex: 1; }
.index a em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.index a::after { content: ''; order: 1; flex: 0 1 60px; border-bottom: 1px dotted var(--ink-2); translate: 0 -3px; }
.index a em { order: 2; }

.plate-stage { position: relative; height: clamp(300px, 35vw, 480px); background: var(--paper-hi); border: 1px solid var(--ink); overflow: hidden; }
.plate-canvas { position: absolute; inset: 0; }
/* the handle of the rule: a real slider, as wide as the plate plus its own thumb, so the thumb sits on the rule */
.plate-range { --thumb: 36px; position: absolute; z-index: 2; left: calc(var(--thumb) / -2); bottom: 10px; width: calc(100% + var(--thumb)); height: 26px; margin: 0; padding: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.plate-range::-webkit-slider-runnable-track { height: 26px; background: none; }
.plate-range::-moz-range-track { height: 26px; background: none; }
.plate-range::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: var(--thumb); height: 26px; border: 0; border-radius: 3px; cursor: ew-resize; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M6 1 2 5l4 4M14 1l4 4-4 4' fill='none' stroke='%23f4eee0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plate-range::-moz-range-thumb { pointer-events: auto; width: var(--thumb); height: 26px; border: 0; border-radius: 3px; cursor: ew-resize; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M6 1 2 5l4 4M14 1l4 4-4 4' fill='none' stroke='%23f4eee0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plate-range:focus-visible { outline: none; }
.plate-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--turf); outline-offset: 2px; }
.plate-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--turf); outline-offset: 2px; }
@media (pointer: coarse) { .plate-range { --thumb: 48px; height: 36px; bottom: 6px; } .plate-range::-webkit-slider-runnable-track { height: 36px; } .plate-range::-webkit-slider-thumb { height: 36px; } .plate-range::-moz-range-thumb { height: 36px; } }
.plate figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: 10px; font-size: 15px; line-height: 1.35; font-style: italic; color: var(--ink-2); }
.plate figcaption b { font-style: normal; font-family: var(--agate); font-weight: 600; font-size: 14px; color: var(--ink); }

/* the lead picture: the match as three price lines, and a ball rolled through them (match.js) */
.mt-board { display: grid; grid-template-columns: minmax(0, 1.85fr) repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); font-family: var(--agate); }
.mt-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 0 7px 14px; border-left: 1px solid var(--hair); }
.mt-cell.fixture { padding-left: 0; border-left: 0; }
.mt-label { display: flex; align-items: center; gap: 8px; overflow: hidden; font-size: 14px; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.mt-swatch { flex: none; width: 20px; border-top: 1.4px solid var(--ink); }
.mt-cell.home .mt-swatch { border-top-width: 3px; }
.mt-cell.draw .mt-swatch { border-top-color: var(--mt-grey); }
.mt-value { font-family: var(--display); font-size: clamp(38px, 3.5vw, 50px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-value b { font-weight: 400; }
.mt-value i { margin-left: 12px; font: 400 15px/1 var(--agate); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.match-stage { --mt-grey: #8d8574; position: relative; height: clamp(290px, 26vw, 360px); margin-top: 6px; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.match-stage.held { cursor: grabbing; }
.mt-board { --mt-grey: #8d8574; }
.match-svg, .match-ball { position: absolute; inset: 0; width: 100%; height: 100%; }
.match-svg svg { display: block; overflow: visible; }
.match-ball { pointer-events: none; }
.mt-ground { fill: var(--paper-hi); }
.mt-grid { stroke: rgba(25, 23, 19, 0.13); stroke-width: 1; }
.mt-base, .mt-tick { stroke: var(--ink); stroke-width: 1; }
.mt-axis { font: 400 12px var(--agate); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.mt-line { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: miter; }
.mt-line.home { stroke-width: 3; }
.mt-line.draw { stroke: var(--mt-grey); }
.mt-ahead { opacity: 0.2; }
.mt-name { font: 500 12.5px var(--agate); fill: var(--ink); paint-order: stroke; stroke: var(--paper-hi); stroke-width: 4px; stroke-linejoin: round; }
.mt-name.home { font-weight: 600; }
.mt-name.draw { fill: var(--ink-2); }
.mt-note { paint-order: stroke; stroke: var(--paper-hi); stroke-width: 4px; stroke-linejoin: round; fill: var(--ink); opacity: 0; transition: opacity 0.25s; }
.mt-note.on { opacity: 1; }
.mt-note .t { font: 600 12.5px var(--agate); font-variant-numeric: tabular-nums; }
.mt-note .s { font: italic 400 15px var(--serif); }
.mt-rule { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1 3; }
.mt-dot { fill: var(--ink); stroke: var(--paper-hi); stroke-width: 1.5; }
/* the keyboard's handle on the match clock: a slider nobody sees, and a ring round the ball while it has focus */
.match-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.match-focus { position: absolute; left: var(--mt-x, 0); top: var(--mt-y, 0); width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; outline: 2px solid var(--turf); opacity: 0; pointer-events: none; }
.match-range:focus-visible + .match-focus { opacity: 1; }

/* ───────── inside pages ───────── */
.page { padding-top: clamp(84px, 7vw, 104px); }
.folio { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 7px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--agate); font-size: 14px; margin-bottom: clamp(22px, 3vw, 40px); }
.folio > :nth-child(2) { font-weight: 600; }
.folio > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.folio > :first-child, .folio > :last-child { color: var(--ink-2); }

.display { margin: 0 0 0.3em; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(46px, 6.6vw, 104px); line-height: 0.96; letter-spacing: 0.004em; text-wrap: balance; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.text { display: flex; flex-direction: column; gap: 0.8em; max-width: 62ch; text-wrap: pretty; }
.text.two { display: block; max-width: none; columns: 2; column-gap: var(--gap); column-rule: 1px solid var(--hair); }
.text.two p + p { margin-top: 0.8em; }
.text.two p { break-inside: avoid; }
.standfirst { font-size: clamp(19px, 1.65vw, 23px); line-height: 1.34; font-weight: 420; letter-spacing: -0.006em; max-width: 44em; text-wrap: pretty; }
.fig-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 0 9px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--agate); font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.fig-head b { font-size: 17px; font-weight: 600; color: var(--ink); }
.sub { margin: 1.6em 0 0.5em; font-family: var(--agate); font-size: 16px; font-weight: 600; }
.note { font-family: var(--agate); font-size: 14px; line-height: 1.4; color: var(--ink-2); max-width: 64ch; }
.note.big { font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--ink); }

.box { border-top: 2px solid var(--ink); background: var(--paper-hi); padding: 12px clamp(12px, 1.6vw, 20px) 16px; }
.box-title { margin: 0 0 8px; font-family: var(--agate); font-size: 17px; font-weight: 600; line-height: 1.25; }
.box-title span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.box-title.second { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--ink); }

/* agate: the small tabular type of a stock page */
.agate { font-family: var(--agate); font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.3; }
table.agate { width: 100%; border-collapse: collapse; }
table.agate th, table.agate td { padding: 7px 0 6px; border-bottom: 1px solid var(--hair); text-align: right; font-weight: 400; vertical-align: baseline; }
table.agate th:first-child, table.agate td:first-child { text-align: left; }
table.agate thead th { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-top: 2px; }
table.agate tbody th { font-weight: 500; }
table.agate .r { text-align: right; }

.markets .story { grid-column: span 7; }
.markets .box { grid-column: span 5; }
.quotes td { width: 15%; font-size: 17px; }
.quotes tbody th { font-size: 16px; }
.quotes [data-f='last'] { font-weight: 600; }
.quotes tr[data-dir='up'] [data-f='chg'] { color: var(--turf); }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); margin: 0 0 12px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }

/* what a click does: one small book, three clicks */
.clicks { margin: clamp(26px, 3.4vw, 44px) 0 0; }
.clicks-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.click { padding: 16px var(--gap) 2px; border-left: 1px solid var(--hair); }
.click:first-child { padding-left: 0; border-left: 0; }
.click:last-child { padding-right: 0; }
.click-ask { font-family: var(--agate); font-size: 15px; color: var(--ink-2); }
.click-verdict { margin: 2px 0 14px; font-family: var(--display); font-size: clamp(38px, 3.6vw, 52px); line-height: 1; text-transform: uppercase; }
.click-note { margin-top: 12px; font-size: 16px; line-height: 1.42; max-width: 40ch; text-wrap: pretty; }
.mb { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--agate); font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
.mb-r { display: grid; grid-template-columns: 76px minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; height: 29px; border-bottom: 1px solid var(--hair); }
.mb-r:last-child { border-bottom: 0; }
.mb-r.touch { border-bottom-color: var(--ink); }
.mb-p { text-align: center; font-weight: 600; }
.mb-b, .mb-a { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.mb-b { justify-content: flex-end; }
.mb-b[style]::before, .mb-a[style]::after { content: ''; flex: none; height: 11px; width: calc(var(--v) * (100% - 4em)); }
.mb-b[style]::before { background: repeating-linear-gradient(to bottom, var(--turf) 0 1.5px, transparent 1.5px 3px); }
.mb-a[style]::after { background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 3px); }
/* your order: a flag in the margin, pointing at its row */
.mb-you { justify-self: start; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mb-you:not(:empty) { padding: 5px 13px 5px 7px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
.mb-r.on .mb-you { background: var(--turf); color: var(--paper-hi); }
.mb-r.on .mb-p { color: var(--turf); }
.mb-r.off .mb-you { background: var(--paper-lo); color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.mb-r.off .mb-p { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.mb-r.auto .mb-p::after { content: ''; display: inline-block; width: 8px; height: 13px; margin-left: 4px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='M4 1v11M1 4l3-3 3 3M1 9l3 3 3-3' fill='none' stroke='%230d6a3e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.mb-r.auto .mb-p { padding-left: 12px; }
/* the head of the small book, and the touch named on the side that is empty in its row */
.mb-h { height: 25px; font-size: 12.5px; color: var(--ink-2); border-bottom-color: var(--ink); }
.mb-h > :nth-child(2) { text-align: right; }
.mb-h > :nth-child(3) { text-align: center; }
.mb-t { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }

/* ───────── match report ───────── */
.replay { margin: 0 0 var(--gap); }
.replay-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 10px; }
.replay .play { font: 500 15px/1 var(--agate); min-width: 92px; padding: 10px 12px; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 3px; cursor: pointer; }
.replay .play:hover { background: var(--turf); border-color: var(--turf); }
.replay .clock { font-family: var(--agate); font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.replay .clock b { display: inline-block; min-width: 4.3em; font-size: 22px; font-weight: 600; color: var(--ink); }
.rp-tag { padding: 6px 9px; border: 1px solid var(--hair); border-radius: 3px; font: 500 13px/1.2 var(--agate); color: var(--ink-2); white-space: nowrap; }
/* the stamp: one line of type on a tint, swapped whole. It is sharp whenever it is still. */
.chip-dock { display: flex; justify-content: flex-end; min-width: 0; margin-left: auto; }
.isl { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; background: var(--paper-lo); border-radius: 3px; font-family: var(--agate); font-size: 15px; white-space: nowrap; }
.isl b { font-weight: 600; }
.isl > span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.isl kbd { min-width: 0; font-size: 12px; }
.isl.in { animation: chip-in 0.2s ease-out; }
@keyframes chip-in { from { opacity: 0; transform: translateY(4px); } }
.chart { position: relative; height: clamp(260px, 25vw, 360px); background: var(--paper-hi); border: 1px solid var(--ink); overflow: hidden; }
.chart-svg { position: absolute; inset: 0; cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
/* each handle runs exactly as far as its rule does */
#plateRange { left: calc(6% - var(--thumb) / 2); width: calc(88% + var(--thumb)); }
#rpRange { left: calc(var(--rp-l, 40px) - var(--thumb) / 2); width: calc(100% - var(--rp-l, 40px) - var(--rp-r, 10px) + var(--thumb)); bottom: 2px; }
.chart-svg svg { display: block; }
/* what is still to come is dimmed, not hidden: the line, the prints and the bids keep 3:1 against the plate under the veil */
.chart-veil { position: absolute; top: var(--rp-t, 0px); bottom: 0; right: 0; background: var(--paper-hi); opacity: 0.32; pointer-events: none; }
.chart-rule { position: absolute; top: var(--rp-t, 0px); bottom: 0; left: -0.75px; width: 1.5px; background: var(--ink); pointer-events: none; will-change: transform; }
/* the notes have the head of the plate to themselves: the veil and the rule start under them, so a note is never
   dimmed and never cut. Each sits on a patch of the plate's own paper, which keeps the hairlines out of its words. */
.chart-notes { position: absolute; inset: 0; pointer-events: none; }
.chart-notes svg { display: block; }
.rp-note rect { fill: var(--paper-hi); }
.rp-note text { font: 500 12.5px var(--agate); fill: var(--ink); font-variant-numeric: tabular-nums; }
.rp-note.strong text { font-weight: 600; }
.rp-note.ahead text { fill: var(--ink-2); }
.replay-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px var(--gap); padding-top: 10px; }
.replay-cap .note { max-width: 62ch; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-family: var(--agate); font-size: 14px; line-height: 1.4; color: var(--ink); }
.legend li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend i { flex: none; display: block; }
.k-mid { width: 18px; border-top: 1.75px solid var(--ink); }
.k-bid { width: 18px; border-top: 1.75px solid var(--turf); }
.k-depth { width: 18px; height: 11px; background: repeating-linear-gradient(to bottom, rgba(25, 23, 19, 0.4) 0 1.1px, transparent 1.1px 4px); }
.k-sell, .k-buy { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.k-buy { background: var(--paper-hi); border: 1.2px solid var(--ink); }
.k-fill { width: 0; height: 0; border: 5.5px solid transparent; border-top: 0; border-bottom: 9.5px solid var(--turf); }
.rp-grid { stroke: var(--hair); stroke-width: 1; }
.rp-base { stroke: var(--ink); stroke-width: 1; }
.rp-tick { stroke: var(--ink); stroke-width: 1; }
.rp-quiet { fill: var(--paper-lo); opacity: 0.7; }
.rp-axis { font: 500 12.5px var(--agate); fill: #4a453b; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--paper-hi); stroke-width: 3px; stroke-linejoin: round; }
.rp-line { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: miter; }
.rp-sell { fill: var(--ink); }
.rp-buy { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.2; }
.rp-bid { stroke: var(--turf); stroke-width: 1.6; }
.rp-fill { fill: var(--turf); }
.rp-mine { font: 600 12.5px var(--agate); fill: var(--turf); paint-order: stroke; stroke: var(--paper-hi); stroke-width: 4px; stroke-linejoin: round; }
.rp-flag { stroke: var(--ink); stroke-width: 0.75; stroke-dasharray: 2 3; }
.rp-flag.strong { stroke-width: 1.25; stroke-dasharray: none; }

.report .steps { grid-column: span 4; }
.report .book-wrap { grid-column: span 5; }
.report .correction { grid-column: span 3; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; padding: 13px 0 14px; border-bottom: 1px solid var(--hair); color: var(--ink-2); cursor: pointer; transition: color 0.25s; }
.steps button { align-self: start; padding: 3px 0; background: none; border: 0; text-align: left; font: 600 15px/1.3 var(--agate); color: inherit; cursor: pointer; }
.steps .what { font-size: 16px; line-height: 1.42; }
.steps .what b { display: block; margin-bottom: 3px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.steps li[data-on], .steps li:hover { color: var(--ink); }
.steps li[data-on] button { color: var(--turf); }

.book-wrap { background: var(--paper-hi); border-top: 2px solid var(--ink); padding: 14px clamp(12px, 1.6vw, 20px) 16px; }
/* the book: your bids | bid size | price | ask size. Your three bids are flagged on the row of their own price. */
.book-box { display: flex; flex-direction: column; }
.book { table-layout: fixed; }
.book caption { text-align: left; font-weight: 600; font-size: 17px; padding-bottom: 6px; }
.book caption span { font-weight: 400; color: var(--ink-2); margin-left: 6px; font-size: 14px; }
.book thead th:nth-child(1) { width: 33%; text-align: left; }
.book thead th:nth-child(2) { width: 28%; text-align: right; }
.book thead th:nth-child(3) { width: 12%; text-align: center; }
.book thead th:nth-child(4) { width: 27%; text-align: left; }
.book thead th i { font-style: normal; }
.book tbody td { height: 33px; padding-top: 2px; padding-bottom: 2px; vertical-align: middle; }
.book tbody td:nth-child(2) { text-align: right; }
.book tbody td:nth-child(3) { text-align: center; font-weight: 600; }
.book tbody td:nth-child(4) { text-align: left; }
.book .asks tr:last-child td { border-bottom: 1px solid var(--ink); }
.book td.bar { position: relative; }
.book td.bar > span { position: relative; z-index: 1; }
/* depth bars as a line screen: the same raster as the ball */
.book td.bar::before { content: ''; position: absolute; top: 50%; height: 15px; margin-top: -7.5px; width: calc(var(--v, 0) * (100% - 3.5em)); background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 3px); transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1); }
.book .asks td.bar::before { left: 3.3em; }
.book .bids td.bar::before { right: 3.3em; background: repeating-linear-gradient(to bottom, var(--turf) 0 1.5px, transparent 1.5px 3px); }
/* your bids: the green flag of the Markets page, pointing at its price, and what became of the order */
.book td.yo { line-height: 1; white-space: nowrap; }
.book td.yo .mb-you { display: inline-block; vertical-align: middle; }
.book tr[data-on='ghost'] .mb-you { background: var(--paper-lo); color: var(--ink-2); font-weight: 500; }
.book tr[data-on='resting'] .mb-you, .book tr[data-on='filled'] .mb-you { background: var(--turf); color: var(--paper-hi); }
.yo-tag { display: inline-block; vertical-align: middle; margin-left: 7px; font-size: 13px; line-height: 1.2; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.yo-tag i { font-style: normal; }
.book tr[data-on='filled'] .yo-tag { color: var(--turf); font-weight: 600; }
.book tr[data-on='resting'] td:nth-child(3), .book tr[data-on='filled'] td:nth-child(3) { color: var(--turf); }
.book td.own { color: var(--ink-2); }
.book tr[data-on='resting'] td.own, .book tr[data-on='filled'] td.own { color: var(--turf); font-weight: 600; }
.book .gap td { height: 26px; font-weight: 400; color: var(--ink-2); }
.book .gap td:first-child { text-align: right; font-size: 13px; font-style: italic; }
.book .gap td:nth-child(2) { text-align: center; }
.book-tally { margin-top: 10px; font-family: var(--agate); font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.book-tally b { font-weight: 600; color: var(--turf); }

.book-note { margin-top: 10px; }
.correction { border-top: 2px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 0.7em; font-size: 17px; line-height: 1.42; }
.correction h3 { margin: 0; font-family: var(--agate); font-size: 17px; font-weight: 600; }
.correction p:last-child { font-style: italic; }
.corr-fig { padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.corr-fig b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 5.6vw, 80px); line-height: 0.92; font-variant-numeric: tabular-nums; }
.corr-fig b i, .detector .num i { font: italic 400 0.36em/1 var(--serif); letter-spacing: 0; vertical-align: 0.5em; margin: 0 0.1em; }
.corr-fig span { display: block; margin-top: 6px; font-family: var(--agate); font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* ───────── the terminal: one plate, eight views, numbered like a diagram ───────── */
.views { margin: clamp(20px, 2.6vw, 34px) 0 0; }
.views-slug { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ink); font-family: var(--agate); font-size: 14px; color: var(--ink-2); }
.views-slug b { font-weight: 600; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.views-slug > :first-child > span { color: var(--ink); }
.views-slug a { justify-self: end; color: var(--ink); }
.views-plate { position: relative; aspect-ratio: 1480 / 920; background: var(--screen); border: 1px solid var(--ink); overflow: hidden; }
.views-plate img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 0.22s; }
.views-plate img.swap { opacity: 0; }
/* the picture and its pins are one layer: a number zooms that layer in on its panel (main.js sets the transform and --z) */
.views-zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.views-plate.zoomed { cursor: zoom-out; }
.zoom-out { position: absolute; z-index: 2; right: 6px; top: 6px; padding: 7px 9px; font: 500 12.5px/1 var(--agate); color: var(--ink); background: var(--paper-hi); border: 1px solid var(--ink); border-radius: 3px; cursor: pointer; }
.zoom-hint { display: none; margin: -4px 0 12px; font-family: var(--agate); font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.zoom-hint[hidden] { display: none; }
.pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transition: opacity 0.22s; }
.pins.swap { opacity: 0; }
.pins li, .key li::before { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-hi); color: var(--ink); border: 1.5px solid var(--ink); font: 600 13px/1 var(--agate); font-variant-numeric: tabular-nums; }
.pins li { position: absolute; left: var(--x); top: var(--y); margin: -12px 0 0 -12px; box-shadow: 0 0 0 2px rgba(20, 18, 16, 0.7); scale: calc(1 / var(--z, 1)); transition: background-color 0.15s, color 0.15s, scale 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.pins li.hot, .pins li.on { background: var(--turf); color: var(--paper-hi); border-color: var(--paper-hi); z-index: 1; }
.pins li.hot { scale: calc(1.3 / var(--z, 1)); }
@media (prefers-reduced-motion: reduce) { .views-zoom, .pins li { transition: none; } }
.views-under { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding-top: 16px; }
.views-index { grid-column: span 5; }
.views-key { grid-column: span 7; }
.views-index .box-title, .views-key .caption { min-height: 42px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; align-items: start; }
.sheet button { display: block; padding: 0; background: none; border: 0; text-align: left; font: 400 14px/1.25 var(--agate); color: var(--ink-2); cursor: pointer; }
.sheet img { display: block; width: 100%; height: auto; aspect-ratio: 1480 / 920; object-fit: cover; object-position: top center; border: 1px solid var(--ink); background: var(--screen); }
.sheet button span { display: flex; gap: 6px; padding-top: 6px; }
.sheet button em { font-style: normal; font-variant-numeric: tabular-nums; }
.sheet button:hover { color: var(--turf); }
.sheet button[aria-pressed='true'] { color: var(--ink); font-weight: 600; }
.sheet button[aria-pressed='true'] img { outline: 2px solid var(--turf); outline-offset: 2px; }
.caption { font-size: 18px; line-height: 1.35; font-style: italic; color: var(--ink-2); }
.caption b { font-style: normal; font-family: var(--agate); font-weight: 600; font-size: 17px; color: var(--ink); }
.key { list-style: none; counter-reset: pin; margin: 0; padding: 0; columns: 2; column-gap: var(--gap); font-size: 16px; line-height: 1.38; }
.key li { counter-increment: pin; position: relative; break-inside: avoid; padding: 3px 0 11px 36px; margin-bottom: 8px; border-bottom: 1px solid var(--hair); cursor: default; }
.key li::before { content: counter(pin); position: absolute; left: 0; top: 2px; box-sizing: border-box; }
.key li.hot::before, .key li.on::before { background: var(--turf); color: var(--paper-hi); border-color: var(--turf); }
.key b { font-family: var(--agate); font-weight: 600; }
.key li button { display: block; width: 100%; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; text-align: left; font: inherit; color: inherit; cursor: inherit; -webkit-tap-highlight-color: transparent; }

/* ───────── results ───────── */
.results { align-items: stretch; }
.results .story { grid-column: span 5; display: flex; flex-direction: column; }
.results .story .figures { margin-top: auto; }
.results .story .text { margin-bottom: 28px; }
.results .box { grid-column: span 7; }
.results .box.wide { grid-column: 1 / -1; }
.note.after-table { margin-top: 10px; }
.tools th, .tools td { font-size: 16px; }
.tools td:nth-child(2) { width: 22%; text-align: left; }
.tools tbody th { padding-right: 12px; }
.tools thead th:nth-child(2) { text-align: left; }
.tools td:nth-child(3) { width: 16%; font-weight: 600; white-space: nowrap; }
.notes-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px var(--gap); margin-top: 10px; }
.notes-two .note { max-width: none; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 0; border-top: 1px solid var(--ink); padding-top: 12px; }
.figures .num, .detector .num { display: block; font-family: var(--display); font-size: clamp(56px, 6.4vw, 96px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.figures .unit, .detector .unit { display: block; margin-top: 6px; font-family: var(--agate); font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.detector { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 4px 0 12px; }
.detector .num { font-size: clamp(44px, 4.4vw, 62px); }
.detector .unit { max-width: 30ch; }
/* the samples behind the page, under its running head */
.folio.keyed { margin-bottom: 0; }
.samples { margin: 0 0 clamp(22px, 3vw, 40px); padding: 8px 0 9px; border-bottom: 1px solid var(--hair); overflow: hidden; font-family: var(--agate); font-size: 14px; line-height: 1.35; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* every item carries its rule on its left; the first item of each line has that rule pushed out of the box, so a
   wrapped line never starts or ends on a stray rule */
.samples-in { display: flex; flex-wrap: wrap; gap: 4px 0; margin-left: -29px; }
.samples-in > * { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--hair); }
.samples span b { font-weight: 600; color: var(--ink); }
.samples-k { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* the lag chart: one scale in seconds, the market's first move at nought. For each source a line from its quickest
   report to its slowest, and a dot on the median. Left of nought, shaded, a report came before the price moved. */
.lagchart { --name: 210px; --lo: -40; --span: 250; margin-top: 4px; font-family: var(--agate); font-variant-numeric: tabular-nums; }
.lg-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
.lg-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg-legend i { flex: none; display: block; }
.lg-k-range { width: 22px; height: 11px; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1.5px no-repeat; }
.lg-k-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.lg-k-before { display: none !important; }
.lg-k-before i { width: 16px; height: 12px; background: var(--paper-lo); border: 1px solid var(--hair); }
.lg-axis { position: relative; height: 24px; margin-left: var(--name); border-bottom: 1px solid var(--ink); font-size: 12.5px; color: var(--ink-2); }
.lg-axis span { position: absolute; bottom: 5px; left: calc((var(--v) - var(--lo)) / var(--span) * 100%); translate: -50% 0; white-space: nowrap; }
.lg-axis .lg-zero { translate: 6px 0; font-weight: 600; color: var(--ink); }
.lg-axis .lg-before { left: 16%; translate: calc(-100% - 8px) 0; font-weight: 600; color: var(--ink); }
.lg-row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); border-bottom: 1px solid var(--hair); }
.lg-name { padding: 9px 12px 9px 0; line-height: 1.25; }
.lg-name b { display: block; font-size: 16px; font-weight: 500; }
.lg-name span { font-size: 13px; color: var(--ink-2); }
.lg-track { position: relative; min-height: 66px;
  background:
    linear-gradient(var(--ink), var(--ink)) 16% 0 / 1px 100% no-repeat,
    linear-gradient(var(--hair), var(--hair)) 40% 0 / 1px 100% no-repeat,
    linear-gradient(var(--hair), var(--hair)) 64% 0 / 1px 100% no-repeat,
    linear-gradient(var(--hair), var(--hair)) 88% 0 / 1px 100% no-repeat,
    linear-gradient(var(--paper-lo), var(--paper-lo)) 0 0 / 16% 100% no-repeat; }
.lg-range { position: absolute; top: 36px; height: 13px; margin-top: -6.5px; left: calc((var(--a) - var(--lo)) / var(--span) * 100%); width: calc((var(--b) - var(--a)) / var(--span) * 100%); border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1.5px no-repeat; }
.lg-dot { position: absolute; top: 36px; left: calc((var(--m) - var(--lo)) / var(--span) * 100%); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper-hi); }
.lg-track em { position: absolute; top: 9px; left: calc((var(--m) - var(--lo)) / var(--span) * 100%); translate: -6px 0; font-style: normal; font-size: 17px; font-weight: 600; line-height: 1; white-space: nowrap; }
.lg-min, .lg-max { position: absolute; top: 46px; padding: 1px 0 2px; background: var(--paper-hi); font-size: 12.5px; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.lg-min.early { background: var(--paper-lo); }
.lg-min { left: calc((var(--a) - var(--lo)) / var(--span) * 100%); }
.lg-max { left: calc((var(--b) - var(--lo)) / var(--span) * 100%); translate: -100% 0; }

/* ───────── safety ───────── */
.safety .story { grid-column: span 6; }
.safety .register { grid-column: span 6; }
.locks { list-style: none; counter-reset: lock; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.locks li { counter-increment: lock; position: relative; padding: 11px 0 12px 44px; border-bottom: 1px solid var(--hair); font-size: 17px; line-height: 1.42; }
.locks li::before { content: counter(lock); position: absolute; left: 0; top: 12px; font-family: var(--display); font-size: 44px; line-height: 0.9; color: var(--turf); }
.kill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 16px; font-size: 17px; line-height: 1.42; }
.kill span { flex: 1 1 320px; }

.register { border-top: 2px solid var(--ink); background: var(--paper-hi); padding: 12px clamp(12px, 1.6vw, 20px) 6px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 520; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq { counter-reset: risk; }
.faq summary::before { counter-increment: risk; content: counter(risk, decimal-leading-zero); flex: none; width: 22px; font: 400 13px/1 var(--agate); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.faq summary > span { flex: 1; }
.faq summary:hover { color: var(--turf); }
.faq [data-sd-icon] { flex: none; position: relative; width: 15px; height: 15px; }
.faq [data-sd-icon]::before, .faq [data-sd-icon]::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: currentColor; }
.faq [data-sd-icon]::after { rotate: 90deg; }
.faq details[open]:not([data-sd-state]) [data-sd-icon] { rotate: 45deg; }
.faq details p { padding: 0 34px 14px 38px; font-size: 16px; line-height: 1.45; color: var(--ink-2); max-width: 60ch; }

/* ───────── try it ───────── */
.try .story { grid-column: span 6; }
.try .box { grid-column: span 6; }
.try .limits-band { grid-column: 1 / -1; }
.release { display: grid; grid-template-columns: auto minmax(0, 1fr); margin-top: 20px; border: 1px solid var(--ink); background: var(--paper-hi); font-family: var(--agate); }
.release-tag { display: flex; align-items: center; padding: 0 14px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.release-line { padding: 11px 14px 12px; font-size: 15px; line-height: 1.4; }
.release-line b { font-weight: 600; }
.cli { margin-top: 4px; }
.cli-label { display: flex; align-items: baseline; gap: 9px; margin: 20px 0 7px; font-family: var(--agate); font-size: 15px; font-weight: 600; }
.cli-label span { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.cli-label span::before { content: '· '; }
/* the commands are printed, not offered: a paper card with a hairline, nothing to press until there is a release */
.cli-line { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; background: var(--paper-hi); color: var(--ink-2); border: 1px solid var(--hair); border-radius: 3px; font-family: var(--mono); font-size: clamp(14px, 1.3vw, 17px); }
.cli-line code { flex: 1; min-width: 0; padding: 14px 0; background: none; font-size: inherit; color: var(--ink); white-space: pre; overflow-x: auto; }
.cli-line .prompt { color: var(--ink-2); }
.cli .note { margin: 9px 0 0; }
.limits-band { border-top: 2px solid var(--ink); padding-top: 12px; }
.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); font-size: 16px; line-height: 1.42; }
.limits li { padding: 10px 0 12px; border-bottom: 1px solid var(--hair); }
.limits b { display: block; font-family: var(--agate); font-weight: 600; }
.specs th { width: 30%; color: var(--ink-2); font-weight: 400 !important; }
.specs td { text-align: left !important; }
.specs kbd { font-size: 12px; min-width: 0; }

/* ───────── footer ───────── */
.foot { margin-top: clamp(64px, 8vw, 120px); padding-bottom: 40px; }
.foot-mark { border-top: 3px double var(--ink); height: clamp(120px, 24vw, 330px); font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: baseline; border-top: 1px solid var(--ink); padding-top: 14px; }
.foot-line { grid-column: span 5; font-size: 20px; font-style: italic; }
.foot nav { grid-column: span 5; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--agate); font-size: 15px; }
.foot nav a { text-decoration: none; padding: 6px 0; }
.foot-by { grid-column: span 2; text-align: right; font-family: var(--agate); font-size: 15px; }
.foot-legal { margin-top: 26px; font-family: var(--agate); font-size: 13px; line-height: 1.45; color: var(--ink-2); max-width: 96ch; }

/* ───────── narrower sheets ───────── */
@media (max-width: 1020px) {
  .lead { grid-template-rows: none; }
  .lead > .deck, .lead-copy, .plate { grid-column: 1 / -1; grid-row: auto; }
  .match-stage { height: clamp(300px, 42vw, 380px); }
  .plate { padding-left: 0; border-left: 0; }
  .index { margin-top: 8px; }
  .markets .story, .markets .box, .results .story, .results .box, .safety .story, .safety .register, .try .story, .try .box { grid-column: 1 / -1; }
  .report .steps { grid-column: span 6; }
  .report .book-wrap { grid-column: span 6; }
  .report .correction { grid-column: 1 / -1; }
  .views-index, .views-key { grid-column: 1 / -1; }
  .results .box.lag { order: -1; }      /* stacked, the headline meets its chart before the prose */
  .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-line, .foot nav, .foot-by { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .front { padding-top: 64px; }
  .plate-line { grid-template-columns: 1fr; justify-items: center; gap: 4px; text-align: center; padding-top: 14px; }
  .plate-line > .wordmark, .plate-line > :last-child { grid-column: 1; }
  .plate-line > :last-child { text-align: center; }
  .plate figcaption { grid-template-columns: 1fr; gap: 6px; }
  .text.two { columns: 1; }
  .plate-stage { height: 250px; }
  .match-stage { height: 300px; }
  .mt-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-cell.fixture { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
  .mt-cell.home { padding-left: 0; border-left: 0; }
  .mt-cell.fixture .mt-value { font-size: 30px; }
  .mt-note .s { font-size: 13.5px; }
  .mt-name { font-size: 12px; }
  .mt-win { display: none; }
  .mt-cell { padding-left: 10px; }
  .match-focus { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .chart { height: 310px; }      /* a taller plate on a phone: the notes, the bids and the prints each get a row of their own */
  .replay-bar { gap: 10px 12px; }
  .replay .clock b { min-width: 0; }
  #rpScore { display: none; }           /* the stamp under the clock says what the score feed says */
  .rp-tag { width: 8.4em; padding: 1px 0 1px 10px; border: 0; border-left: 1px solid var(--hair); border-radius: 0; font-size: 12.5px; white-space: normal; }
  .chip-dock { margin: 0; flex-basis: 100%; justify-content: flex-start; }
  .isl { font-size: 14.5px; padding: 0 12px; }
  .rp-note text { font-size: 12.5px; }
  .rp-axis, .rp-mine { font-size: 13px; }
  .report .book-wrap { grid-column: 1 / -1; }
  .book thead th:nth-child(1) { width: 35%; }
  .book thead th:nth-child(2) { width: 27%; }
  .book thead th:nth-child(3) { width: 11%; }
  .book thead th:nth-child(4) { width: 27%; }
  .book thead th { white-space: nowrap; }
  .book thead th i { display: none; }
  .book td.yo { white-space: normal; padding-top: 5px; padding-bottom: 5px; }
  .yo-tag { margin-left: 5px; }
  .book tr[data-on] .yo-tag { margin-top: 3px; }
  /* the four moments become a row of tabs over the book, with the text of the chosen one under them */
  .report .steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
  .steps li { display: contents; }
  .steps button { grid-row: 1; min-height: 46px; padding: 12px 4px 9px; text-align: center; border-bottom: 3px solid transparent; }
  .steps li[data-on] button { border-bottom-color: var(--turf); }
  .steps .what { grid-row: 2; grid-column: 1 / -1; display: none; min-height: 8.6em; padding: 10px 0 2px; border-top: 1px solid var(--hair); color: var(--ink); }
  .steps li[data-on] .what { display: block; }
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .figures .num { font-size: clamp(46px, 15vw, 64px); }
  .figures .unit { font-size: 13px; }
  .samples { font-size: 13.5px; }
  .samples-in { margin-left: -21px; }
  .samples-in > * { margin-left: 10px; padding-left: 10px; }
  .folio > :first-child { visibility: hidden; }
  .clicks-row { grid-template-columns: 1fr; }
  .click, .click:first-child, .click:last-child { padding: 16px 0 18px; border-left: 0; border-top: 1px solid var(--hair); }
  .click:first-child { border-top: 0; }
  .click-note { max-width: none; }
  .views-slug { grid-template-columns: 1fr auto; }
  .views-slug > :nth-child(2) { display: none; }
  .pins li { width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; font-size: 11px; border-width: 1px; box-shadow: 0 0 0 1px rgba(20, 18, 16, 0.7); }
  /* the eight views become a compact chooser over the plate, so a tap changes what is right under the thumb;
     the key follows the plate, and a number zooms the plate in on its panel */
  .views { display: flex; flex-direction: column; }
  .views-under { display: contents; }
  .views-slug { order: 1; }
  .views-index { order: 2; padding-bottom: 10px; }
  .views-plate { order: 3; }
  .views-key { order: 4; padding-top: 12px; }
  .views-index .box-title { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sheet { gap: 6px; align-items: stretch; }
  .sheet img { display: none; }
  .sheet button { min-height: 48px; padding: 6px 7px 7px; border: 1px solid var(--hair); border-radius: 3px; font-size: 12.5px; line-height: 1.15; color: var(--ink); }
  .sheet button span { display: block; padding: 0; }
  .sheet button em { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
  .sheet button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper-hi); font-weight: 500; }
  .sheet button[aria-pressed='true'] em { color: inherit; opacity: 0.7; }
  .views-key .caption { min-height: 0; }
  .zoom-hint { display: block; }
  .pins li { cursor: zoom-in; }
  .pins li::after { content: ''; position: absolute; inset: -11px; border-radius: 50%; }
  .key li button { cursor: zoom-in; }
  .key { columns: 1; }
  .lagchart { --name: 0px; }
  .lg-k-before { display: inline-flex !important; }
  .lg-axis .lg-before { display: none; }
  .lg-row { grid-template-columns: 1fr; }
  .lg-name { padding: 9px 0 0; }
  .lg-name b { display: inline; margin-right: 8px; }
  .lg-track { min-height: 62px; }
  .lg-range, .lg-dot { top: 33px; }
  .lg-track em { top: 7px; font-size: 16px; }
  .lg-min, .lg-max { top: 43px; }
  .notes-two, .limits { grid-template-columns: 1fr; }
  .detector { gap: 14px; }
  .release { grid-template-columns: 1fr; }
  .release-tag { padding: 7px 14px; }
  .facts { grid-template-columns: 1fr; }
  .specs th { width: 36%; }
}

/* ───────── Round 3: the synthetic-demo tag on the scoreboard ───────── */
.mt-cell.fixture .mt-label { gap: 8px; }
.mt-fx { overflow: hidden; text-overflow: ellipsis; }
.mt-demo { flex: none; padding: 1px 6px 2px; border: 1px solid var(--ink); border-radius: 2px; font: 600 11.5px/1.2 var(--agate); font-style: normal; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); background: var(--paper-hi); }

/* ───────── Round 3: page 4, the web edition of the terminal ───────── */
.term-fig { margin: clamp(20px, 2.6vw, 34px) 0 0; }
.term-fig .views-slug .slug-r { justify-self: end; color: var(--ink); }
.term-fig .pst { --ink: #141210; margin-top: 2px; }
.scenes { padding-top: 18px; }
.scenes .box-title { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.scenes-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 0; }
.scenes-row button { display: flex; align-items: baseline; gap: 8px; min-height: 54px; padding: 10px 12px 11px; border: 0; border-left: 1px solid var(--hair); background: none; text-align: left; font: 500 15px/1.25 var(--agate); color: var(--ink); cursor: pointer; transition: background 0.15s; }
.scenes-row button:first-child { border-left: 0; padding-left: 0; }
.scenes-row button em { font: 400 28px/0.9 var(--display); font-style: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scenes-row button:hover { color: var(--turf); }
.scenes-row button:hover em { color: var(--turf); }
.scenes-row button[aria-pressed='true'] { background: var(--ink); color: var(--paper-hi); padding-left: 12px; }
.scenes-row button[aria-pressed='true'] em { color: var(--paper-hi); }
.scenes-hint { margin-top: 12px; padding: 10px 0 0; border-top: 1px solid var(--hair); font-size: 17px; line-height: 1.45; max-width: 78ch; }
.scenes-hint > b:first-child { font-family: var(--agate); font-weight: 600; font-size: 15px; margin-right: 4px; }
.scenes-hint em { font-style: normal; font-family: var(--agate); font-weight: 600; }
.scenes-note { margin-top: 8px; max-width: 96ch; }
@media (max-width: 1020px) {
  .scenes-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scenes-row button:nth-child(4) { border-left: 0; padding-left: 0; }
  .scenes-row button:nth-child(n + 4) { border-top: 1px solid var(--hair); }
}
@media (max-width: 700px) {
  .term-fig .views-slug { grid-template-columns: 1fr; }
  .term-fig .views-slug .slug-r { justify-self: start; }
  .scenes-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenes-row button, .scenes-row button:first-child, .scenes-row button:nth-child(4) { min-height: 50px; padding: 9px 8px 10px; border-left: 1px solid var(--hair); font-size: 14px; }
  .scenes-row button:nth-child(odd) { border-left: 0; padding-left: 0; }
  .scenes-row button:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .scenes-row button[aria-pressed='true'] { padding-left: 8px; }
  .scenes-row button em { font-size: 24px; }
  .scenes-hint { font-size: 16px; }
  .mt-cell.fixture .mt-label { flex-direction: column; align-items: flex-start; gap: 4px; }
  .mt-demo { font-size: 11px; }
}
