/* neurosports.online — broadcast scoreboard aesthetic.
   Dark-only by design: this is a spectator property, not a document. */

:root {
  --bg: #08090b;
  --panel: #0f1216;
  --panel-2: #141922;
  --line: #1e242c;
  --line-soft: #161b22;
  --text: #eef1f4;
  --muted: #8d97a1;
  --dim: #616b75;
  --ours: #ffb62e;          /* our tournament — the pinned slot */
  --live: #ff4d4d;
  --ext: #5aa9ff;           /* the wider circuit */
  --ok: #43d17c;

  /* Self-hosted (tools/fetch_fonts.py). Unbounded carries the display voice —
     wide, geometric, and unlike the grotesk every other AI site defaults to;
     Manrope reads long-form. Both ship Cyrillic, which the RU tree requires and
     which ruled out Archivo, the otherwise better sports face. */
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gut: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* --- browser surfaces: the parts we did not draw still carry the design --- */

::selection { background: var(--ours); color: #17130a; }

:focus-visible {
  outline: 2px solid var(--ours);
  outline-offset: 3px;
  border-radius: 2px;
}

html { scrollbar-color: var(--line) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 6px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

/* Data must line up in columns; proportional digits make scores jitter. */
.stat b, .circuit td, .rail, .byline, .card .meta, .bracket text {
  font-variant-numeric: tabular-nums;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0d10, var(--bg));
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.masthead .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 2px;
}
.brand i { font-style: normal; color: var(--ours); }
/* Not mono: this is a standing descriptor, not data, and mono here reads as a
   costume for "technical" rather than as measurement. */
.brand small {
  font-size: 10.5px; font-weight: 600;
  color: var(--dim); letter-spacing: 0.15em; text-transform: uppercase;
  margin-left: 10px; align-self: center;
}
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); margin-left: auto; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }
.langsw {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px;
  color: var(--muted);
}
.langsw:hover { color: var(--text); border-color: var(--dim); }

/* ---------- hero: the bracket is the stage ---------- */

.hero {
  position: relative;
  /* Full screen on a laptop, but capped: on a tall monitor an uncapped 100vh
     hero becomes a two-and-a-half-thousand-pixel wall before any content. */
  min-height: min(100vh, 980px);
  min-height: min(100svh, 980px);   /* svh: mobile chrome must not add a seam */
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
/* The stage is clipped to this box, not to the whole section — otherwise the
   bracket keeps going behind the translucent rail and shows through it. */
.hero-main {
  position: relative; flex: 1;
  display: flex; align-items: center;
  overflow: hidden;
}

/* Optional looping texture. gen_site.py emits the <video> only when the file
   exists, so a missing loop is an absent layer, never a broken element. */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* Once the card carries real contestants, the footage has to stop competing
   with it — two pairs of fighters in one frame reads as noise, and the paler
   portraits disappear into the figures behind them. It is arena ambience now. */
.hero-bg video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .26; filter: saturate(.4) contrast(1.02) blur(1.5px);
}
/* Full-bleed footage still needs the copy to hold 4.5:1 whatever frame is on
   screen, so the scrim is a soft overall knock-down plus a heavier pad under
   the left column — rather than the wide horizontal wipe that used to cover
   half the arena. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(6,7,9,.94) 0%, rgba(6,7,9,.80) 26%,
                    rgba(6,7,9,.34) 52%, rgba(6,7,9,.30) 100%),
    linear-gradient(180deg, rgba(6,7,9,.55) 0%, transparent 26%,
                    transparent 68%, rgba(6,7,9,.70) 100%);
}

/* Everything in the hero now lives inside the content column. The bracket used
   to be positioned from 42% of the VIEWPORT while the copy sat inside a 1180px
   wrap — so on a wide screen the bracket marched into the headline and squeezed
   it to a few words per line. Same container, no collision. */
.hero-inner {
  position: relative; z-index: 2; padding-block: 60px 48px; width: 100%;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px; align-items: center;
}
.hero-copy { min-width: 0; }

/* --- the fight card ---------------------------------------------------- */
/* Generated art, but every word here is real text: model lettering is never
   right, and these names are data — they come from the roster by id. */

