/* LiveCraft site. One visual identity with the paper: its figure palette, inventory-slot badges, the pixel strip and
   the logo. Light is the default look (the paper is light); dark is selected by data-theme="dark" on <html>, which the
   inline script in <head> sets from the stored choice or the OS setting. */

/* ---- tokens ---------------------------------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  /* The paper's palette (PAL in its pptx_kit.py): fill, soft, main, border and text tones of each hue. Meanings are
     fixed: blue = Screen, teal = Basic tools, sand = Macro tools, coral = real-time clock and deaths, slate = turn-based
     clock and neutral, green = verifier, checkpoints and survival tasks. */
  --blue-fill: #EAF2FA;  --blue-soft: #CFE1F3;  --blue-main: #8DB6DE;  --blue-border: #5F93C4;  --blue-text: #2E5A85;
  --teal-fill: #E7F5F3;  --teal-soft: #C4E6E0;  --teal-main: #88CABF;  --teal-border: #4F9F93;  --teal-text: #2A6860;
  --sand-fill: #FBF4E1;  --sand-soft: #F3E2B3;  --sand-main: #E2C473;  --sand-border: #BF9A3F;  --sand-text: #7A5E1B;
  --coral-fill: #FDEEE9; --coral-soft: #F8D3C8; --coral-main: #EDA592; --coral-border: #D9775F; --coral-text: #964431;
  --slate-fill: #F3F5F7; --slate-soft: #E1E6EB; --slate-main: #B9C3CC; --slate-border: #8593A0; --slate-text: #3D4B57;
  --green-fill: #EAF5EC; --green-soft: #CFE7D2; --green-main: #96C9A0; --green-border: #5FA06D; --green-text: #2F6B3D;
  --ink: #26323D;
  --slot: #8B8B8B; --slot-edge: #373737;          /* inventory-slot badge, as in the paper's figures */

  /* Logo. The files in assets/brand/ are named only here (and in the <link rel="icon"> lines of the pages). */
  --wordmark-light: url("brand/wordmark.webp");
  --wordmark-dark: url("brand/wordmark-dark.webp");
  --mark: url("brand/mark-64.png");
  --wordmark-ratio: 2.9375;                       /* width / height of the wordmark */

  /* Roles, light theme. On a light page a mark takes the border tone and coloured text the text tone. */
  --bg: #F6F7F5; --surface-1: #FFFFFF; --surface-2: #EEF1F3; --line: #D9E0E6; --line-strong: #B9C3CC;
  --text-primary: #26323D; --text-secondary: #3D4B57; --text-muted: #5A6B78;
  --brand: #2B74C4; --link: #2E5A85;
  --strip: #26323D; --strip-run: var(--coral-border);
  --badge: #26323D; --frame: #26323D;
  --wordmark: var(--wordmark-light);
  --c-blue: var(--blue-border);   --c-blue-ink: var(--blue-text);   --c-blue-tint: var(--blue-fill);   --c-blue-soft: var(--blue-soft);   --c-blue-ifill: var(--blue-soft);
  --c-teal: var(--teal-border);   --c-teal-ink: var(--teal-text);   --c-teal-tint: var(--teal-fill);   --c-teal-soft: var(--teal-soft);   --c-teal-ifill: var(--teal-soft);
  --c-sand: var(--sand-border);   --c-sand-ink: var(--sand-text);   --c-sand-tint: var(--sand-fill);   --c-sand-soft: var(--sand-soft);   --c-sand-ifill: var(--sand-soft);
  --c-coral: var(--coral-border); --c-coral-ink: var(--coral-text); --c-coral-tint: var(--coral-fill); --c-coral-soft: var(--coral-soft); --c-coral-ifill: var(--coral-main);
  --c-slate: var(--slate-border); --c-slate-ink: var(--slate-text); --c-slate-tint: var(--slate-fill); --c-slate-soft: var(--slate-soft); --c-slate-ifill: var(--slate-soft);
  --c-green: var(--green-border); --c-green-ink: var(--green-text); --c-green-tint: var(--green-fill); --c-green-soft: var(--green-soft); --c-green-ifill: var(--green-soft);
  --series-screen: var(--c-blue); --series-basic: var(--c-teal); --series-macro: var(--c-sand);
  --heat-ink: #0E171E; --heat-0: #EEF1F3;
  --shadow: 0 1px 2px rgba(38,50,61,.06), 0 10px 28px -12px rgba(38,50,61,.18);

  --display: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;      /* headings, as in the paper */
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Songti SC", serif;        /* prose, as in the paper */
  --mono: "SF Mono", ui-monospace, Inconsolata, Menlo, Consolas, monospace;
}
/* Roles, dark theme. On a dark page marks and coloured text take the main tone. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141B21; --surface-1: #1B242C; --surface-2: #26323D; --line: #35434F; --line-strong: #4A5A68;
  --text-primary: #EEF1F4; --text-secondary: #C5CED6; --text-muted: #94A2AE;
  --brand: #6FA9E6; --link: #8DB6DE;
  --strip: #0B1014; --strip-run: var(--coral-main);
  --badge: #33424F; --frame: #26323D; --heat-0: #212A32;
  --wordmark: var(--wordmark-dark);
  --c-blue: var(--blue-main);   --c-blue-ink: var(--blue-main);   --c-blue-tint: #213447;  --c-blue-soft: #25425D;  --c-blue-ifill: var(--blue-text);
  --c-teal: var(--teal-main);   --c-teal-ink: var(--teal-main);   --c-teal-tint: #20383C;  --c-teal-soft: #234949;  --c-teal-ifill: var(--teal-text);
  --c-sand: var(--sand-main);   --c-sand-ink: var(--sand-main);   --c-sand-tint: #383527;  --c-sand-soft: #4F4423;  --c-sand-ifill: var(--sand-text);
  --c-coral: var(--coral-main); --c-coral-ink: var(--coral-main); --c-coral-tint: #402E2E; --c-coral-soft: #5F362F; --c-coral-ifill: var(--coral-text);
  --c-slate: var(--slate-main); --c-slate-ink: var(--slate-main); --c-slate-tint: #253039; --c-slate-soft: #2E3944; --c-slate-ifill: var(--slate-text);
  --c-green: var(--green-main); --c-green-ink: var(--green-main); --c-green-tint: #213931; --c-green-soft: #264B35; --c-green-ifill: var(--green-text);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px -12px rgba(0,0,0,.6);
}
@media (min-resolution: 1.5dppx) {
  :root { --wordmark-light: url("brand/wordmark@2x.webp"); --wordmark-dark: url("brand/wordmark-dark@2x.webp"); }
}

/* A hue for a block: --hue is the mark, --hue-ink coloured text, --hue-tint and --hue-soft backgrounds. */
.hue-blue, .screen  { --hue: var(--c-blue);  --hue-ink: var(--c-blue-ink);  --hue-tint: var(--c-blue-tint);  --hue-soft: var(--c-blue-soft); }
.hue-teal, .basic   { --hue: var(--c-teal);  --hue-ink: var(--c-teal-ink);  --hue-tint: var(--c-teal-tint);  --hue-soft: var(--c-teal-soft); }
.hue-sand, .macro   { --hue: var(--c-sand);  --hue-ink: var(--c-sand-ink);  --hue-tint: var(--c-sand-tint);  --hue-soft: var(--c-sand-soft); }
.hue-coral, .sh.rt  { --hue: var(--c-coral); --hue-ink: var(--c-coral-ink); --hue-tint: var(--c-coral-tint); --hue-soft: var(--c-coral-soft); }
.hue-slate, .sh.tb, .finding.tb { --hue: var(--c-slate); --hue-ink: var(--c-slate-ink); --hue-tint: var(--c-slate-tint); --hue-soft: var(--c-slate-soft); }
.hue-green          { --hue: var(--c-green); --hue-ink: var(--c-green-ink); --hue-tint: var(--c-green-tint); --hue-soft: var(--c-green-soft); }

