/* The benchmark pages' styles, inside docs/DESIGN-RULES.md (d5, "the page is the scale"): one designed world, light to
   dark by zone, no theme switch and no OS dark mode. Schibsted Grotesk only, self-hosted (public/fonts, OFL, Latin
   subset): nothing loads from a third party. Colours are the rules' tokens; the old names below them are aliases kept
   until every page and chart has moved, then they go. */
@font-face { font-family: "Schibsted"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/schibsted-latin.woff2") format("woff2"); }
:root {
  color-scheme: light;
  /* the four zones of a share scale (light where the share is high), the 50% grey, ink on light, paper on dark */
  --z4: #eeeeeb; --z3: #c4c6c2; --z2: #55585a; --z1: #1b1d1f; --zmid: #8a8c8a;
  --ink: #111111; --ink-2: #3a3c3e; --paper: #ffffff; --paper-2: #d4d6d8; --rule-d: #3b3e41;
  /* one colour per model, a key only (charts.js MODEL_SLOTS maps a slug to its slot, never a rank); --m-other past the
     eighth. Never a text colour, bar or fill: a 10-12 px square ringed in the ink of where it sits. */
  --m1: #2a78d6; --m2: #eb6834; --m3: #1baf7a; --m4: #eda100; --m5: #e87ba4; --m6: #008300; --m7: #6250d6; --m8: #e34948;
  --m-other: #8a8580;
  --f: "Schibsted", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* the type scale (rules section 3): 12 is the floor */
  --t-xs: 12px; --t-sm: 13px; --t-ui: 14px; --t-base: 16px; --t-md: 17px; --t-lg: 22px; --t-xl: 28px; --t-2xl: 44px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;

  /* --- legacy aliases (pre-d5 names), until every page and chart has moved --- */
  --sans: var(--f); --display: var(--f);
  --card: var(--z4); --card-2: var(--z3); --line: var(--z3); --line-2: var(--zmid); --ink-3: var(--ink-2);
  --teal: var(--ink); --teal-ink: var(--ink); --on-teal: var(--paper);
  --warn-bg: var(--ink); --warn-ink: var(--paper); --warn-line: var(--paper);
  --focus: currentColor; --r-card: 0; --r-ctl: 0;
  /* outcome hues and the heat tint: still drawn by charts that haven't moved (status is never colour
     in d5; these go with them) */
  --o-pass: #1baf7a; --o-ended: #2f9be0; --o-wiped: #e34948; --o-time: #eda100; --o-cost: #6250d6; --o-gaveup: #8a8580; --o-other: #b9b2a6;
  --o-pass-edge: #138a5f; --o-time-ink: #a86f00;
  --heat: #0f766e; --heat-max: 52%;
  /* run marks: passed = filled, failed = outlined, in the ink of the ground; never a model or outcome hue */
  --run-pass: var(--ink); --run-pass-edge: var(--ink); --run-fail: transparent; --run-fail-edge: var(--ink);
  --cx-grid: var(--z3);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* the page ends dark: past the footer the canvas is z1 */
html { -webkit-text-size-adjust: 100%; background: var(--z1); }
body { margin: 0; background: var(--z4); color: var(--ink); font: 400 var(--t-base)/1.45 var(--f);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.mono { font-family: var(--mono); }
/* tabular figures only where numbers stack in a column: Schibsted's tnum also widens , and . to a digit */
.num { font-variant-numeric: tabular-nums; }
.lbl { font: 400 13px/1.3 var(--f); color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { color: var(--ink); margin: 0; font-family: var(--f); font-weight: 800; }
h1 { font-size: var(--t-2xl); line-height: 1.05; letter-spacing: -.025em; }
h2 { font-size: var(--t-xl); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: var(--t-md); line-height: 1.3; font-weight: 700; }
@media (max-width: 760px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
}

/* header (rules 4): brand, the five sections (the current one underlined), the way to take part, the release and its
   run count, Account */
.top .wrap { display: flex; align-items: baseline; gap: 6px 28px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-weight: 900; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: underline; }
/* "Submit a run": the one way in for a visitor, so it reads as a step apart from the sections (Q3-02) */
.nav a.nav-sub { color: var(--ink); font-weight: 700; padding-left: 22px; border-left: 1.5px solid var(--z3); }
.rel { margin-left: auto; color: var(--ink-2); font-size: 14px; }
.acct { color: var(--ink-2); font-size: 14px; text-decoration: none; white-space: nowrap; }
.acct:hover, .acct[aria-current] { color: var(--ink); text-decoration: underline; }

/* buttons (rules 4): 1.5 px ink border, no radius, 15/700; hover and pressed = ink fill. .pill is the old name. */
.btn, .pill { font: 700 15px/1.1 var(--f); color: var(--ink); background: none; border: 1.5px solid var(--ink); padding: 8px 13px;
  cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn:hover, .pill:hover, .btn[aria-pressed="true"], .pill[aria-pressed="true"], .pill[aria-selected="true"], .pill.on {
  background: var(--ink); color: var(--paper); }
.iconbtn { all: unset; box-sizing: border-box; cursor: pointer; min-width: 34px; height: 34px; padding: 0 8px; display: grid;
  place-items: center; color: var(--ink); border: 1.5px solid var(--ink); flex: none; font: 700 15px var(--f); }
.iconbtn:hover { background: var(--ink); color: var(--paper); }
.iconbtn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
/* pressed or under the pointer a button is ink-filled: its focus ring stays in the ground's ink, not its own paper */
.btn[aria-pressed="true"]:focus-visible, .pill[aria-pressed="true"]:focus-visible, .pill[aria-selected="true"]:focus-visible,
.pill.on:focus-visible, .btn:hover:focus-visible, .pill:hover:focus-visible, .iconbtn:hover:focus-visible { outline-color: var(--ink); }

/* the banner (rules 4): a full-width ink bar, a chip naming it, then the note from the data */
.banner { background: var(--ink); color: var(--paper); }
.banner .wrap { display: flex; gap: 16px; align-items: baseline; padding-top: 11px; padding-bottom: 11px; font-size: 15px; }
.banner strong { flex: none; font-weight: 800; font-size: 13px; letter-spacing: .08em; border: 1.5px solid var(--paper);
  padding: 2px 7px 1px; }
.banner a { color: inherit; font-weight: 700; }
/* chips: uppercase only here (rules 3) */
.chip, .tag-ill, .tag-pilot { display: inline-block; font: 800 12px/1.3 var(--f); letter-spacing: .08em; border: 1.5px solid currentColor;
  padding: 1px 6px 0; white-space: nowrap; color: var(--ink); }
.tag-ill { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* model key (rules 2): the model's colour in a square, ringed in the ink of where it sits, always next to the name */
.key { display: inline-block; flex: none; width: 11px; height: 11px; background: var(--c); box-shadow: inset 0 0 0 1.5px currentColor;
  margin-right: 7px; vertical-align: -1px; }

/* head */
.head { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: end; padding: 28px 0 18px; }
.head p { margin: 6px 0 0; max-width: 72ch; }
.kpis { display: flex; gap: 28px; }
.kpi .v { font-size: 21px; font-weight: 650; color: var(--ink); }
.kpi .lbl { margin-top: 2px; }
/* filters (rules 4): one row above the list, options as buttons (the current one pressed) */
.filters { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 12px 0 14px;
  border-top: 1px solid var(--z3); border-bottom: 1px solid var(--z3); position: sticky; top: 0; z-index: 5;
  background: var(--z4); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
/* the switch between bench-v0.11's results and bench-v0.12's community board (js/suite-switch.js) */
.suite-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 4px; }
.suite-sw[hidden] { display: none; }
.suite-sw .lbl { margin: 0; font-size: 14px; }
.filters .lbl { margin-right: 4px; }
.filters .sp { flex: 1; }

/* sections: no cards (rules 7): a section is its heading and its content on the page ground, in the page column */
section.card { margin: 56px 0 0; }
.card-h { display: flex; gap: 12px 16px; align-items: baseline; flex-wrap: wrap; padding: 0 0 14px; }
.card-h p { margin: 0; color: var(--ink-2); flex-basis: 100%; max-width: 110ch; }
.card-h .sp { flex: 1; }
.how { padding: 10px 0 0; border-top: 1px solid var(--z3); color: var(--ink-2); font-size: 14px; max-width: 110ch; }
.how b { color: var(--ink); font-weight: 700; }
.scroll { overflow-x: auto; }
.hint { display: none; font: 400 12px var(--f); color: var(--ink-2); padding: 0 0 6px; }
.scroll:focus-visible { outline-offset: -2px; }

/* main table */
table { border-collapse: collapse; width: 100%; }
.main th, .main td { padding: 7px 6px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.main thead th { border-top: 0; vertical-align: bottom; font: 400 13px/1.25 var(--f); color: var(--ink-2); padding-top: 10px; padding-bottom: 8px; }
.main thead tr.grp th { padding-bottom: 0; text-align: center; color: var(--ink-3); }
.main thead tr.grp th span { display: block; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; margin: 0 4px; }
.main th button { all: unset; cursor: pointer; display: inline-flex; gap: 3px; align-items: baseline; }
.main th button:focus-visible { outline: 2px solid var(--focus); }
.main th button:hover::after, .main th button:focus-visible::after { content: "\2195"; opacity: .5; }
.main th[aria-sort="descending"] button::after { content: "\2193"; opacity: 1; color: var(--ink); }
.main th[aria-sort="ascending"] button::after { content: "\2191"; opacity: 1; color: var(--ink); }
.main td { font-variant-numeric: tabular-nums; color: var(--ink); }
.main .l { text-align: left; }
.main tbody tr { cursor: pointer; }
.main tbody tr:hover td { background: var(--card-2); }
.main tbody tr.sel td { background: var(--card-2); }
.main tbody tr.sel td:first-child { box-shadow: inset 3px 0 var(--ink); }
.main .place { font: 600 13px var(--sans); color: var(--ink); width: 36px; }
.main .place.shared { color: var(--ink-3); }
.main .model { min-width: 150px; font-variant-numeric: normal; }
.main .model b { color: var(--ink); font-weight: 700; }
.main .model .sub { display: block; font: 12px var(--sans); color: var(--ink-3); }
.main .sticky { position: sticky; left: 0; background: var(--z4); z-index: 1; }
.main .sticky2 { position: sticky; left: 36px; background: var(--z4); z-index: 1; box-shadow: 1px 0 var(--z3); }
.main .dim { color: var(--ink-3); }
.main .vsep { border-left: 1px solid var(--line); }
.ci { display: inline-flex; gap: 8px; align-items: center; }
.ci .pct { font-weight: 600; min-width: 48px; text-align: right; }
.ci .kn2 { display: block; font: 400 12px var(--sans); color: var(--ink-3); }
.ci .kn { font: 12px var(--sans); color: var(--ink-3); min-width: 50px; text-align: left; }
.fam { min-width: 40px; }
.fam span { display: inline-block; min-width: 34px; padding: 2px 3px; text-align: center; }
.cons { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.cons .k { font: 12px var(--sans); color: var(--ink-3); min-width: 48px; text-align: left; }

.tick { width: 3px; background: var(--ink); }
.tick.f { height: 3px; background: var(--ink-3); opacity: .7; }
.tick.p { height: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; color: var(--ink-3); }
.legend .sw { display: inline-flex; gap: 2px; align-items: flex-end; height: 18px; vertical-align: middle; margin-right: 6px; }
.ramp { display: inline-flex; vertical-align: middle; margin: 0 6px; overflow: hidden; }
.ramp i { width: 18px; height: 12px; }

/* drill-down */
.dd-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding: 4px 0 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { border-top: 1.5px solid var(--ink); padding: 8px 0 0; }
.stat .v { font-size: 22px; font-weight: 800; color: var(--ink); }
.stat .s { font: 13px var(--f); color: var(--ink-2); }
.outbar { display: flex; height: 14px; gap: 2px; margin: 8px 0 8px; }
.outbar i { display: block; height: 100%; }

.olg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.olg span::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--c);
  margin-right: 5px; vertical-align: -1px; }
.dd th, .dd td { padding: 5px 8px; border-top: 1px solid var(--line); white-space: nowrap; text-align: left; color: var(--ink); }
/* tabular figures only in a number column (rules 3): Schibsted's tnum widens : , and . in text */
.dd td.r, .dd td.num, .dd th.r { font-variant-numeric: tabular-nums; }
.dd thead th { border-top: 0; font: 400 13px var(--f); color: var(--ink-2); vertical-align: bottom; }
.dd td.r, .dd th.r { text-align: right; }
.dd td a { color: var(--ink); text-decoration: none; }
.dd td a:hover { text-decoration: underline; }
.dd .fam-tag { font: 12px var(--sans); color: var(--ink-3); margin-left: 6px; }
.ver { display: inline-block; font: 12px var(--sans); color: var(--ink-2); border: 1px solid var(--line-2);
  padding: 0 4px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
th.sc .ver { display: block; margin: 2px auto 0; width: max-content; }
.runs { display: inline-flex; gap: 3px; }
/* run squares (rules 2): filled when passed, outlined when failed, in the ink of the ground */
.run { width: 14px; height: 14px; border: 1.5px solid currentColor; display: inline-block; color: var(--ink); }
.run.p { background: currentColor; }
.run:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.read-c { font: 12px var(--sans); color: var(--ink-3); }
.read-m { font: 600 12px var(--sans); color: var(--ink); }
.subhead td { background: var(--card-2); font: 500 12px var(--sans);
  color: var(--ink-3) !important; }
svg text { font-family: var(--sans); }

/* community + pilot */
.yes { color: var(--teal-ink); font-weight: 600; }
.no { color: var(--ink); font-weight: 600; }
.pilot td { text-align: center; white-space: normal; min-width: 120px; vertical-align: top; }
.pilot td:first-child { min-width: 150px; }
.pilot td:last-child { white-space: nowrap; }
.pilot td.pass b { color: var(--teal-ink); }
.pilot td.fail b { color: var(--ink); font-weight: 500; }
.pilot td small { display: block; font: 12px var(--sans); color: var(--ink-3); }

/* how they play */
:root { --al-good: #2a78d6; --al-neutral: #a8a49b; --al-evil: #e34948; }
h2.part { font-size: 21px; margin: 40px 0 4px; }
.notes { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--z3); font-size: 14px; color: var(--ink-2); max-width: 110ch; }
.notes b { color: var(--ink); }
/* status chips: the word carries the status, never a colour */
.st { font: 800 12px/1.3 var(--f); letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px 0;
  white-space: nowrap; border: 1.5px solid currentColor; color: var(--ink); }
.st.new { border-style: dashed; }
.coming { color: var(--ink-3); font: 12px var(--sans); }
.beh thead tr.grp th span.st { display: inline; padding: 1px 5px; margin-left: 4px; border: 1px solid var(--line-2); }
.beh thead tr.grp th span.st.new { border-style: dashed; }
.part-p { margin: 0 0 4px; max-width: 90ch; color: var(--ink-3); }
.beh th, .beh td { padding: 6px 6px; border-top: 1px solid var(--line); white-space: nowrap; text-align: left;
  font-variant-numeric: tabular-nums; color: var(--ink); vertical-align: middle; }
.beh thead th { border-top: 0; font: 400 13px/1.25 var(--f); color: var(--ink-2); vertical-align: bottom; }
.beh thead tr.grp th { text-align: center; padding-bottom: 0; }
.beh thead tr.grp th span { display: block; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.beh td.r, .beh th.r { text-align: right; }
.beh .vsep { border-left: 1px solid var(--line); }
.beh tbody th { font-weight: 700; font-size: 14px; position: sticky; left: 0; background: var(--z4); z-index: 1; }
.beh .s { font: 12px var(--sans); color: var(--ink-3); }
.sv { display: inline-flex; gap: 6px; align-items: center; }
.sv > span { min-width: 40px; text-align: right; }
.sv .s { display: block; }
.beh .ci .kn { min-width: 0; }
.al { display: inline-grid; grid-template-columns: repeat(3, 30px) 16px; gap: 2px; align-items: end; }
.al span { min-height: 22px; display: flex; flex-wrap: wrap-reverse; gap: 2px; align-content: flex-start; padding: 2px;
  border-bottom: 1px solid var(--line-2); justify-content: center; }
.al i, .dotk { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--c); }
.al .x { font: 12px var(--sans); color: var(--ink-3); border: 0; align-self: center; }
.alhead { display: inline-grid; grid-template-columns: repeat(3, 30px) 16px; gap: 2px; font: 12px var(--sans); color: var(--ink-3); text-align: center; }
.profile { margin: 0 0 18px; border-top: 1.5px solid var(--ink); padding: 14px 0; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px 28px; }
.profile h3 { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.axes { display: grid; grid-template-columns: 150px minmax(0, 1fr) 230px; gap: 7px 12px; align-items: center; font-size: 13px; }
.axes .v { font-weight: 600; text-align: left; font-variant-numeric: tabular-nums; }
.axes .v small { display: block; font: 400 12px var(--sans); color: var(--ink-3); }
.quote { border-left: 2px solid var(--ink); padding: 2px 0 2px 12px; font-size: 14px; color: var(--ink); }
.quote p { margin: 0 0 6px; }
.quote .s { font: 12px var(--sans); color: var(--ink-3); }
.conduct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 4px 0 18px; }
.ev { border-top: 1px solid var(--z3); padding: 10px 0; font-size: 14px; }
.ev .top { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.ev .top b { color: var(--ink); }
.ev .k { font: 500 12px var(--sans); border: 1px solid var(--line-2);
padding: 1px 7px; color: var(--ink-2); }
.ev .k::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, transparent);
  margin-right: 5px; vertical-align: 0; }
.ev blockquote { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--ink); color: var(--ink); }
.ev .s { font: 12px var(--sans); color: var(--ink-3); }

/* watching runs */
.run { position: relative; cursor: pointer; }
.run:hover::after, .run:focus-visible::after { content: ""; position: absolute; inset: 2px 2px 2px 4px; background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%); }
.run.p:hover::after, .run.p:focus-visible::after { background: var(--paper); }
.watch { display: inline-flex; gap: 6px; margin-top: 3px; }
.wbtn { all: unset; cursor: pointer; font: 700 13px var(--f); color: var(--ink); border: 1.5px solid var(--ink);
padding: 0 7px; line-height: 20px; white-space: nowrap; }
.wbtn:hover { background: var(--ink); color: var(--paper); }
.wbtn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.wbtn:hover:focus-visible { outline-color: var(--ink); }
.wbtn::before { content: "\25B6"; font-size: 8px; margin-right: 4px; vertical-align: 1px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; }
.thumb { all: unset; cursor: pointer; display: grid; grid-template-columns: 128px auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); padding: 6px 12px 6px 6px; font-size: 13px; color: var(--ink); }
.thumb:hover { border-color: var(--teal); }
.thumb:focus-visible { outline: 2px solid var(--focus); }
.thumb svg {display: block; }
.thumb .s { display: block; font: 12px var(--sans); color: var(--ink-3); }
dialog#player { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink-2); padding: 0; }
dialog#player::backdrop { background: color-mix(in srgb, var(--z1) 60%, transparent); }
.pl-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 14px 110px 10px 18px; border-bottom: 1px solid var(--line); position: relative; }
.pl-h [data-close] { position: absolute; top: 12px; right: 14px; }
.pl-h h2 { font-size: 17px; }
.pl-h .sp { flex: 1; }
.pl-b { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; padding: 14px 18px 18px; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--z1); }
.video svg { width: 100%; height: 100%; display: block; }
.video .load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--paper);
  background: color-mix(in srgb, var(--z1) 60%, transparent); border: 0; cursor: pointer; font: 14px var(--f); }
