@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800i.woff2) format('woff2'); }
/* Barlow 600 is not loaded: those uses fall back to 800 (M12). */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial'); size-adjust: 82%; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-500.woff2) format('woff2'); }

/* Broadcast graphics + printed race programme: hard edges, hairlines, type does the work.
   Near-monochrome plus one red; series liveries only as thin stripes. */
:root {
  --bg: #0b0b0c; --panel: #131416; --panel-2: #18191c; --line: #2b2c30; --rule: #e9e8e3; --text: #f2f1ed; --text-2: #c8c7c1; --muted: #8e8f94;
  --accent: #e10600; --flag-green: #22c55e; --flag-yellow: #facc15; --flag-red: #ef4444;
  --chequer-a: #f2f1ed; --chequer-b: #0b0b0c; --ad-bg: #101113; --ad-line: #222327;
  --display: 'Barlow Condensed', 'Barlow Fallback', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --body: Inter, system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme=light] {
  --bg: #f5f4ef; --panel: #ecebe5; --panel-2: #e6e5de; --line: #cfcdc4; --rule: #111; --text: #111111; --text-2: #34352f; --muted: #5c5d58;
  --accent: #d10500; --flag-green: #15803d; --flag-yellow: #a16207; --flag-red: #b91c1c;
  --chequer-a: #111; --chequer-b: #f5f4ef; --ad-bg: #eceae4; --ad-line: #d6d4cb;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) {
    --bg: #f5f4ef; --panel: #ecebe5; --panel-2: #e6e5de; --line: #cfcdc4; --rule: #111; --text: #111111; --text-2: #34352f; --muted: #5c5d58;
    --accent: #d10500; --flag-green: #15803d; --flag-yellow: #a16207; --flag-red: #b91c1c;
    --chequer-a: #111; --chequer-b: #f5f4ef; --ad-bg: #eceae4; --ad-line: #d6d4cb;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 64px; }
@media (max-width: 760px) { html { scroll-padding-top: 56px; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
section { padding: 36px 0 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* section heads: thick rule over condensed caps, like a programme page */
.h { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 14px; padding-top: 8px; border-top: 3px solid var(--rule); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; border-top: 3px solid var(--rule); padding-top: 8px; margin-bottom: 14px; }
.sec-head .h { border: 0; padding: 0; margin: 0; }
.h-sm { font-size: 22px; }
.kicker { font: 600 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kicker b { color: var(--text); font-weight: 600; }

/* links, buttons */
.links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.pill { font: 600 13px var(--body); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.pill:hover, a:hover { text-decoration-color: var(--accent); }
.btn { display: inline-flex; align-items: center; text-decoration: none; font: 600 12px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 9px 12px; border: 1px solid var(--text); background: transparent; color: var(--text); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { background: transparent; color: var(--text); }
.btn.sm { padding: 6px 9px; font-size: 11px; }
.addcal { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0; margin: -6px 0; border: 0; background: none; cursor: pointer; color: var(--muted); }
.addcal span { font: 500 12px/1 var(--mono); border: 1px solid var(--line); padding: 5px 6px; white-space: nowrap; }
.addcal:hover { color: var(--text); }
.addcal:hover span { border-color: var(--text); }
.cal-pop { position: absolute; z-index: 30; display: flex; flex-direction: column; min-width: 200px; background: var(--bg); border: 1px solid var(--text); }
.cal-pop a { padding: 14px 16px; text-decoration: none; font: 600 13px var(--body); }
.cal-pop a + a { border-top: 1px solid var(--line); }
.cal-pop a:hover { background: var(--text); color: var(--bg); }
.cal-pop.sheet-pop { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); top: auto; border-width: 1px 0 0; }
.star { background: none; border: 0; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; text-decoration: none; }
.star:hover, .star[aria-pressed=true] { color: var(--text); }
.star.sm { font-size: 13px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 52px; }
.logo { font: italic 800 25px/1 var(--display); text-decoration: none; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; flex: none; }
.logo b { color: var(--accent); }
.flag { width: 20px; height: 20px; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 10px 10px; outline: 1px solid var(--line); }
.nav { display: flex; gap: 20px; flex: 1; order: 1; min-width: 0; }
.nav a { text-decoration: none; color: var(--muted); font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.top-title { display: none; margin-left: auto; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region { margin: 0; }
.show-sm { display: none; }
.region label { display: flex; align-items: center; gap: 8px; }
.top-tools { display: flex; align-items: center; gap: 10px; order: 2; margin-left: auto; }
.region { display: flex; align-items: center; gap: 8px; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
select { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 0; padding: 5px 6px; font: 600 12px var(--body); }
.theme-btn { text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 7px 8px; }
.theme-btn:hover { color: var(--text); border-color: var(--text); }

/* status lights */
.light { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.light.live { background: var(--flag-green); box-shadow: none; }
.light.soon { background: var(--flag-yellow); box-shadow: none; }
.light.weekend { background: var(--text); box-shadow: none; }
.light.past { box-shadow: none; border-radius: 0; background: repeating-conic-gradient(var(--chequer-a) 0 25%, var(--chequer-b) 0 50%) 0 0 / 4.5px 4.5px; }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.legend .light { margin-left: 10px; }
.legend .light:first-child { margin-left: 0; }
.live-txt { font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--flag-green); }

/* series tag: livery stripe + condensed caps, no tinted fill */
.badge { display: inline-flex; align-items: center; font: 600 14px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 2px 0 2px 6px; border-left: 3px solid var(--c); white-space: nowrap; color: var(--text); }

/* lead: one dominant item, lower-third style */
.band { background: #0b0b0c; color: #f2f1ed; padding: 0; --text: #f2f1ed; --text-2: #c8c7c1; --muted: #8e8f94; --line: #2b2c30; --rule: #f2f1ed; --bg: #0b0b0c; --panel: #131416; --flag-green: #22c55e; --flag-yellow: #facc15; --chequer-a: #f2f1ed; --chequer-b: #0b0b0c; }
.band .lead { border-top: 4px solid var(--c, var(--accent)); }
.lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 24px 0; align-items: end; }
.lead-top { display: flex; align-items: center; gap: 14px; }
.plate { width: 96px; height: 80px; flex: none; background: #f2f1ed; color: #0b0b0c; border-left: 8px solid var(--c); display: grid; place-items: center; overflow: hidden; text-transform: uppercase; }
.plate span { font: italic 800 44px/1 var(--display); letter-spacing: -.01em; padding: 0 6px; white-space: nowrap; }
.plate.label { width: auto; min-width: 96px; padding: 0 10px; }
.plate.label span { font-size: 30px; }
.lead-line { color: var(--text-2); font-size: 14px; margin: 0 0 12px; }
.lead-title { font: italic 800 clamp(34px, 6vw, 72px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin: 8px 0 6px; overflow-wrap: anywhere; }
.lead-venue { color: var(--text-2); margin-bottom: 14px; display: flex; gap: 4px 14px; flex-wrap: wrap; }
.tt { width: auto; border-collapse: collapse; min-width: 280px; margin-bottom: 14px; font-size: 14px; }
.tt th, .tt td { padding: 5px 18px 5px 0; border-bottom: 1px solid var(--line); text-align: left; height: auto; }
.tt tr:first-child th, .tt tr:first-child td { border-top: 1px solid var(--rule); }
.tt th { font: 600 16px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; min-width: 110px; }
.tt td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tt .main th, .tt .main td { color: var(--text); font-weight: 600; }
.tt .main th { color: var(--accent); }
.tt .past th, .tt .past td { color: var(--muted); text-decoration: line-through; }
.tt .next th, .tt .next td { font-weight: 600; color: var(--text); }
.tt .next th::before { content: "› "; color: var(--accent); }
.tt .live th::after { content: ' · live'; color: var(--flag-green); font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .08em; }
.lead-cd { text-align: right; }
.gantry { display: inline-flex; gap: 7px; padding: 7px 9px; background: #000; margin-bottom: 10px; }
.gantry i { width: 14px; height: 14px; border-radius: 50%; background: #262626; }
.gantry i.on { background: #e10600; }
.cd-label { display: block; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.countdown { font: 500 46px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* next 7 days: printed timetable, sessions by day */
.week { display: grid; grid-template-columns: 1fr; }
.day { display: grid; grid-template-columns: 90px minmax(0, 1fr); border-top: 2px solid var(--rule); }
.day-h { font: 600 13px var(--body); text-transform: uppercase; letter-spacing: .1em; padding: 10px 0; }
.day.today .day-h { color: var(--accent); }
.tt-row { display: grid; grid-template-columns: 76px 110px minmax(0, 1fr) minmax(0, 170px) auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.day-l .tt-row:last-child { border-bottom: 0; }
.tt-time { font-size: 14px; font-weight: 500; }
.tt-row.live .tt-time { color: var(--flag-green); }
.tt-ev b { font: 800 18px/1.05 var(--display); text-transform: uppercase; margin-right: 6px; }
.tt-ev b.main { color: var(--accent); }
.tt-ev a { color: var(--text-2); font-size: 14px; text-decoration: none; }
.tt-ev a:hover { text-decoration: underline; }
.tt-tv { font-size: 13px; color: var(--text-2); }
.empty { color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* photo tiles: hard edges, dark lower-third caption (R2-D9) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); border-top: 3px solid var(--text); text-decoration: none; }
.tile-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; background: #0b0b0c; color: #f2f1ed; padding: 7px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tile-cap b { font: 800 19px/1 var(--display); text-transform: uppercase; }
.tile-cap span { font: 500 12px var(--mono); color: #b8b8b3; white-space: nowrap; }
.tile:hover .tile-cap b { text-decoration: underline; }
.credit { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.credit:hover { text-decoration: underline; }
.more-link { margin: 10px 0 0; font-weight: 600; }
.sections { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.sections a { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.sections b { font: 800 20px/1.1 var(--display); text-transform: uppercase; }
.sections span { color: var(--muted); font-size: 13px; }
.sections a:hover b { text-decoration: underline; }
.page { padding-top: 24px; }
.page > section { padding-top: 28px; }
.cat-hero { position: relative; background: #0b0b0c; }
.cat-hero-img { display: block; width: 100%; height: clamp(200px, 38vw, 440px); object-fit: cover; }
.cat-cap { position: absolute; left: 0; right: 0; bottom: 0; background: #0b0b0c; color: #f2f1ed; padding: 10px 0 12px; }
.cat-cap .kicker { color: #8e8f94; }
.cat-cap .lead-title { margin: 2px 0 0; }
.cat-list { border-top: 1px solid var(--rule); }
.cat-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); border-left: 3px solid var(--c); padding-left: 10px; text-decoration: none; }
.cat-row b { display: block; font: 800 20px/1.1 var(--display); text-transform: uppercase; }
.cat-row:hover b { text-decoration: underline; }
.cat-thumb { width: 120px; height: 90px; object-fit: cover; background: var(--panel); display: block; }
.sp-photo { background: #0b0b0c; }
.sp-photo-img { display: block; width: 100%; height: clamp(180px, 30vw, 380px); object-fit: cover; }
.disc-thumb img { width: 64px; height: 48px; object-fit: cover; display: block; }
.disc-lead figure { margin: 0 0 12px; }
.disc-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.disc-lead h2 { font: italic 800 clamp(30px, 4vw, 44px)/.95 var(--display); text-transform: uppercase; margin: 6px 0 10px; }
.disc-lead h2 a { text-decoration: none; }
.classes { margin: 0; border-top: 1px solid var(--rule); }
.classes dt { font: 800 18px/1.2 var(--display); text-transform: uppercase; padding-top: 10px; }
.classes dd { margin: 2px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--text-2); max-width: 75ch; }
.latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--rule); padding-top: 12px; margin-bottom: 8px; }
.latest-card { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.latest-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--panel); }
.latest-card:hover .hl-title { text-decoration: underline; }
.sp-feature { display: block; position: relative; background: #0b0b0c; color: #f2f1ed; text-decoration: none; }
.sp-feature img { display: block; width: 100%; height: clamp(180px, 30vw, 380px); object-fit: cover; opacity: .85; }
.sp-feature-cap { position: absolute; left: 0; right: 0; bottom: 0; background: #0b0b0c; padding-top: 8px; padding-bottom: 10px; display: block; }
.sp-feature-cap .kicker { color: #8e8f94; }
.sp-feature-cap .hl-title { font: 600 17px/1.3 var(--body); }
.sp-feature:hover .hl-title { text-decoration: underline; }
.next-season { color: var(--text-2); border-top: 1px solid var(--line); padding-top: 10px; }
.cat-row .small { display: block; margin: 2px 0; }
.photo-credits { font-size: 11px; color: var(--muted); margin: 8px 0 0; line-height: 1.8; }
.photo-credits a { color: var(--muted); }
.cat-row.no-thumb { grid-template-columns: minmax(0, 1fr); }
.tiles-all .tile-wrap:nth-child(-n+3) { grid-column: span 2; }
.tiles-all .tile-wrap:nth-child(-n+3) .tile { aspect-ratio: 16 / 9; }
.pager { display: flex; gap: 10px; margin-top: 20px; }
.wt-all th { width: 38%; }
.wt-all th a { text-decoration: none; border-left: 3px solid var(--c); padding-left: 8px; }
.region-switch { margin: 0 0 8px; align-items: center; gap: 10px; }
.noscript { padding: 20px 16px; }

/* filters: segmented strip, square */
.chips { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.chip { cursor: pointer; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 6px 0; margin-bottom: -1px; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.chip i { width: 3px; height: 12px; background: var(--c, var(--muted)); }
.chip:hover { color: var(--text); }
.chip[aria-pressed=true] { color: var(--text); border-bottom-color: var(--c, var(--accent)); }

/* My Series */
.mine { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 10px 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.mine p { margin: 0; font-size: 14px; }
.mine b { font: 800 16px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.mine-row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.mine-list { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; margin-left: auto; }
.seg a, .seg button { display: inline-flex; align-items: center; text-decoration: none; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 5px 10px; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.seg a + a, .seg button + button { border-left: 0; }
.seg a[aria-pressed=true], .seg button[aria-pressed=true] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* calendar: timing tower */
.cal-group { margin-bottom: 26px; }
.cal-group h3 { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 6px; }
.tower { border-top: 1px solid var(--rule); }
.ev { border-bottom: 1px solid var(--line); }
.ev summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3px 9px 38px 104px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 7px 10px 7px 0; min-height: 46px; }
.sp .ev summary { grid-template-columns: 3px 9px 38px minmax(0, 1fr) auto auto; }
.ev summary::-webkit-details-marker { display: none; }
.ev summary:hover .name { text-decoration: underline; text-decoration-thickness: 2px; }
.ev[open] > summary { background: var(--panel); }
.ev .bar { align-self: stretch; background: var(--c); margin: -7px 0; }
.ev summary .lb { display: contents; }
.ev summary .badge { border-left: 0; padding-left: 0; }
.rnd { font: 500 14px var(--mono); font-variant-numeric: tabular-nums; color: var(--text-2); }
.ev .name { font: 800 20px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.ev .venue { color: var(--muted); font-size: 13px; }
.ev .time { text-align: right; font: 500 14px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev .time small { display: block; color: var(--muted); font: 12px var(--body); }
.ev.past { color: var(--muted); }
.ev .tag-final { color: var(--accent); font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; margin-left: 10px; vertical-align: 3px; font-style: normal; }
.ev-body { padding: 4px 16px 16px 63px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--line); background: var(--panel); }
.sp .ev-body { grid-template-columns: minmax(0, 520px); }
.ev-body h4 { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 12px 0 6px; }
.ev-body p { margin: 8px 0 0; }
.sessions { margin: 0; padding: 0; list-style: none; font-size: 14px; border-top: 1px solid var(--rule); }
.sessions li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.sessions li > span:not(.light) { flex: 1; font: 600 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.sessions li.main > span:not(.light) { color: var(--accent); }
.sessions li.done { color: var(--muted); }
.sessions li.done > span:not(.light), .sessions li.done time { text-decoration: line-through; color: var(--muted); }
.sessions time { font-size: 13px; white-space: nowrap; }
.watch-list { display: flex; flex-direction: column; gap: 6px; }
.watch-list .note, .wt-item .note { color: var(--muted); font-size: 12px; margin-left: 8px; }
.toggle { text-decoration: none; min-height: 44px; display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.past-wrap > summary { cursor: pointer; color: var(--muted); font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .1em; padding: 12px 0; }

/* series directory: a contents table, not a card grid */
.dir-head, .dir-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 24px; }
.dir-head { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0 0 6px 14px; border-bottom: 1px solid var(--rule); }
.dir-row { padding: 14px 0 14px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--c); align-items: start; }
.dir-name a { font: 800 25px/1 var(--display); text-transform: uppercase; text-decoration: none; }
.dir-name a:hover { text-decoration: underline; }
.dir-name p { margin: 6px 0 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dir-next { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.dir-next b { font: 800 18px/1.05 var(--display); text-transform: uppercase; }
.dir-next .mono { font-size: 13px; }
.dir-watch { flex-direction: column; align-items: flex-start; }
.dir-act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

/* other championships: lead feature + numbered contents list */
.disc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: start; }
.disc-lead { border-top: 8px solid var(--c); padding-top: 12px; }
.disc-lead h3 { font: italic 800 clamp(34px, 4vw, 48px)/.92 var(--display); text-transform: uppercase; margin: 8px 0 10px; }
.disc-lead h3 a { text-decoration: none; }
.disc-lead p { margin: 0 0 8px; color: var(--text-2); }
.pairs { margin-top: 24px; border-collapse: collapse; width: 100%; font-size: 13px; }
.pairs caption { text-align: left; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-bottom: 6px; }
.pairs th, .pairs td { padding: 6px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; height: auto; }
.pairs th { font: 600 15px/1.2 var(--display); text-transform: uppercase; width: 90px; padding-right: 12px; }
.pairs td { color: var(--text-2); }
.disc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.disc-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.disc-list .no { font: 500 20px/1.1 var(--mono); color: var(--muted); border-right: 3px solid var(--c); padding-right: 8px; text-align: right; align-self: start; }
.disc-name { font: 800 20px/1.1 var(--display); text-transform: uppercase; text-decoration: none; margin-right: 6px; }
.disc-name:hover { text-decoration: underline; }
.disc-list .small { color: var(--text-2); margin-top: 3px; }
.free-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; font-size: 13px; }
.free-line a { font-weight: 600; }
.free-block { margin: 12px 0; }
.tag-free { font: 700 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text); border: 1px solid var(--text); padding: 2px 4px; margin-right: 4px; text-decoration: none; display: inline-block; }
.src-link { font-size: 11px; color: var(--muted); }

/* news: one lead story, then a dense headline list */
.news { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 36px; align-items: start; }
.news .hl-list { grid-column: 2; grid-row: 1 / span 2; }
.news-lead { text-decoration: none; display: block; }
.news-lead .img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--panel); margin-bottom: 12px; }
.news-lead h3 { font: italic 800 clamp(28px, 3.4vw, 40px)/.95 var(--display); text-transform: uppercase; margin: 6px 0 8px; }
.news-lead p { margin: 0; color: var(--text-2); }
.news-lead:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.hl-list { border-top: 1px solid var(--rule); }
.hl { display: block; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hl:hover .hl-title { text-decoration: underline; }
.news-sub { grid-column: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.news-sub a { text-decoration: none; }
.news-sub img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--panel); margin-bottom: 8px; }
.news-sub a:hover .hl-title { text-decoration: underline; }
.hl.has-img { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.thumb { width: 96px; height: 72px; object-fit: cover; background: var(--panel); display: block; }
.hl-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.hl-title { display: block; font: 600 15px/1.3 var(--body); margin-top: 3px; }

/* standings: timing tower */
.standings { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { text-align: left; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0 0 6px; }
.tower-table thead th { border-bottom: 1px solid var(--rule); }
td, th { padding: 0 10px; height: 40px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .08em; height: 30px; }
.tower-table td:first-child, .tower-table th:first-child { padding-left: 0; width: 44px; }
.tower-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--panel) 60%, transparent); }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { display: inline-grid; place-items: center; width: 30px; height: 26px; font: 500 14px var(--mono); border-right: 2px solid var(--line); }
tbody tr:first-child .pos { background: var(--text); color: var(--bg); border-color: var(--accent); }

/* series page */
.sp { padding-top: 16px; }
.crumbs { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.sp-head { padding: 18px 0 22px; }
.sp-title { display: flex; align-items: flex-start; gap: 12px; }
.sp-title .star { font-size: 26px; margin-top: 10px; }
.facts { font-size: 14px; border-top: 2px solid var(--rule); padding-top: 8px; margin: 4px 0 12px; }

.sp-sub { font: 600 13px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.sp-blurb { color: var(--text-2); max-width: 70ch; margin: 0 0 16px; }
.sp-actions { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; }
.sp-actions .pill { margin-left: 6px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "sched" "rail" "more"; gap: 0 40px; }
.sp-sched { grid-area: sched; } .sp-rail { grid-area: rail; } .sp-more { grid-area: more; }
.rel { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rel li { border-bottom: 1px solid var(--line); border-left: 3px solid var(--c); padding: 7px 0 7px 10px; }
.rel a { font: 800 17px/1.1 var(--display); text-transform: uppercase; text-decoration: none; }
.rel a:hover { text-decoration: underline; }
.noscript { padding: 20px 16px; }
.wt { border-top: 1px solid var(--rule); margin-bottom: 10px; }
.wt th, .wt td { height: auto; padding: 8px 10px 8px 0; vertical-align: top; }
.wt th { font: 800 16px/1.2 var(--display); color: var(--text); letter-spacing: .02em; width: 48px; }
.wt td a:not(.src-link) { font-weight: 600; }
.wt td small { display: block; color: var(--muted); font-size: 12px; }
.wt td:last-child { text-align: right; padding-right: 0; }
.wt td[colspan] { text-align: left; }
.aff { margin-top: 28px; }
.aff ul { margin: 0 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.aff li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.aff-tag { font: 600 10px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 1px 4px; margin-left: 6px; }

/* info pages */
.prose { max-width: 760px; padding-top: 28px; }
.prose h2 { font: 800 24px/1.1 var(--display); text-transform: uppercase; margin: 28px 0 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--text); }

/* ads: space is always reserved, so nothing shifts when an ad loads */
.ad-slot { position: relative; contain: layout; min-height: 280px; background: var(--ad-bg); border-top: 1px solid var(--ad-line); border-bottom: 1px solid var(--ad-line); padding: 18px 0 8px; overflow: hidden; }
.ad-label { position: absolute; top: 3px; left: 0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ad-wide { margin: 28px 0 8px; }
.cal-group + .ad-slot { margin: 0 0 26px; }
.ad-side { margin: 28px 0 0; }
.ad-tile { margin: 10px 0; }

/* mobile tab bar (≤760px) */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #0b0b0c; border-top: 1px solid #2b2c30; }
  .tabbar > a, .tabbar summary { min-height: 56px; display: grid; place-items: center; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: #8e8f94; text-decoration: none; cursor: pointer; list-style: none; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar [aria-current="page"], .more[open] summary { color: #f2f1ed; box-shadow: inset 0 3px 0 var(--accent); }
  .sheet { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); background: #0b0b0c; color: #f2f1ed; border-top: 1px solid #2b2c30; padding: 4px 16px 10px; display: flex; flex-direction: column; }
  .sheet > a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid #2b2c30; font: 800 20px var(--display); text-transform: uppercase; text-decoration: none; color: #f2f1ed; }
  .sheet-row { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; min-height: 48px; border-bottom: 1px solid #2b2c30; }
  .sheet-row span { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .1em; color: #8e8f94; margin-right: auto; }
  .sheet-row a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; color: #f2f1ed; font-weight: 600; }
  .sheet-row a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
  .sheet-row.small { border: 0; }
  .sheet-row.small a { color: #8e8f94; font-weight: 500; }
  .top-in { height: 48px; gap: 12px; }
  .nav, .top-tools { display: none; }
  .top-title { display: block; }
  .foot { margin-top: 32px; }
}

/* footer */
.foot { padding: 28px 0 40px; border-top: 3px solid var(--rule); margin-top: 56px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.foot-links a { text-decoration: none; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .08em; }
.foot-links a:hover { text-decoration: underline; }

@media (min-width: 768px) { .ad-slot { min-height: 250px; } }
@media (min-width: 1024px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "sched rail" "more rail"; }
  .sp-rail { align-self: start; position: sticky; top: 64px; }
  .ad-side { margin-top: 36px; min-height: 600px; }
}
@media (max-width: 1000px) {
  .tt-row { grid-template-columns: 70px 100px minmax(0, 1fr) auto; }
  .tt-tv { display: none; }
  .dir-head, .dir-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); }
  .dir-head span:last-child { display: none; }
  .dir-act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .top-in { gap: 16px; }
  .nav { gap: 14px; }
  .region span { display: none; }
  .nav a, .chip, select, .theme-btn, .btn.sm, .seg a { min-height: 44px; display: inline-flex; align-items: center; }
  .chips { gap: 0 20px; }
  .pill, .src-link, .foot-links a { display: inline-block; padding: 12px 0; }
  .toggle input { width: 20px; height: 20px; }
  .lead { grid-template-columns: 1fr; gap: 12px; }
  .lead-cd { text-align: left; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
  .lead-cd .gantry { flex-basis: 100%; width: max-content; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sections { grid-template-columns: 1fr 1fr; }
  .disc-wrap, .news { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .news .hl-list { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .btn, .past-wrap > summary { min-height: 44px; }
  .past-wrap > summary { display: flex; align-items: center; }
  .tiles-all .tile-wrap:nth-child(-n+3) { grid-column: auto; }
  .tiles-all .tile-wrap:nth-child(-n+3) .tile { aspect-ratio: 4 / 3; }
  .standings { grid-template-columns: 1fr; }
  .ev-body { grid-template-columns: 1fr; gap: 0; padding: 4px 12px 14px; }
}
@media (max-width: 560px) {
  .region span { display: none; }
  body { font-size: 16px; }
  .small, .muted.small, .venue, .hl-meta, .note, .watch-list .note, .dir-name p, .sp-blurb { font-size: 14px; }
  time, .tt-time, .ev .time, .sessions time, .mono { font-size: 14px; }
  .src-link, .credit { font-size: 12px; }
  .kicker, .ev-body h4, .nav a, .chip, .cal-group h3, .day-h, .cd-label { font-size: 12px; }
  .lead { padding: 16px 0 14px; gap: 10px; }
  .plate { width: 64px; height: 56px; border-left-width: 6px; }
  .plate span { font-size: 30px; padding: 0 4px; }
  .plate.label { width: auto; min-width: 64px; }
  .plate.label span { font-size: 20px; }
  .lead-title { font-size: 34px; margin: 8px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lead-line { margin-bottom: 4px; }
  .lead .links { display: none; }
  .countdown { font-size: 32px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 32px; }
  .chips::-webkit-scrollbar { display: none; }
  .tiles { gap: 10px; }
  .tile-cap { padding: 6px 8px; }
  .tile-cap { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tile-cap b { font-size: 16px; }
  .home-week .tt-row:nth-child(n+4) { display: none; }
  .hl-list .hl:nth-child(n+5) .thumb { display: none; }
  .hl-list .hl.has-img:nth-child(n+5) { display: block; }
  .cat-row { grid-template-columns: 96px minmax(0, 1fr); }
  .cat-thumb { width: 96px; height: 72px; }
  .sp-photo-img { height: 200px; }
  .disc-thumb { display: none; }
  .legend { column-gap: 12px; }
  .day { grid-template-columns: 1fr; }
  .day-h { padding: 8px 0 2px; }
  .tt-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; padding: 4px 0; }
  .tt-time { white-space: nowrap; }
  .tt-time { grid-column: 1; grid-row: 1; }
  .tt-series { grid-column: 2; grid-row: 1; }
  .tt-ev { grid-column: 1 / 4; grid-row: 2; }
  .tt-row .addcal { grid-column: 3; grid-row: 1; }
  .chip { flex: none; }
  .news-sub { grid-template-columns: 1fr 1fr; }
  .news-sub a:nth-child(3) { display: none; }
  .ev summary, .sp .ev summary { grid-template-columns: 3px minmax(0, 1fr) auto; gap: 3px 10px; padding: 9px 10px 9px 0; }
  .ev summary .lb { display: flex; align-items: center; gap: 8px; grid-column: 2; grid-row: 1; }
  .ev summary .info { grid-column: 2; grid-row: 2; }
  .ev summary .time { grid-column: 3; grid-row: 1; }
  .ev summary > :last-child { grid-column: 3; grid-row: 2; justify-self: end; }
  .ev .bar { grid-row: 1 / 3; margin: -9px 0; }
  .sp .ev summary { grid-template-columns: 3px minmax(0, 1fr) auto auto; }
  .sp .ev summary .info { grid-column: 2 / 5; }
  .sp .ev summary > :last-child { grid-column: 4; grid-row: 1; }
  .sessions li { gap: 6px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .dir-head { display: none; }
  .dir-row { grid-template-columns: 1fr; gap: 10px; border-top: 0; }
  .dir-act { grid-column: auto; }
  .seg { margin-left: 0; }
}

@media (max-width: 390px) { .legend .opt { display: none; } }

/* ---------- Round 3 design pass (docs/DESIGN.md) ---------- */

/* mastheads: page titles open like a programme section, bigger than the section heads inside them */
h1.h { font: italic 800 clamp(40px, 6vw, 64px)/.9 var(--display); letter-spacing: -.01em; border-top-width: 6px; padding-top: 10px; }
.sec-head:has(> h1.h) { border-top-width: 6px; padding-top: 10px; margin-bottom: 20px; }
.sec-head > h1.h { border: 0; padding: 0; }

/* home tiles: a magazine spread, not a 4x2 grid — lead 2x2, four small, one wide + two */
#find .tiles { grid-auto-flow: dense; }
#find .tile-wrap { display: flex; flex-direction: column; min-width: 0; }
#find .tile-wrap:nth-child(1), #find .tile-wrap:nth-child(6) { grid-column: span 2; }
#find .tile-wrap:nth-child(1) .tile, #find .tile-wrap:nth-child(6) .tile { aspect-ratio: auto; flex: 1; min-height: 0; }
#find .tile-wrap:nth-child(1) .tile-img, #find .tile-wrap:nth-child(6) .tile-img { position: absolute; inset: 0; }
#find .tile-wrap:nth-child(1) { grid-row: span 2; }
#find .tile-wrap:nth-child(1) .tile { border-top-width: 6px; }
#find .tile-wrap:nth-child(1) .tile-cap { padding: 10px 14px; }
#find .tile-wrap:nth-child(1) .tile-cap b { font: italic 800 34px/1 var(--display); }
@media (max-width: 900px) {
  #find .tile-wrap:nth-child(1) { grid-row: auto; }
  #find .tile-wrap:nth-child(1) .tile, #find .tile-wrap:nth-child(6) .tile { aspect-ratio: 16 / 9; flex: none; }
}
@media (max-width: 560px) {
  #find .tile-wrap:nth-child(1) .tile-cap b { font-size: 26px; }
}

/* home timetable: day and time on one line */
@media (min-width: 1001px) { .home-week .tt-row { grid-template-columns: 132px 110px minmax(0, 1fr) minmax(0, 200px) auto; } }
@media (min-width: 561px) and (max-width: 1000px) { .home-week .tt-row { grid-template-columns: 132px 100px minmax(0, 1fr) auto; } }
.home-week .tt-time { white-space: nowrap; }

/* home headlines: first story leads */
.sec-head + .hl-list > .hl:first-child .hl-title { font: 800 clamp(22px, 2.6vw, 30px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .005em; margin-top: 6px; }
.sec-head + .hl-list > .hl:first-child { padding: 12px 0 14px; }

/* news page: lead keeps pace with the list instead of leaving an empty column */
.news-lead h2 { font: italic 800 clamp(28px, 3.4vw, 40px)/.95 var(--display); text-transform: uppercase; margin: 8px 0 8px; }
.news-lead:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; }
.news-lead { border-top: 1px solid var(--rule); padding-top: 12px; }
@media (min-width: 901px) { .news-lead { position: sticky; top: 72px; } }

/* contents list: numbered like a magazine contents page */
.sections { counter-reset: sec; }
.sections li { counter-increment: sec; }
.sections a { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 4px; align-content: start; }
.sections a::before { content: counter(sec, decimal-leading-zero); grid-row: 1 / 3; font: 500 15px/1.5 var(--mono); color: var(--accent); }
.sections b, .sections span { grid-column: 2; }

/* standings: a timing tower, not a default table */
.tower-table td { height: 38px; }
.tower-table tbody td:nth-child(2) { font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.tower-table tbody td:nth-child(3):not(.num) { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tower-table td.num:last-child { font-weight: 500; font-size: 15px; color: var(--text); }
.tower-table tbody tr:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tower-table tbody tr:first-child td:first-child { padding-left: 3px; }
.tower-table caption { font: 800 20px/1 var(--display); color: var(--text); letter-spacing: .02em; padding-bottom: 10px; }

/* footer: a chequered strip is the sign-off */
.foot { border-top: 0; padding-top: 40px; background: repeating-conic-gradient(var(--chequer-a) 0 25%, var(--chequer-b) 0 50%) 0 0 / 12px 12px repeat-x; }

/* credits stay readable on phones */
@media (max-width: 560px) {
  .tile-wrap .credit { white-space: normal; overflow: visible; line-height: 1.35; }
  .hl-meta { flex-wrap: wrap; row-gap: 2px; }
  .hl.has-img .hl-meta .mono { white-space: nowrap; }
}

/* section rhythm: .wrap's padding was cancelling section padding, so home sections sat on each other */
section.wrap { padding-top: 40px; padding-bottom: 8px; }
section.band + section.wrap { padding-top: 24px; }
@media (max-width: 560px) { section.wrap { padding-top: 32px; } }

/* footer: regional TV guide links sit under the site links as a quieter second line */
.foot-links + .foot-links { margin-top: -4px; }
.foot-links + .foot-links a { font: 500 13px var(--body); text-transform: none; letter-spacing: 0; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line); }
.foot-links + .foot-links a:hover { text-decoration-color: var(--accent); }

/* multi-series standings (spec sent to programmer; see DESIGN.md "Standings page") */
.st-index { margin-bottom: 8px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 36px; align-items: start; }
.st-block { padding-top: 28px; scroll-margin-top: 64px; }
.st-block.wide { grid-column: 1 / -1; }
.st-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding-top: 11px; margin-bottom: 8px; background: linear-gradient(90deg, var(--c, var(--rule)) 48px, var(--rule) 48px) 0 0 / 100% 3px no-repeat; }
.st-head h2 { font: 800 26px/1 var(--display); text-transform: uppercase; margin: 0; }
.st-head h2 a { text-decoration: none; }
.st-head h2 a:hover { text-decoration: underline; }
.st-asof { font: 500 13px var(--mono); color: var(--muted); }
.tower-table td.pts { font-weight: 500; font-size: 15px; color: var(--text); }
.tower-table th.num.gap { width: 64px; }
.tower-table td.num.gap { color: var(--muted); font-size: 13px; }
.tower-table tbody tr:first-child td.num.gap { color: var(--text-2); }
.st-src { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.st-src a { color: var(--muted); }
.st-empty { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); padding: 14px 0; color: var(--muted); font-size: 14px; }
.st-empty b { display: block; font: 800 18px/1.1 var(--display); text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
@media (max-width: 900px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tower-table .gap { display: none; } .st-head h2 { font-size: 22px; } }
.st-head h2 span { color: var(--muted); }
.st-table td.hide-sm:not(.num) { line-height: 1.2; }
.st-full > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1px solid var(--line); font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.st-full > summary::-webkit-details-marker { display: none; }
.st-full > summary::before { content: '+'; font: 500 15px/1 var(--mono); color: var(--accent); width: 12px; }
.st-full[open] > summary::before { content: '−'; }
.st-full > summary:hover { color: var(--text); }
.st-full[open] > summary { border-bottom-color: var(--rule); }
.st-full .tower-table thead { display: none; }
.st-full .tower-table tbody tr:first-child { box-shadow: none; }
.st-full .tower-table tbody tr:first-child .pos { background: none; color: inherit; border-color: var(--line); }
@media (max-width: 760px) { .st-full > summary { min-height: 44px; } }
/* title maths (F1, F2, F3): odds column, fight line, model label, how-it-works note */
.tower-table th.num.odds { width: 64px; color: var(--accent); }
.tower-table td.num.odds { font-size: 13px; color: var(--text-2); }
.tower-table tbody tr:first-child td.num.odds { color: var(--text); font-weight: 600; }
.st-fight { margin: 10px 0 0; padding-left: 10px; border-left: 3px solid var(--accent); font-size: 14px; color: var(--text-2); }
.st-fight b { font: 800 17px/1 var(--display); text-transform: uppercase; color: var(--text); letter-spacing: .02em; }
.st-model { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.st-model a { color: var(--muted); }
.st-how { margin-top: 36px; border-top: 3px solid var(--rule); scroll-margin-top: 64px; }
.st-how > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; font: 800 20px/1 var(--display); text-transform: uppercase; }
.st-how > summary::-webkit-details-marker { display: none; }
.st-how > summary::before { content: '+'; font: 500 16px/1 var(--mono); color: var(--accent); width: 12px; }
.st-how[open] > summary::before { content: '−'; }
.st-how p { max-width: 70ch; color: var(--text-2); margin: 4px 0 12px; }
@media (max-width: 560px) { .tower-table th.num.odds { width: 48px; } }

/* ---------- calendar: month view (designer, /calendar) ---------- */
.mc-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 14px; }
.mc-bar .seg { margin-left: 0; }
.mc-bar .legend { margin: 0; }
.mc { padding-top: 6px; }
.mc-head { display: flex; align-items: baseline; gap: 6px 20px; flex-wrap: wrap; border-top: 6px solid var(--rule); padding-top: 10px; margin-bottom: 10px; }
.mc-head h2 { order: 1; font: italic 800 clamp(34px, 5vw, 52px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.mc-nav, .mc-now { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.mc-nav:hover, .mc-now:hover { color: var(--text); }
.mc-prev { order: 2; margin-left: auto; }
.mc-next { order: 3; }
.mc-now { order: 4; color: var(--accent); }
.mc-dow, .mc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mc-dow { border-bottom: 1px solid var(--rule); }
.mc-dow span { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0 8px 6px; }
.mc-dow span.we { color: var(--text); }
.mc-days { border-left: 1px solid var(--line); }
.mc-d { min-height: 128px; min-width: 0; padding: 6px 8px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mc-d.we { background: var(--panel); }
.mc-d.out { background: transparent; }
.mc-d.out > * { opacity: .4; }
.mc-d.today { box-shadow: inset 0 3px 0 var(--accent); }
.mc-num { display: flex; align-items: baseline; gap: 6px; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; color: var(--text-2); }
.mc-d.we .mc-num { color: var(--text); }
.mc-d.gone .mc-num { color: var(--muted); }
.mc-d.today .mc-num { color: var(--accent); }
.mc-num b { font: 700 10px var(--body); letter-spacing: .12em; text-transform: uppercase; }
.mc-dl { display: block; text-decoration: none; }
.mc-ticks { display: none; }
.mc-ev { display: block; margin-top: 6px; padding: 1px 0 1px 7px; border-left: 3px solid var(--c); text-decoration: none; min-width: 0; }
.mc-s { display: block; font: 800 13px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); }
.mc-s em { font-style: normal; color: var(--accent); font: 700 9px var(--body); letter-spacing: .1em; vertical-align: 1px; }
.mc-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 800 15px/1.05 var(--display); text-transform: uppercase; color: var(--text); overflow-wrap: anywhere; }
.mc-t { display: block; font: 500 11px var(--mono); color: var(--muted); }
.mc-ev:hover .mc-n { text-decoration: underline; }
.mc-ev.past .mc-n, .mc-ev.past .mc-s { color: var(--muted); }
.mc-ev.live .mc-t { color: var(--flag-green); }
.mc-agenda { padding-top: 36px; }
.mc-day { scroll-margin-top: 64px; }
.mc-day h3 { font: 800 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 20px 0 6px; }
.mc-day.today h3 { color: var(--accent); }
.ev:target > summary { box-shadow: inset 0 0 0 2px var(--accent); }
@media (max-width: 760px) {
  .mc-head h2 { flex-basis: 100%; }
  .mc-prev { margin-left: 0; }
  .mc-dow span { padding: 0 0 6px; text-align: center; font-size: 10px; letter-spacing: .04em; }
  .mc-d { min-height: 52px; padding: 0; }
  .mc-d > .mc-num { padding: 6px 0 0; justify-content: center; }
  .mc-num b { display: none; }
  .mc-ev { display: none; }
  .mc-dl { min-height: 52px; height: 100%; padding: 6px 4px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
  .mc-dl .mc-num { color: var(--text); font-weight: 500; }
  .mc-ticks { display: flex; gap: 2px; width: 100%; justify-content: center; }
  .mc-ticks i { width: 6px; height: 6px; background: var(--c); }
}
.mc-gone > summary { border-bottom: 1px solid var(--line); }
.mc-gone[open] > summary { margin-bottom: 4px; }

/* ---------- Round 4 design pass (docs/DESIGN-R4.md): video, photos, standings towers ---------- */

/* highlight video facade: hard-edged 16:9 frame, livery rule on top, square play block, lower-third tag */
.vids { display: grid; gap: 20px; border-top: 1px solid var(--rule); padding-top: 14px; }
.vids-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vids-3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.vids-3 > .vid:first-child { grid-row: span 2; }
.cat-vids .vids-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-vids .vids-3 > .vid:first-child { grid-row: auto; }
.vid { margin: 0; min-width: 0; }
.vid-play, .vid-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-top: 3px solid var(--c, var(--accent)); overflow: hidden; }
.vid-frame { border-left: 0; border-right: 0; border-bottom: 0; }
.vid-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-btn { position: absolute; left: 0; bottom: 0; width: 56px; height: 44px; background: #0b0b0c; display: grid; place-items: center; }
.vid-btn::before { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #f2f1ed; margin-left: 3px; }
.vid-tag { position: absolute; left: 56px; bottom: 0; height: 44px; display: flex; align-items: center; padding: 0 12px; background: var(--accent); color: #fff; font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.vid-play:hover .vid-btn { background: var(--accent); }
.vid-play:hover .vid-tag { background: #0b0b0c; }
.vid-play:focus-visible { outline-offset: -3px; }
.vid figcaption { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; }
.vid figcaption .badge { align-self: flex-start; }
.vid-title { font: 800 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.vids-3 > .vid:first-child .vid-title, .reel-grid > .vid .vid-title { font: italic 800 clamp(22px, 2.4vw, 30px)/1 var(--display); }
.vid-src { font: 500 12px var(--mono); color: var(--muted); text-decoration: none; align-self: flex-start; }
.vid-src:hover { text-decoration: underline; color: var(--text); }

/* series page: the title sits on the photo, in a TV lower-third */
.sp-hero { position: relative; background: #0b0b0c; }
.sp-hero .sp-photo-img { display: block; width: 100%; height: clamp(260px, 42vw, 540px); object-fit: cover; }
.sp-hero-cap { position: absolute; left: 0; right: 0; bottom: 0; }
.sp-hero-cap .wrap { position: relative; }
.sp-hero-cap .wrap > * { position: relative; }
.sp-hero-cap .crumbs { display: table; background: #0b0b0c; padding: 6px 10px 4px; margin: 0; }
.sp-hero-cap .crumbs, .sp-hero-cap .crumbs a { color: #b8b8b3; }
.sp-hero-cap .sp-title { display: inline-flex; max-width: 100%; align-items: center; background: #0b0b0c; color: #f2f1ed; border-left: 10px solid var(--c); padding: 10px 6px 8px 16px; vertical-align: bottom; }
.sp-hero-cap .lead-title { margin: 0; font-size: clamp(40px, 7vw, 96px); }
.sp-hero-cap .star { color: #8e8f94; margin-top: 0; }
.sp-hero-cap .star:hover, .sp-hero-cap .star[aria-pressed=true] { color: #f2f1ed; }
.sp-hero + .wrap > .credit { white-space: normal; margin-top: 6px; }
.sp-head.on-photo { padding-top: 8px; }
.sp-vids { padding-top: 8px; padding-bottom: 12px; }

/* home: lead band carries the next series' photo on the right; countdown sits on the photo as a lower-third */
.band.has-photo { position: relative; overflow: hidden; }
.band-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 45%; margin: 0; background: #131416; }
.band-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band.has-photo .lead { min-height: 420px; }
.band.has-photo .lead-main { max-width: 54%; padding-right: 24px; }
.band.has-photo .lead-cd { position: absolute; right: max(16px, calc((100vw - 1200px) / 2 + 16px)); bottom: 40px; background: #0b0b0c; padding: 12px 16px 14px; border-top: 4px solid var(--c, var(--accent)); }
.band-credit { position: relative; padding-bottom: 8px; }
.band-credit .credit { color: #b8b8b3; position: absolute; right: 0; bottom: 0; max-width: 45%; text-align: right; background: #0b0b0c; padding: 3px 8px; margin: 0; }

/* home: full-bleed highlights reel — one big video, the rest stacked beside it */
.band.reel { padding: 36px 0 32px; margin-top: 40px; }
.band.reel .sec-head { border-top-color: var(--accent); }
.band.reel .h { color: #f2f1ed; }
.reel-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; }
.reel-side { display: grid; gap: 16px; align-content: start; }
.reel-side .vid { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 12px; align-items: start; border-top: 1px solid #2b2c30; padding-top: 12px; }
.reel-side .vid:first-child { border-top: 0; padding-top: 0; }
.reel-side .vid figcaption { padding-top: 0; }
.reel-side .vid-btn { width: 40px; height: 32px; }
.reel-side .vid-btn::before { border-width: 7px 0 7px 11px; }
.reel-side .vid-tag { display: none; }
.reel-side .vid-title { font-size: 16px; }
.band.reel + section.wrap { padding-top: 40px; }

/* home headlines: a picture-led front page */
.front { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
.front.no-lead { grid-template-columns: minmax(0, 1fr); }
.front-lead { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border-top: 1px solid var(--rule); padding-top: 12px; }
.front-lead img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--panel); margin-bottom: 4px; }
.front-title { font: italic 800 clamp(26px, 3vw, 40px)/.95 var(--display); text-transform: uppercase; }
.front-lead:hover .front-title { text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  .band.has-photo .band-photo { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 340px; }
  .band.has-photo .lead { min-height: 0; }
  .band.has-photo .lead-main { max-width: none; padding-right: 0; }
  .band.has-photo .lead-cd { position: static; background: none; padding: 12px 0 0; border-top: 1px solid var(--line); }
  .band-credit .credit { position: static; max-width: none; text-align: left; white-space: normal; }
  .reel-grid, .front { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .vids-3, .cat-vids .vids-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vids-3 > .vid:first-child { grid-column: 1 / -1; grid-row: auto; }
  .front-lead { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .vids-2, .vids-3, .cat-vids .vids-3 { grid-template-columns: minmax(0, 1fr); }
  .reel-side .vid { grid-template-columns: 120px minmax(0, 1fr); }
  .sp-hero .sp-photo-img { height: 280px; }
  .sp-hero-cap .sp-title { padding: 8px 2px 6px 12px; border-left-width: 6px; }
  .sp-hero-cap .lead-title { font-size: 36px; -webkit-line-clamp: 3; }
}

/* ---------- calendar: subscribe panel + "+N more" (designer, /calendar) ---------- */
.mc-more { display: block; margin-top: 6px; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); text-decoration: none; }
.mc-more:hover { text-decoration: underline; }
.sub { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--line); margin: 0 0 18px; padding: 10px 0 0; scroll-margin-top: 64px; }
.sub-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding-bottom: 10px; }
.sub h2 { font: 800 24px/1 var(--display); text-transform: uppercase; margin: 0; }
.sub-why { margin: 0; color: var(--text-2); font-size: 14px; }
.sub-all { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.sub-all b { font: 800 17px/1 var(--display); text-transform: uppercase; margin-right: 4px; }
.sub-go { font: 600 12px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; background: var(--text); color: var(--bg); padding: 9px 12px; white-space: nowrap; }
.sub-go:hover { background: var(--accent); color: #fff; }
.sub-alt { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); white-space: nowrap; }
.sub-more > summary { cursor: pointer; list-style: none; border-top: 1px solid var(--line); padding: 10px 0; min-height: 44px; display: flex; align-items: center; gap: 8px; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.sub-more > summary::-webkit-details-marker { display: none; }
.sub-more > summary::before { content: '+'; font: 500 16px/1 var(--mono); color: var(--accent); width: 12px; }
.sub-more[open] > summary::before { content: '−'; }
.sub-cats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 32px; border-top: 1px solid var(--rule); }
.sub-cats li { display: flex; align-items: center; gap: 6px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sub-cats li > span { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sub-cats b { font: 800 17px/1.1 var(--display); text-transform: uppercase; }
.sub-cats .muted { font: 500 12px var(--mono); }
.sub-cats .sub-go { padding: 7px 10px; font-size: 11px; }
.sub-cats .sub-alt { font-size: 11px; }
.sub-pick h3 { font: 800 20px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.sub-err { color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.sub-groups { columns: 150px 5; column-gap: 24px; border-top: 1px solid var(--rule); }
.sub-groups fieldset { border: 0; margin: 0; padding: 8px 0 6px; min-width: 0; break-inside: avoid; }
.sub-groups legend { padding: 8px 0 4px; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); float: left; width: 100%; }
.sub-groups label { display: flex; align-items: center; gap: 8px; min-height: 32px; clear: left; font: 800 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; border-left: 3px solid var(--c); padding-left: 8px; cursor: pointer; }
.sub-groups input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; }
.sub-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.sub-more > .small { margin: 0 0 12px; }
@media (max-width: 900px) {
  .sub-top { grid-template-columns: auto minmax(0, 1fr); }
  .sub-all { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mc-more { display: none; }
  .sub-top { grid-template-columns: minmax(0, 1fr); }
  .sub-go, .sub-alt { min-height: 44px; display: inline-flex; align-items: center; }
  .sub-groups label { min-height: 44px; }
}
@media (max-width: 560px) { .vid-tag { display: none; } }
.cat-vids .vids-3 > .vid:first-child .vid-title { font: 800 18px/1.1 var(--display); }