/* ---- base ------------------------------------------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text-primary); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1408px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }
.spacer { flex: 1; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h3 { font-size: 18px; }
section { padding: 72px 0; }

/* Pixel strip, as at the top of every page of the paper: an ink band with a coral run, the hue of the real-time
   clock, that breaks up into three pixels. */
body::before { content: ""; display: block; height: 6px; --u: 6px; --run: max(17vw, 96px);
  background: linear-gradient(90deg, var(--strip-run) 0 var(--run), transparent 0 calc(var(--run) + var(--u)),
    var(--strip-run) 0 calc(var(--run) + 2 * var(--u)), transparent 0 calc(var(--run) + 3 * var(--u)),
    var(--strip-run) 0 calc(var(--run) + 4 * var(--u)), transparent 0 calc(var(--run) + 6 * var(--u)),
    var(--strip-run) 0 calc(var(--run) + 7 * var(--u)), transparent 0) var(--strip); }

/* Logo */
.wordmark { display: block; aspect-ratio: var(--wordmark-ratio); background: var(--wordmark) center / contain no-repeat; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand .wordmark { height: 40px; }
.brand .mark { display: none; width: 32px; height: 32px; background: var(--mark) center / contain no-repeat; }

/* Inventory-slot badge: items and numbers sit on a slot, as in the game's inventory and the paper's figures. */
.slot { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; background: var(--slot); border: 1px solid var(--slot-edge);
  box-shadow: inset -1px -1px 0 rgba(255,255,255,.34), inset 1px 1px 0 rgba(0,0,0,.2); vertical-align: middle; }
.slot img { display: block; width: 16px; height: 16px; max-width: none; image-rendering: pixelated; }
.slot .pi { width: 14px; height: 14px; color: #fff; filter: drop-shadow(1px 1px 0 var(--slot-edge)); }
.slot.sm { width: 22px; height: 22px; }
.slot.xs { width: 20px; height: 20px; }
.slot.lg { width: 44px; height: 44px; } .slot.lg img { width: 32px; height: 32px; }
/* Dark badge of a section heading: it holds the section's icon or number. */
.blk h2.h .pi, .prose h2::before { box-sizing: border-box; flex: none; width: 36px; height: 36px; background: var(--badge); color: #fff;
  box-shadow: inset 1.5px 1.5px 0 rgba(255,255,255,.3), inset -1.5px -1.5px 0 rgba(0,0,0,.45); }
.blk h2.h .pi { padding: 9px; }

/* Icons. Pixelarticons (.pi) take the text colour; the setting icons (.si, IconPark) have a fill and a stroke tone. */
.pi { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; shape-rendering: crispEdges; }
.si { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; --si-hi: var(--si-stroke); }
.si-screen { --si-fill: var(--c-blue-ifill);  --si-stroke: var(--c-blue-ink); }
.si-basic  { --si-fill: var(--c-teal-ifill);  --si-stroke: var(--c-teal-ink); }
.si-macro  { --si-fill: var(--c-sand-ifill);  --si-stroke: var(--c-sand-ink); }
.si-rt     { --si-fill: var(--c-coral-ifill); --si-stroke: var(--c-coral-ink); }
.si-tb     { --si-fill: var(--c-slate-ifill); --si-stroke: var(--c-slate-ink); }

/* ---- nav ------------------------------------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 14px; max-width: 1408px; }
.nav nav { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; }
.nav nav a { display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1 var(--sans); text-decoration: none; color: var(--text-secondary); padding: 10px 12px; border-radius: 6px; transition: color .15s, background .15s; }
.nav nav a:hover, .nav nav a.on { color: var(--text-primary); background: var(--surface-2); }
.nav nav a .pi { color: var(--text-muted); } .nav nav a.on .pi, .nav nav a:hover .pi { color: var(--brand); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-1); color: var(--text-secondary); cursor: pointer; transition: color .15s, border-color .15s, transform .15s; }
.icon-btn:hover { color: var(--text-primary); border-color: var(--line-strong); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn .pi { width: 17px; height: 17px; }
.icon-btn .pi.sun { display: none; }
:root[data-theme="dark"] .icon-btn .pi.sun { display: block; } :root[data-theme="dark"] .icon-btn .pi.moon { display: none; }

/* ---- buttons, controls ---------------------------------------------------------------------------------------- */
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--sans); text-decoration: none; padding: 12px 16px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-1); color: var(--text-primary); cursor: pointer;
  box-shadow: 0 2px 0 var(--line-strong); transition: transform .12s, box-shadow .12s, border-color .15s; }