.video .load b { width: 64px; height: 64px; background: var(--paper); display: grid; place-items: center; }
.video .load b::before { content: ""; width: 0; height: 0; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video .load:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.video .load small { font: 12px var(--sans); opacity: .85; }
.video .loaded { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--paper); font: 14px var(--f); padding: 20px; background: var(--z1); }
.sheet { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.sheet button { all: unset; cursor: pointer; font: 12px var(--sans); color: var(--ink-3); text-align: center; }
.sheet button svg { width: 100%; height: auto; display: block; margin-bottom: 2px; border: 2px solid transparent; box-sizing: border-box; }
.sheet button[aria-current="true"] svg { border-color: var(--teal); }
.sheet button:focus-visible { outline: 2px solid var(--focus); }
.dec { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow: auto; border-top: 1px solid var(--line); }
.dec li button { all: unset; cursor: pointer; display: grid; grid-template-columns: 52px 1fr; gap: 8px; width: 100%; box-sizing: border-box;
  padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.dec li button:hover, .dec li button[aria-current="true"] { background: var(--card-2); }
.dec li button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.dec .tm { font: 12px var(--mono); color: var(--teal-ink); }
.cellruns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px 18px 0; }
.cellruns .run { width: 18px; height: 18px; }
.cellruns .run[aria-current="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.pl-f { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 0 18px 16px; font-size: 13px; }
.ev .watch { margin-top: 6px; }
@media (max-width: 900px) { .pl-b { grid-template-columns: 1fr; } .sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); } .thumb { grid-template-columns: 96px auto; } }

