@layer base, frame, stories, pages;
@font-face { font-family: "Barlow C"; src: url(fonts/barlow-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow C"; src: url(fonts/barlow-800i.woff2) format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/serif.woff2) format("woff2"); font-weight: 400 650; font-display: swap; }
@view-transition { navigation: auto; }

@layer base {
  :root { --salt: #F3F5F7; --night: #141A30; --horizon: #E8302A; --sun: #FFC46B; --haze: #D3D8E0; --soft: #56607A; --display: "Barlow C", "Arial Narrow", sans-serif; --text: "Source Serif 4", Georgia, serif; --pad: clamp(1rem, 4vw, 2.5rem); --wide: 82rem; --rb: #1F4FA8; }
  * { box-sizing: border-box; margin: 0; }
  html { background: var(--salt); color: var(--night); font: 400 1.0625rem/1.5 var(--text); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
  img, svg { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3 { font: 700 1em/1.02 var(--display); text-wrap: balance; }
  table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
  :focus-visible { outline: 3px solid var(--horizon); outline-offset: 3px; }
  .skip { position: absolute; left: -99rem; } .skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 9; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } @view-transition { navigation: none; } }
}
@layer frame {
  .mast { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .2rem clamp(1rem, 3vw, 2.5rem); max-width: var(--wide); margin: 0 auto; padding: .8rem var(--pad) .6rem; }
  .brand { display: flex; align-items: center; gap: .6rem; font: italic 800 2.1rem/1 var(--display); letter-spacing: -.01em; }
  .mast nav { display: flex; gap: clamp(.9rem, 1.8vw, 1.6rem); font: 700 1.15rem/1 var(--display); overflow-x: auto; scrollbar-width: none; }
  .mast nav a { padding: .7rem 0; white-space: nowrap; border-bottom: 3px solid transparent; } .mast nav a:hover { border-color: var(--horizon); }
  .next { font: 700 1.1rem/1.1 var(--display); text-align: right; } .next span { color: var(--soft); }
  @media (max-width: 62rem) { .mast { grid-template-columns: 1fr auto; } .mast nav { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); } }
  .horizon { position: relative; height: 40px; overflow: clip; border-bottom: 4px solid var(--horizon); }
  .horizon svg { position: absolute; inset: 8px 0 0; width: 100%; height: 32px; opacity: .9; }
  .horizon i { position: absolute; border-radius: 50%; } .horizon i:nth-child(1) { width: 20px; height: 20px; left: 72%; top: 2px; background: var(--sun); } .horizon i:nth-child(2) { width: 15px; height: 15px; left: 67%; top: 9px; background: #f3d7c8; }
  footer { max-width: var(--wide); margin: 5rem auto 0; padding: 2rem var(--pad) 4rem; border-top: 4px solid var(--horizon); display: grid; gap: .6rem; }
  footer summary { cursor: pointer; width: fit-content; color: var(--soft); list-style: none; } footer details p { font: italic 800 4rem/1 var(--display); }
}
@layer stories {
  main > section, .bar { max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad); }
  .bar { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding-block: .9rem 0; }
  .bar a { flex: 1 0 auto; min-width: 7.2rem; display: flex; justify-content: space-between; gap: .8rem; padding: .45rem .6rem .4rem 0; margin-right: .9rem; border-bottom: 5px solid var(--t); font: 700 1.15rem/1 var(--display); } .bar span { color: var(--soft); }
  .top { display: grid; gap: 2rem clamp(1.5rem, 3vw, 3rem); padding-top: 1.4rem; }
  @media (min-width: 60rem) { .top { grid-template-columns: minmax(0, 2.35fr) minmax(16rem, 1fr); } }
  .ph { overflow: clip; background: var(--haze); } .ph img { width: 100%; transition: scale .5s; } a:hover .ph img { scale: 1.025; }
  .lead h1 { font: italic 800 clamp(2.7rem, 6.4vw, 5.4rem)/.9 var(--display); letter-spacing: -.015em; margin-top: 1rem; } .lead > p { max-width: 46ch; font-size: 1.2rem; line-height: 1.42; margin-top: .8rem; }
  p.meta { font: 700 1rem/1.2 var(--display); color: var(--soft); margin-top: .6rem; max-width: none; } .meta time { margin-left: .5rem; font-weight: 700; opacity: .85; }
  .lead > p.meta { font-size: 1.05rem; }
  .latest h2, .sec > h2 { font: italic 800 2.1rem/1 var(--display); padding-top: .7rem; border-top: 4px solid var(--night); }
  .latest ol { list-style: none; padding: 0; margin-top: .4rem; } .latest li { padding: .7rem 0; border-bottom: 1px solid var(--haze); display: grid; gap: .15rem; } .latest time { font: 700 .98rem/1 var(--display); color: var(--horizon); filter: brightness(.82); } .latest a { font: 700 1.3rem/1.08 var(--display); } .latest a:hover, .s a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
  .row { display: grid; gap: 2.2rem clamp(1.2rem, 2.4vw, 2.2rem); } main > .row { padding-top: 3rem; }
  @media (min-width: 46rem) { .row.a { grid-template-columns: 1.45fr 1fr; } .row.b { grid-template-columns: repeat(3, 1fr); } .row.c { grid-template-columns: 1fr 1fr; } }
  .s h3 { font-size: clamp(1.65rem, 2.3vw, 2.1rem); margin-top: .7rem; } .row.a .s:first-child h3 { font-size: clamp(2rem, 3.6vw, 3.1rem); } .s > p:not(.meta) { margin-top: .45rem; max-width: 52ch; color: #313a55; }
  .night { max-width: none !important; background: var(--night); color: var(--salt); margin-top: 4rem; padding: 0 !important; } .night .in { max-width: var(--wide); margin: 0 auto; padding: 3rem var(--pad); display: grid; gap: 2.5rem; } @media (min-width: 60rem) { .night .in { grid-template-columns: 1.2fr 1fr 1fr; } }
  .night h2 { font: italic 800 3.4rem/.9 var(--display); } .big { font: 700 1.6rem/1.2 var(--display); color: var(--sun); } .ses { list-style: none; padding: 0; margin-top: 1rem; } .ses li { display: flex; justify-content: space-between; padding: .45rem 0; border-top: 1px solid rgb(243 245 247 / .18); } .note { color: #aab3c8; font-size: .92rem; margin-top: .5rem; }
  .st caption { text-align: left; font: 700 1.3rem/1 var(--display); padding-bottom: .6rem; } .st td, .st th { padding: .42rem 0; border-top: 1px solid rgb(127 138 165 / .3); text-align: left; font-weight: 400; } .st td:first-child { width: 2rem; font: 700 1.2rem/1 var(--display); } .st td:last-child { text-align: right; font: 700 1.25rem/1 var(--display); } .st i, .res i, .key i { display: inline-block; width: .55rem; height: 1em; margin-right: .6rem; vertical-align: -.12em; }
  .race { display: block; position: relative; overflow: clip; } .race img { width: 100%; height: clamp(22rem, 62svh, 40rem); object-fit: cover; object-position: 30% 60%; } .race::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgb(10 20 48 / .8)); } .race span { position: absolute; z-index: 1; inset: auto 0 0; max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad) 2.2rem; color: var(--salt); font-size: 1.2rem; } .race b { display: block; font: italic 800 clamp(3.4rem, 10vw, 8rem)/.82 var(--display); margin-bottom: .8rem; }
  .sec { padding-top: 3.5rem; } .sec .row, .vids, .briefs { margin-top: 1.4rem; }
  .vids { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 1fr); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .5rem; } .v { scroll-snap-align: start; } .v img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; } .v span { display: block; font: 700 1.25rem/1.08 var(--display); margin-top: .55rem; } .v:hover span { text-decoration: underline; }
  .briefs { display: grid; gap: 2rem; } @media (min-width: 46rem) { .briefs { grid-template-columns: 1fr 1fr; } } .briefs h3 { font-size: 1.7rem; } .briefs p:not(.meta) { margin-top: .4rem; max-width: 56ch; }
}
@layer pages {
  .art > header { max-width: 60rem; margin: 0 auto; padding: 2.4rem var(--pad) 1.6rem; } .art h1 { font: italic 800 clamp(2.9rem, 7.5vw, 5.8rem)/.9 var(--display); letter-spacing: -.015em; } .dek { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.4; max-width: 46ch; margin-top: 1rem; }
  .art figure { max-width: var(--wide); margin: 0 auto; } .art figure img { width: 100%; }
  .body { max-width: 41rem; margin: 2.2rem auto 0; padding: 0 var(--pad); font-size: 1.18rem; line-height: 1.6; } .body > p + p { margin-top: 1.1em; } .body h2 { font: italic 800 2.2rem/1 var(--display); margin: 2.2rem 0 .9rem; }
  main > .drv > .sec { max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad); } main > .drv > .sec.body { max-width: calc(41rem + 2 * var(--pad)); }
  .watch a { font: 700 1.4rem/1.1 var(--display); border-bottom: 4px solid var(--horizon); } .src { font-size: .92rem; line-height: 1.45; color: var(--soft); border-top: 1px solid var(--haze); padding-top: .9rem; margin-top: 2.2rem !important; }
  .calc { background: var(--night); color: var(--salt); padding: 1.4rem 1.5rem 1.6rem; margin: 1.2rem 0 1.6rem; } .calc label { font: 700 1.4rem/1 var(--display); } .calc select { font: 700 1.4rem/1 var(--display); padding: .45rem .8rem; margin-left: .7rem; background: var(--salt); color: var(--night); border: 0; } .out p { margin-top: .8rem; line-height: 1.4; } .out b { font: 700 1.35rem/1 var(--display); color: var(--sun); display: block; }
  .scroll { overflow-x: auto; } .res { font-size: 1rem; } .res th, .res td { text-align: left; padding: .5rem .7rem .5rem 0; border-bottom: 1px solid var(--haze); white-space: nowrap; font-weight: 400; } .res thead th { font: 700 1rem/1 var(--display); color: var(--soft); } .res tbody th { font-weight: 600; }
  .drv > header { background: var(--t); color: var(--night); display: grid; } .drv > header > div { padding: 2.5rem var(--pad); max-width: 46rem; align-self: end; } .drv h1 { font: italic 800 clamp(4.2rem, 12vw, 10.5rem)/.8 var(--display); letter-spacing: -.025em; } .who { font-size: 1.25rem; line-height: 1.4; margin-top: 1.4rem; max-width: 34ch; } .drv dl { display: flex; gap: 2.4rem; margin-top: 1.6rem; } dt { font: 700 1.05rem/1 var(--display); } dd { font: italic 800 3.6rem/.95 var(--display); } .drv > header img { width: 100%; height: 100%; object-fit: cover; } @media (min-width: 60rem) { .drv > header { grid-template-columns: 1.15fr 1fr; min-height: 34rem; } .drv > header > div { justify-self: end; width: 100%; } }
  p.lead { max-width: 52ch; margin-top: .8rem; } .bars { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(2.2rem, 1fr); gap: 4px; align-items: end; height: 19rem; overflow-x: auto; } .bars li { display: grid; align-content: end; height: 100%; text-align: center; } .bars li::before { content: ""; background: var(--t); height: calc(var(--h) * .36rem); border-top: 3px solid var(--night); } .bars b { order: -1; font: 700 1.05rem/1.3 var(--display); } .bars span { writing-mode: vertical-rl; justify-self: center; font: 700 .95rem/1 var(--display); height: 5.4rem; text-align: right; padding-top: .4rem; color: var(--soft); rotate: 180deg; }
  main h1 { font: italic 800 clamp(3rem, 8vw, 6rem)/.88 var(--display); } .ridge svg { width: 100%; height: clamp(12rem, 34vw, 24rem); margin-top: 1.5rem; border-bottom: 4px solid var(--horizon); } .key { font: 700 1.05rem/1.6 var(--display); margin-top: .6rem; } .key i:not(:first-child) { margin-left: 1.2rem; } .two { display: grid; gap: 3rem; } @media (min-width: 60rem) { .two { grid-template-columns: 1fr 1fr; } } .cal { list-style: none; padding: 0; margin-top: 1.2rem; columns: 18rem; column-gap: 2.5rem; } .cal li { display: flex; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--haze); break-inside: avoid; } .cal span { width: 1.6rem; font: 700 1.1rem/1.3 var(--display); color: var(--soft); } .cal time { margin-left: auto; color: var(--soft); } .cal .todo { color: var(--horizon); font-weight: 600; filter: brightness(.82); }
}
@layer pages {
  .kick { font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--horizon); filter: brightness(.85); margin-bottom: .6rem; }
  .sec > h2 a:hover, .maxband h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
  .more { margin-top: 1rem; font: 700 1.25rem/1.1 var(--display); } .more a { border-bottom: 3px solid var(--horizon); }
  .cap { font-size: .95rem; color: var(--soft); margin-top: .5rem; }
  .maxband { max-width: none !important; padding: 0 !important; margin-top: 3.5rem; background: var(--rb, #1F4FA8); color: var(--salt); }
  .maxband .in { max-width: var(--wide); margin: 0 auto; padding: 2.8rem var(--pad) 3rem; }
  .maxband .kick { color: var(--sun); filter: none; } .maxband h2 { font: italic 800 clamp(2.6rem, 6vw, 5.2rem)/.9 var(--display); max-width: 18ch; }
  .maxband header { display: grid; gap: 1.6rem; } @media (min-width: 60rem) { .maxband header { grid-template-columns: 1.4fr 1fr; align-items: end; } }
  .nums { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; } .nums dt { font: 700 1rem/1 var(--display); opacity: .8; } .nums dd { font: italic 800 3.4rem/.95 var(--display); color: var(--sun); }
  .maxband .cap { color: #c9d5ee; } .maxband .more a { border-color: var(--sun); }
  .strip { display: flex; align-items: flex-end; gap: 2px; height: 7.5rem; margin-top: 2rem; border-bottom: 3px solid var(--horizon); }
  .strip a { flex: 1; min-width: 2px; height: calc(.7rem + var(--g) * .37rem); background: currentColor; opacity: .9; } .strip a:hover { background: var(--sun); opacity: 1; }
  main > .drv .strip, main > section .strip { color: var(--rb, #1F4FA8); }
  .maxband .strip { color: var(--salt); }
  .minis { display: grid; gap: 1.4rem; margin-top: 2rem; } @media (min-width: 46rem) { .minis { grid-template-columns: repeat(4, 1fr); } }
  .mw { display: grid; gap: .3rem; } .mw .wr { background: rgb(255 255 255 / .08); } .mw b { font: 700 1.5rem/1 var(--display); margin-top: .4rem; } .mw span { font-size: .98rem; line-height: 1.35; opacity: .9; } .mw:hover b { text-decoration: underline; }
  .drv .mw .wr, .sec .mw .wr { background: var(--haze); }
  .wr { width: 100%; height: auto; display: block; }
  .maxband .wr path { fill: var(--salt); } .maxband .mw .wr { background: rgb(255 255 255 / .1); }
  .tl { list-style: none; padding: 0; margin-top: 1rem; border-left: 3px solid var(--haze); }
  .tl li { position: relative; padding: 0 0 1.3rem 1.3rem; display: grid; gap: .15rem; } .tl li::before { content: ""; position: absolute; left: -.55rem; top: .25rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--soft); }
  .tl .win::before { background: var(--sun); box-shadow: 0 0 0 3px var(--night); } .tl .lost::before { background: var(--horizon); } .tl .plan::before { background: var(--salt); border: 2px dashed var(--rb, #1F4FA8); }
  .tl time { font: 700 1rem/1 var(--display); color: var(--soft); } .tl b { font: 700 1.45rem/1.05 var(--display); } .tl span { font-size: .95rem; color: var(--soft); } .tl p { font-size: 1.05rem; }
  .trk { font-size: .98rem; margin-top: 1rem; } .trk th, .trk td { text-align: left; vertical-align: top; padding: .65rem .9rem .65rem 0; border-bottom: 1px solid var(--haze); font-weight: 400; }
  .trk thead th { font: 700 1rem/1 var(--display); color: var(--soft); } .trk tbody th { font: 700 1.3rem/1.05 var(--display); white-space: nowrap; } .trk span { display: block; font: 400 .9rem/1.35 var(--text); color: var(--soft); }
  .trk b { font: 700 1.05rem/1 var(--display); white-space: nowrap; padding: .2rem .45rem; } .st-confirmed { background: var(--night); color: var(--salt); } .st-reported { background: var(--sun); } .st-wants { outline: 2px solid var(--night); outline-offset: -2px; } .st-ruled, .st-leaving { color: var(--horizon); filter: brightness(.8); outline: 2px solid currentColor; outline-offset: -2px; }
  .trk .srcd { font-size: .85rem; color: var(--soft); min-width: 10rem; }
  .filt { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; } .filt button { font: 700 1.1rem/1 var(--display); padding: .5rem .9rem; border: 2px solid var(--night); background: none; color: var(--night); cursor: pointer; } .filt [aria-pressed="true"] { background: var(--night); color: var(--salt); }
  .wins { display: grid; gap: 3.2rem; margin-top: 1.6rem; }
  .win { display: grid; gap: 1rem 2.4rem; border-top: 1px solid var(--haze); padding-top: 1.4rem; } @media (min-width: 60rem) { .win { grid-template-columns: 1.1fr 1fr; } .win > header, .win > .wr, .win > .wrw { grid-column: 1; } .win > .wtxt { grid-column: 2; grid-row: 1 / span 2; } .win > figure { grid-column: 1 / -1; max-width: 46rem; } }
  .win header { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: baseline; } .rk { font: italic 800 4.6rem/.8 var(--display); color: var(--horizon); grid-row: span 2; } .win h3 { font: italic 800 clamp(2.2rem, 4vw, 3.2rem)/.95 var(--display); } .ln { font: 700 1.3rem/1.15 var(--display); grid-column: 2; margin-top: .3rem; }
  .win .wr { border-bottom: 3px solid var(--night); } .wtxt p { font-size: 1.1rem; line-height: 1.55; max-width: 52ch; }
  .wf { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1rem 0 .3rem; } .wf dt { font: 700 .95rem/1 var(--display); color: var(--soft); } .wf dd { font: italic 800 2.2rem/1 var(--display); }
  .allw { list-style: none; padding: 0; margin-top: 1.4rem; columns: 16rem; column-gap: 2rem; } .allw li { break-inside: avoid; display: flex; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--haze); font-size: .98rem; } .allw b { font: 700 1rem/1.4 var(--display); color: var(--soft); } .allw span { margin-left: auto; color: var(--soft); font-size: .9rem; }
  .allw li[style*="--g:1"]:not([style*="--g:1"]) {}
  figcaption { font-size: .85rem; color: var(--soft); padding: .45rem var(--pad) 0; }
  .win figcaption { padding-inline: 0; }
  .src.wide { max-width: var(--wide); margin: 3rem auto 0 !important; padding: .9rem var(--pad) 0; }
  .drv.dark > header { color: var(--salt); } .drv.dark .who b { color: var(--sun); }
  .lm tbody th { font-weight: 600; } .lm td:nth-child(4) { color: var(--soft); white-space: normal; }
}

/* ---------- Mirage: calm by default, dense on a whiff ---------- */
@layer pages {
  html[data-mode="calm"] .d { display: none !important; }
  .mode { font: 700 1.1rem/1 var(--display); padding: .45rem .8rem; border: 2px solid var(--night); background: none; color: var(--night); cursor: pointer; justify-self: end; }
  .mode[aria-pressed="true"] { background: var(--night); color: var(--sun); }
  .mast { grid-template-columns: auto 1fr auto auto; }
  @media (max-width: 62rem) { .mast { grid-template-columns: 1fr auto auto; } }

  /* data words: a quiet dotted line, nothing more until asked */
  .dw { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-align: inherit;
        text-decoration: underline dotted color-mix(in oklab, currentColor 45%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
  .dw:hover, .dw[aria-expanded="true"] { text-decoration-style: solid; text-decoration-color: var(--horizon); }
  .trk .dw, .st .dw { font-weight: inherit; }

  /* the card: solid sand, team-colour stripe, rises out of the haze */
  .hc { position: fixed; inset: auto; margin: 0; width: min(19rem, calc(100vw - 1.5rem)); padding: 1rem 1.1rem 1.1rem; border: 0; border-top: 6px solid var(--c, var(--night));
        background: #fff; color: var(--night); box-shadow: 0 10px 30px rgb(20 26 48 / .18), 0 1px 0 rgb(20 26 48 / .08); font-size: .98rem; line-height: 1.4;
        opacity: 0; translate: 0 6px; transition: opacity .18s ease, translate .18s ease, display .18s allow-discrete, overlay .18s allow-discrete; }
  .hc:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { .hc:popover-open { opacity: 0; translate: 0 6px; } }
  .hc b { display: block; font: italic 800 1.9rem/.95 var(--display); } .hc .tm { font: 700 1rem/1.2 var(--display); color: var(--soft); margin: .15rem 0 .5rem; }
  .hc ul { list-style: none; padding: 0; display: grid; gap: .3rem; } .hc svg { display: block; margin: .6rem 0 .1rem; color: var(--c); width: 100%; height: 34px; }
  .hc .cap { margin: 0 0 .4rem; } .hc a { display: inline-block; margin-top: .7rem; font: 700 1.1rem/1 var(--display); border-bottom: 3px solid var(--horizon); }
  .hc.sheet { inset: auto 0 0 0; width: auto; max-height: 60svh; overflow: auto; padding-bottom: max(1.2rem, env(safe-area-inset-bottom)); translate: 0 12px; }
  .hc.sheet:popover-open { translate: 0 0; }
  @media (prefers-reduced-motion: reduce) { .hc, .hc.sheet { transition: none; translate: none; } }

  /* lap ridge: crosshair on a whiff, labels in Data mode */
  .wrw { position: relative; touch-action: pan-y; cursor: crosshair; }
  .wrw .xh { stroke: var(--night); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; }
  .wrw.on .xh { opacity: 1; }
  .wrw .grid line { stroke: rgb(20 26 48 / .18); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
  .ro { position: absolute; top: -.2rem; translate: -50% -100%; pointer-events: none; background: var(--night); color: var(--salt); font: 700 1rem/1 var(--display); padding: .3rem .5rem; white-space: nowrap; opacity: 0; transition: opacity .12s; }
  .wrw.on .ro { opacity: 1; }
  .gl { position: absolute; left: 0; translate: 0 -50%; font: 700 .8rem/1 var(--display); color: var(--soft); background: var(--salt); padding: 0 .25rem; }
  .ev { position: absolute; translate: -50% -135%; font: 700 .85rem/1 var(--display); background: var(--sun); color: var(--night); padding: .15rem .35rem; white-space: nowrap; }
  .ev.lo { translate: -50% 35%; background: var(--salt); }
  .tk { position: absolute; bottom: -1.3rem; font: 700 .85rem/1 var(--display); color: var(--soft); }
  html[data-mode="data"] .win .wrw { margin-bottom: 1.4rem; }
  .axis { display: flex; justify-content: space-between; font: 700 .85rem/1 var(--display); opacity: .8; margin-top: .4rem; }
  .st .gap { color: var(--soft); text-align: right; padding-right: .6rem; font: 700 1rem/1 var(--display); } .st .sp { width: 90px; color: var(--soft); } .night .st .sp, .night .st .gap { color: #aab3c8; }

  /* Data mode tightens the sand: same content, less air */
  html[data-mode="data"] { --pad: clamp(.8rem, 2.4vw, 1.6rem); }
  html[data-mode="data"] .sec { padding-top: 2rem; }
  html[data-mode="data"] main > .row { padding-top: 1.6rem; }
  html[data-mode="data"] .row { gap: 1.4rem clamp(1rem, 2vw, 1.6rem); }
  html[data-mode="data"] .maxband .in { padding-block: 1.8rem 2rem; }
  html[data-mode="data"] .wins { gap: 2rem; }
  html[data-mode="data"] .s h3 { font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
}

/* ---------- Who's your driver ---------- */
@layer pages {
  @media (min-width: 46rem) { .row.b4 { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 70rem) { .row.b4 { grid-template-columns: repeat(4, 1fr); } }
  .row.b4 { display: grid; gap: 2.2rem clamp(1.2rem, 2.4vw, 2.2rem); max-width: var(--wide); margin-inline: auto; padding: 3rem var(--pad) 0; }
  .night .kick { color: var(--sun); filter: none; }

  .you-pill { display: inline-flex; align-items: center; gap: .45rem; font: 700 1.05rem/1 var(--display); padding: .45rem .75rem; border: 2px solid var(--night); background: var(--salt); color: var(--night); cursor: pointer; white-space: nowrap; }
  .you-pill i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--pc, transparent); border: 2px solid var(--night); }
  html[data-driver]:not([data-driver=""]) .you-pill i { border-color: var(--pc); }
  .mast { grid-template-columns: auto 1fr auto auto auto; }
  @media (max-width: 62rem) { .mast { grid-template-columns: 1fr auto auto auto; } .mast .next { display: none; } }

  body { overflow-x: clip; }
  .you { max-width: var(--wide); margin: 3.5rem auto 0; padding: 0 var(--pad); }
  .you .maxband { margin: 1rem calc(var(--pad) * -1) 0; }
  @media (min-width: 82rem) { .you .maxband { margin-inline: calc((100vw - var(--wide)) / -2 - var(--pad)); } }
  .you-ask h2 { font: italic 800 clamp(2.2rem, 5vw, 3.6rem)/.95 var(--display); } .you-ask > p { margin-top: .5rem; max-width: 52ch; color: #313a55; }
  .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
  .chip { font: 700 1.1rem/1 var(--display); padding: .55rem .8rem .5rem; border: 0; border-left: 6px solid var(--c, var(--night)); background: #fff; color: var(--night); cursor: pointer; box-shadow: 0 1px 0 rgb(20 26 48 / .12); }
  .chip:hover, .chip:focus-visible { background: var(--night); color: var(--salt); }
  .chip.more { border-left-color: var(--horizon); } .chip.quiet { background: none; box-shadow: none; border: 0; color: var(--soft); text-decoration: underline; }
  .you-feat, .you-set { display: flex; align-items: baseline; gap: 1rem; } .you-feat .kick, .you-set .kick { margin: 0; }
  .linkish { font: 700 1.05rem/1 var(--display); background: none; border: 0; padding: 0; color: var(--night); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
  /* state: no JS = Max band only; JS sets data-driver ("" or slug) and data-asked */
  .you-ask, .you-feat, .you-set { display: none; }
  html[data-driver=""]:not([data-asked="1"]) .you-ask { display: block; }
  html[data-driver=""][data-asked="1"] .you-feat { display: flex; }
  html[data-driver]:not([data-driver=""]) .you-set { display: flex; }
  html[data-driver]:not([data-driver=""]):not([data-driver="max-verstappen"]) .maxfeat { display: none; }
  .youblk:empty { display: none; }
  .yb { margin-top: 1rem; background: var(--h); color: var(--k); padding: 2.2rem clamp(1.2rem, 3vw, 2.4rem) 2.4rem; display: grid; gap: 1.6rem; }
  @media (min-width: 60rem) { .yb { grid-template-columns: 1.1fr 1fr; } }
  .yb h2 { font: italic 800 clamp(3rem, 7vw, 6rem)/.85 var(--display); } .yb h2 a:hover { text-decoration: underline; }
  .yb .w { font-size: 1.15rem; line-height: 1.4; margin-top: .9rem; max-width: 40ch; }
  .yb dl { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.2rem; } .yb dt { font: 700 .95rem/1 var(--display); } .yb dd { font: italic 800 2.8rem/1 var(--display); }
  .yb ol.rb { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(22, 1fr); gap: 2px; align-items: end; height: 7rem; border-bottom: 2px solid currentColor; }
  .yb ol.rb li { background: currentColor; height: calc(.15rem + var(--h) * .14rem); opacity: .9; } .yb ol.rb li.dnr { height: .9rem; background: repeating-linear-gradient(45deg, currentColor 0 2px, transparent 2px 5px); opacity: .5; }
  .yb .cap { color: inherit; }
  .yb .fy h3 { font: 700 1.3rem/1 var(--display); margin-bottom: .5rem; } .yb .fy li { padding: .55rem 0; border-top: 1px solid color-mix(in oklab, currentColor 30%, transparent); list-style: none; }
  .yb .fy ul { padding: 0; } .yb .fy a { font: 700 1.25rem/1.1 var(--display); } .yb .fy a:hover { text-decoration: underline; } .yb .fy span { display: block; font-size: .9rem; }
  .yb .go { font: 700 1.2rem/1 var(--display); border-bottom: 3px solid currentColor; width: fit-content; }

  /* your driver's stories, marked quietly */
  .mine .meta::after, li.mine > time::after { content: "Your driver"; margin-left: .6rem; padding: .1rem .35rem; font: 700 .85rem/1 var(--display); background: var(--mc); color: var(--mk); vertical-align: .08em; }
  .latest li.mine { box-shadow: inset 4px 0 0 var(--mc); padding-left: .7rem; }

  /* picker */
  .pk { position: fixed; inset: 0; margin: auto; width: min(34rem, calc(100vw - 1.5rem)); max-height: min(40rem, calc(100svh - 2rem)); padding: 1.3rem 1.3rem 1.5rem; border: 0; border-top: 6px solid var(--horizon); background: var(--salt); color: var(--night); box-shadow: 0 20px 60px rgb(20 26 48 / .3); overflow: auto;
        opacity: 0; translate: 0 8px; transition: opacity .18s, translate .18s, display .18s allow-discrete, overlay .18s allow-discrete; }
  .pk:popover-open { opacity: 1; translate: 0 0; } @starting-style { .pk:popover-open { opacity: 0; translate: 0 8px; } }
  .pk::backdrop { background: rgb(20 26 48 / .35); }
  .pk h2 { font: italic 800 2.4rem/1 var(--display); } .pk label { display: block; margin-top: .8rem; font: 700 1rem/1 var(--display); } .pk input, .find input { width: 100%; margin-top: .4rem; font: 1.1rem/1.2 var(--text); padding: .6rem .7rem; border: 2px solid var(--night); background: #fff; }
  .pk ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .3rem; } .pk li button { width: 100%; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .7rem; align-items: center; text-align: left; font: inherit; padding: .55rem .6rem; border: 0; border-left: 6px solid var(--c); background: #fff; color: var(--night); cursor: pointer; }
  .pk li button:hover, .pk li button:focus-visible, .pk li button[aria-current="true"] { background: var(--night); color: var(--salt); }
  .pk li b { font: 700 1.25rem/1 var(--display); } .pk li span { font-size: .9rem; opacity: .8; } .pk li .p { font: 700 1rem/1 var(--display); opacity: .7; }
  .pk .x { position: absolute; top: .8rem; right: .9rem; font: 700 1.6rem/1 var(--display); background: none; border: 0; cursor: pointer; color: var(--night); }
  @media (prefers-reduced-motion: reduce) { .pk { transition: none; translate: none; } }

  /* generated driver pages */
  .drv.gen > header { color: var(--ink); grid-template-columns: 1fr auto; overflow: clip; }
  .drv.gen .kick { color: inherit; filter: none; } .drv.gen .who b { color: inherit; }
  .bignum { font: italic 800 clamp(9rem, 26vw, 22rem)/.8 var(--display); opacity: .22; align-self: end; padding-right: var(--pad); letter-spacing: -.04em; }
  .bars li.dnr::before { height: .9rem; background: repeating-linear-gradient(45deg, var(--soft) 0 2px, transparent 2px 6px); border-top: 0; }
  .nums.car dd { color: var(--night); } .car { margin-top: 1rem; }
  .pick-me { margin-top: 1.4rem; font: 700 1.15rem/1 var(--display); padding: .6rem .9rem; border: 2px solid currentColor; background: none; color: inherit; cursor: pointer; }
  .pick-me[aria-pressed="true"] { background: var(--night); color: var(--salt); border-color: var(--night); }
  .drv.dark .pick-me, .drv:not(.gen):not(.dark) .pick-me { color: inherit; }

  /* drivers index */
  .find { display: block; max-width: 26rem; margin-top: 1.4rem; font: 700 1rem/1 var(--display); }
  .teams { display: grid; gap: 1.6rem 2rem; margin-top: 2rem; } @media (min-width: 46rem) { .teams { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); } }
  .tb { border-top: 6px solid var(--t); padding-top: .6rem; } .tb h2 { font: 700 1.2rem/1 var(--display); color: var(--soft); } .tb ul { list-style: none; padding: 0; margin-top: .4rem; }
  .tb a { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: baseline; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--haze); } .tb a:hover b { text-decoration: underline; }
  .tb .no { font: italic 800 1.8rem/1 var(--display); color: var(--t); filter: brightness(.8); } .tb b { font: 700 1.55rem/1 var(--display); } .tb a > span:last-child { font: 700 1rem/1 var(--display); color: var(--soft); }
  .tb li.mine a b::after { content: "Your driver"; margin-left: .6rem; font-size: .8rem; padding: .1rem .3rem; background: var(--night); color: var(--salt); vertical-align: .2em; }
}