.btn .pi { width: 17px; height: 17px; color: var(--brand); }
.btn:hover { border-color: var(--text-muted); transform: translateY(-1px); box-shadow: 0 3px 0 var(--line-strong); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 2px 0 #0E171E; }
.btn.primary .pi { color: var(--coral-main); }
:root[data-theme="dark"] .btn.primary { background: #EEF1F4; color: var(--ink); border-color: #EEF1F4; box-shadow: 0 2px 0 var(--slate-border); }
:root[data-theme="dark"] .btn.primary .pi { color: var(--coral-text); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 20px 0 14px; }
.controls label { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-right: -6px; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); position: relative; }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); padding: 6px 12px 6px 7px; min-height: 34px; border: 0; border-radius: 6px; background: none; color: var(--text-secondary); cursor: pointer; white-space: nowrap; transition: color .2s; }
.seg button > .pi { margin-left: 5px; color: var(--text-muted); }
.seg button small { font: 500 11px/1 var(--mono); color: var(--text-muted); }
.seg button[aria-pressed="true"] { color: var(--text-primary); }
.seg button[aria-pressed="true"] > .pi { color: var(--brand); }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 6px; background: var(--surface-1); box-shadow: 0 1px 2px rgba(38,50,61,.16), 0 0 0 1px var(--line); transition: transform .28s cubic-bezier(.3,.7,.2,1), width .28s cubic-bezier(.3,.7,.2,1); }
input.search { font: 14px var(--sans); padding: 10px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-1); color: var(--text-primary); min-width: 240px; outline: none; transition: border-color .15s; }
input.search:focus { border-color: var(--brand); }
select.sel { font: 600 13px var(--sans); padding: 9px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-1); color: var(--text-primary); }
.card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); }
.chip { display: inline-flex; align-items: center; font: 700 11px/1 var(--sans); letter-spacing: .02em; padding: 5px 8px; border-radius: 4px;
  background: var(--hue-tint, var(--surface-2)); color: var(--hue-ink, var(--text-secondary)); border: 1px solid var(--hue-soft, var(--line)); }
.chip.plain { font-weight: 500; letter-spacing: 0; padding: 6px 9px; }
.eyebrow { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--brand); }
.lead { color: var(--text-secondary); font: 18px/1.6 var(--serif); max-width: 780px; margin: 14px 0 0; }
.tip { position: fixed; z-index: 100; pointer-events: none; padding: 9px 11px; border-radius: 6px; background: var(--text-primary); color: var(--bg); font: 12px/1.45 var(--sans); max-width: 260px; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; font-size: 13px; }
.tip .n { font-family: var(--mono); }

/* ---- hero ------------------------------------------------------------------------------------------------------ */
.hero { position: relative; padding: 30px 0 52px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;              /* a faint block grid behind the title */
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 420px at 50% 0, rgba(0,0,0,.75), transparent); mask-image: radial-gradient(ellipse 60% 420px at 50% 0, rgba(0,0,0,.75), transparent); }
.hero .wrap { position: relative; }
.hero-head { text-align: center; }
.hero h1.wordmark { height: clamp(104px, 13vw, 172px); margin: 0 auto; }
.hero .tagline { font: 800 clamp(22px, 3vw, 38px)/1.12 var(--display); letter-spacing: -0.025em; margin: 10px 0 0; color: var(--c-coral-ink); }
.hero .kicker { font: 500 clamp(16px, 1.6vw, 21px)/1.35 var(--display); letter-spacing: -0.01em; color: var(--text-secondary); margin: 8px 0 0; }
.hero .cta { justify-content: center; margin-top: 22px; }