/* method strip + footer */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; padding: 18px 0 8px; font-size: 13px; }
.method h3 { font: 700 13px var(--f); color: var(--ink-2); margin-bottom: 4px; }
.method p { margin: 0; }
/* the footer: every page ends dark (rules 2); a page that already ends in a readout runs straight into it */
footer { background: var(--z1); color: var(--paper-2); margin-top: 72px; padding: 28px 0 40px; font-size: 13px; }
footer a { color: var(--paper); }
main:has(> .readout:last-child) + footer { margin-top: 0; border-top: 1px solid var(--rule-d); }
/* the readout (rules 4): the z1 band closing a scale: numbers table, footnotes, "Runs behind it" links */
.readout { background: var(--z1); color: var(--paper); padding: 8px 0 56px; }
.readout table { border-collapse: collapse; width: 100%; font-size: 14px; }
.readout th, .readout td { text-align: left; padding: 9px 10px 9px 0; border-top: 1px solid var(--rule-d); vertical-align: baseline; color: var(--paper); }
.readout td { white-space: nowrap; }
.readout td.r { font-variant-numeric: tabular-nums; }
.readout thead th { color: var(--paper-2); font-weight: 400; font-size: 13px; border-top: 0; }
.readout .r { text-align: right; }
.readout tbody th { font-weight: 700; }
.readout p { color: var(--paper-2); font-size: 14px; margin: 18px 0 0; max-width: 70em; }

