/* AAS Archive. One stylesheet, no inline styles (the Content-Security-Policy forbids them).
   Three clocks run through the whole site in the same colours: real time (slate), the model's
   thinking (violet) and in-game time (timer green). Gold is the speedrunner's best segment. */

@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #eef1f0;
  --surface: #ffffff;
  --raised: #f6f8f7;
  --sunken: #e4e8e6;
  --ink: #131a20;
  --ink-2: #4e5a64;
  --ink-3: #7b8790;
  --line: #d6dcda;
  --line-strong: #b9c2bf;
  --accent: #2446c4;
  --chart: #2446c4;
  --line-1: #2446c4; --line-2: #12925d; --line-3: #c2410c; --line-4: #7c4fe0;
  --accent-ink: #ffffff;
  --accent-soft: #e3e8fb;
  --rta: #66727f;
  --think: #7c4fe0;
  --igt: #12925d;
  --gold: #b9860f;
  --good: #16794a;
  --good-soft: #dff2e8;
  --warn: #9a6200;
  --warn-soft: #fbefd6;
  --bad: #b8322b;
  --bad-soft: #fbe3e1;
  --gold-soft: #f6ecd0;
  --focus: #2446c4;
  --shadow: 0 1px 0 rgba(19, 26, 32, 0.04), 0 1px 3px rgba(19, 26, 32, 0.06);

  --font-ui: "Plex Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow SC", "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "Plex Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.875rem;
  --step-4: 2.5rem;

  --radius: 6px;
  --gutter: clamp(16px, 3vw, 32px);
  --measure: 68ch;
  /* The page grew with the screen from 2026-09-19 (owner: "ik zie op mijn 4k monitor nog best veel lege ruimte
     tegenover een hd monitor"). Below about 1580px nothing changes; above it the tables get the room, and a page that
     is prose keeps a reading width of its own (.page-text). */
  --wide: clamp(1240px, 100vw - 340px, 2040px);
  --wide-text: 1000px;
  /* Where a sticky column heading comes to rest: under the site header, which is itself sticky until it wraps. */
  --sticky-top: 61px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0c1014;
    --surface: #141a20;
    --raised: #1a2129;
    --sunken: #0f1418;
    --ink: #e5eaec;
    --ink-2: #a3aeb6;
    --ink-3: #75828c;
    --line: #26303a;
    --line-strong: #37434e;
    --accent: #86a0ff;
    --chart: #6f8cf5;
    --line-1: #6f8cf5; --line-2: #23a26c; --line-3: #e0703a; --line-4: #9b7af0;
    --accent-ink: #0c1014;
    --accent-soft: #1d2748;
    --rta: #93a0ad;
    --think: #a88bfa;
    --igt: #35c98a;
    --gold: #e2b54a;
    --good: #4fd394;
    --good-soft: #12301f;
    --warn: #f0b755;
    --warn-soft: #33260c;
    --bad: #f37b73;
    --bad-soft: #3a1714;
    --gold-soft: #33290f;
    --focus: #86a0ff;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0c1014; --surface: #141a20; --raised: #1a2129; --sunken: #0f1418;
  --ink: #e5eaec; --ink-2: #a3aeb6; --ink-3: #75828c; --line: #26303a; --line-strong: #37434e;
  --accent: #86a0ff; --accent-ink: #0c1014; --accent-soft: #1d2748; --chart: #6f8cf5; --line-1: #6f8cf5; --line-2: #23a26c; --line-3: #e0703a; --line-4: #9b7af0;
  --rta: #93a0ad; --think: #a88bfa; --igt: #35c98a; --gold: #e2b54a;
  --good: #4fd394; --good-soft: #12301f; --warn: #f0b755; --warn-soft: #33260c; --bad: #f37b73; --bad-soft: #3a1714; --gold-soft: #33290f;
  --focus: #86a0ff; --shadow: none;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* An element marked hidden stays hidden, whatever display a component rule gives it. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font-ui);
  font-feature-settings: "kern";
}
img, svg, video, iframe { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font: 700 var(--step-4)/1.05 var(--font-display); letter-spacing: -0.005em; }
h2 { font: 600 var(--step-2)/1.2 var(--font-display); letter-spacing: 0.005em; }
h3 { font: 600 var(--step-1)/1.3 var(--font-ui); }
h4 { font: 600 var(--step-0)/1.3 var(--font-ui); }
p { margin: 0; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.875em; }
code { background: var(--sunken); padding: 0.05em 0.35em; border-radius: 4px; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.mono { font-family: var(--font-mono); font-size: 0.875em; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
/* A page that is mostly one column of prose stays a document, however wide the screen is. */
.page-text { max-width: var(--wide-text); }
.stack { display: flex; flex-direction: column; gap: var(--stack, 16px); }
.stack-lg { --stack: 32px; }
.stack-sm { --stack: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.spread { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }

/* ---------- site header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 8px 28px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 1.375rem/1 var(--font-display); letter-spacing: 0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark .ring { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.brand-mark .hand-rta { stroke: var(--rta); }
.brand-mark .hand-igt { stroke: var(--igt); }
.brand-mark line { stroke-width: 2.4; stroke-linecap: round; }
.brand small { font: 500 0.75rem/1 var(--font-ui); color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 8px 12px; border-radius: var(--radius); color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--raised); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.nav-main { flex: 1; }
.nav-account a.button { margin-left: 6px; }
/* Signing out sits where the account does, behind a hairline: it is the way out of the header, not one more page. */
.nav-signout { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.nav-signout button { display: block; padding: 8px 12px; border: 0; border-radius: var(--radius); background: none; color: var(--ink-2); font: 500 var(--step-0)/1.55 var(--font-ui); white-space: nowrap; cursor: pointer; }
.nav-signout button:hover { color: var(--ink); background: var(--raised); }

/* A header with Review, Admin and Submit in it has three items more on the right, and then eight menu items no
   longer fit beside them: the menu takes its own line from 1700 px, where it would otherwise start being cut off.
   A visitor's header has none of those and keeps one line down to 1020 px. */
@media (max-width: 1700px) {
  .site-header.crowded .wrap { flex-wrap: wrap; padding-block: 10px; gap: 6px 12px; }
  .site-header.crowded .nav-main { order: 3; flex-basis: 100%; margin-inline: -8px; flex-wrap: wrap; overflow: visible; }
  .site-header.crowded .nav-account { margin-left: auto; }
}

/* With eight menu items the menu takes a line of its own below 1020 px, and wraps rather than hiding items. */
@media (max-width: 1020px) {
  /* The site header stops being sticky here, so a column heading rests against the top of the screen instead. */
  :root { --sticky-top: 0px; }
  .site-header .wrap { flex-wrap: wrap; padding-block: 10px; gap: 6px 12px; }
  .nav-main { order: 3; flex-basis: 100%; margin-inline: -8px; flex-wrap: wrap; overflow: visible; }
  .nav-account { margin-left: auto; }
}
@media (max-width: 760px) {
  .site-header { position: static; }
  .nav-main a { padding: 6px 10px; }
}

/* ---------- buttons ---------- */
.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--step-0)/1 var(--font-ui);
  padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
.button:hover, button:hover { background: var(--raised); text-decoration: none; }
.button.primary, button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover, button.primary:hover { filter: brightness(1.08); }
button:disabled, button:disabled:hover { opacity: .45; cursor: not-allowed; filter: none; background: var(--raised); border-color: var(--line); color: var(--ink-3); }
.button.small, button.small { padding: 6px 10px; font-size: var(--step--1); }
.button.danger, button.danger { color: var(--bad); border-color: var(--bad); }

/* ---------- page head ---------- */
.page { padding-block: 28px 64px; }
.page-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: var(--step--1); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs span[aria-hidden] { color: var(--ink-3); padding-inline: 2px; }
.page-head .sub { color: var(--ink-2); font-size: var(--step-1); max-width: var(--measure); }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: var(--step--1); }
.page-head .meta b { color: var(--ink); font-weight: 600; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.section { display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.section-head .aside { color: var(--ink-3); font-size: var(--step--1); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tabs + .stack { margin-top: 20px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.count-badge { font: 600 0.75rem/1 var(--font-ui); padding: 3px 7px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tabs a[aria-current="page"] .count-badge { background: var(--accent-soft); color: var(--accent); }

/* ---------- filters (plain links, no script needed) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-label { font: 600 0.6875rem/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.axis-choices { display: flex; flex-direction: column; gap: 6px; }
.axis-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.axis-row .filter-label { min-width: 104px; }
.axis-row a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: var(--step--1); white-space: nowrap; }
.axis-row a:hover { color: var(--ink); text-decoration: none; border-color: var(--ink-3); }
.axis-row a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.axis-row .count { color: var(--ink-3); margin-left: 2px; }
.category-line { display: flex; flex-wrap: wrap; gap: 4px; }
tr.unranked td { color: var(--ink-3); }
tr.unranked td .strong, tr.unranked td .row-link { color: var(--ink-3); }
.filter a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: var(--step--1); white-space: nowrap; }
.filter a:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.filter a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.filter-reset { margin-left: auto; font-size: var(--step--1); align-self: center; }

/* ---------- data tables ---------- */
/* No sideways scrollbar: a table that does not fit stacks (see the rule at 1100px), so the box does not need to be a
   scroll container — and must not be one, because that would pin the sticky header to the box instead of the screen. */
.table-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
/* The heading of a column says what the number under it is, so it stays in view while the rows scroll past
   (owner, 2026-09-19: "ik wil dat de koppen statisch zijn bij scrollen, die zijn relevant voor alle runs"). */
table.data th { text-align: left; font: 600 0.6875rem/1.2 var(--font-ui); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--raised); white-space: nowrap; position: sticky; top: var(--sticky-top); z-index: 2; }
table.data thead th::after { content: ""; position: absolute; inset: auto 0 -1px 0; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--raised); }
.row-opens { cursor: pointer; }
.row-opens:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sub-row.row-opens:hover { background: var(--raised); }
table.data a.row-link { color: inherit; text-decoration: none; }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }
table.data .rank { width: 1%; color: var(--ink-3); font-variant-numeric: tabular-nums; }
table.data .strong { font-weight: 600; }
table.data td .sub { display: block; color: var(--ink-3); font-size: var(--step--1); }
.names { display: flex; flex-wrap: wrap; gap: 4px; }
.names .name { background: var(--sunken); border-radius: 3px; padding: 0 6px; min-width: 0; max-width: 100%; overflow-wrap: break-word; }
.names .name.mono { font-size: var(--step--1); }
a.more-link { display: block; font-size: var(--step--1); color: var(--accent); }
.names-more { margin-top: 4px; }
.names-more summary { color: var(--ink-3); font-size: var(--step--1); cursor: pointer; }
.names-more .names { margin-top: 4px; }
.model-entry + .model-entry { margin-top: 6px; }
table.data tr.group td { background: var(--sunken); font: 600 var(--step-0)/1.3 var(--font-display); letter-spacing: 0.02em; padding-block: 8px; }
th.clock-igt { color: var(--igt); }
th.clock-rta { color: var(--rta); }
th.clock-think { color: var(--think); }
td.clock-igt { color: var(--ink); font-weight: 600; }
table.data.compact td, table.data.compact th { padding: 7px 10px; }

/* ---------- panels and label/value lists ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font: 600 0.75rem/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.panel-body { padding: 14px 16px; }
.panel-body.flush { padding: 0; }
.kv { display: grid; grid-template-columns: minmax(7.5rem, max-content) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: var(--step--1); padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dd .sub { display: block; color: var(--ink-3); font-size: var(--step--1); }

/* ---------- chips and badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 4px; background: var(--sunken); color: var(--ink); font-size: var(--step--1); white-space: nowrap; }
.chip .k { color: var(--ink-3); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
a.chip:hover { text-decoration: none; background: var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 0.75rem/1.2 var(--font-ui); white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.plain { background: var(--sunken); color: var(--ink-2); }

/* ---------- the clocks ---------- */
.clocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.clock { background: var(--surface); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.clock-name { display: flex; align-items: center; gap: 8px; font: 600 0.6875rem/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.clock-name::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.clock-value { font: 600 var(--step-3)/1.05 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0.005em; }
.clock-note { color: var(--ink-3); font-size: var(--step--1); }
.clock.igt { --c: var(--igt); }
.clock.rta { --c: var(--rta); }
.clock.think { --c: var(--think); }
@media (max-width: 560px) { .clocks { grid-template-columns: 1fr; } .clock { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; } .clock-value { font-size: var(--step-2); } }

.clockbar { display: block; width: 100%; height: 14px; border-radius: 3px; overflow: hidden; }
.clockbar rect.track { fill: var(--sunken); }
.clockbar rect.think { fill: var(--think); }
.clockbar rect.igt { fill: var(--igt); }
.clockbar rect.other { fill: var(--rta); }
.clockbar.mini { height: 6px; width: 96px; border-radius: 2px; display: inline-block; vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--step--1); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.legend .think { --c: var(--think); }
.legend .igt { --c: var(--igt); }
.legend .other { --c: var(--rta); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile .label { font: 600 0.6875rem/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tile .value { font: 600 var(--step-3)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.tile .tile-note { color: var(--ink-3); font-size: var(--step--1); }
/* A total is the way to what it counts: it keeps the weight it had and says so on hover, rather than turning
   the row into five links in accent blue. */
a.value { color: var(--ink); }
a.value:hover { color: var(--accent); text-decoration: none; }
.names a.name { color: var(--ink-2); }
.names a.name:hover { color: var(--ink); background: var(--raised); text-decoration: none; }

/* ---------- callouts and empty states ---------- */
.note { display: flex; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.note.gold { background: var(--gold-soft); border-color: transparent; }
.note.warn { background: var(--warn-soft); border-color: transparent; }
.note.bad { background: var(--bad-soft); border-color: transparent; }
.note.good { background: var(--good-soft); border-color: transparent; }
.note strong { font-weight: 600; }
.empty { padding: 28px 20px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------- layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.split > aside { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1020px) { .split { grid-template-columns: minmax(0, 1fr); } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
a.card:hover { border-color: var(--line-strong); text-decoration: none; box-shadow: var(--shadow); }
.card h3 { font: 600 var(--step-2)/1.15 var(--font-display); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; }

/* ---------- video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-links { display: flex; flex-direction: column; gap: 8px; }
.video-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* ---------- prose (rendered markdown) ---------- */
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 12px; }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-2); margin-top: 12px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.prose pre { background: var(--sunken); padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; white-space: pre; }
.prose table { border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.prose.wide { max-width: none; }

/* ---------- the log ---------- */
.log { display: flex; flex-direction: column; }
.log-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.log-time { font: 500 var(--step--1)/1.6 var(--font-mono); color: var(--ink-3); text-align: right; padding-top: 1px; }
.log-time a { color: inherit; }
.log-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.log-who { font: 600 0.6875rem/1.4 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.log-item.said .log-who { color: var(--think); }
.log-item.prompt .log-who { color: var(--gold); }
.log-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: var(--measure); }
.log-item.event .log-body { color: var(--ink-2); font-size: var(--step--1); }
.log-divider { display: flex; align-items: center; gap: 12px; padding: 18px 0 8px; font: 600 var(--step-1)/1 var(--font-display); letter-spacing: 0.02em; }
.log-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); }
.call { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.call-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 6px 12px; background: var(--raised); border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.call-head .tool { font-family: var(--font-mono); font-weight: 500; }
.call-code { padding: 10px 12px; font: 400 0.8125rem/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.call-result { border-top: 1px dashed var(--line); padding: 10px 12px; font-size: var(--step--1); }
.call-result summary { cursor: pointer; color: var(--ink-2); }
.call-result .text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.8125rem; }
.tok-k { color: var(--think); }
.tok-s { color: var(--igt); }
.tok-n { color: var(--gold); }
.tok-c { color: var(--ink-3); font-style: italic; }

/* a structured value (game state, arguments), drawn as labelled fields */
.fields { display: grid; grid-template-columns: minmax(6rem, max-content) 1fr; gap: 2px 12px; font-size: var(--step--1); margin: 0; }
.fields dt { color: var(--ink-3); }
.fields dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fields .list { display: flex; flex-wrap: wrap; gap: 4px; }
.fields .item { background: var(--sunken); border-radius: 3px; padding: 0 6px; }
.fields details > summary { cursor: pointer; color: var(--ink-2); }
.fields .nested { border-left: 2px solid var(--line); padding-left: 10px; margin-top: 2px; }

/* ---------- search ---------- */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; }
.hit { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hit-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.hit mark { background: var(--gold-soft); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.hit .excerpt { max-width: var(--measure); overflow-wrap: anywhere; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field .hint { color: var(--ink-3); font-size: var(--step--1); }
.field .error { color: var(--bad); font-size: var(--step--1); font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
  font: 400 var(--step-0)/1.4 var(--font-ui); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 12px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
textarea { min-height: 96px; resize: vertical; }
.check-row { display: flex; align-items: center; gap: 8px; }
.dropzone { border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dropzone .drop-here { color: var(--ink-2); font-weight: 500; }
.dropzone.is-over { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.dropzone.is-over .drop-here { color: var(--accent); }
.dropzone.is-over > * { pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 24px 32px; font-size: var(--step--1); color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--ink-2); }

/* ---------- error pages ---------- */
.error-page { padding-block: 72px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.error-code { font: 700 4.5rem/1 var(--font-display); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- small states ---------- */
.result-ok { color: var(--good); font-weight: 500; }
.result-fail { color: var(--bad); font-weight: 500; }
.strong { font-weight: 600; }
.sub { display: block; color: var(--ink-3); font-size: var(--step--1); }
progress { width: 100%; height: 6px; accent-color: var(--accent); }
details > summary { cursor: pointer; }
details.fold { margin-top: 8px; }
details.fold > summary { color: var(--accent); padding: 4px 0; }
details.fold[open] > summary { margin-bottom: 8px; }
details.panel > summary { list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary.panel-head::before { content: "▸"; color: var(--ink-3); margin-right: 8px; }
details.panel[open] > summary.panel-head::before { content: "▾"; }
details.panel:not([open]) > summary.panel-head { border-bottom: 0; }
details.panel > summary.panel-head { justify-content: flex-start; }
details.panel > summary.panel-head h3 { flex: 1; font: 600 var(--step-0)/1.3 var(--font-ui); text-transform: none; letter-spacing: 0; color: var(--ink); }
.prose .table-wrap { overflow-x: auto; }
.prose blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.prose code { white-space: normal; }
.prose pre code { background: none; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
td .badge + .badge, .sub .badge + .badge { margin-left: 4px; }
.sub:has(.badge) { margin-top: 4px; }
.sub:empty { display: none; }

/* A text not yet approved by the owner carries class "proposed"; it is not styled differently. */
.badge.explains { cursor: help; }
.badge.explains:focus-visible { outline-offset: 1px; }

.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.badges:empty { display: none; }
.explains { cursor: help; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.badge.explains { text-decoration: none; }
table.data td:first-child .strong { white-space: nowrap; }
.table-verification td:first-child { min-width: min(15rem, 100%); }
.log-body > .event-line { display: block; }
table.data td:has(> .badges) { min-width: min(12rem, 100%); }
/* The run's name sets the width of its cell; its status badges wrap beneath it. */
table.data td:has(> a.row-link ~ .badges) { min-width: 0; }
@media (max-width: 560px) {
  table.data td:has(> .badges), table.data td:has(> a + .badges), table.data td:has(> .faint + .badges) { min-width: min(11rem, 100%); }
  .page-head h1 { font-size: var(--step-3); }
}
.mod-list { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); line-height: 1.45; }
/* The three clocks of a run in one table cell: label on the left, time on the right. */
dl.times { display: grid; grid-template-columns: auto auto; gap: 1px 12px; margin: 0; }
dl.times dt { text-align: left; font: 600 0.6875rem/1.9 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
dl.times dt.clock-igt { color: var(--igt); }
dl.times dt.clock-rta { color: var(--rta); }
dl.times dt.clock-think { color: var(--think); }
dl.times dd { margin: 0; text-align: right; }
code.binding { display: inline-block; padding: 8px 12px; font-size: var(--step-0); user-select: all; overflow-wrap: anywhere; }
p.prose, span.prose { display: block; }
.filters { align-items: flex-end; }
.filter-select { display: flex; flex-direction: column; gap: 4px; min-width: 9rem; }
.filter-select select { padding: 6px 10px; font-size: var(--step--1); }
.filter-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
td .rank, .rank { color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 600; }

/* The archive is closed: said once, plainly, on every page. */
.closed-banner { background: var(--warn-soft); border-bottom: 1px solid var(--line); }
.closed-banner .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-block: 14px; font-size: var(--step-1); }
.closed-banner strong { font: 700 var(--step-2)/1.2 var(--font-display); color: var(--warn); }
.closed-banner .feedback { font-weight: 600; }

/* ---------- a new password ---------- */
.password-set { display: flex; flex-direction: column; gap: 12px; }
.password-row { display: flex; gap: 8px; }
.password-row input { flex: 1; min-width: 0; }
.strength { display: flex; flex-direction: column; gap: 6px; }
.strength-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.strength-bar i { height: 6px; border-radius: 3px; background: var(--sunken); }
.strength-bar[data-score="0"] i:nth-child(-n+1) { background: var(--bad); }
.strength-bar[data-score="1"] i:nth-child(-n+2) { background: var(--bad); }
.strength-bar[data-score="2"] i:nth-child(-n+3) { background: var(--warn); }
.strength-bar[data-score="3"] i:nth-child(-n+4) { background: var(--good); }
.strength-bar[data-score="4"] i { background: var(--good); }
.strength-notes { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); }
.strength-notes li.error { color: var(--bad); }

/* A question before an action that cannot be undone. */
.confirm-dialog { max-width: min(460px, calc(100vw - 32px)); padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.confirm-dialog::backdrop { background: rgba(12, 16, 20, 0.45); }
.confirm-dialog h2 { margin: 0; font-size: var(--step-1); }
.confirm-dialog p { margin: 0; color: var(--ink-2); }

/* Sign-in methods as cards: name, provider, sync, dates, rename and remove. */
.credential-cards { display: grid; gap: 10px; }
.credential-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.credential-icon { color: var(--ink-3); padding-top: 2px; }
.credential-name { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.credential-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; }
.credential-rename { margin-top: 6px; }
.credential-rename summary { cursor: pointer; color: var(--accent); width: fit-content; }
.credential-rename form { margin-top: 6px; }
.credential-rename input { min-width: 0; flex: 1 1 220px; }
.credential-actions { align-self: center; }
@media (max-width: 560px) { .credential-card { grid-template-columns: auto minmax(0, 1fr); } .credential-actions { grid-column: 2; } }

/* The history of a submission or a run. */
.history { list-style: none; margin: 0; padding: 0; display: grid; }
.history li { display: grid; grid-template-columns: 14px 150px minmax(0, 1fr); gap: 10px; padding: 6px 0; align-items: baseline; }
.history li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.history li.now::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.history .when { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: var(--step--1); }
@media (max-width: 560px) { .history li { grid-template-columns: 14px minmax(0, 1fr); } .history .what { grid-column: 2; } }
.sub-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sub-group-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sub-group-head h3 { margin: 0; font-size: var(--step-1); }
.sub-group-head .aside { margin-left: auto; font-size: var(--step--1); }
.sub-row { display: grid; grid-template-columns: 150px 90px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sub-row:last-child { border-bottom: 0; }
.sub-group.attention { border-color: var(--warn); }
.sub-row .fails { display: block; font-size: var(--step--1); color: var(--ink-3); margin-top: 2px; }
@media (max-width: 640px) { .sub-row { grid-template-columns: 1fr auto; } }

/* Upload instructions: fields to copy into a video platform. */
.copy-field { display: grid; gap: 4px; }
.copy-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.copy-head label { font-size: var(--step--1); color: var(--ink-3); }
.copy-field input, .copy-field textarea { width: 100%; font-family: var(--font-mono); font-size: var(--step--1); }
.upload-video > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }

/* A runner's details. */
.field-row { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.field-row .field { flex: 1 1 180px; }
.plain-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.plain-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.inline-form { display: inline; }
.runner-text { white-space: pre-wrap; }

/* The run the home page shows its clocks on, with why that run. */
.showcase { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.showcase-title { font: 600 var(--step-1)/1.2 var(--font-display, inherit); }
.change { font-size: var(--step--1); color: var(--ink-2); }
.change del { color: var(--bad); text-decoration: line-through; }
.change ins { color: var(--good); text-decoration: none; }

/* Icons of games and AI models, beside their names. */
.with-icon { display: inline-flex; align-items: center; gap: 0.45em; }
img.icon { flex: none; border-radius: 4px; object-fit: contain; vertical-align: middle; }
.icon-cell { display: flex; gap: 12px; align-items: flex-start; }
.icon-cell form { margin-top: 6px; }
.icon-preview { flex: none; width: 40px; height: 40px; border-radius: 6px; object-fit: contain; background: var(--raised); border: 1px solid var(--line); }
.icon-preview.none { display: inline-flex; align-items: center; justify-content: center; font-size: 0.6875rem; color: var(--ink-3); }
.icon-actions { display: grid; gap: 8px; min-width: 16rem; }
.icon-actions .inline-form { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-actions input[type=url] { flex: 1 1 12rem; min-width: 0; }

/* The specification's earlier drafts, folded above the newest. */
details.drafts-earlier { margin-block: 0.75rem; }
details.drafts-earlier > summary { color: var(--ink-2); }
details.drafts-earlier[open] > summary { margin-bottom: 0.5rem; }

/* Comparing two bundles: a differing value is marked on both sides. */
.differs { background: var(--warn-soft); border-radius: 4px; padding: 2px 6px; margin: -2px -6px; }
.block { display: block; }
.break { overflow-wrap: anywhere; }
.warn-text { color: var(--warn); }

/* Whether a recording link is this run's video. */
.recording-check { display: grid; gap: 4px; justify-items: start; }
.check-points { margin: 0; padding-left: 1.1rem; font-size: var(--step--1); }
.check-points li.ok { color: var(--ink-2); }
.check-points li.bad { color: var(--bad, #b3261e); }
.bad-text { color: var(--bad); }
.link-review { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.link-review input[name=note] { min-width: 14rem; }
.completeness li.missing { color: var(--bad); }
.return-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.return-other { border-top: 1px solid var(--line); padding-top: 14px; }

/* Column charts on the visitors page: one series each, thin columns rounded at the top, a hairline baseline. */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.chart-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.chart-card h3 { font: 600 0.75rem/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .hit { fill: transparent; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--ink-3); font: 11px var(--font-ui); }
.chart text.value { fill: var(--ink-2); font-weight: 600; }

/* The visitors page keeps its sources apart: a heading per source, with where its numbers come from. */
.source-head { font: 700 var(--step-2)/1.2 var(--font-display); margin: 0; padding-top: 8px; border-top: 3px solid var(--ink); }
.source-note { margin-top: -20px; max-width: var(--measure); }

/* Line charts and bar lists, after ishetfrietdag.nl's status page. */
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .c1 { stroke: var(--line-1); } .chart .dot.c1 { fill: var(--line-1); }
.chart .c2 { stroke: var(--line-2); } .chart .dot.c2 { fill: var(--line-2); }
.chart .c3 { stroke: var(--line-3); } .chart .dot.c3 { fill: var(--line-3); }
.chart .c4 { stroke: var(--line-4); } .chart .dot.c4 { fill: var(--line-4); }
.chart .guide { stroke: var(--ink-3); stroke-width: 1; opacity: 0; }
.chart g:hover .guide { opacity: 0.5; }
.chart-card .sub-label { display: block; margin-top: 6px; color: var(--ink-3); font-size: var(--step--1); }
.bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bar-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.bar-list .what { grid-column: 1 / -1; font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-list .track { display: block; height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.bar-list .fill { display: block; height: 100%; fill: var(--line-1); }
.bar-list svg { display: block; width: 100%; height: 8px; }
.bar-list .n { font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.full-tables { display: flex; flex-direction: column; gap: 10px; }
.full-tables details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.full-tables summary { font-weight: 600; }
.full-tables details[open] summary { margin-bottom: 10px; }
.flag-icon { display: inline-block; width: 16px; height: 12px; vertical-align: -1px; border-radius: 1px; box-shadow: 0 0 0 1px var(--line); }

/* Stats and Compare */
.clock-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.best { font-weight: 600; color: var(--good, var(--igt)); }
.compare-choices { display: flex; flex-direction: column; gap: 6px; }
label.check { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }

/* Search: a run's sections with its matches, a match as a moment, and the bar the log opens with */
.match-timeline { display: block; width: 100%; height: auto; }
.match-timeline .segment { fill: var(--sunken); }
.match-timeline .segment.odd { fill: var(--line); }
.match-timeline .segment.after { fill: var(--surface); stroke: var(--line); stroke-dasharray: 3 2; }
.match-timeline text { font: 11px var(--font-ui); fill: var(--ink-3); }
.match-timeline .mark { fill: var(--accent); }
.match-timeline .mark.current { fill: var(--gold); }
.match-timeline .hit-area { fill: transparent; }
.match-timeline a:hover .mark, .match-timeline a:focus .mark { fill: var(--ink); }
.search-run-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.search-run-title { font-size: var(--step-1); }
.moments { border-top: 1px solid var(--line); }
.moment { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.moment-when { display: flex; flex-direction: column; gap: 2px; }
.moment-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.moment-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.moment-text { margin: 0; overflow-wrap: anywhere; }
.moment-fields { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 2px 14px; margin: 0; font-size: var(--step--1); }
.moment-fields dt { color: var(--ink-3); }
.moment-fields dd { margin: 0; overflow-wrap: anywhere; }
.moment mark, .log-match mark { background: var(--gold-soft); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.search-run-links { gap: 6px 16px; }
@media (max-width: 560px) { .moment { grid-template-columns: 1fr; } .moment-when { flex-direction: row; gap: 10px; } }
.search-bar { position: sticky; top: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 8px rgb(0 0 0 / 0.08); }
.search-bar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.search-bar p { margin: 0; gap: 4px 14px; }
.button.disabled { opacity: 0.45; pointer-events: none; }
.log-match { border-radius: var(--radius); }
.log-match.current { background: var(--gold-soft); outline: 6px solid var(--gold-soft); }
.log-searched .log [id] { scroll-margin-top: 230px; }
.search-run .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); }
.provider-button { white-space: nowrap; }
.good-text { color: var(--good); }

/* A run table has more columns than a narrow window has room for. Rather than cutting them off behind a sideways
   scrollbar — where the model, the clocks and the date simply cannot be seen — each row becomes a block of label and
   value as soon as the table no longer fits (owner, 2026-09-19: "de run pagina breekt met verkleinen maar allerkleinst
   laat de data wel weer zien"). It fits at 1280px; below 1100px it stacks. */
@media (max-width: 1100px) {
  table.data td { overflow-wrap: anywhere; }
  table.data th { white-space: normal; }
  table.data td:first-child .strong, table.data .nowrap { white-space: normal; }
  table.data.wide, table.data.wide tbody, table.data.wide tr { display: block; width: 100%; }
  table.data.wide thead { display: none; }
  table.data.wide tbody tr { border-bottom: 1px solid var(--line); padding: 8px 12px; }
  table.data.wide tbody tr:last-child { border-bottom: 0; }
  table.data.wide td { display: block; padding: 3px 0; border: 0; text-align: left; min-width: 0; }
  table.data.wide td[data-label] { position: relative; padding-left: 8.25rem; min-height: 1.6em; }
  table.data.wide td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 7.5rem; color: var(--ink-3); font: 600 0.6875rem/1.4 var(--font-ui); letter-spacing: 0.07em; text-transform: uppercase; overflow-wrap: anywhere; }
  table.data.wide td:empty { display: none; }
  table.data.wide td.num { text-align: left; }
  table.data.wide tr.group { padding: 0; }
  table.data.wide tr.group td { display: block; padding: 8px 12px; }
  table.data.wide td:has(> .badges) { min-width: 0; }
  table.data.wide .rank { width: auto; }
}

/* Phones (plan, "Later: phones"): nothing makes the page scroll sideways, and long words break. */
@media (max-width: 640px) {
  .chip { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
  /* A tool's parameters: the name over its type and explanation, rather than a column that cannot shrink. */
  .fields { grid-template-columns: minmax(0, 1fr); }
  .fields dt { margin-top: 6px; }
  .fields dt, .fields .item { overflow-wrap: anywhere; min-width: 0; }
  .fields .item { max-width: 100%; }
  .axis-row a { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
  .axis-row .filter-label { min-width: 100%; }
}
.sub-earlier > summary { padding: 8px 14px; color: var(--ink-2); cursor: pointer; }
.sub-earlier > summary:hover { color: var(--ink); }

/* The site's own words: a text nobody has approved yet wears a mark, for the reader who can approve it. */
.text-flag { position: relative; }
div.text-flag { border-left: 3px solid var(--warn); padding-left: 12px; margin-left: -15px; }
div.text-flag:has(> .text-mark.rejected) { border-left-color: var(--bad); }
.text-mark { display: inline-block; font: 600 0.625rem/1 var(--font-ui); letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); text-decoration: none; margin-right: 8px; vertical-align: 2px; }
.text-mark.rejected { background: var(--bad-soft); color: var(--bad); }
.text-mark:hover { text-decoration: underline; }
span.text-flag > .text-mark { margin-right: 6px; }

/* Approving them: one card per text, with the words in a box that is the words. */
.text-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.text-card.proposed { border-left: 3px solid var(--warn); }
.text-card.rejected { border-left: 3px solid var(--bad); }
.text-card.approved { border-left: 3px solid var(--good); }
.text-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }

/* The word that says what just happened to a text, beside the buttons that did it. */
.text-card-said { margin-left: auto; align-self: center; }
.text-card-said.good { color: var(--good); }
.text-card-said.bad { color: var(--bad); }
.text-card-head .sub { margin: 0; }
.text-card-form { display: flex; flex-direction: column; gap: 8px; }
.text-card textarea { width: 100%; font: 400 var(--step-0)/1.6 var(--font-ui); color: var(--ink); background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; resize: vertical; }
.text-card-actions { gap: 8px; align-items: center; }
.text-card-actions input[name="note"] { flex: 1 1 14rem; min-width: 0; }
@media (max-width: 640px) {
  .text-card-actions { flex-wrap: wrap; }
  .text-card-actions input[name="note"] { flex-basis: 100%; }
}

/* Very narrow screens (320px is the narrowest a browser offers). The label of a stacked row moves above its value
   rather than beside it, a badge wraps instead of insisting on one line, and a table that is not stacked may break
   its longest word. Nothing is cut off and nothing scrolls sideways. */
@media (max-width: 400px) {
  table.data.wide td[data-label] { padding-left: 0; padding-top: 12px; }
  table.data.wide td[data-label]::before { position: static; display: block; width: auto; margin-bottom: 3px; }
  .badge, .chip { white-space: normal; }
  table.data { table-layout: fixed; }
  table.data td, table.data th { overflow-wrap: anywhere; word-break: break-word; }
}

/* Roles, as what they are: a list of things an account may do, ticked or not, saved in one go. */
.role-choices { display: grid; gap: 8px; }
.role-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.role-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role-choice input { margin-top: 3px; }
.role-choice .sub { display: block; margin-top: 2px; }
.role-choice:has(input:disabled) { opacity: 0.6; }

/* A setting: what it is, what it is for, and one field to change it. */
.setting { gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.setting input, .setting select { max-width: 28rem; }

/* What people write: a comment under a run, a guide on a game. Someone's words, so they are set apart from the
   archive's own, and a hidden one keeps its place rather than leaving a gap nobody can explain. */
.comment { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment-hidden { opacity: 0.75; border-left: 3px solid var(--warn); }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.comment textarea { width: 100%; }
.guide-list { display: flex; flex-direction: column; gap: 8px; }
.guide-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.guide-card a { font-weight: 600; }

/* ---------- the forum, as a page of the archive ---------- */
/* The archive's header on top, as on every page, and the forum filling the rest of the window below it: the forum
   scrolls inside its frame, so its own band and its own bars keep their place while reading a long topic. */
body:has(.forum-frame) { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body:has(.forum-frame) main { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; padding: 0; }
body:has(.forum-frame) .site-footer { display: none; }
.forum-frame { height: 100%; }
.forum-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--ground); }