.fightcard {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: end; gap: 4px; min-width: 0;
}
.fc-slot { position: relative; text-align: center; min-width: 0; }
/* Most of the art comes through with a real alpha channel (import_heroes.py
   keys the backdrop out), but a few portraits sit on a graded background the
   keyer correctly refuses to touch. The edge fade costs the cut-out ones
   nothing and dissolves the rectangle on the others, so the card does not
   depend on every asset being perfectly masked. */
.fc-slot img {
  width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.8));
  -webkit-mask-image: radial-gradient(ellipse 76% 80% at 50% 46%, #000 70%, transparent 99%);
          mask-image: radial-gradient(ellipse 76% 80% at 50% 46%, #000 70%, transparent 99%);
}
/* A pool of colour under each fighter, tinted to their side of the card. */
.fc-slot::before {
  content: ""; position: absolute; left: 50%; bottom: 34px;
  width: 78%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; z-index: -1; filter: blur(34px);
}
.fc-slot.a::before { background: rgba(255,182,46,.30); }
.fc-slot.b::before { background: rgba(90,169,255,.26); }

.fc-name {
  margin-top: 6px; position: relative;
  display: flex; justify-content: center;
}

.fc-vs {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.03em;
  color: var(--text); opacity: .32;
  padding-bottom: 42px;
}
.fc-label {
  margin: 22px 0 0; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* --- model-family badges ------------------------------------------------ */
/* One plate per contestant: family colour, drawn mark, name, family. It has to
   hold up over the arena footage, over a table row and over flat panel, so it
   carries its own opaque ground rather than relying on what is behind it. */

[data-fam="deepseek"] { --fam: #7d87ff; }
[data-fam="gemini"]   { --fam: #46b0ff; }
[data-fam="grok"]     { --fam: #d7dee6; }
[data-fam="qwen"]     { --fam: #b07dff; }
[data-fam="gptoss"]   { --fam: #43d17c; }
[data-fam="openai"]   { --fam: #19cbba; }
[data-fam="kimi"]     { --fam: #ff8a52; }
[data-fam="other"]    { --fam: var(--muted); }

.badge-model {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 7px;
  background: rgba(10,13,18,.88);
  border: 1px solid color-mix(in srgb, var(--fam) 34%, transparent);
  box-shadow: inset 3px 0 0 var(--fam);
  color: var(--text);
  max-width: 100%;
}
.badge-model .fam-mark { color: var(--fam); flex: none; }
.badge-model b {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: -0.015em; white-space: nowrap;
}
.badge-model i {
  font-style: normal; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fam); opacity: .85; white-space: nowrap;
}
.badge-model.lg { padding: 9px 15px 9px 12px; gap: 10px; }
.badge-model.lg b { font-size: clamp(15px, 1.5vw, 20px); }
.badge-model.lg i { font-size: 10.5px; }

.badge-model.sm { padding: 5px 9px 5px 7px; gap: 6px; border-radius: 6px; }
.badge-model.sm b { font-size: 13px; }
.badge-model.sm i { font-size: 9px; letter-spacing: .09em; }

/* --- bracket: rounds as columns, each node a whole fixture -------------- */

.br {
  display: flex; gap: 18px; align-items: stretch;
  overflow-x: auto;                 /* five rounds will not fit a laptop */
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.br-col { display: flex; flex-direction: column; min-width: 205px; flex: 1 1 205px; }
.br-col h3 {
  margin: 0 0 10px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  font-weight: 500;
}
/* Only the nodes are distributed; the heading stays pinned to the top of the
   column, where a round label belongs. */
.br-nodes {
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-around; gap: 10px;
}
.br-col.champion { flex: 0 1 168px; min-width: 168px; }

.br-match {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px; border-radius: 9px;
  border: 1px solid var(--line-soft); background: var(--panel);
}
.br-match.crown {
  align-items: center; padding: 22px 12px;
  border-style: dashed; border-color: rgba(255,182,46,.4);
}
.br-match[data-state="live"] { border-color: rgba(255,77,77,.5); }
.br-match[data-state="waiting"] { opacity: .55; }
/* Inside a bracket node the badge stacks: the precise model build is long
   ("Gemini 3.5 Flash Lite") and on one line it forced the column wide enough
   that five rounds no longer fit the page. */
.br-match .badge-model {
  width: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; column-gap: 8px; row-gap: 1px;
  padding: 7px 10px;
}
.br-match .badge-model .fam-mark { grid-row: span 2; }
.br-match .badge-model b { font-size: 13.5px; line-height: 1.2; }
.br-match .badge-model i { font-size: 9px; white-space: normal; line-height: 1.25; }
/* The loser dims rather than vanishes — a result is a comparison. */
.br-match:has(.won) .fx-side:not(.won) .badge-model { opacity: .45; }
.fx-side.won .badge-model { border-color: color-mix(in srgb, var(--fam) 70%, transparent); }

.br-tbd {
  display: block; padding: 8px 10px; border-radius: 6px;
  border: 1px dashed var(--line); color: var(--dim);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase;
}

/* --- archive: an index, not a second feed ------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.chip:hover { color: var(--text); border-color: var(--dim); }
.chip.on { color: #17130a; background: var(--ours); border-color: var(--ours); }
.chip span { font-size: 10px; opacity: .65; }
.chip.on span { opacity: .8; }

.ar-month { margin-bottom: 34px; }
.ar-month h2 {
  margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.ar-list { list-style: none; margin: 0; padding: 0; }
.ar-row + .ar-row { border-top: 1px solid var(--line-soft); }
.ar-row a {
  display: grid; align-items: baseline; gap: 4px 16px;
  grid-template-columns: 2.4ch 7.5ch minmax(0, 1fr);
  padding: 13px 10px 13px 2px; border-radius: 6px;
}
.ar-row a:hover { background: rgba(255,255,255,.022); }
.ar-day {
  font-family: var(--mono); font-size: 13px; color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.ar-row .rubric { margin: 0; font-size: 9.5px; }
.ar-title { font-size: 16.5px; font-weight: 650; letter-spacing: -.012em; line-height: 1.35; }
.ar-row a:hover .ar-title { color: var(--ours); }
.ar-ex {
  grid-column: 3; color: var(--muted); font-size: 13.5px; line-height: 1.5;
  max-width: 72ch;
}
.ar-empty { color: var(--muted); padding: 20px 0; }

/* --- YouTube: facade now, player on click ------------------------------- */

.yt-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.yt-card { margin: 0; }
.yt-face {
  display: block; position: relative; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: var(--panel-2); cursor: pointer; aspect-ratio: 16/9;
}
.yt-face img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* hqdefault is 4:3 with letterbox bars; cover crops them off. */
  transition: transform .25s ease, opacity .2s;
}
.yt-face:hover img { transform: scale(1.03); opacity: .82; }
.yt-play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 44px; border-radius: 10px;
  background: rgba(12,14,18,.78); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(3px);
}
.yt-play::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0; border-left: 15px solid var(--text);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  transform: translateX(2px);
}
.yt-face:hover .yt-play { background: var(--ours); border-color: var(--ours); }
.yt-face:hover .yt-play::after { border-left-color: #17130a; }
.yt-card iframe {
  width: 100%; aspect-ratio: 16/9; border: 0;
  border-radius: 9px; display: block; background: #000;
}
.yt-card figcaption { padding-top: 11px; display: grid; gap: 4px; }
.yt-card figcaption b { font-size: 15px; font-weight: 650; line-height: 1.35; }
.yt-card figcaption span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
.yt-card figcaption a { color: var(--ext); }
.yt-card figcaption a:hover { text-decoration: underline; }

/* --- Season 2 vote ------------------------------------------------------ */

.vote-frame {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); overflow: hidden;
}
.vote-frame iframe { width: 100%; border: 0; display: block; }
.vote-soon {
  margin: 0; padding: 30px 26px; color: var(--muted);
  max-width: 62ch; font-size: 15px;
}

.ext-mark { color: var(--dim); font-size: .85em; }

/* --- fixtures ----------------------------------------------------------- */

.fx-round { margin-bottom: 30px; }
.fx-round h3 {
  margin: 0 0 12px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
  font-weight: 500;
}
.fx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) minmax(190px, auto);
  padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 8px;
  background: var(--panel);
}
.fx-row[data-state="live"] { border-color: rgba(255,77,77,.45); }
.fx-row[data-state="waiting"] { opacity: .62; }
.fx-side { display: flex; min-width: 0; }
.fx-side:nth-of-type(3) { justify-content: flex-end; }
/* The loser dims rather than disappears — a result is a comparison. */
.fx-row:has(.won) .fx-side:not(.won) .badge-model { opacity: .5; }
.fx-vs {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim);
}
.tbd {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
.fx-meta { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.fx-link { color: var(--ext); font-size: 13px; white-space: nowrap; }
.fx-link:hover { text-decoration: underline; }

.countdown {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--mono); font-size: 11px; white-space: nowrap;
}
.countdown i {
  font-style: normal; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); font-size: 9.5px;
}
.countdown b {
  font-size: 14px; font-weight: 600; color: var(--ours);
  font-variant-numeric: tabular-nums;
}
.countdown[data-due] b { color: var(--live); }
.fc-label .countdown { margin-left: 12px; }

.roster-grid {
  display: grid; gap: 10px; margin-bottom: 34px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

/* --- bracket, now a section of its own where it is actually readable --- */
.bracket-full { max-width: 760px; margin: 0 auto; }
.bracket-full .bracket { width: 100%; height: auto; }
.bracket .seat-fam { fill: var(--fam); }
.bracket .fam[data-fam] { fill: var(--fam); opacity: .9; }

.hero h1 {
  font-family: var(--display);
  margin: 0 0 18px;
  font-size: clamp(36px, 5.4vw, 78px);
  line-height: .96;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 11ch;   /* keeps the headline clear of the bracket's left column */
}
.hero p.lede {
  margin: 0 0 30px; color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55;
  max-width: 42ch;
}

/* Broadcast rail: the season's facts as one scoreboard strip. */
.rail {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(8,9,11,.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.rail-list {
  display: flex; flex-wrap: wrap; align-items: stretch;
  list-style: none; margin: 0; padding: 0;
}
.rail-list li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 15px 26px 15px 0; margin-right: 26px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap;
}
.rail-list li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.rail-list b {
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--text);
}
.rail-list li.state { color: var(--ours); gap: 0; }
.rail-list li.state::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; margin-right: 9px; align-self: center;
}

.btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 11px 19px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--dim); background: var(--panel-2); }
.btn.primary {
  background: var(--ours); border-color: var(--ours); color: #17130a;
}
.btn.primary:hover { background: #ffc757; border-color: #ffc757; }

/* bracket */
.bracket { width: 100%; height: auto; display: block; }
/* The seats have to read as solid plates laid over the arena footage; at 85%
   they sank into the fight and the roster stopped being legible. */
.bracket .seat { fill: rgba(10,13,18,.94); stroke: #39434f; stroke-width: 1; }
.bracket .seat-label {
  font-family: var(--mono); font-size: 9.5px; fill: #ccd4dc;
  letter-spacing: 0.04em;
}
.bracket .fam { font-family: var(--mono); font-size: 7.5px; fill: #7e8994; }
.bracket .link { stroke: #313b47; stroke-width: 1; fill: none; }
.bracket .rd { paint-order: stroke; stroke: rgba(8,9,11,.9); stroke-width: 3px; }
.bracket .rd {
  font-family: var(--mono); font-size: 8.5px; fill: var(--dim);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.bracket .cup { fill: none; stroke: var(--ours); stroke-width: 1.4; }

/* The one authored moment: a signal runs the bracket left to right, round by
   round, tracing the path a contender would take to the title. It is the
   tournament's own logic as motion, not an entrance effect. */
.bracket .spark {
  stroke: var(--ours); stroke-width: 1.5; fill: none; stroke-linecap: round;
  stroke-dasharray: 30 2000; stroke-dashoffset: 2030;
  animation: trace 11s cubic-bezier(.22,1,.36,1) infinite;
  filter: drop-shadow(0 0 5px rgba(255,182,46,.5));
}
@keyframes trace {
  0%        { stroke-dashoffset: 2030; opacity: 0; }
  4%        { opacity: 1; }
  46%, 100% { stroke-dashoffset: 1700; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bracket .spark { display: none; }
  .hero-bg video { display: none; }
}

/* ---------- section chrome ---------- */

.sec { padding: 52px 0; border-bottom: 1px solid var(--line-soft); }
.sec-head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.sec-head h2 {
  margin: 0; font-size: 13px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
}
.sec-head p { margin: 0; color: var(--dim); font-size: 13px; }
.sec-head a.more { margin-left: auto; color: var(--muted); font-size: 13px; }
.sec-head a.more:hover { color: var(--text); }

/* ---------- article feed ---------- */

.feed { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--dim); transform: translateY(-2px); }
.card .shot { aspect-ratio: 3/2; background: var(--panel-2); overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.rubric {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ext); margin-bottom: 9px;
}
.rubric.ours { color: var(--ours); }
.card h3 {
  margin: 0 0 9px; font-size: 17px; line-height: 1.3;
  letter-spacing: -0.015em; font-weight: 700;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card .meta {
  margin-top: auto; padding-top: 14px;
  font-family: var(--mono); font-size: 10.5px; color: var(--dim);
  letter-spacing: 0.06em;
}

/* One or two articles is a transient state — the daily job fills this fast —
   but it is what ships on launch day, so it gets a deliberate layout instead
   of a three-column grid with two holes in it. */
.feed.solo { grid-template-columns: minmax(0,1fr); }
.feed.solo .card { flex-direction: row; }
.feed.solo .card .shot { flex: 0 0 42%; aspect-ratio: auto; }
.feed.solo .card .body { padding: 32px 36px; justify-content: center; }
.feed.solo .card h3 { font-size: clamp(22px, 3vw, 31px); letter-spacing: -.028em; margin-bottom: 12px; }
.feed.solo .card p { font-size: 16px; max-width: 62ch; }
.feed.duo { grid-template-columns: repeat(2, minmax(0,1fr)); }

.feed.lead { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
.feed.lead .card:first-child h3 { font-size: 26px; letter-spacing: -0.025em; }
.feed.lead .card:first-child p { font-size: 15.5px; }
.feed.lead .stack { display: grid; gap: 26px; align-content: start; }
.feed.lead .stack .card .shot { display: none; }

/* ---------- circuit table ---------- */

.circuit { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.circuit th {
  text-align: left; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim);
  font-weight: 500; padding: 0 14px 11px 0; border-bottom: 1px solid var(--line);
}
.circuit td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.circuit tr:hover td { background: rgba(255,255,255,.014); }
.circuit .ev { font-weight: 650; }
.circuit .ev small { display: block; font-weight: 400; color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.circuit .disc { color: var(--muted); white-space: nowrap; }
.circuit .who { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.circuit tr.ours td { background: rgba(255,182,46,.05); }
.circuit tr.ours .ev { color: var(--ours); }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap;
}
.badge.live { color: var(--live); border-color: rgba(255,77,77,.4); }
.badge.soon { color: var(--ours); border-color: rgba(255,182,46,.4); }
.badge.done { color: var(--dim); }
.badge.run  { color: var(--ok); border-color: rgba(67,209,124,.35); }

/* ---------- article page ---------- */

.art { max-width: 720px; margin: 0 auto; padding: 52px var(--gut) 0; }
.art .rubric { margin-bottom: 14px; }
.art h1 {
  margin: 0 0 16px; font-size: clamp(29px, 4.2vw, 43px);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 800;
}
.art .standfirst { font-size: 19px; color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.art .byline {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  letter-spacing: 0.07em; padding-bottom: 26px; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.art figure { margin: 30px 0; }
.art figure img { width: 100%; border-radius: 8px; display: block; border: 1px solid var(--line); }
.art figcaption {
  font-size: 13.5px; color: var(--dim); margin-top: 10px;
  line-height: 1.45; max-width: 60ch;
}
.art .prose { padding-top: 28px; }
.art .prose p { margin: 0 0 20px; font-size: 17px; line-height: 1.68; }
.art .prose h2 {
  font-size: 21px; letter-spacing: -0.02em; margin: 34px 0 14px; font-weight: 700;
}

.sources {
  margin: 40px 0 0; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.sources h3 {
  margin: 0 0 12px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 500;
}
.sources ol { margin: 0; padding-left: 19px; }
.sources li { margin-bottom: 8px; font-size: 14px; }
.sources a { color: var(--ext); }
.sources a:hover { text-decoration: underline; }

.readnext { padding: 52px 0; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line); margin-top: 30px;
  padding: 34px 0 46px; color: var(--dim); font-size: 13px;
}
.foot .wrap { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot .sep { margin-left: auto; font-family: var(--mono); font-size: 11px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  /* The bracket stops being readable long before it stops being useful. Below
     this width it becomes a fixed-height band under the copy instead of a
     free-floating layer — left to size itself, the SVG is tall enough to run
     straight up through the lede and the buttons. */
  .hero { min-height: auto; }
  .hero-main { display: block; }
  .hero-bg video { opacity: .45; }   /* busier footage, less room to dodge it */
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 56px 44px; }
  .hero h1 { max-width: 16ch; }
  .fc-slot img { max-width: 215px; }
  .fc-vs { padding-bottom: 34px; }

  .feed { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feed.lead { grid-template-columns: 1fr; }
  .nav { gap: 16px; font-size: 13px; }

  /* A row layout at this width squeezes the headline into a five-line column. */
  .feed.solo .card { flex-direction: column; }
  .feed.solo .card .shot { flex: none; aspect-ratio: 16/9; }
  .feed.solo .card .body { padding: 22px 22px 24px; }

  .sec-head { flex-direction: column; gap: 6px; align-items: flex-start; }
  .sec-head a.more { margin-left: 0; }

  /* A four-column fixture row cannot survive a phone: stack the pair, then the
     status line under it. */
  .fx-row {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    row-gap: 10px;
  }
  .fx-meta { grid-column: 1 / -1; justify-content: flex-start; }

  /* Five side-scrolling columns are miserable on a phone; the rounds become
     stacked sections instead, which is how a bracket is read on one anyway. */
  .br { flex-direction: column; overflow-x: visible; gap: 26px; }
  .br-col { min-width: 0; flex: none; }
  .br-col.champion { flex: none; min-width: 0; }

  /* The archive drops its date column: the month heading already carries it,
     and the title needs the width more than the day number does. */
  .ar-row a { grid-template-columns: 2.4ch minmax(0, 1fr); gap: 3px 12px; }
  .ar-row .rubric { grid-column: 2; }
  .ar-title, .ar-ex { grid-column: 2; }
  .ar-title { font-size: 16px; }
}
@media (max-width: 620px) {
  :root { --gut: 16px; }
  .feed { grid-template-columns: 1fr; }
  .masthead .wrap { gap: 14px; }
  .brand small { display: none; }        /* wraps to two lines and shoves the nav off */
  .nav { gap: 14px; }
  .nav a:not(.on):not(.langsw) { display: none; }   /* the language switch always stays */
  /* Hide the organiser column head as well as its cells — dropping only the
     cells left a stranded "Organiser" heading over an empty column. */
  .circuit .who, .circuit th:nth-child(3) { display: none; }
  .circuit th:nth-child(2), .circuit td:nth-child(2) { display: none; }
  .circuit .ev small { white-space: normal; }
  .hero-inner { padding-block: 44px 36px; }
  .fc-slot img { max-width: 132px; }
  .fc-vs { font-size: 18px; padding-bottom: 34px; }
  .badge-model.lg { padding: 6px 9px 6px 8px; gap: 6px; }
  .badge-model.lg b { font-size: 13.5px; }
  .badge-model.lg i { font-size: 9px; letter-spacing: .08em; }
  .rail-list li {
    padding: 12px 16px 12px 0; margin-right: 16px;
    font-size: 10px; letter-spacing: 0.1em;
  }
  .rail-list b { font-size: 13px; }
}