/* tooltip */
#tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--paper);
  padding: 9px 11px; font-size: 13px; line-height: 1.45; max-width: 300px; opacity: 0; transform: translateY(4px);
  transition: opacity .12s, transform .12s; }
#tip.on { opacity: 1; transform: none; }
#tip b { font-weight: 700; }
#tip .m { font-size: 12px; color: var(--paper-2); }
@media (prefers-reduced-motion: reduce) { #tip { transition: none; } html { scroll-behavior: auto; } }
@media (forced-colors: active) { .tick, .outbar i { forced-color-adjust: none; } .run.p, button.run.p { background: CanvasText; } }

/* narrow */
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .head { grid-template-columns: 1fr; padding-top: 20px; }
  .kpis { gap: 18px; flex-wrap: wrap; }
  .dd-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-h { padding: 0 0 10px; }
  .method { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 1fr; }
  .axes { grid-template-columns: 112px minmax(0, 1fr); }
  .axes .v { grid-column: 2; margin-top: -6px; }
  .conduct { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters .sp { flex: 0 0 100%; height: 0; }
  .hint { display: block; }
  .dd td:first-child { white-space: normal; min-width: 180px; }
}
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

/* --- site additions (the built pages) --- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; top: 8px; outline-color: var(--ink); }
.banner[hidden] { display: none; }
.mstrip { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 10px 0 12px; border-top: 1px solid var(--line);
  font: 500 12px/1.4 var(--sans); color: var(--ink-3); }
.mstrip a { color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.mstrip a:hover { color: var(--teal-ink); border-bottom-color: var(--teal); }
.mstrip a.more { margin-left: auto; color: var(--teal-ink); border: 0; }
.err { margin: 16px 0; padding: 12px 16px; border: 1.5px solid var(--ink); color: var(--ink); }
.err b { font-weight: 800; }
.pad { padding: 8px 0 16px; margin: 0; }
.cap { font: 13px/1.45 var(--f); color: var(--ink-2); margin: 6px 0 0; }
.tk { padding: 0 0 10px; max-width: 110ch; }
.tk:empty { display: none; }
.tk p { margin: 0; }
.tk .tk-t { font-size: 16px; color: var(--ink); font-weight: 700; }
.tk .tk-c { color: var(--ink-2); margin-top: 3px; font-size: 14px; }
.tk .tk-b { font: 13px var(--f); color: var(--ink-2); margin-top: 3px; }
.tk .tk-ill { font-size: 14px; color: var(--paper); background: var(--ink); padding: 6px 10px; }
.card-h .chips { flex-wrap: wrap; }
.legend { padding: 0 0 8px; }
.legend .dotsw i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: inline-block; }
.legend .hatch { width: 18px; height: 14px; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line-2) 4px 5px); }
.main tbody tr.partial td { color: var(--ink-2); }
.main tbody tr[data-href] { cursor: pointer; }
.main .model a { color: inherit; text-decoration: none; }
.main .model a:hover b { color: var(--teal-ink); text-decoration: underline; }
.main .model .watch { display: flex; }
.place { font-variant-numeric: tabular-nums; }
.main td.place { width: 52px; }
.main .sticky2 { left: 52px; }

.tick.f { height: 18px; background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2); opacity: 1; }
.run.u { border-style: dashed; }
button.run { all: unset; box-sizing: border-box; width: 18px; height: 18px; border: 1.5px solid currentColor; color: var(--ink); cursor: pointer; position: relative; }
button.run.p { background: currentColor; }
button.run:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.cellruns button.run[aria-current="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }

/* cost + time */
.duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.duo section.card { margin: 0; }
.duo { margin: 20px 0; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; padding: 0 0 6px; }
.panel { margin: 0; }
.panel figcaption { margin: 0 0 4px 4px; }
svg .ax { font: 12px var(--sans); fill: var(--ink-3); }
svg .lab { font: 600 12px var(--sans); fill: var(--ink); }
svg a:focus-visible circle { stroke: var(--focus); stroke-width: 3; }
.strip a circle { cursor: pointer; }
.golds { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0 0 10px; }
.golds table.gold { width: auto; }
.golds caption { text-align: left; padding: 4px 8px; }
.golds caption a { color: inherit; }

/* player */
.video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sheet button img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-bottom: 2px;
  border: 2px solid transparent; box-sizing: border-box; background: var(--card-2); }
.sheet button[aria-current="true"] img { border-color: var(--teal); }
.dec { max-height: 420px; }
.dec li.call .tm, .dec li.result .tm { color: var(--ink-3); }
.dec li.call span:last-child, .dec li.result span:last-child, .dec li.refused span:last-child { font: 12px var(--mono); color: var(--ink-2); word-break: break-word; }
.dec li.refused span:last-child { color: var(--ink); font-weight: 700; }
.pl-b > div > .lbl { margin-bottom: 6px; }
.pl-h [data-close] { margin-left: auto; position: static; }
.pl-h { padding-right: 18px; }

/* detail pages */
.crumbs { font: 14px var(--f); color: var(--ink-2); padding-top: 8px; }
.crumbs a { color: inherit; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding: 4px 0 16px; }
.facts .stat .v { font-size: 17px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; padding: 4px 0 16px; margin: 0; font-size: 14px; }
.kv dt { font: 400 13px var(--f); color: var(--ink-2); padding-top: 2px; }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
/* status in words, weight for emphasis, never colour-coded text (rules 7) */
.ok-t, .bad-t { color: var(--ink); font-weight: 700; }
.na-t { color: var(--ink-2); }
.siblings { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px; }
.sib { display: grid; gap: 2px; min-width: 104px; padding: 8px 10px; border: 1px solid var(--z3); text-decoration: none; color: var(--ink); font-size: 13px; }
.sib:hover { border-color: var(--ink); }
.sib[aria-current="page"] { border: 2px solid var(--ink); }
.sib .s { font: 12px var(--sans); color: var(--ink-3); }
.sib .o::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; background: var(--c, var(--line-2)); vertical-align: -1px; }
.prose { max-width: 76ch; padding: 4px 0 24px; font-size: 15px; line-height: 1.6; }
.prose h2 { margin: 32px 0 8px; font-size: var(--t-lg); scroll-margin-top: 16px; }
.prose p, .prose ul { margin: 0 0 10px; }
.prose li { margin: 4px 0; }
/* the suite and arena notes rendered from content/*.md (scripts/build-legal.mjs): subheads, wrapping tables */
.prose h3 { margin: 24px 0 6px; font-size: var(--t-md); scroll-margin-top: 16px; }
.prose h4 { margin: 18px 0 4px; font-size: var(--t-base); scroll-margin-top: 16px; }
.prose .scroll { margin: 0 0 12px; }
.prose table.beh th, .prose table.beh td { white-space: normal; vertical-align: top; }
.card > .notes { margin: 12px 0 0; }
.ivx { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); gap: 6px 14px; align-items: center; margin: 10px 0 14px; font: 13px var(--sans); }