/* Mosaic: one screenshot per LiveCraft-Lite task in the bento arrangement of the paper's title figure. */
.mosaic-frame { margin: 30px 0 0; padding: 6px; background: var(--frame); border-radius: 10px; box-shadow: var(--shadow); }
.mosaic { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.mosaic:empty { aspect-ratio: 990 / 284; }
.tile { position: relative; display: block; grid-column: var(--c); grid-row: var(--r); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #121920; }
.tile.big { grid-column: var(--c) / span 2; grid-row: var(--r) / span 2; aspect-ratio: auto; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s, transform .5s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.tile > video.on { opacity: 1; }
.tile:hover > img, .tile:focus-visible > img, .tile:hover > video, .tile:focus-visible > video { transform: scale(1.07); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: 3px; box-shadow: inset 0 0 0 0 #fff; transition: box-shadow .15s; pointer-events: none; }
.tile:hover::after, .tile:focus-visible::after { box-shadow: inset 0 0 0 2px #fff; }
.tile:focus-visible { outline: none; }
.tile-tag { position: absolute; left: 5px; top: 5px; display: flex; gap: 2px; }
.tile-tag b { display: grid; place-items: center; min-width: 20px; padding: 0 5px; background: var(--ink); color: #fff; font: 800 12px/1 var(--display); border-radius: 3px; }
.tile .slot { width: 22px; height: 22px; }
.tile.big .slot { width: 38px; height: 38px; } .tile.big .slot img { width: 32px; height: 32px; }
.tile.big .tile-tag { left: 7px; top: 7px; gap: 3px; } .tile.big .tile-tag b { font-size: 17px; min-width: 30px; }
.tile-name { position: absolute; left: 7px; bottom: 7px; max-width: calc(100% - 14px); padding: 5px 10px; border-radius: 5px; font: 700 14px/1.2 var(--display); color: #fff; background: var(--pill, var(--ink));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name:empty { display: none; }
.tile.hue-green { --pill: var(--green-text); } .tile.hue-coral { --pill: var(--coral-text); } .tile.hue-blue { --pill: var(--blue-text); }
.mosaic-frame figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 10px 8px 5px; font: 13px/1.45 var(--sans); color: #D5DCE2; }
.live { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .04em; color: #D5DCE2; white-space: nowrap; }
.live i { width: 8px; height: 8px; background: var(--coral-main); animation: blink 1.2s steps(2, jump-none) infinite; }
.live b { color: #fff; font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; }
@keyframes blink { 50% { opacity: .3; } }

/* Abstract card, as in the paper: the lead paragraph, with the facts beside it. */
.abstract { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px 44px; align-items: center; margin-top: 22px; padding: 24px 28px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; background: var(--surface-1); }
.abstract .lead { margin: 12px 0 0; max-width: none; font-size: clamp(16px, 1.3vw, 18px); }
.version { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); color: var(--text-muted); }
.version i { width: 7px; height: 7px; background: var(--c-green); }
.facts { list-style: none; margin: 0; padding: 0; font: 14px/1.35 var(--sans); color: var(--text-secondary); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.facts b { font: 700 15px/1 var(--mono); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.facts .trio { display: inline-flex; gap: 5px; margin-left: 2px; } .facts .si { width: 18px; height: 18px; }

/* ---- sections of the home page -------------------------------------------------------------------------------- */
.blk { padding: 44px 0; border-top: 1px solid var(--line); }
#leaderboard { border-top: 0; }
.blk h2.h { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; }
.blk .sub { margin: 10px 0 0; color: var(--text-secondary); font-size: 15px; max-width: 800px; }
.blk .sub a, .prose a, footer a, .dlg-body .meta a { color: var(--link); text-decoration: none; font-weight: 600; }
.blk .sub a { white-space: nowrap; }
.blk .sub a:hover, .prose a:hover, .dlg-body .meta a:hover { color: var(--text-primary); }

/* Leaderboard */
.table-scroll { overflow-x: auto; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-secondary); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .si { width: 17px; height: 17px; }
.legend .sw { width: 18px; height: 7px; border-radius: 2px; background: var(--text-muted); }
.sw.hatch, .cell.tb .bar i { background: repeating-linear-gradient(135deg, var(--sw, var(--text-muted)) 0 3px, color-mix(in srgb, var(--sw, var(--text-muted)) 28%, transparent) 3px 6px); }   /* hatched = turn-based clock, as in the paper */
table.lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 1160px; }
.lb th, .lb td { padding: 13px 6px; text-align: left; }
.lb th:first-child, .lb td:first-child { padding-left: 16px; } .lb th:last-child, .lb td:last-child { padding-right: 16px; }
.lb thead th { font: 600 10.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb thead th .pi { margin-right: 4px; width: 13px; height: 13px; vertical-align: -2px; }
.lb thead th .si { margin-right: 4px; width: 14px; height: 14px; vertical-align: -3px; }
.lb thead th[class*="hue-"] .pi { color: var(--hue-ink); }
.lb thead tr.groups th { padding-bottom: 0; border-bottom: 0; }
.lb thead tr.groups th.grp > span { display: flex; align-items: center; margin-right: 10px; padding-bottom: 7px; border-bottom: 2px solid var(--hue); color: var(--hue-ink); font-weight: 700; }
.lb thead tr.groups th.grp .si { width: 17px; height: 17px; margin-right: 7px; }
.lb thead tr.groups th.for { color: var(--text-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.lb th.r { text-align: right; }
.lb th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
.lb th.sortable:hover, .lb th.sorted { color: var(--text-primary); }
.lb th.sorted::after { content: " ↓"; }
.lb tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
.lb tbody tr:last-child { border-bottom: 0; }
.lb tbody tr:hover { background: var(--surface-2); }
.lb tbody tr.row { cursor: pointer; }
.lb td.rank { font: 700 14px/1 var(--mono); color: var(--text-muted); width: 48px; white-space: nowrap; }
.lb tr[data-rank="1"] td.rank { color: var(--text-primary); }
.lb td.rank .chev { display: inline-block; margin-left: 6px; font-size: 9px; color: var(--text-muted); transition: transform .2s; }
.lb tr.open td.rank .chev { transform: rotate(90deg); }
.lb tr.ref { opacity: .55; }
.model { display: flex; align-items: center; gap: 10px; }
.model .logo { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; font: 700 12px/1 var(--mono); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-primary); flex: none; }
.model .logo svg { width: 18px; height: 18px; }
.model b { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; }
.model span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.lb td.harness { font: 12px/1 var(--mono); color: var(--text-secondary); white-space: nowrap; }
.tag { display: inline-block; font: 600 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--text-secondary); margin-top: 5px; }
.cell { min-width: 72px; }
.cell .v { font: 700 14px/1 var(--mono); white-space: nowrap; }
.cell .v.best::after { content: "●"; font-size: 7px; vertical-align: 3px; margin-left: 5px; color: var(--text-primary); }
.cell .v small.part { font-weight: 400; font-size: 10px; margin-left: 5px; color: var(--text-muted); }
.cell .b { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.cell .bar { flex: 1; height: 5px; background: var(--surface-2); overflow: hidden; }
.lb tbody tr:hover .cell .bar { background: var(--line); }
.cell .bar i { display: block; height: 100%; width: 0; --sw: var(--hue); background: var(--hue); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.cell small.d { font: 600 10px/1 var(--mono); white-space: nowrap; }
.cell small.up { color: var(--text-primary); } .cell small.down { color: var(--text-muted); }
.cell.none .v { color: var(--text-muted); font-weight: 400; }
.lb td.num { font: 500 13px/1 var(--mono); color: var(--text-secondary); white-space: nowrap; text-align: right; }
.lb td.num small { color: var(--text-muted); font-weight: 400; }
.caption { font-size: 13px; color: var(--text-muted); padding: 14px 16px; border-top: 1px solid var(--line); }
.lb tr.detail, .lb tr.detail:hover { background: var(--surface-2); }
.lb tr.detail td { padding: 16px 18px 18px 70px; }
.lb tr.detail .heat { max-width: 780px; }
.lb tr.detail h4 { margin: 0 0 8px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.lb tr.detail .heat .c.s0 { background: var(--surface-1); }
:root[data-theme="dark"] .lb tr.detail .heat .c.s0 { background: #1F2830; }
.lb tr.detail .heat .t { padding: 8px 4px; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-secondary); border-top: 1px solid var(--line); }
.lb tr.detail .heat .r.t { text-align: left; color: var(--text-muted); font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding-left: 0; }

/* Pareto view */
.chart { padding: 22px 22px 14px; }
#pareto { padding: 18px 22px 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart svg text { font: 11px var(--mono); fill: var(--text-muted); }
.chart svg text.lbl { font: 600 12px var(--sans); fill: var(--text-primary); paint-order: stroke; stroke: var(--surface-1); stroke-width: 4px; stroke-linejoin: round; }
.chart svg .grid { stroke: var(--line); stroke-width: 1; }
.chart svg .dot { transition: r .15s, opacity .2s; cursor: pointer; }
.chart svg .dim { opacity: .18; }

/* Heat maps. One hue per interface, in seven steps from the neutral 0 step to the darkest (light theme) or lightest
   (dark theme) tone; --k is the text colour of a step, at least 4.5:1 against it. */
.heat, .heat-scale, .ramp-screen { --h1: #CFE1F3; --k1: var(--heat-ink); --h2: #AECCE9; --k2: var(--heat-ink); --h3: #8DB6DE; --k3: var(--heat-ink); --h4: #5F93C4; --k4: var(--heat-ink); --h5: #2E5A85; --k5: #fff; --h6: #244668; --k6: #fff; }
.ramp-basic { --h1: #C4E6E0; --k1: var(--heat-ink); --h2: #A6D8D0; --k2: var(--heat-ink); --h3: #88CABF; --k3: var(--heat-ink); --h4: #4F9F93; --k4: var(--heat-ink); --h5: #2A6860; --k5: #fff; --h6: #22504C; --k6: #fff; }
.ramp-macro { --h1: #F3E2B3; --k1: var(--heat-ink); --h2: #EBD393; --k2: var(--heat-ink); --h3: #E2C473; --k3: var(--heat-ink); --h4: #BF9A3F; --k4: var(--heat-ink); --h5: #7A5E1B; --k5: #fff; --h6: #5A491C; --k6: #fff; }
:root[data-theme="dark"] :is(.heat, .heat-scale, .ramp-screen) { --h1: #243C54; --k1: #fff; --h2: #2B5278; --k2: #fff; --h3: #3D6B98; --k3: #fff; --h4: #5F93C4; --k4: var(--heat-ink); --h5: #8DB6DE; --k5: var(--heat-ink); --h6: #CFE1F3; --k6: var(--heat-ink); }
:root[data-theme="dark"] .ramp-basic { --h1: #224343; --k1: #fff; --h2: #285E58; --k2: #fff; --h3: #35786F; --k3: #fff; --h4: #4F9F93; --k4: var(--heat-ink); --h5: #88CABF; --k5: var(--heat-ink); --h6: #C4E6E0; --k6: var(--heat-ink); }
:root[data-theme="dark"] .ramp-macro { --h1: #463E24; --k1: #fff; --h2: #6C551E; --k2: #fff; --h3: #8F7026; --k3: #fff; --h4: #BF9A3F; --k4: var(--heat-ink); --h5: #E2C473; --k5: var(--heat-ink); --h6: #F3E2B3; --k6: var(--heat-ink); }
.c.s0 { background: var(--heat-0); color: var(--text-muted); }
.c.s1 { background: var(--h1); color: var(--k1); } .c.s2 { background: var(--h2); color: var(--k2); } .c.s3 { background: var(--h3); color: var(--k3); }
.c.s4 { background: var(--h4); color: var(--k4); } .c.s5 { background: var(--h5); color: var(--k5); } .c.s6 { background: var(--h6); color: var(--k6); }
.heat { display: grid; gap: 2px; font: 12px var(--mono); margin-top: 6px; }
.heat .h { color: var(--text-muted); padding: 6px 4px; text-align: center; font-size: 11px; line-height: 1.2; }
.heat .r { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); padding: 3px 10px 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--sans); font-size: 13px; }
.heat .r .pi { color: var(--text-muted); width: 14px; height: 14px; }
.heat .c { padding: 8px 4px; text-align: center; border-radius: 3px; font-weight: 600; font-variant-numeric: tabular-nums; transition: transform .15s, box-shadow .15s; cursor: default; }
.heat .c:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--text-primary); position: relative; z-index: 2; }
.heat-scale { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--text-muted); }
.heat-scale i { width: 22px; height: 10px; border-radius: 2px; }
.heat-scale .k0 { background: var(--heat-0); } .heat-scale .k1 { background: var(--h1); } .heat-scale .k2 { background: var(--h2); } .heat-scale .k3 { background: var(--h3); }
.heat-scale .k4 { background: var(--h4); } .heat-scale .k5 { background: var(--h5); } .heat-scale .k6 { background: var(--h6); }
.matrix-box { max-height: 640px; overflow: auto; padding: 0 16px 14px; }
.matrix .h { position: sticky; top: 0; background: var(--surface-1); z-index: 3; padding-top: 14px; }
.matrix a.r { text-decoration: none; }
.matrix a.r:hover { color: var(--link); }
.matrix .g { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); padding: 16px 0 5px; }

/* Findings: each card takes the hue of the setting it is about. */
.findings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.finding { padding: 20px 20px 22px; border-top: 4px solid var(--hue); background: linear-gradient(var(--hue-tint), var(--surface-1) 62%); }
.f-ico { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-1); border: 1px solid var(--hue-soft, var(--line)); color: var(--hue-ink, var(--text-secondary)); }
.f-ico .pi { width: 22px; height: 22px; } .f-ico .si { width: 26px; height: 26px; }
.f-num { font: 800 clamp(22px, 2.1vw, 28px)/1 var(--mono); letter-spacing: -0.03em; margin: 18px 0 10px; font-variant-numeric: tabular-nums; color: var(--hue-ink); }
.finding h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.finding p { margin: 8px 0 0; font: 15px/1.55 var(--serif); color: var(--text-secondary); }
.limits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; font-size: 14px; color: var(--text-secondary); }
.limits b { color: var(--text-primary); font-weight: 700; margin-right: 8px; }
.limits span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-1); }
.limits .pi { color: var(--text-muted); width: 15px; height: 15px; }

/* News */
.news { list-style: none; margin: 14px 0 0; padding: 0 18px; max-height: 232px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); }
.news li { display: grid; grid-template-columns: 104px 1fr; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news time { font: 13px/1.7 var(--mono); color: var(--text-muted); }
.news b { font-weight: 700; }
.news p { margin: 2px 0 0; font-size: 14px; color: var(--text-secondary); }

/* ---- tasks page: a gallery ------------------------------------------------------------------------------------- */
.page-head { padding: 52px 0 72px; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.page-head .controls { margin-top: 28px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.kind { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-1); color: var(--text-secondary); font: 600 13px/1 var(--sans); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.kind small { font: 500 11px/1 var(--mono); color: var(--text-muted); }
.kind:hover { border-color: var(--hue, var(--line-strong)); }
.kind[aria-pressed="true"] { background: var(--hue-tint, var(--surface-2)); border-color: var(--hue, var(--text-muted)); color: var(--hue-ink, var(--text-primary)); box-shadow: inset 0 -2px 0 var(--hue, var(--text-muted)); }
.kind[aria-pressed="true"] small { color: inherit; }
.count { font-size: 13px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 18px; }
.task { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
.task:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.task .shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #121920; }
.task .shot > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.task:hover .shot > img { transform: scale(1.05); }
.task .tile-tag, .dlg-img .tile-tag { left: 9px; top: 9px; gap: 3px; }
.task .tile-tag .slot, .dlg-img .tile-tag .slot { width: 30px; height: 30px; }
.task .tile-tag b, .dlg-img .tile-tag b { font-size: 15px; min-width: 26px; }
.lite { position: absolute; right: 9px; top: 9px; padding: 5px 7px; border-radius: 4px; background: var(--ink); color: #fff; font: 800 11px/1 var(--display); box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.task .body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.task .body > b { font: 700 16px/1.3 var(--display); margin-top: 3px; }
.task .body small { color: var(--text-muted); font-size: 12.5px; }
.mini { display: flex; gap: 14px; width: 100%; margin-top: auto; padding-top: 12px; }
.ms { flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 6px; font: 700 13px/1 var(--mono); color: var(--text-secondary); }
.ms .si { width: 16px; height: 16px; }
.ms i { grid-column: 1 / -1; position: relative; height: 4px; background: var(--surface-2); overflow: hidden; }
.ms i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--hue); }
dialog { border: 1px solid var(--line); border-radius: 10px; padding: 0; background: var(--surface-1); color: var(--text-primary); width: min(880px, 94vw); max-height: 90vh; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(14,23,30,.6); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
/* The screenshot is shown at its own size over a blurred copy of itself, so it stays sharp. */
.dlg-img { position: relative; height: 270px; overflow: hidden; background: #121920; }
.dlg-img > img { position: relative; display: block; width: 480px; height: 270px; max-width: 100%; margin: 0 auto; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 40px rgba(0,0,0,.5); }
.dlg-img > .bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; filter: blur(20px) brightness(.62) saturate(1.1); box-shadow: none; }
.dlg-x { position: absolute; right: 14px; top: 14px; }
.dlg-body { padding: 22px 28px 28px; }
.dlg-body h2 { font-size: 26px; font-weight: 800; margin-top: 12px; }
.dlg-body p { color: var(--text-secondary); font: 16px/1.6 var(--serif); }
.dlg-body h3 { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 17px; } .dlg-body h3 .pi { color: var(--hue-ink, var(--text-muted)); width: 16px; height: 16px; }
.dlg-body .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-top: 8px; }
.dlg-body .meta > * { display: inline-flex; align-items: center; gap: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
table.mt { width: 100%; border-collapse: collapse; font: 13px var(--mono); margin-top: 12px; font-variant-numeric: tabular-nums; }
.mt th, .mt td { padding: 6px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mt th:first-child, .mt td:first-child { text-align: left; font-family: var(--sans); }
.mt th { font-size: 11px; color: var(--text-muted); font-weight: 600; padding-bottom: 9px; }
.mt th .si { width: 14px; height: 14px; margin-right: 3px; vertical-align: -3px; } .mt th .si + .si { margin-right: 5px; }
.mt td .c { display: inline-block; min-width: 54px; padding: 6px 8px; border-radius: 3px; font-weight: 600; text-align: center; }

/* ---- methodology page ------------------------------------------------------------------------------------------ */
.prose { max-width: 860px; counter-reset: sec; }
.prose h2 { display: flex; align-items: center; gap: 12px; margin-top: 60px; font-size: 26px; font-weight: 800; counter-increment: sec; }
.prose h2::before { content: counter(sec); display: grid; place-items: center; font: 800 17px/1 var(--display); letter-spacing: 0; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: var(--text-secondary); font: 17px/1.62 var(--serif); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-secondary); }
.prose td b { color: var(--text-primary); } @media (min-width: 721px) { .prose td:first-child { white-space: nowrap; } }
.prose th { font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border-bottom-color: var(--line-strong); }
.prose code { font: .86em var(--mono); background: var(--surface-2); padding: 2px 5px; border-radius: 4px; }
.note { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface-1); padding: 14px 18px; border-radius: 8px; font: 16px/1.6 var(--serif); color: var(--text-secondary); margin: 18px 0; }
pre.code { margin: 0; padding: 18px 20px; font: 13px/1.6 var(--mono); overflow-x: auto; color: var(--text-secondary); border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin: 30px 0 8px; }
.flow .card { padding: 18px; border-top: 4px solid var(--hue); background: linear-gradient(var(--hue-tint), var(--surface-1) 70%); }
.flow .card b { display: block; margin-top: 12px; color: var(--text-primary); font: 700 17px/1.3 var(--display); }
.flow .card p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.flow .arrow { align-self: center; color: var(--text-muted); width: 20px; height: 20px; }
.cards3 { display: grid; gap: 10px; margin: 18px 0 12px; }
.cards3 .card { display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 16px; padding: 18px; align-items: center; }
.cards3 .card b { color: var(--text-primary); font: 700 17px/1.3 var(--display); }
.cards3 .count { font: 500 12px/1 var(--mono); color: var(--text-muted); white-space: nowrap; }
.cards3 .card p { grid-column: 2 / -1; margin: 4px 0 0; font-size: 15.5px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cats > span { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--hue-soft); border-radius: 6px; background: var(--hue-tint); color: var(--hue-ink); font: 600 13px/1 var(--sans); }
.cats .slot { width: 24px; height: 24px; }
.setgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 18px 0; font: 14px/1.5 var(--sans); }
.setgrid > div { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); padding: 14px 16px; }
.setgrid > div:first-child { border: 0; background: none; }
.setgrid b { display: block; color: var(--text-primary); }
.setgrid span { display: block; color: var(--text-secondary); margin-top: 4px; }
.setgrid .sh, .setgrid .sr { background: var(--hue-tint); border-color: var(--hue-soft); }
.setgrid .sh { border-top: 4px solid var(--hue); } .setgrid .sr { border-left: 4px solid var(--hue); }
.setgrid .sh > .si, .setgrid .sr > .si { width: 24px; height: 24px; margin-bottom: 6px; }
.setgrid .sc { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.setgrid .sc b { display: inline-flex; align-items: center; gap: 4px; font: 700 15px/1.2 var(--mono); } .setgrid .sc b .si { width: 17px; height: 17px; } .setgrid .sc b .si + .si { margin-right: 4px; }
.setgrid .sc span { font-size: 12px; color: var(--text-muted); }
.setgrid .sc.primary { border-color: var(--hue); box-shadow: inset 0 0 0 1px var(--hue); background: var(--hue-tint); } .setgrid .sc.primary span { color: var(--hue-ink); font-weight: 700; }
.prose ul.ticks { list-style: none; padding: 0; }
.prose ul.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.prose ul.ticks li:first-child { border-top: 0; }
.prose ul.ticks .pi { color: var(--brand); width: 18px; height: 18px; margin-top: 5px; }

/* ---- footer: an ink band that closes the page as the strip opens it ------------------------------------------ */
footer { background: var(--strip); padding: 0 0 48px; font-size: 13px; line-height: 1.6; color: #C5CED6; }
footer::before { content: ""; display: block; height: 6px; margin-bottom: 36px; --u: 6px; --run: max(17vw, 96px);
  background: linear-gradient(270deg, var(--strip-run) 0 var(--run), transparent 0 calc(var(--run) + var(--u)),
    var(--strip-run) 0 calc(var(--run) + 2 * var(--u)), transparent 0 calc(var(--run) + 3 * var(--u)),
    var(--strip-run) 0 calc(var(--run) + 4 * var(--u)), transparent 0 calc(var(--run) + 6 * var(--u)),
    var(--strip-run) 0 calc(var(--run) + 7 * var(--u)), transparent 0); }
footer .wrap { max-width: 1408px; }
footer .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px 56px; }
footer .wordmark { height: 44px; background-image: var(--wordmark-dark); background-position: left center; margin-bottom: 10px; }
footer p { margin: 0 0 8px; }
footer a { color: #EEF1F4; }
footer a:hover { color: var(--coral-main); }
footer .canary { font: 11px/1.6 var(--mono); margin-top: 20px; padding-top: 16px; border-top: 1px solid #3D4B57; color: #94A2AE; word-break: break-all; }

/* ---- motion ---------------------------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.task.reveal.in:hover { transform: translateY(-3px); transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- narrower screens ----------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .findings { grid-template-columns: 1fr 1fr; }
  .abstract { grid-template-columns: 1fr; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; } .facts li:nth-child(2) { border-top: 0; }
}
@media (max-width: 860px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 18px; }
  .nav .wrap { gap: 8px; padding: 0 14px; }
  .nav nav { margin-right: 2px; }
  .nav nav a { padding: 9px 7px; font-size: 13px; }
  .nav nav a .pi, .nav nav a:last-child { display: none; }
  .seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .brand .wordmark { display: none; } .brand .mark { display: block; }
  .findings, .flow, .setgrid { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
  .setgrid > div:first-child { display: none; }
  .cards3 .card { grid-template-columns: 44px 1fr; } .cards3 .count { grid-column: 2; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .lb tr.detail td { padding-left: 18px; }
  footer .row { grid-template-columns: 1fr; }
  .mosaic-frame figcaption { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  /* The mosaic keeps its order on a 5 x 10 grid. */
  .mosaic { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .tile { grid-column: var(--mc); grid-row: var(--mr); }
  .tile.big { grid-column: var(--mc) / span 2; grid-row: var(--mr) / span 2; }
  .tile-tag { left: 3px; top: 3px; }
  .tile .slot { width: 18px; height: 18px; } .tile-tag b { min-width: 16px; padding: 0 3px; font-size: 11px; }
  .tile.big .slot { width: 26px; height: 26px; } .tile.big .slot img { width: 16px; height: 16px; } .tile.big .tile-tag { left: 5px; top: 5px; } .tile.big .tile-tag b { font-size: 14px; min-width: 22px; }
  .tile-name { left: 5px; bottom: 5px; max-width: calc(100% - 10px); padding: 4px 7px; font-size: 11px; }
  .abstract { padding: 18px; }
  .facts { grid-template-columns: 1fr; } .facts li:nth-child(2) { border-top: 1px solid var(--line); }
  .hero { padding-top: 22px; }
  .dlg-body { padding: 18px; }
  .dlg-img { height: auto; aspect-ratio: 16 / 9; } .dlg-img > img:not(.bg) { width: 100%; height: 100%; }
  input.search { min-width: 0; width: 100%; }
}