@media (max-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .mstrip .wide { display: none; }
  .mstrip a.more { margin-left: 0; }
  .kv { grid-template-columns: 1fr; }
  .kv dd { margin-bottom: 6px; }
  .pl-h h2 { font-size: 15px; }
}
.dd .sub { display: block; font: 12px var(--sans); color: var(--ink-3); }
.dd a b { color: var(--ink); }
.wrapc { white-space: normal !important; min-width: 220px; }
.hash { font-size: 12px; color: var(--ink-3); word-break: break-all; white-space: normal !important; }
.flag { margin: 6px 0 0; padding: 6px 10px; border: 1.5px solid var(--ink); font-size: 14px; }
.outbar.mini { display: inline-flex; width: 110px; height: 10px; margin: 0; vertical-align: middle; }
.thumbs { margin-top: 12px; }
a.thumb { text-decoration: none; }
.thumb img, .thumb .noframe { width: 128px; height: 72px; object-fit: cover; display: block; background: var(--card-2); }
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 12px 32px; padding: 0 0 16px; }
.profiles .profile { margin: 0; grid-template-columns: 1fr; }
.profile.focus { border: 2px solid var(--ink); }
.profile h3 a { color: var(--ink); }
.axes .s { color: var(--ink-3); font-size: 12px; }
.axis-empty { grid-column: span 2; }
.st.fact { border-style: dotted; color: var(--ink-3); }
.notes[hidden] { display: none; }
.prose code { font: 13px var(--mono); background: var(--card-2); padding: 1px 4px;}
.ivx svg { display: block; }
@media (max-width: 900px) {
  .top .wrap { flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; gap: 2px 16px; }
  .acct { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; gap: 0 16px; font-size: 14px; }
  .nav a { display: inline-block; padding: 4px 0; }
  .nav a.nav-sub { padding-left: 0; border-left: 0; }
  .rel { order: 4; flex-basis: 100%; margin-left: 0; font-size: 13px; }
  .banner .wrap { flex-direction: column; gap: 6px; font-size: 14px; }
  .axis-empty { grid-column: 2; }
}
.subhead .stick { position: sticky; left: 8px; display: inline-block; white-space: normal; max-width: min(80vw, 900px); }
.main .subhead td { text-align: left; }
.panel svg { max-width: 560px; display: block; }
.ivx { grid-template-columns: max-content minmax(120px, 320px) max-content; }
.ivbar { position: relative; display: block; }
.ivbar i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--teal); border: 2px solid var(--card); }
@media (max-width: 520px) {
  .ivx { grid-template-columns: max-content minmax(0, 1fr); }
  .ivx > span:nth-child(3n) { grid-column: 2; margin-top: -4px; color: var(--ink-3); }
}

/* run explorer (/runs): a list, not a scale (rules 1). The two counts are the view switch; filters sit in one row
   above the list, options as buttons; rows are grouped model > scenario > run, a replaced run under its replay. */
.rhead { padding-bottom: 8px; }
.head.rhead { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px 56px; align-items: end; padding-top: 36px; }
.rhead p { color: var(--ink-2); max-width: 46em; margin: 0; }
.rhead p + p { margin-top: 10px; font-size: 15px; }
.rhead .fresh { margin-top: 8px; }
.views { display: flex; gap: 72px; padding-top: 32px; border-bottom: 1.5px solid var(--ink); }
.vw { display: block; text-decoration: none; color: var(--ink-2); padding-bottom: 14px; position: relative; }
.vw b { display: block; font-weight: 900; font-size: 92px; line-height: .9; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.vw span { display: block; font-size: 17px; font-weight: 700; margin-top: 10px; }
.vw small { display: block; font-size: 13px; margin-top: 2px; }
.vw[aria-current] { color: var(--ink); }
.vw[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 7px; background: var(--ink); }
.vw:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.fl { padding-top: 22px; padding-bottom: 6px; }
.fl > summary { display: none; }
.fg { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-start; }
.fg fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fg legend, .fg .lb { display: block; font-size: 13px; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; font-size: 15px; font-weight: 700; line-height: 1.1; padding: 7px 10px 6px; border: 1.5px solid var(--ink); cursor: pointer; white-space: nowrap; }
.seg i { font-style: normal; font-weight: 400; color: var(--ink-2); margin-left: 6px; font-variant-numeric: tabular-nums; }
.seg label:hover span, .seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg label:hover i, .seg input:checked + span i { color: var(--paper-2); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg input:disabled + span { color: var(--ink-2); border-color: var(--z3); background: none; cursor: default; }
.seg input:disabled + span i { color: var(--ink-2); }
.fg .sel { display: block; position: relative; }
.fg .sel select { appearance: none; font: 400 15px/1.2 var(--f); color: var(--ink); background: transparent; border: 1.5px solid var(--ink);
  border-radius: 0; padding: 7px 32px 6px 10px; min-width: 200px; max-width: 320px; cursor: pointer; }
.fg .sel::after { content: ""; position: absolute; right: 12px; bottom: 14px; width: 7px; height: 7px; border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.fg .sel select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.rstatus { display: flex; gap: 8px 18px; align-items: baseline; flex-wrap: wrap; padding: 18px 0 6px; font-size: 15px; color: var(--ink-2); }
.rstatus b { color: var(--ink); font-weight: 800; }
.rstatus .dl { margin-left: auto; }
.rwhy { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; max-width: 110ch; }
.grp { margin-top: 34px; }
.gh { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); font-size: var(--t-xl); }
.gh a { text-decoration: none; }
.gh a:hover { text-decoration: underline; }
.gh small { font-size: 14px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.gh .key { width: 14px; height: 14px; margin-right: 0; align-self: center; }
.blk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 24px; border-bottom: 1px solid var(--z3); }
.bh { padding: 11px 0 12px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.bh a { text-decoration: none; }
.bh a:hover { text-decoration: underline; }
.bh small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.pair .bh small { margin: 0 0 3px; }
.rl { list-style: none; margin: 0; padding: 0; }
.rl > li + li { border-top: 1px solid var(--z3); }
.rl > li.sub { border-top: 0; }
.row { display: grid; grid-template-columns: 215px minmax(0, 1fr) 70px 260px 18px; gap: 0 16px; align-items: baseline; padding: 11px 0 12px;
  color: inherit; text-decoration: none; font-size: 15px; }
a.row:hover .c-res span, a.row:focus-visible .c-res span { text-decoration: underline; }
a.row:hover .c-go { transform: translateX(3px); }
.row.flat { grid-template-columns: minmax(0, 1.3fr) 150px minmax(0, 1fr) 70px 260px 18px; }
.flatl { border-top: 1.5px solid var(--ink); margin-top: 24px; }
.c-who b { font-weight: 700; }
.c-who small { display: block; font-size: 13px; color: var(--ink-2); }
.c-no { font-weight: 700; white-space: nowrap; }
.tag { font-weight: 400; font-size: 13px; color: var(--ink-2); margin-left: 6px; white-space: normal; }
/* a community run's tier chip (js/community.js's) on its own line under the run number; its submitter and badges under it */
.c-no .chip { display: table; margin: 3px 0 2px; }
.c-no .chip + .tag { display: block; margin-left: 0; }
.c-res { display: flex; align-items: baseline; gap: 9px; }
.sq { display: inline-block; flex: none; width: 11px; height: 11px; border: 1.5px solid var(--ink); }
.sq.p { background: var(--ink); }
.sq.g { border-radius: 50%; border-width: 0; background: var(--ink); width: 9px; height: 9px; margin: 0 1px; }
.sq.u { border-style: dashed; }
.c-cost { text-align: right; }
.c-vid { color: var(--ink-2); font-size: 14px; }
.c-vid b { color: var(--ink); }
.c-go { color: var(--ink-2); transition: transform .12s; }
/* a replaced run hangs under the run that took its place */
.sub .row { padding-top: 0; color: var(--ink-2); font-size: 14px; }
.sub .c-no { font-weight: 400; padding-left: 14px; position: relative; }
.sub .c-no::before { content: ""; position: absolute; left: 2px; top: -6px; width: 8px; height: 13px; border-left: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2); }
.sub .sq { border-color: var(--ink-2); }
.sub .sq.p, .sub .sq.g { background: var(--ink-2); }
.empty { padding: 32px 0; font-size: 17px; margin: 0; }
/* arena matches */
.vs { white-space: nowrap; }
.vs .w { font-weight: 700; }
.vs .x { color: var(--ink-2); margin: 0 6px; }
.row.ar { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr) 160px 18px; }
.row.ar .c-res { display: block; }
.row.ar .c-res .tag { display: block; margin: 2px 0 0; }
/* the readout: what the rows mean, and the page ends dark */
.defs { margin-top: 64px; padding-top: 48px; }
.defs h2 { margin: 0 0 18px; font-size: var(--t-lg); color: var(--paper); }
.defs dl { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 32px; margin: 0; max-width: 1040px; font-size: 15px; }
.defs dt { font-weight: 700; }
.defs dd { margin: 0; color: var(--paper-2); }
.defs a { color: var(--paper); }
a.nl { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
a.nl:hover { text-decoration-style: solid; }
/* a short link's tap target past its text (Q3-24, 24 x 24 px or more; the run squares have theirs): a count ("3",
   "15 of 24"), a gold run, the header's Account and the footer's links reach 4 px above and below and 8 px (the
   footer's 4 px) to each side, centred on the text and never under 24 x 24 px, so a one-digit count gets its 24 px
   too; the layout is unchanged */
a.nl, .readout td.count a, .runs-g a, footer a, .acct { position: relative; }
a.nl::before, .readout td.count a::before, .runs-g a::before, footer a::before, .acct::before { content: ""; position: absolute; top: 50%; left: 50%;
  width: max(calc(100% + 16px), 24px); height: max(calc(100% + 8px), 24px); transform: translate(-50%, -50%); }
footer a::before { width: max(calc(100% + 8px), 24px); }
@media (max-width: 760px) {
  .head.rhead { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; }
  .rhead p + p { font-size: 14px; }
  .views { gap: 28px; padding-top: 24px; }
  .vw b { font-size: 50px; }
  .vw span { font-size: 15px; margin-top: 6px; }
  .vw small { font-size: 12px; }
  .vw[aria-current]::after { height: 5px; }
  .fl { padding-top: 12px; }
  .fl > summary { display: flex; justify-content: space-between; align-items: baseline; list-style: none; cursor: pointer; font-size: 15px;
    font-weight: 700; padding: 10px 0; border-bottom: 1px solid var(--z3); }
  .fl > summary::-webkit-details-marker { display: none; }
  .fl > summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
  .fl[open] > summary::after { content: "\2212"; }
  .fl > summary small { font-weight: 400; color: var(--ink-2); font-size: 14px; margin-left: 8px; }
  .fg { padding-top: 14px; padding-bottom: 10px; gap: 16px; }
  .fg > * { width: 100%; }
  .fg .sel select { width: 100%; max-width: none; }
  .seg span { font-size: 14px; padding: 7px 9px 6px; }
  .rstatus .dl { margin-left: 0; }
  .grp { margin-top: 26px; }
  .gh { font-size: 22px; gap: 4px 10px; }
  .gh small { width: 100%; font-size: 13px; }
  .blk { grid-template-columns: 1fr; }
  .bh { padding: 12px 0 2px; font-size: 14px; }
  .bh small { display: inline; margin: 0 0 0 6px; }
  .pair .bh small { display: block; margin: 0 0 2px; }
  .row, .row.ar, .row.flat { grid-template-columns: 68px minmax(0, 1fr) auto; grid-template-areas: "no res cost" "no vid vid"; gap: 2px 10px;
    padding: 9px 0 10px; font-size: 14px; }
  .row.flat { grid-template-areas: "who who who" "no res cost" "no vid vid"; }
  .sub .row.flat { grid-template-areas: "no no no" ". res cost" ". vid vid"; }
  .sub .c-who { display: none; }
  .row.ar { grid-template-areas: "no vs vs" "no res res" "no vid vid"; }
  .c-who { grid-area: who; }
  .c-no { grid-area: no; white-space: normal; }
  .c-res { grid-area: res; }
  .vs { grid-area: vs; white-space: normal; }
  .c-cost { grid-area: cost; }
  .c-vid { grid-area: vid; font-size: 13px; }
  .c-go { display: none; }
  .tag { display: block; margin: 0; font-size: 12px; }
  .sub .row { font-size: 13px; grid-template-areas: "no no no" ". res cost" ". vid vid"; }
  .sub .c-no { white-space: nowrap; }
  .defs dl { grid-template-columns: 1fr; gap: 4px; }
  .defs dd { margin-bottom: 10px; font-size: 14px; }
}
/* run page (/run): a list page (rules 1). Its number and tags, the result with its mark, a replay's or a replaced run's
   note as an ink bar, the facts in one row, the video or a placeholder that says when it comes, its cell as the runs
   list's rows (this one marked by a bar), and the record (files, hashes) as the dark band that ends the page */
.rp-head { padding: 28px 0 0; }
.rp-no { margin: 0 0 8px; font-size: 17px; }
.rp-no b { font-weight: 800; }
.rp-no .tag { font-size: 15px; margin-left: 10px; }
.rp-head h1 .key { width: 16px; height: 16px; margin-right: 12px; vertical-align: 3px; }
.rp-res { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 0; font-size: var(--t-xl); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1; }
.rp-res .sq { width: 18px; height: 18px; border-width: 2.5px; }
.rp-res .sq.g { width: 15px; height: 15px; border-width: 0; }
.rp-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; max-width: 110ch; }
.rp-head .status { margin-top: 4px; }
.rp-note { display: flex; gap: 8px 16px; align-items: baseline; margin: 24px 0 0; padding: 12px 16px; background: var(--ink); color: var(--paper);
  font-size: 15px; max-width: 1040px; }
.rp-note .chip { flex: none; color: var(--paper); border-color: var(--paper); }
.rp-note a { color: inherit; font-weight: 700; }
.rp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 24px; margin: 28px 0 0;
  border-top: 1.5px solid var(--ink); }
.rp-facts div { padding: 10px 0 12px; border-bottom: 1px solid var(--z3); }
.rp-facts dt { font-size: 13px; color: var(--ink-2); }
.rp-facts dd { margin: 3px 0 0; font-size: 17px; font-weight: 700; }
.rp-line { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); max-width: 110ch; }
/* a placeholder is the one place for the stripes (rules 2) */
.rp-ph { aspect-ratio: 16 / 9; max-width: 640px; display: flex; align-items: flex-end; padding: 28px; color: var(--paper);
  background: var(--z1) repeating-linear-gradient(45deg, transparent 0 14px, var(--rule-d) 14px 16px); }
.rp-ph p { margin: 0; max-width: 46ch; background: var(--z1); padding: 12px 14px; }
.rp-ph b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.rp-ph span { display: block; margin-top: 6px; color: var(--paper-2); font-size: 15px; }
.rp-sib { border-top: 1.5px solid var(--ink); }
#player .pl-b { padding: 4px 0 0; }
.rp-vid { max-width: 960px; }
/* tabular figures stack numbers; file names and sentences keep proportional ones (Schibsted's tnum widens the dot) */
.rp-rec td:first-child, .dd td.wrapc { font-variant-numeric: normal; }
.rp-sib .row[aria-current] { box-shadow: inset 6px 0 var(--ink); padding-left: 18px; }
.rp-ev { margin: 0; padding: 0 0 0 18px; }
.rp-ev li { margin: 3px 0; font-size: 12px; word-break: break-word; }
h1.vs { white-space: normal; }
h1.vs .x { color: var(--ink-2); font-weight: 400; margin: 0 .15em; }
.rp-rec { margin-top: 72px; padding-top: 40px; }
.rp-rec h2 { color: var(--paper); font-size: var(--t-lg); }
.rp-rec p.rp-rec-p { margin: 8px 0 14px; }
.rp-rec td a { color: var(--paper); }
.rp-rec .hash { color: var(--paper-2); }
.rp-rec td.wrapc { color: var(--paper-2); }
.rp-rec .kv { margin-top: 18px; }
.rp-rec .kv dt { color: var(--paper-2); }
.rp-rec .kv dd { color: var(--paper); }
@media (max-width: 760px) {
  .rp-head { padding-top: 18px; }
  .rp-no { font-size: 15px; }
  .rp-no .tag { display: inline; font-size: 13px; }
  .rp-head h1 .key { width: 12px; height: 12px; margin-right: 8px; vertical-align: 2px; }
  .rp-res { font-size: 22px; gap: 10px; }
  .rp-res .sq { width: 14px; height: 14px; border-width: 2px; }
  .rp-res .sq.g { width: 12px; height: 12px; }
  .rp-sub { font-size: 14px; }
  .rp-note { flex-direction: column; gap: 8px; font-size: 14px; }
  .rp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .rp-facts dd { font-size: 15px; }
  .rp-ph { padding: 12px; aspect-ratio: auto; min-height: 220px; }
  .rp-ph b { font-size: 17px; }
  .rp-ph span { font-size: 14px; }
  .rp-sib .row[aria-current] { padding-left: 14px; box-shadow: inset 5px 0 var(--ink); }
  .rp-rec { margin-top: 48px; padding-top: 28px; }
}
/* model page (/model), a scale page: the place by score first and big, the score beside it, the interval small after them
   (owner 2026-11-20), then its scales (scales.js) and readouts */
.mhead h1 .key { width: 16px; height: 16px; margin-right: 12px; vertical-align: 4px; }
.mplace { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 40px; margin-top: 24px; }
.mplace .pl b { display: block; font-weight: 900; font-size: 92px; line-height: .86; letter-spacing: -.045em; }
.mplace .pl.sc b { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.mplace .pl span { display: block; font-size: 15px; font-weight: 700; margin-top: 8px; }
.mplace .pl-s { flex-basis: 100%; margin: 6px 0 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.mhead .tk { padding: 0 0 6px; }
.rp-facts dd small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.mruns { margin-top: 64px; }
.readout .pk-say { color: var(--paper); font-size: 17px; font-weight: 700; margin: 24px 0 12px; }
.readout tr.me th, .readout tr.me td { font-weight: 800; }
.readout th a, .readout td a { color: var(--paper); }
.mclose { margin-top: 72px; padding-top: 32px; }
@media (max-width: 760px) {
  .mhead h1 .key { width: 12px; height: 12px; margin-right: 8px; vertical-align: 3px; }
  .mplace { gap: 6px 24px; margin-top: 16px; }
  .mplace .pl b { font-size: 50px; }
  .mplace .pl.sc b { font-size: 30px; }
  .mplace .pl span { font-size: 13px; margin-top: 4px; }
  .mplace .pl-s { font-size: 14px; }
  .mruns { margin-top: 44px; }
  .mclose { margin-top: 48px; }
  /* a phone's numbers table keeps the columns the scale shows; the rest is in the runs list */
  .readout .ph-x { display: none; }
}
/* scenario page (/scenario): the model page's layout; what its counted cells show beside the title, the start save wide */
.scale-head .sc-say { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.rp-facts div.wide { grid-column: span 2; }
.rp-facts .hash { word-break: break-all; }
@media (max-width: 760px) { .scale-head .sc-say { font-size: 16px; } }
/* reading page (/methods): the light ground, the contents beside the text on a desktop, body 16 px at about 68
   characters a line (tables take the column's width), h2 28 under an ink rule, and a readout closing the page */
.rd-head { padding-top: 44px; padding-bottom: 36px; }
.rd-head h1 { margin: 4px 0 0; }
.rd-head p { margin: 14px 0 0; font-size: 19px; line-height: 1.35; max-width: 34em; }
.rd { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 72px; }
.rd-toc { position: sticky; top: 16px; border-top: 1.5px solid var(--ink); padding-top: 10px; font-size: 14px; }
.rd-toc .k { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rd-toc ol { list-style: none; margin: 0; padding: 0; }
.rd-toc a { display: block; padding: 3px 0; min-height: 24px; color: var(--ink); text-decoration: none; }
.rd-toc a:hover { text-decoration: underline; }
.rd .prose { max-width: none; padding: 0; font-size: 16px; line-height: 1.6; }
.rd .prose p, .rd .prose ul, .rd .prose h2, .rd .prose h3, .rd .prose .ivx { max-width: 68ch; }
.rd .prose h2 { margin: 56px 0 12px; padding-top: 14px; border-top: 1.5px solid var(--ink); font-size: 28px; line-height: 1.15; }
.rd .prose > h2:first-child { margin-top: 0; }
.rd .prose h3 { margin: 32px 0 8px; font-size: 22px; line-height: 1.2; }
.rd .prose .changelog h3 { margin: 24px 0 4px; font-size: 17px; }
.rd .prose .scroll { margin: 6px 0 20px; border-top: 1.5px solid var(--ink); }
.rd .prose table.beh { font-size: 14px; line-height: 1.4; }
/* the generated tables (build-legal's, on methods and the arena notes) are text (names, versions, tasks, p values):
   Schibsted's tabular figures would widen their "." and "," ("Claude Opus 5 . 5") */
.prose table.beh td { font-variant-numeric: normal; }
.rd-close { padding-top: 40px; }
.rd-close h2 { margin: 0 0 4px; color: var(--paper); }
.rd-close a { color: var(--paper); }
.rd-close .cite .lbl { color: var(--paper-2); }
.rd-close .cite pre { color: var(--paper); border-color: var(--rule-d); }
.rd-close .hash { color: var(--paper-2); }
@media (max-width: 760px) {
  .rd-head { padding-top: 24px; padding-bottom: 22px; }
  .rd-head p { font-size: 16px; }
  .rd { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 48px; }
  .rd-toc { position: static; }
  .rd-toc ol { columns: 2; column-gap: 16px; }
  .rd-toc li { break-inside: avoid; }
  .rd .prose h2 { margin-top: 44px; font-size: 22px; }
  .rd .prose h3 { font-size: 19px; }
}
.nm details { padding: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.nm summary { cursor: pointer; font: 12px var(--sans); }
.nm p { margin: 6px 0 0; }

/* home board: column sets and phone cards */
.vtabs { padding: 0 0 10px; }
.bcards { display: none; list-style: none; margin: 0; padding: 0 0 4px; }
.bcard { border-top: 1px solid var(--line); padding: 12px 14px; }
.bc-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.bc-h a { color: var(--ink); text-decoration: none; font-size: 15px; }
.bc-h .sub { font: 12px var(--sans); color: var(--ink-3); }
.bc-r { font: 600 13px var(--sans); color: var(--ink); min-width: 32px; }
.bc-s { display: flex; gap: 10px; align-items: center; margin: 6px 0 8px; }
.bc-s .pct { font-size: 21px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.bc-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.bc-g .lbl { display: block; font-size: 12px; }
.bc-g b { font-weight: 600; color: var(--ink); }
.bc-f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.bc-f .watch { margin: 0; }
.bc-f .wbtn { line-height: 26px; padding: 0 10px; }
.bc-all { margin-left: auto; font: 500 13px var(--sans); padding: 4px 0; }
.bc-sub { border-top: 1px solid var(--line); padding: 8px 14px; background: var(--card-2); font: 500 12px var(--sans); color: var(--ink-3); }
@media (max-width: 600px) {
  .bwide, .vtabs, section:has(> .bcards) > .hint { display: none; }
  .bcards { display: block; }
}

/* freshness, downloads, citation, changelog */
.fresh, .status { margin: 6px 0 0; font: 13px var(--f); color: var(--ink-2); }
.head p.fresh { max-width: none; }
.fresh > span { white-space: nowrap; }
.dl { font: 14px var(--f); color: var(--ink-2); white-space: nowrap; }
.cite { margin: 10px 0 0; }
.cite pre { font: 13px/1.5 var(--mono); background: none; border: 1px solid var(--z3);
  padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.changelog h3 { font-size: 15px; margin: 18px 0 4px; }
#release .hash { display: inline; }

/* run timeline (player): tracks, markers, key moments, decision filters */
.tl { margin-top: 12px; }
.tl-key { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font: 12px var(--sans); color: var(--ink-3); margin-bottom: 4px; }
.tl-key .k::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: 5px; vertical-align: middle; background: var(--c, var(--ink-3)); }
.tl-key .k.hp { --c: var(--teal); } .tl-key .k.gold { --c: var(--o-time-ink); }
.tl-key .k.fightw::before { height: 10px; background: color-mix(in oklab, var(--o-wiped) 20%, transparent); }
.tl-key .k[class*="mk-"]::before { width: 9px; height: 9px;}
.tl-plot { position: relative; border: 1px solid var(--line); background: var(--card-2); padding: 0 10px; }
.tl-svg { display: block; width: 100%; height: 58px; }
.tl-lane { position: relative; height: 26px; border-top: 1px solid var(--line); }
.mk { --c: var(--ink-3); }
.mk.fight, .k.mk-fight { --c: var(--o-cost); }
.mk.down, .k.mk-down { --c: var(--o-wiped); }
.mk.revive, .k.mk-revive { --c: var(--o-pass); }
.mk.choice, .k.mk-choice { --c: var(--al-good); }
.mk.crime, .k.mk-crime { --c: var(--al-evil); }
.mk.goal, .k.mk-goal { --c: var(--teal); }
.mk.cap, .k.mk-cap { --c: var(--o-time); }
.tl-lane .mk { all: unset; position: absolute; top: 1px; width: 24px; height: 24px; margin-left: -12px; cursor: pointer; }
.tl-lane .mk::before { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px;
  background: var(--c); border: 1px solid var(--card); transform: rotate(45deg); }
.tl-lane .mk.goal::before, .tl-lane .mk.cap::before { border-radius: 50%; transform: none; }
.tl-lane .mk:hover::before { outline: 2px solid var(--ink); }
.tl-lane .mk:focus-visible { outline: 2px solid var(--focus);}
.moments { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; }
.moments button { all: unset; cursor: pointer; display: flex; gap: 6px; align-items: center; font-size: 13px; min-height: 24px; color: var(--ink-2); }
.moments button:hover { color: var(--ink); }
.moments button:focus-visible { outline: 2px solid var(--focus); }
.moments .tm { font: 12px var(--mono); color: var(--teal-ink); min-width: 40px; }
.moments i.mk { width: 8px; height: 8px; background: var(--c); flex: none; }
.tl-num { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.tl-num summary { cursor: pointer; font: 12px var(--sans); }
.tl-num table { max-width: 360px; }
.decf { margin: 6px 0; }
.decf .pill { padding: 4px 10px; }
.dec li[hidden] { display: none; }
.pk { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px 24px; padding: 0 0 16px; align-items: start; }
.pk .ax { font: 12px var(--sans); fill: var(--ink-3); }
.pk tr.me td { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .pk { grid-template-columns: 1fr; } }
.profiles.one { grid-template-columns: 1fr; padding: 0 0 4px; }

/* compare: the board's tick boxes, the bar, the page */
.cmpbox { display: inline-flex; gap: 4px; align-items: center; margin-left: 8px; font: 12px var(--sans); color: var(--ink-3); cursor: pointer; min-height: 24px; }
.cmpbox input { width: 14px; height: 14px; margin: 0; accent-color: var(--teal); }
.bc-f .cmpbox { margin-left: 0; }
.cmpbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--z3); }
.cmpbar[hidden] { display: none; }

.cmp-stats { padding: 4px 0 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cmp-stats .v .s { display: block; font: 12px var(--sans); color: var(--ink-3); font-weight: 400; }
.dbar { position: relative; display: inline-block; width: 120px; height: 10px; background: linear-gradient(var(--line-2), var(--line-2)) 50% 0 / 1px 100% no-repeat; }
.dbar i { position: absolute; top: 1px; height: 8px;}
.dbar i.pos { background: var(--teal); } .dbar i.neg { background: var(--o-time); }
#pick { padding: 0 0 6px; }
@media (max-width: 760px) { .cmp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* accessibility pass (R-ux section 6) */
/* run squares: a 24 x 24 px target each (WCAG 2.5.8), spaced so the targets don't overlap */
.runs { gap: 10px; padding: 0 5px; }
.run::before { content: ""; position: absolute; inset: -6.5px -6.5px; }
.cellruns .run::before { inset: -3px; }
/* numbers a reader needs to read a figure: 12 px at least */
.ci .kn2, .ci .kn { font-size: 13px; }
/* reduced motion: no transitions or smooth scrolling anywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* the numbers under a chart (collapsed) */
.numtab { margin: 4px 0 14px; font-size: 13px; color: var(--ink-2); }
.numtab summary { cursor: pointer; font: 13px var(--f); min-height: 24px; }
.numtab table { margin-top: 6px; }
.numtab td, .numtab th { white-space: normal; }

/* community rows on the board (js/community.js): marked, never placed */
.com { padding-top: 28px; }
.com-filter { border: 0; margin: 0 0 12px; padding: 0; }
.com-table td { vertical-align: top; }
.com-table td:first-child { min-width: 0; width: 3.5em; }
.com-table td.com-name { white-space: normal; min-width: 0; width: 100%; }
.com-chips { display: block; margin: 3px 0 1px; }
.com-table .chip { margin: 0 4px 3px 0; }
.com-row td { background: var(--z4); }
.chip-com { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.com-legend { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); max-width: 110ch; }
.com-keys { margin: 6px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--ink-2); max-width: 110ch; }
.com-keys li { margin: 2px 0; }
.com-empty { padding: 16px 0 4px; }
.mk { font: 700 11px/1.3 var(--f); letter-spacing: .04em; border: 1px solid var(--ink-2); padding: 0 4px; color: var(--ink-2); }
.mk-mismatch, .mk-mixed { border-style: dashed; color: var(--ink); }
.mk-lines { display: block; margin-top: 2px; }
@media (max-width: 760px) {
  .com-table th, .com-table td { padding: 5px 4px; }
  .com-table td:first-child { width: 2.6em; }
  .com-table th.r, .com-table td.r .sub { white-space: normal; }
  .com-table .chip { font-size: 11px; letter-spacing: .04em; }
}
