/* F1 (2026-10-21): the racing theme for the F1 section (the hub and
   its articles; build.rb marks their <body data-wsec="f1"> and loads this
   after space.css). Formula 1's own palette: red #FF1E00 on carbon black
   #15151E (brandcolorcode.com/formula-one). The page is plain black #000 in
   both themes, with neutral grey boxes and no carbon weave (2026-10-24, the
   user's call).
   The site header, tab bar and footer keep their own look: space.css block 2
   sets their tokens on the elements themselves, so the page tokens below
   never reach them. */

/* ---------- tokens ---------- */
:root:root:root:has(body[data-wsec="f1"]) {
  color-scheme: dark;
  --bg: #000000;
  --surface: #121212;
  --surface-soft: #1C1C1C;
  --fill: #1C1C1C;
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --edge: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #FF1E00;
  --accent-hover: #FF4A33;
  --accent-2: #FF1E00;
  --accent-soft: rgba(255, 30, 0, 0.14);
  --accent-line: rgba(255, 30, 0, 0.55);
  --sp-glow: rgba(255, 30, 0, 0.16);
  --f1-row: rgba(255, 255, 255, 0.03);
}
/* no stars and no texture on the track: plain black */
body[data-wsec="f1"]::before, body[data-wsec="f1"]::after { display: none !important; }

/* ---------- type: upright throughout since 2026-11-09 (phase 25) ---------- */
:root:root:root body[data-wsec="f1"] .wk :is(h1, h2) { font-style: normal; }
body[data-wsec="f1"] .wk h1 { text-transform: uppercase; }
body[data-wsec="f1"] .wk-kicker { color: var(--accent); }
body[data-wsec="f1"] .wk-body h2::before {
  content: ""; display: inline-block; width: 22px; height: 8px; margin-right: 10px; vertical-align: .22em;
  background: repeating-linear-gradient(90deg, var(--accent) 0 5.5px, #fff 5.5px 11px); border-radius: 1px;
  transform: skewX(-20deg);
}
body[data-wsec="f1"] :is(.wk-title-ic, .wk-card-ic) { background: #121212; border-color: rgba(255, 255, 255, .1); }


/* the next race */
.f1-next { margin-top: 26px; max-width: 760px; }
.f1-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.f1-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: f1Pulse 1.6s ease-out infinite; }
@keyframes f1Pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.f1-chip { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; letter-spacing: .04em; font-size: 11px; }
.f1-cd { margin-top: 16px; }
.f1-cd-k { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.f1-cd-n { display: flex; gap: 8px; }
.f1-cd-n span { display: grid; justify-items: center; min-width: 74px; padding: 8px 10px 7px; border-radius: 10px; background: #0B0B11; border: 1px solid rgba(255, 255, 255, .1); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.f1-cd-n b { font: 700 30px/1.05 var(--sp-display, inherit); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.f1-next .f1-sess { margin-top: 16px; }


/* ---------- sections ---------- */
.f1-sec { margin-top: 60px; padding: 0 !important; scroll-margin-top: 90px; } /* style.css pads every <section> */
.f1-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 18px; }
.f1-sec-h h2 { position: relative; margin: 0; padding-left: 20px; font: 700 clamp(24px, 3vw, 32px)/1.2 var(--sp-display, inherit); }
.f1-sec-h h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 7px; background: var(--accent); transform: skewX(-14deg); border-radius: 1px; }
.f1-sec-h p { margin: 0; font-size: 14px; color: var(--muted); }
.f1-wait, .f1-err { margin: 0; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); font-size: 15px; }
.f1-err { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.f1-err p { margin: 0; }
.f1-retry { padding: 9px 16px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: 600 14px/1 var(--sp-display, inherit); cursor: pointer; }

/* tabs */
.f1-tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--edge); }
.f1-tabs button { padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px/1.2 var(--sp-display, inherit); cursor: pointer; transition: background-color .2s, color .2s; }
.f1-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.f1-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* standings tables */
.f1-table { overflow-x: auto; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); }
.f1-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.f1-tbl th { padding: 11px 14px; text-align: left; font: 600 11.5px/1.2 var(--sp-display, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.f1-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.f1-tbl tbody tr:nth-child(even) { background: var(--f1-row); }
.f1-tbl tr:last-child td { border-bottom: 0; }
.f1-tbl .f1-c-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f1-pos { width: 1%; font: 700 18px/1 var(--sp-display, inherit); text-align: center; }
.f1-tbl tbody tr:first-child .f1-pos { color: var(--accent); }
/* a table cell stays a table cell (display: flex on a <td> pulled it out of the row); its parts sit inline */
.f1-who { white-space: nowrap; }
.f1-who > * { vertical-align: middle; white-space: normal; }
.f1-who > .f1-bar, .f1-who > .f1-logo { display: inline-block; margin-right: 12px; }
.f1-who > .f1-logo { display: inline-grid; }
.f1-who > span:last-child { display: inline-grid; gap: 2px; min-width: 0; }
.f1-who b { font-weight: 700; }
.f1-who small { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }
.f1-bar { flex: none; width: 5px; height: 26px; border-radius: 2px; background: var(--tc); transform: skewX(-12deg); }
.f1-c-team-sm { display: none; }
.f1-pts b { font: 700 17px/1 var(--sp-display, inherit); }
.f1-pts small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
/* points bar: the team's points as a share of the leader's. Every track is the
   same length (it used to follow the name's width, so bars couldn't be compared) */
.f1-meter { display: block; width: 180px; max-width: 42vw; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.f1-meter i { display: block; transform-origin: left; height: 100%; background: var(--tc); border-radius: 3px; }
.f1-thai { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 2px 8px 2px 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); font-size: 11px; font-weight: 700; vertical-align: .1em; white-space: nowrap; }
.f1-thai::before { content: ""; flex: none; width: 15px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
  background: linear-gradient(180deg, #A51931 0 16.6%, #F4F5F8 16.6% 33.3%, #2D2A4A 33.3% 66.6%, #F4F5F8 66.6% 83.3%, #A51931 83.3%); }
.f1-drv-who .f1-thai { margin: 4px 0 0; justify-self: start; }

/* session lists (the next race and the calendar) */
.f1-sess { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.f1-sess li { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px 64px; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 9px; font-size: 14px; }
.f1-sess li:nth-child(odd) { background: color-mix(in srgb, var(--text) 4%, transparent); }
.f1-sess .is-race .f1-s-n { font-weight: 700; color: var(--accent); }
.f1-sess .is-done { opacity: .55; }
.f1-s-d { color: var(--muted); white-space: nowrap; }
.f1-s-t { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.f1-tag { justify-self: end; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-strong); white-space: nowrap; }
.f1-tag.is-live { color: #fff; background: var(--accent); border-color: var(--accent); }
.f1-tag.is-next { color: var(--accent); border-color: var(--accent-line); }

/* calendar */
.f1-spr { color: var(--accent); font-weight: 700; }
.f1-win { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.f1-win b { color: var(--text); font-style: normal; letter-spacing: .03em; }
.f1-win .f1-bar { height: 16px; width: 4px; }

/* team cards */
.f1-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.f1-team { position: relative; padding: 18px 18px 16px; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.f1-team::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--tc); }
.f1-team::after { content: ""; position: absolute; top: -30px; right: -30px; width: 140px; height: 140px; background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 22%, transparent), transparent); pointer-events: none; }
.f1-team-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 10px; }
.f1-team-pos { font: 700 15px/1 var(--sp-display, inherit); color: var(--muted); }
.f1-team h3 { margin: 0; font: 700 21px/1.2 var(--sp-display, inherit); }
.f1-team-pts { font-size: 13px; color: var(--muted); white-space: nowrap; }
.f1-team-pts b { font: 700 18px/1 var(--sp-display, inherit); color: var(--text); }
.f1-team-blurb { margin: 10px 0 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.f1-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; margin: 0 0 14px; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.f1-facts div { min-width: 0; }
.f1-facts dt { font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.f1-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.f1-drivers { display: grid; gap: 8px; }
.f1-drv-who { display: grid; gap: 2px; min-width: 0; }
.f1-drv-who b { font-size: 15px; }
.f1-drv-who small { font-size: 12.5px; color: var(--muted); }
.f1-drv-st { display: grid; justify-items: end; gap: 2px; }
.f1-drv-st b { font: 700 16px/1 var(--sp-display, inherit); }
.f1-drv-st small { font-size: 12px; color: var(--muted); white-space: nowrap; }

.f1-src { margin: 40px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.f1-src a { color: var(--accent); }

/* "New to F1" cards sit right under their heading */
.f1 #new .wk-cards { margin-top: 0; }

/* ---------- tablet and phone ---------- */
@media (max-width: 700px) {
  .f1-cd-n span { min-width: 0; flex: 1; }
  .f1-cd-n b { font-size: 26px; }
  .f1-sess li { grid-template-columns: minmax(0, 1fr) auto 46px; gap: 8px; padding: 7px 10px; font-size: 13.5px; }
  .f1-sess .f1-tag { grid-column: 1 / -1; justify-self: start; margin-top: -2px; }
  .f1-sec { margin-top: 44px; }
  .f1-c-team { display: none; }
  .f1-c-team-sm { display: inline; }
  .f1-tbl td, .f1-tbl th { padding: 9px 10px; }
  .f1-tbl { font-size: 14px; }
  .f1-teams { grid-template-columns: minmax(0, 1fr); }
  .f1-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .f1-dot::after { animation: none; }
  .f1-tabs button { transition: none; }
}

/* light mode: pale team colours (Haas, Cadillac) need more ink as text */

/* =====================================================================
   Real photos, logos, the podium, the driver card and motion (2026-10-21)
   ===================================================================== */

/* ---------- portraits (Wikipedia photos; initials until they load) ---------- */
.f1-face { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tc, var(--accent)) 55%, #fff), color-mix(in srgb, var(--tc, var(--accent)) 80%, #000)); color: #fff; }
.f1-face b { font: 700 15px/1 var(--sp-display, inherit); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.f1-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; opacity: 0; transform: scale(1.08); transition: opacity .45s, transform .6s cubic-bezier(.22, 1, .36, 1); }
.f1-face img.is-ok { opacity: 1; transform: none; }

/* ---------- team logos on a white plate ---------- */
.f1-logo { position: relative; display: inline-grid; place-items: center; flex: none; box-sizing: border-box; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(21, 21, 30, .08); }
/* the image fills the plate inside its padding (a % height on a grid item would not resolve) */
.f1-logo img { position: absolute; inset: 0; box-sizing: border-box; padding: inherit; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s; }
.f1-logo img.is-ok { opacity: 1; }
.f1-logo b { font: 700 14px/1.1 var(--sp-display, inherit); color: #15151E; text-align: center; }
.f1-logo-sm { width: 46px; height: 30px; padding: 4px 5px; border-radius: 7px; }
.f1-logo-team { width: 74px; height: 50px; padding: 6px 8px; }
.f1-logo-dc { position: absolute; right: 14px; bottom: 14px; width: 84px; height: 54px; padding: 7px 9px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }

/* ---------- standings panels: the podium above each table ---------- */
.f1-panel > .f1-table { margin-top: 18px; }
/* a light sheen runs over the winner's step */
@keyframes f1Sheen { 0%, 70% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }

/* clickable names in the tables */
.f1-dlink { padding: 0; border: 0; background: none; color: inherit; font: 700 inherit/1.3 inherit; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; background-image: linear-gradient(var(--tc, var(--accent)), var(--tc, var(--accent))); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s cubic-bezier(.22, 1, .36, 1); }
.f1-dlink:hover, .f1-dlink:focus-visible { background-size: 100% 2px; outline: none; }
.f1-tbl tbody tr { transition: background-color .2s; }
.f1-tbl tbody tr:hover { background: color-mix(in srgb, var(--tc) 9%, transparent); }


/* the sliding tab pill */
.f1-tabs.has-pill button[aria-selected="true"] { background: transparent; }
.f1-tabs button { position: relative; z-index: 1; }
.f1-tab-pill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 0; border-radius: 999px; background: var(--accent); box-shadow: 0 6px 16px -6px var(--accent); transition: transform .42s cubic-bezier(.22, 1, .36, 1), width .42s cubic-bezier(.22, 1, .36, 1); }

/* ---------- team cards ---------- */
.f1-team { transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .25s, box-shadow .3s; scroll-margin-top: 100px; }
.f1-team:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tc) 50%, var(--edge)); box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--tc) 70%, #000); }
.f1-team::before { transform-origin: left; transition: height .3s; }
.f1-team:hover::before { height: 7px; }
.f1-team-h { grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; }
.f1-team.is-flash { animation: f1Flash 1.4s cubic-bezier(.22, 1, .36, 1); }
@keyframes f1Flash { 0%, 40% { box-shadow: 0 0 0 3px var(--tc), 0 18px 40px -16px var(--tc); } 100% { box-shadow: 0 0 0 0 transparent; } }
.f1-drv { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; width: 100%; padding: 9px 12px 9px 9px; border: 1px solid transparent; border-radius: 14px; background: var(--surface-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .25s cubic-bezier(.22, 1, .36, 1); }
.f1-drv:hover { border-color: color-mix(in srgb, var(--tc) 55%, transparent); background: color-mix(in srgb, var(--tc) 8%, var(--surface-soft)); transform: translateX(3px); }
.f1-drv:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f1-drv-pic { position: relative; }
.f1-drv-pic .f1-face { width: 56px; height: 56px; box-shadow: 0 0 0 2px var(--tc); }
.f1-drv:hover .f1-face img.is-ok { transform: scale(1.08); }
.f1-drv-no { position: absolute; right: -7px; bottom: -4px; min-width: 22px; padding: 2px 4px; border-radius: 6px; background: var(--tc); color: #fff; font: 700 12px/1 var(--sp-display, inherit); text-align: center; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); box-shadow: 0 0 0 2px var(--surface-soft); }
.f1-drv-go { font-size: 20px; color: var(--muted); transition: transform .25s; }
.f1-drv:hover .f1-drv-go { transform: translateX(3px); color: var(--tc); }

/* ---------- the driver card ---------- */
html.f1-lock { overflow: hidden; }
.f1-dlg { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--text); overflow: visible; }
.f1-dlg::backdrop { background: rgba(8, 8, 14, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: f1Fade .3s ease both; }
.f1-dlg[open] .f1-dc { animation: f1Pop .46s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes f1Fade { from { opacity: 0; } }
@keyframes f1Pop { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.f1-dc { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 22px; background: var(--surface); border: 1px solid var(--edge); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.f1-dc-x { position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); font: 400 26px/1 sans-serif; cursor: pointer; transition: background-color .2s, transform .3s cubic-bezier(.22, 1, .36, 1); }
.f1-dc-x:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }
.f1-dc-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f1-dc-pic { position: relative; min-height: 360px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--tc) 70%, #fff 0%), color-mix(in srgb, var(--tc) 55%, #000)); }
.f1-dc-pic::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.f1-dc-no { position: absolute; left: -6px; bottom: -22px; font: 700 210px/1 var(--sp-display, inherit); color: rgba(255, 255, 255, .16); letter-spacing: -.04em; animation: f1NoIn .9s cubic-bezier(.22, 1, .36, 1) .1s both; }
@keyframes f1NoIn { from { opacity: 0; transform: translateX(-40px); } }
.f1-face-xl { position: absolute; inset: 0; border-radius: 0; background: transparent; }
.f1-face-xl b { font-size: 64px; opacity: .85; }
.f1-face-xl img { object-position: 50% 20%; }
.f1-dlg[open] .f1-face-xl img.is-ok { animation: f1PicIn .8s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes f1PicIn { from { opacity: 0; transform: scale(1.12) translateX(-12px); } }
.f1-dlg .f1-logo-dc { z-index: 2; }
.f1-dc-main { padding: 26px 28px 24px; display: grid; align-content: start; gap: 10px; }
.f1-dc-main > * { animation: f1Up .5s cubic-bezier(.22, 1, .36, 1) both; }
.f1-dc-main > :nth-child(2) { animation-delay: .05s; } .f1-dc-main > :nth-child(3) { animation-delay: .1s; } .f1-dc-main > :nth-child(4) { animation-delay: .15s; }
.f1-dc-main > :nth-child(5) { animation-delay: .2s; } .f1-dc-main > :nth-child(6) { animation-delay: .25s; } .f1-dc-main > :nth-child(n+7) { animation-delay: .3s; }
@keyframes f1Up { from { opacity: 0; transform: translateY(14px); } }
.f1-dc-k { display: flex; align-items: center; gap: 8px; margin: 0; padding-right: 44px; font: 700 12px/1.3 var(--sp-display, inherit); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.f1-dc-k .f1-bar { height: 16px; }
.f1-dc h2 { margin: 0; font: 700 clamp(26px, 3.4vw, 36px)/1.15 var(--sp-display, inherit); text-transform: uppercase; }
.f1-dc-latin { margin: -4px 0 0; font-size: 14px; color: var(--muted); }
.f1-dc .f1-thai { justify-self: start; margin: 0; }
.f1-dc-facts { margin: 4px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.f1-dc-facts div { min-width: 0; }
.f1-dc-facts dt { font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.f1-dc-facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; }
.f1-dc-bio { margin: 2px 0 0; font-size: 15px; line-height: 1.75; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.f1-wait-sm { color: var(--muted); font-size: 14px; }
.f1-dc-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13.5px; }
.f1-dc-links a { color: var(--accent); text-underline-offset: 3px; }
.f1-dc-mate { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 6px; padding: 8px 12px 8px 8px; border: 1px solid var(--edge); border-radius: 14px; background: var(--surface-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .25s cubic-bezier(.22, 1, .36, 1); }
.f1-dc-mate:hover { border-color: var(--tc); transform: translateX(3px); }
.f1-dc-mate .f1-face { width: 44px; height: 44px; }
.f1-dc-mate small { display: block; font-size: 11.5px; color: var(--muted); }
.f1-dc-mate b { font-size: 15px; }
.f1-dc-mate i { font-style: normal; font-size: 20px; color: var(--muted); }
.f1-face-sm b { font-size: 13px; }

/* ---------- hero: start lights and speed streaks ---------- */
/* five red lights come on one by one, then all go out together: "lights out and away we go" */
/* after the lights, streaks of light race across the hero */
/* the stripes on the right drift a little */
@keyframes f1Drift { to { transform: translateX(-28px); } }
/* the next race card: a sheen passes when it appears, and its edge glows on a live session */
@keyframes f1NxSheen { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(560%) skewX(-18deg); } }
@keyframes f1Glow { 50% { box-shadow: 0 0 0 1px rgba(255, 30, 0, .5), 0 0 28px -6px rgba(255, 30, 0, .6); } }
.f1-cd-n b { display: inline-block; }


/* waiting to scroll into view (only when motion is on; f1.js adds and removes it) */
.f1-pre { opacity: 0; }

/* ---------- phone ---------- */
@media (max-width: 700px) {
  .f1-who > .f1-logo-sm { display: none; }
  .f1-logo-team { width: 58px; height: 40px; padding: 5px 6px; }
  .f1-drv { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .f1-drv-go { display: none; }
  .f1-drv-pic .f1-face { width: 48px; height: 48px; }
  .f1-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .f1-dc { grid-template-columns: minmax(0, 1fr); max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .f1-dlg[open] .f1-dc { animation-name: f1Sheet; }
  @keyframes f1Sheet { from { transform: translateY(60%); opacity: .4; } }
  .f1-dc-pic { min-height: 0; height: 300px; }
  .f1-dc-no { font-size: 150px; }
  .f1-dc-main { padding: 20px 18px 28px; }
  .f1-dc-facts { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .f1-dlg::backdrop, .f1-dlg[open] .f1-dc, .f1-dc-main > *, .f1-dc-no, .f1-dlg[open] .f1-face-xl img.is-ok, .f1-team.is-flash { animation: none; }
  .f1-face img, .f1-logo img, .f1-tab-pill, .f1-team, .f1-drv, .f1-dlink, .f1-dc-x, .f1-dc-mate { transition: none; }
}

/* ---------- session results (2026-10-24) ----------
   A weekend picker and one chip per session, then P1, P2 and P3 as cards
   (no photos: the team colour and the three-letter code) in gold, silver
   and bronze, then every driver's time. */
.f1-res { --gold: #E8B23A; --silver: #B9BEC9; --bronze: #C9824E; }
.f1-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.f1-rbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.f1-rwk select { max-width: 100%; padding: 10px 38px 10px 16px; border-radius: 999px; border: 1px solid var(--edge); color: var(--text); font: 600 14px/1.2 var(--sp-display, inherit); cursor: pointer;
  -webkit-appearance: none; appearance: none; background: var(--surface-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FF1E00' stroke-width='2'/%3E%3C/svg%3E") right 15px center / 12px 8px no-repeat; }
.f1-rwk select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f1-rses { display: flex; flex-wrap: wrap; gap: 6px; }
.f1-rses button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 13.5px/1.2 var(--sp-display, inherit); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.f1-rses button.is-soon { color: var(--muted); border-style: dashed; }
.f1-rses button:hover { border-color: var(--accent); }
.f1-rses button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.f1-rses button[aria-pressed="true"] .f1-dot, .f1-rses button[aria-pressed="true"] .f1-dot::after { background: #fff; }
.f1-rses button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f1-rhead { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.f1-rhead b { color: var(--text); font: 700 17px/1.2 var(--sp-display, inherit); }

.f1-rtop { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; padding: 0; }
.f1-rtbl tbody tr:first-child .f1-pos { color: inherit; }   /* the table starts at P4: no leader red */
.f1-rtop li { --m: var(--gold); position: relative; display: grid; align-content: start; gap: 2px; padding: 16px 16px 14px 22px; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.f1-rtop li.is-p2 { --m: var(--silver); } .f1-rtop li.is-p3 { --m: var(--bronze); }
.f1-rtop li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tc); }
.f1-rtop li::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--m); }
.f1-rtop-p { justify-self: start; margin-bottom: 6px; padding: 3px 10px; border-radius: 6px; background: var(--m); color: #15151E; font: 700 14px/1.2 var(--sp-display, inherit); transform: skewX(-10deg); }
.f1-rtop-code { font: 700 30px/1.05 var(--sp-display, inherit); letter-spacing: .02em; }
.f1-rtop-n { font-size: 14px; line-height: 1.35; }
.f1-rtop-n b, .f1-rtop-n .f1-dlink { font-weight: 600; }
.f1-rtop-tm { font-size: 12.5px; color: var(--muted); }
.f1-rtop-t { display: grid; gap: 2px; margin-top: 10px; font: 700 22px/1.1 var(--sp-display, inherit); font-variant-numeric: tabular-nums; }
.f1-rtop-t small { font: 600 13px/1.2 var(--sp-display, inherit); color: var(--muted); font-style: normal; }
.f1-rtop-pt { justify-self: start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 12.5px/1.3 var(--sp-display, inherit); white-space: nowrap; }

.f1-rname b, .f1-rname .f1-dlink { font-weight: 700; }
.f1-rt { font-weight: 700; }
.f1-rt small, .f1-tbl .f1-c-n small { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.f1-c-q { color: var(--muted); }
.f1-c-q.is-best { color: var(--text); font-weight: 700; }
.f1-c-best { display: none; }
.f1-tbl .f1-c-laps { color: var(--muted); }
.f1-x { display: inline-block; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; }

@media (max-width: 700px) {
  .f1-rbar { gap: 10px; }
  .f1-rwk, .f1-rwk select { width: 100%; }
  /* the chips wrap onto a second line instead of scrolling, so none is cut off */
  .f1-rses button { padding: 8px 13px; }
  /* the top three as rows: the place, the driver, the time */
  .f1-rtop { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .f1-rtop li { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 0; padding: 12px 14px 12px 18px; }
  .f1-rtop-p { grid-row: 1 / span 2; margin: 0; }
  .f1-rtop-code { grid-column: 2; font-size: 22px; }
  .f1-rtop-n { grid-column: 2; font-size: 13px; }
  .f1-rtop-tm { display: none; }
  /* the points stay on phones too (2026-10-26), under the time */
  .f1-rtop li:has(.f1-rtop-pt) .f1-rtop-t { grid-row: 1; align-self: end; }
  .f1-rtop-pt { grid-column: 3; grid-row: 2; justify-self: end; align-self: start; margin-top: 4px; padding: 2px 8px; font-size: 11.5px; }
  .f1-rtop-t { grid-column: 3; grid-row: 1 / span 2; margin: 0; justify-items: end; font-size: 17px; }
  .f1-c-q { display: none; }
  .f1-c-best { display: table-cell; }
  .f1-rtbl.is-r .f1-c-laps { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .f1-rses button { transition: none; }
}

/* ---------- quick actions (2026-10-26) ----------
   Five sticker tiles under the hero, like the apps' "Quick actions"; on the
   drivers and teams pages the page's own tile is marked. */

/* the drivers and teams pages: a shorter hero, then the article's own text */
.f1-body { margin-top: 56px; }

/* ---------- title odds (2026-10-26) ---------- */
.f1-odds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 880px; }
.f1-meter.is-wide { width: 100%; max-width: none; height: 8px; margin-top: 5px; border-radius: 4px; }
.f1-odds-more { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.f1-odds-note { margin: 16px 0 0; max-width: 78ch; font-size: 13px; line-height: 1.65; color: var(--muted); }
.f1-champ { display: flex; align-items: center; gap: 18px; max-width: 760px; padding: 18px 22px; border: 1px solid var(--accent-line); border-radius: 18px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--tc) 24%, var(--surface)), var(--surface) 70%); }
.f1-champ-pic .f1-face-sm { width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--tc); }
.f1-champ-k { margin: 0 0 4px; font: 700 12px/1.4 var(--sp-display, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.f1-champ b { display: block; font: 700 clamp(20px, 2.6vw, 26px)/1.25 var(--sp-display, inherit); }
.f1-champ small { font-size: 13px; color: var(--muted); }

/* ---------- the calendar: a sideways strip + the chosen race (2026-10-26) ---------- */
.f1-calwrap { position: relative; }

.f1-caldet { margin-top: 14px; }
.f1-cdx { --gold: #E8B23A; --silver: #B9BEC9; --bronze: #C9824E; position: relative; padding: 20px 24px 22px 26px; border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); overflow: hidden; }
.f1-cdx::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tc); }
.f1-cdx-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font: 700 12px/1.3 var(--sp-display, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.f1-cdx-k .f1-tag, .f1-cdx-k .f1-win { letter-spacing: .02em; text-transform: none; }
.f1-cdx-name { margin: 8px 0 4px; font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--sp-display, inherit); }
.f1-cdx-where { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.f1-cdx-where a { color: var(--accent); text-underline-offset: 3px; white-space: nowrap; }
.f1-cdx-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 28px; }
.f1-cdx-h { margin: 0 0 10px; font: 700 12px/1.3 var(--sp-display, inherit); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.f1-cdx-in { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.f1-cdx-in b { font: 700 46px/1 var(--sp-display, inherit); color: var(--accent); }
.f1-cdx-in span { font-size: 14px; color: var(--muted); }
.f1-cpod { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f1-cpod li { --m: var(--gold); display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px 9px 10px; border-radius: 12px; background: var(--surface-soft); box-shadow: inset 4px 0 0 var(--tc); }
.f1-cpod li.is-p2 { --m: var(--silver); } .f1-cpod li.is-p3 { --m: var(--bronze); }
.f1-cpod-p { margin-left: 4px; padding: 3px 8px; border-radius: 6px; background: var(--m); color: #15151E; font: 700 13px/1.2 var(--sp-display, inherit); transform: skewX(-10deg); }
.f1-cpod .f1-face-sm { width: 38px; height: 38px; }
.f1-cpod-who { display: grid; gap: 1px; min-width: 0; }
.f1-cpod-who .f1-dlink { justify-self: start; font-size: 14.5px; }
.f1-cpod-who small { font-size: 12px; color: var(--muted); }
.f1-cpod-t { display: grid; justify-items: end; gap: 2px; font: 700 14px/1.2 var(--sp-display, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f1-cpod-t small { font-size: 12px; color: var(--accent); }
.f1-cdx-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--text); font: 600 14px/1.2 var(--sp-display, inherit); cursor: pointer; transition: background-color .2s; }
.f1-cdx-go:hover { background: var(--accent); }
.f1-cdx-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- the drivers page (2026-10-26) ---------- */
.f1-dgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.f1-dg-b { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center;
  padding: 16px 16px 14px; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  -webkit-tap-highlight-color: transparent; transition: border-color .25s, transform .3s cubic-bezier(.22, 1, .36, 1); }
.f1-dg-b::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tc); }
.f1-dg-b::after { content: ""; position: absolute; top: -40px; right: -40px; width: 150px; height: 150px; background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 22%, transparent), transparent); pointer-events: none; }
.f1-dg-b:hover { border-color: var(--tc); transform: translateY(-3px); }
.f1-dg-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f1-dg-pic { position: relative; grid-row: 1; }
.f1-face-dg { width: 86px; height: 86px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--tc); }
.f1-face-dg b { font-size: 24px; }
.f1-dg-no { position: absolute; z-index: 1; left: -6px; bottom: -4px; padding: 3px 7px; border-radius: 6px; background: var(--tc); color: #fff; font: 700 15px/1 var(--sp-display, inherit); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); transform: skewX(-10deg); }
.f1-dg-logo { position: absolute !important; z-index: 1; right: -12px; top: -6px; width: 40px; height: 26px; }
.f1-dg-main { display: grid; align-content: center; gap: 3px; min-width: 0; }
.f1-dg-pos { font: 700 13px/1 var(--sp-display, inherit); color: var(--muted); }
.f1-dg-name { font: 600 14.5px/1.25 var(--sp-display, inherit); }
.f1-dg-name span { display: block; font: 700 20px/1.15 var(--sp-display, inherit); text-transform: uppercase; overflow-wrap: anywhere; }
.f1-dg-main small { font-size: 12.5px; color: var(--muted); }
.f1-dg-main .f1-thai { justify-self: start; margin: 2px 0 0; }
.f1-dg-out { font-size: 11.5px; color: var(--muted); }
.f1-dg.is-out .f1-dg-b { opacity: .6; }
.f1-dg-st { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.f1-dg-st b { font: 700 22px/1 var(--sp-display, inherit); color: var(--text); font-variant-numeric: tabular-nums; }
.f1-dgt + .f1-dgt { margin-top: 26px; }
.f1-dgt-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 20px/1.2 var(--sp-display, inherit); }
.f1-dgt-h a { color: var(--text); text-decoration: none; }
.f1-dgt-h a:hover { color: var(--accent); }
.f1-dgt-h .f1-bar { height: 22px; }

@media (max-width: 760px) {
  .f1-cdx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .f1-champ { padding: 16px; gap: 14px; }
  .f1-cdx { padding: 16px 16px 18px 20px; }
  .f1-cdx-in b { font-size: 38px; }
  .f1-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .f1-dg-b { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: start; gap: 8px; padding: 14px 12px 12px; }
  .f1-face-dg { width: 68px; height: 68px; }
  .f1-dg-name span { font-size: 17px; }
  .f1-dg-st { grid-column: 1; width: 100%; }
  .f1-dg-st b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .f1-cdx-go, .f1-dg-b { transition: none; }
}

/* ---------- Predict and win coins (2026-10-26, f1-predict.js) ----------
   Made into a game 2026-11-01 (the user: "more gamify, more icons, less
   word"): stickers say what each thing is, tiles you tap to pick (a podium
   for the race, tiles for pole and the sprint), the coins each one pays on
   it, a score panel, medals in the league. */
.f1-pr .f1-panel { display: grid; gap: 14px; }
.f1-pr .f1-panel[hidden] { display: none; }
.f1-pr-ic { flex: none; display: inline-block; width: 20px; height: 20px; vertical-align: middle; }
.f1-pr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.f1-pr .f1-tabs button:has(.f1-tab-ic) { display: inline-flex; align-items: center; gap: 6px; }
.f1-tab-ic { flex: none; width: 20px; height: 20px; }

/* the heading's "pole + podium + sprint = coins" */
.f1-sec-h .f1-pr-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.f1-pr-strip span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--edge); }
.f1-pr-strip img { width: 28px; height: 28px; }
.f1-pr-strip b { font: 600 14px/1.2 var(--sp-display, inherit); color: var(--text); }
.f1-pr-strip i { font: 700 18px/1 var(--sp-display, inherit); color: var(--muted); }
.f1-pr-strip .is-win { border-color: rgba(245, 179, 1, .55); background: rgba(245, 179, 1, .12); }
.f1-pr-strip .is-win b { color: #f5c542; }

.f1-pr-card { padding: 18px 20px; border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); }
.f1-pr-form { border-color: rgba(255, 30, 0, .45); background: radial-gradient(120% 70% at 50% 0%, rgba(255, 30, 0, .12), transparent 60%), var(--surface); }
.f1-pr-card.is-wait { border-style: dashed; }
.f1-pr-intro { text-align: center; border-color: rgba(255, 30, 0, .45); background: radial-gradient(100% 80% at 50% 0%, rgba(255, 30, 0, .16), transparent 65%), var(--surface); }
.f1-pr-show { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 12px; }
.f1-pr-show img { width: 48px; height: 48px; }
.f1-pr-show img.is-big { width: 60px; height: 60px; filter: drop-shadow(0 0 14px rgba(245, 179, 1, .45)); }
.f1-pr-show i { font: 700 24px/1 var(--sp-display, inherit); color: var(--muted); }
.f1-pr-intro .f1-pr-acts { justify-content: center; }
.f1-pr-big { margin: 0; font: 700 17px/1.5 var(--sp-display, inherit); }
.f1-pr-small { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.f1-pr-iline { display: flex; align-items: center; gap: 8px; }
.f1-pr-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.f1-pr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: linear-gradient(100deg, #FF1E00, #C81800); box-shadow: 0 10px 24px -10px rgba(255, 30, 0, .9); color: #fff !important; font: 700 16px/1 var(--sp-display, inherit); text-decoration: none; cursor: pointer; transition: transform .2s cubic-bezier(.22, 1, .36, 1), opacity .2s; }
.f1-pr-btn:hover { transform: translateY(-1px); }
.f1-pr-btn:active { transform: scale(.97); }
.f1-pr-btn:disabled { opacity: .6; cursor: default; transform: none; }
.f1-pr-btn.is-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text) !important; }
.f1-pr-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the score panel */
.f1-pr-hud { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; border: 0; background: none; }
.f1-pr-stat { display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--edge); }
.f1-pr-stat img { width: 32px; height: 32px; margin-bottom: 2px; }
.f1-pr-stat b { font: 700 26px/1 var(--sp-display, inherit); font-variant-numeric: tabular-nums; }
.f1-pr-stat span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.f1-pr-stat:nth-of-type(2) b { color: #f5c542; }
.f1-pr-yr { position: absolute; top: -9px; left: 12px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 11.5px/1.3 var(--sp-display, inherit); }
.f1-pr-coin { width: 18px; height: 18px; }

.f1-pr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.f1-pr-head h3 { margin: 4px 0 0; font: 700 clamp(19px, 2.4vw, 23px)/1.25 var(--sp-display, inherit); }
.f1-pr-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.f1-pr-tag2 { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 2px 9px 2px 5px; border-radius: 999px; background: rgba(245, 197, 66, .14); color: #f5c542; }
.f1-pr-tag2 .f1-pr-ic { width: 16px; height: 16px; }
.f1-pr-saved { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 6px; border-radius: 999px; background: rgba(46, 204, 113, .16); color: #2ecc71; font-size: 13px; font-weight: 800; }
.f1-pr-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; width: fit-content; margin: 12px 0 0; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--edge); font-size: 14px; color: var(--muted); }
.f1-pr-lock b { color: var(--text); font-variant-numeric: tabular-nums; }
.f1-pr-lock small { font-size: 12.5px; }
.f1-pr-lock small::before { content: "· "; }

/* pick tiles: a native <select> lies over each one (opacity 0) */
.f1-pr-slot { position: relative; display: grid; justify-items: center; min-width: 0; border-radius: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; --c: var(--line-strong); }
.f1-pr-sel { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; }
.f1-pr-sel:disabled { cursor: default; }
.f1-pr-sel option { color: #111; }
.f1-pr-slot:has(.f1-pr-sel:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.f1-pr-vis { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.f1-pr-pic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.f1-pr-pic.is-empty { background: var(--surface-soft); box-shadow: none; border: 2px dashed var(--line-strong); color: var(--muted); font: 700 26px/1 var(--sp-display, inherit); }
.f1-pr-pic.f1-face b { font-size: 18px; }
.f1-pr-code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 17px/1 var(--sp-display, inherit); letter-spacing: .03em; }
.f1-pr-code.is-none { font: 600 13px/1.2 var(--sp-display, inherit); font-style: normal; letter-spacing: 0; color: var(--muted); }
.f1-pr-rw { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 8px; border-radius: 999px; background: rgba(245, 197, 66, .14); color: #f5c542; font: 700 12.5px/1.2 var(--sp-display, inherit); white-space: nowrap; }
.f1-pr-rw .f1-pr-ic { width: 14px; height: 14px; }
.f1-pr-slot:hover .f1-pr-pic.is-empty { border-color: var(--accent); color: var(--accent); }
.f1-pr-slot.is-set .f1-pr-rw { background: rgba(245, 197, 66, .24); }

/* pole and sprint */
.f1-pr-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; max-width: 460px; margin: 18px auto 0; }
.f1-pr-slot.is-q { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 12px; padding: 12px 14px; background: var(--surface-soft); border: 1px solid var(--edge); border-left: 4px solid var(--c); }
.f1-pr-slot.is-q .f1-pr-tag { display: grid; justify-items: center; gap: 3px; grid-row: 1; grid-column: 1; }
.f1-pr-slot.is-q .f1-pr-tag > b { font: 600 12.5px/1.2 var(--sp-display, inherit); color: var(--muted); }
.f1-pr-slot.is-q .f1-pr-tag > .f1-pr-ic:first-child { width: 28px; height: 28px; }
.f1-pr-slot.is-q .f1-pr-vis { grid-row: 1; grid-column: 2; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 10px; }
.f1-pr-slot.is-q .f1-pr-pic { width: 48px; height: 48px; }
.f1-pr-slot.is-off { opacity: .55; cursor: default; }
.f1-pr-off { width: 18px; height: 18px; }

/* the podium: P2 · P1 · P3, the winner's step highest */
.f1-pr-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "p2 p1 p3"; align-items: end; gap: 8px; max-width: 460px; margin: 22px auto 0; }
.f1-pr-slot.is-p1 { grid-area: p1; } .f1-pr-slot.is-p2 { grid-area: p2; } .f1-pr-slot.is-p3 { grid-area: p3; }
.f1-pr-slot.is-pod { gap: 10px; }
.f1-pr-slot.is-p1 .f1-pr-pic { width: 76px; height: 76px; }
.f1-pr-step { display: grid; justify-items: center; align-content: start; gap: 6px; width: 100%; padding: 10px 4px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #262626), #1A1A1A); border: 1px solid var(--edge); border-top: 3px solid var(--c); }
.f1-pr-step > b { font: 700 26px/1 var(--sp-display, inherit); }
.f1-pr-slot.is-p1 .f1-pr-step { min-height: 104px; }
.f1-pr-slot.is-p2 .f1-pr-step { min-height: 82px; }
.f1-pr-slot.is-p3 .f1-pr-step { min-height: 66px; }
.f1-pr-slot.is-p1 .f1-pr-step > b { color: #f5c542; font-size: 32px; }
.f1-pr-slot.is-pod:not(.is-set) .f1-pr-step { border-top-color: var(--line-strong); }
.f1-pr-bonus { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }

.f1-pr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.f1-pr-circle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.f1-pr-circle b { color: var(--text); }
.f1-pr-circle select { height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-soft); color: var(--text); font: 600 15px/1.2 inherit; font-family: inherit; }
.f1-pr-circle option { color: #111; }
.f1-pr-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.f1-pr-msg:empty { display: none; }
.f1-pr-msg span { display: inline-flex; align-items: center; gap: 6px; }
.f1-pr-msg .is-ok { color: #2ecc71; }
.f1-pr-msg .is-err { color: var(--accent); }

/* closed and scored weekends */
.f1-pr-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.f1-pr-cell { display: grid; justify-items: center; gap: 5px; min-width: 64px; }
.f1-pr-ch { display: grid; place-items: center; height: 22px; }
.f1-pr-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-soft); border: 1px solid var(--line-strong); font: 700 12.5px/1 var(--sp-display, inherit); color: var(--text); }
.f1-pr-cell small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.f1-pr-cell small .f1-pr-ic { width: 12px; height: 12px; }
.f1-pr-chip { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 8px 6px; min-width: 60px; border-radius: 14px; border: 1px solid var(--edge); border-bottom: 3px solid var(--c, var(--line-strong)); background: var(--surface-soft); }
.f1-pr-chip > b { font: 700 13.5px/1 var(--sp-display, inherit); letter-spacing: .02em; }
.f1-pr-pic.is-xs { width: 36px; height: 36px; box-shadow: 0 0 0 2px var(--c); }
.f1-pr-pic.is-xs.f1-face b { font-size: 12px; }
.f1-pr-chip i { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-style: normal; }
.f1-pr-chip i .f1-pr-ic { width: 18px; height: 18px; }
.f1-pr-chip i.is-x { color: var(--muted); font-size: 12px; font-weight: 800; border: 1px solid var(--line-strong); }
.f1-pr-chip.is-exact { background: rgba(46, 204, 113, .16); border-color: rgba(46, 204, 113, .5); }
.f1-pr-chip.is-podium { background: rgba(245, 197, 66, .14); border-color: rgba(245, 197, 66, .45); }
.f1-pr-chip.is-miss { opacity: .6; }
.f1-pr-chip.is-none { display: grid; place-items: center; min-height: 66px; color: var(--muted); border-bottom-color: transparent; }
.f1-pr-score { flex: none; display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 2px 6px; }
.f1-pr-score > .f1-pr-ic { width: 30px; height: 30px; }
.f1-pr-score b { font: 800 34px/1 var(--sp-display, inherit); }
.f1-pr-score em { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(245, 197, 66, .16); font-style: normal; font-weight: 800; color: #f5c542; }
.f1-pr-official { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 13.5px; color: var(--muted); }
.f1-pr-ol { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.f1-pr-oc { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--surface-soft); color: var(--text); font: 700 13px/1.2 var(--sp-display, inherit); }
.f1-pr-oc .f1-pr-n { width: 18px; height: 18px; font-size: 11px; }
.f1-pr-perfect { display: inline-flex; align-items: center; gap: 5px; color: #f5c542; }

/* scoring */
.f1-pr-how { border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); }
.f1-pr-how summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.f1-pr-how ul { list-style: none; margin: 0; padding: 0 16px; }
.f1-pr-how li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 54px 54px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line-strong); font-size: 14px; }
.f1-pr-how li b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.f1-pr-how li b:last-child { color: #f5c542; }
.f1-pr-how li .f1-pr-ic { width: 26px; height: 26px; }
.f1-pr-how li b .f1-pr-ic { width: 16px; height: 16px; }
.f1-pr-how p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 10px 16px 14px; font-size: 13px; color: var(--muted); }
.f1-pr-how p b { display: inline-flex; align-items: center; gap: 2px; color: var(--text); }
.f1-pr-how p .f1-pr-ic { width: 14px; height: 14px; }

/* the circle league */
.f1-pr-lgc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.f1-pr-lgc b { color: var(--text); font-size: 16px; }
.f1-pr-lg { width: 100%; border-collapse: collapse; }
.f1-pr-lg th, .f1-pr-lg td { padding: 10px 14px; text-align: left; vertical-align: middle; }
.f1-pr-lg th { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.f1-pr-lg td:first-child, .f1-pr-lg th:first-child { width: 44px; }
.f1-pr-lg td:nth-child(n+3), .f1-pr-lg th:nth-child(n+3) { text-align: right; }
.f1-pr-lg td:last-child b { font: 700 18px/1 var(--sp-display, inherit); }
.f1-pr-lg tbody tr { border-top: 1px solid var(--edge); }
.f1-pr-lg tr.is-me { background: rgba(255, 30, 0, .1); }
.f1-pr-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-soft); border: 1px solid var(--line-strong); font: 700 14px/1 var(--sp-display, inherit); }
.f1-pr-rank.is-m1 { background: linear-gradient(160deg, #ffe27a, #e0a800); border-color: #b58500; color: #111111; }
.f1-pr-rank.is-m2 { background: linear-gradient(160deg, #f1f1f1, #a9a9b3); border-color: #84848e; color: #111111; }
.f1-pr-rank.is-m3 { background: linear-gradient(160deg, #f0b27a, #b8682a); border-color: #8c4c1c; color: #111111; }
.f1-pr-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.f1-pr-who em { font-style: normal; font-size: 12px; color: var(--accent); }
.f1-pr-king { width: 22px; height: 22px; }
.f1-pr-face { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-soft); }
.f1-pr-h3 { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 700 18px/1.3 var(--sp-display, inherit); }
.f1-pr-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.f1-pr-pk { padding: 14px 16px; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); }
.f1-pr-pk.is-me { border-color: rgba(255, 30, 0, .55); }
.f1-pr-pk .f1-pr-who { display: flex; }
.f1-pr-pts { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font: 700 16px/1 var(--sp-display, inherit); }
.f1-pr-pts .f1-pr-ic { width: 16px; height: 16px; }
.f1-pr-pk .f1-pr-row { margin-top: 12px; }

@media (max-width: 700px) {
  .f1-pr-card { padding: 16px 14px; }
  /* phones: each sticker over its word, the four tiles across the whole
     row with room around them (2026-11-01, "too much together") */
  .f1-pr .f1-sec-h { margin-bottom: 22px; }
  .f1-sec-h .f1-pr-strip { flex: 1 0 100%; flex-wrap: nowrap; gap: 6px; margin: 12px 0 0; }
  .f1-pr-strip span { flex: 1 1 0; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 4px 10px; border-radius: 16px; }
  .f1-pr-strip img { width: 30px; height: 30px; }
  .f1-pr-strip i { flex: none; font-size: 15px; }
  .f1-pr-strip b { font-size: 12.5px; white-space: nowrap; }
  .f1-pr-lock small { display: none; }
  .f1-pr-foot { flex-direction: column; align-items: stretch; }
  .f1-pr-foot .f1-pr-btn { width: 100%; }
  .f1-pr-circle { justify-content: center; }
  .f1-pr-pic { width: 56px; height: 56px; }
  .f1-pr-slot.is-p1 .f1-pr-pic { width: 66px; height: 66px; }
  .f1-pr-slot.is-q { padding: 10px; gap: 8px; }
  .f1-pr-slot.is-q .f1-pr-vis { gap: 8px; }
  .f1-pr-slot.is-q .f1-pr-pic { width: 42px; height: 42px; }
  .f1-pr-row { gap: 6px; }
  .f1-pr-cell { min-width: 0; flex: 1 1 0; }
  .f1-pr-chip { min-width: 0; width: 100%; padding: 7px 4px 5px; }
  .f1-pr-pic.is-xs { width: 32px; height: 32px; }
  .f1-pr-lg th, .f1-pr-lg td { padding: 9px 8px; }
  .f1-pr-how li { grid-template-columns: 24px minmax(0, 1fr) 46px 46px; gap: 8px; font-size: 13.5px; }
  .f1-pr-how li .f1-pr-ic { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .f1-pr-btn { transition: none; } }

/* =====================================================================
   The hub's tabs (2026-10-31, the user: "separate each section, with tabs
   the user can select"): Overview · Results · Standings · Calendar ·
   Predict. build.rb puts every panel in the page; F1_TAB_BOOT (inline)
   shows the bar and hides all panels but one before the first paint, so a
   visitor without JS (and a search engine) still gets the whole page.
   ===================================================================== */
.f1-tabhub, .f1-sub { --f1-stick: calc(var(--nav-h, 76px) + 6px); }
html.cz-app :is(.f1-tabhub, .f1-sub) { --f1-stick: var(--cz-bar-h, 64px); }
/* wider screens: the site header slides away while you scroll down (gnav.js
   .bh-hide); the strip moves up to the top then (z-index keeps the header
   over it while it comes back) */
@media (min-width: 701px) { html:not(.cz-app):has(#bh.bh-hide) :is(.f1-tabhub, .f1-sub) { --f1-stick: 0px; } }

/* the bar: sticks under the site header; its black strip runs edge to edge
   (a 100vmax shadow, clipped to the strip's height) so rows never show
   around it while they scroll underneath */
.f1-tabwrap {
  position: sticky; top: var(--f1-stick); z-index: 30;
  margin: 18px 0 0; padding: 8px 0;
  background: #000; box-shadow: 0 0 0 100vmax #000; clip-path: inset(0 -100vmax);
}
.f1-tabwrap[hidden] { display: none; }
.f1-tabs.f1-tabbar {
  display: flex; width: max-content; max-width: 100%; margin: 0; gap: 2px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: #141414; border-color: rgba(255, 255, 255, .1);
}
.f1-tabbar::-webkit-scrollbar { display: none; }
.f1-tabbar button, .f1-tabbar .f1-tablink { flex: none; padding: 11px 20px; font-size: 15px; font-style: normal; letter-spacing: .01em; white-space: nowrap; color: #A3A3A3; }
.f1-tabbar button:hover, .f1-tabbar .f1-tablink:hover { color: #fff; }
.f1-tabbar button[aria-selected="true"] { color: #fff; }
/* the drivers and teams tabs are links (2026-11-01): same look as the
   buttons; on their own page the lit one wears the pill itself */
.f1-tabbar .f1-tablink { position: relative; z-index: 1; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 600; font-family: var(--sp-display, inherit); line-height: 1.2; text-decoration: none; transition: color .2s; }
.f1-tabbar .f1-tablink[aria-current="page"] { color: #fff; background: linear-gradient(100deg, #FF1E00, #C81800); box-shadow: 0 8px 20px -8px rgba(255, 30, 0, .9); }
.f1-tabbar .f1-tablink:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.f1-sub .f1-tabwrap { margin-top: 18px; }
.f1-sub .f1-tabwrap + .f1-sec { margin-top: 26px; }
.f1-tabbar .f1-tab-pill { background: linear-gradient(100deg, #FF1E00, #C81800); box-shadow: 0 8px 20px -8px rgba(255, 30, 0, .9); }
/* a thin red line under the strip once it sticks (the line is part of the strip) */
.f1-tabwrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 30, 0, .5), rgba(255, 255, 255, .06) 60%, transparent); }

/* panels: the first box sits close under the bar; anchors clear the bar */
.f1-pane[hidden] { display: none; }
.f1-pane > :first-child { margin-top: 26px; }
.f1-tabbed .f1-pane .f1-sec, .f1-tabbed .f1-ov { scroll-margin-top: calc(var(--f1-stick) + 74px); }
.f1-tabbed .f1-pane .f1-sec + .f1-sec { margin-top: 56px; }

/* Overview: the next race, the top three, the shortcuts */
.f1-ov { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px 22px; align-items: start; }
.f1-ov .f1-next { margin-top: 0; max-width: none; grid-row: span 2; }
.f1-mini:empty { display: none; }
.f1-mini { padding: 18px 18px 14px; border-radius: 16px; background: #0E0E0E; border: 1px solid rgba(255, 255, 255, .1); }
.f1-mini-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.f1-mini-h b { font: 700 17px/1.25 var(--sp-display, inherit); }
.f1-mini-h small { font-size: 12.5px; color: var(--muted); }
.f1-mini-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f1-mini-l li { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 4px; border-radius: 12px; position: relative; }
.f1-mini-l li:nth-child(odd) { background: rgba(255, 255, 255, .035); }
.f1-mini-p { font: 700 18px/1 var(--sp-display, inherit); text-align: center; color: #fff; }
.f1-mini-l .f1-face-sm { width: 40px; height: 40px; box-shadow: 0 0 0 2px #0E0E0E, 0 0 0 3.5px var(--tc); }
.f1-mini-n { display: grid; min-width: 0; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.f1-mini-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.f1-mini-n small { font-size: 12.5px; color: var(--muted); }
.f1-mini-n:hover b, .f1-mini-n:focus-visible b { color: var(--tc); }
.f1-mini-n:focus-visible { outline: none; }
.f1-mini-pts { display: grid; justify-items: end; }
.f1-mini-pts b { font: 700 18px/1.1 var(--sp-display, inherit); font-variant-numeric: tabular-nums; }
.f1-mini-pts small { font-size: 12px; color: var(--muted); }
.f1-mini-go { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #fff; font: 600 14px/1.2 var(--sp-display, inherit); cursor: pointer; transition: border-color .2s, background-color .2s; }
.f1-mini-go:hover, .f1-mini-go:focus-visible { border-color: var(--accent); background: rgba(255, 30, 0, .12); outline: none; }

@media (max-width: 860px) {
  .f1-ov { grid-template-columns: minmax(0, 1fr); }
  .f1-ov .f1-next { grid-row: auto; }
}
@media (max-width: 700px) {
  .f1-tabwrap { margin-top: 12px; padding: 6px 0; }
  .f1-tabs.f1-tabbar { width: 100%; }
  .f1-tabbar button, .f1-tabbar .f1-tablink { flex: 1 0 auto; justify-content: center; padding: 10px 11px; font-size: 14px; }
  .f1-sub .f1-tabwrap { margin-top: 12px; padding: 6px 0; }
  .f1-sub .f1-tabwrap + .f1-sec { margin-top: 18px; }
  .f1-pane > :first-child { margin-top: 18px; }
  .f1-tabbed .f1-pane .f1-sec + .f1-sec { margin-top: 44px; }
  .f1-mini { padding: 14px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) { .f1-mini-go { transition: none; } }

/* ---------- stickers, fewer words (2026-11-03, the user: "I don't want it
   to be too wordy. Icon more") ----------
   The hub's hero lost its paragraph: five F1 stickers ride along the H1's
   line on the right instead. Every tab of the strip (hub, drivers, teams)
   wears a sticker before its word. */
@keyframes f1ArtBob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-6px) rotate(calc(var(--r, 0deg) * -1)); } }
.f1-tabbar button, .f1-tabbar .f1-tablink { display: inline-flex; align-items: center; gap: 7px; }
.f1-tabbar .f1-tab-ic { width: 20px; height: 20px; flex: none; transition: transform .2s; }
.f1-tabbar :is(button[aria-selected="true"], .f1-tablink[aria-current="page"]) .f1-tab-ic { transform: scale(1.12) rotate(-6deg); }
@media (max-width: 700px) {
  .f1-tabbar button, .f1-tabbar .f1-tablink { gap: 5px; }
  .f1-tabbar .f1-tab-ic { width: 18px; height: 18px; }
}

/* =====================================================================
   "Your driver" (2026-11-09, phase 24; the user: "Go all out. Make the page
   innovative. Clean up the UX/UI"; plan ~/.claude/plans/f1-redesign-your-driver.md,
   brief .impeccable/surfaces/chamiz-maliwikis-f1-index-html.md (written before F1 left MaliWikis)).
   The hub is about the driver you follow: a rail of up to three, their
   team's colour (--team, set by f1.js) on the livery card, the pinned row
   and the lit chip; the weekend card's five start lights fill as the next
   session nears and go out when it starts. Black ground, #0f0f10 / #18181a
   panels with hairlines, F1 red for live, next and the main action.
   Chakra Petch for numbers, upright: no slanted Thai anywhere in the section.
   ===================================================================== */

/* the whole section: upright headings, themed browser parts */
:root:root:root body[data-wsec="f1"] .wk :is(h1, h2, h3) { font-style: normal; }
body[data-wsec="f1"] ::selection { background: rgba(255, 30, 0, .45); color: #fff; }
body[data-wsec="f1"] { scrollbar-color: #3a3a3e #000; accent-color: #FF1E00; caret-color: #FF1E00; }
body[data-wsec="f1"] .wk :focus-visible { outline: 2px solid #FF1E00; outline-offset: 2px; }
.f1-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.f1-yd {
  --s1: #0f0f10; --s2: #18181a; --ln: rgba(255, 255, 255, .08); --ln2: rgba(255, 255, 255, .14);
  --mu: #9a9aa3; --red: #FF1E00; --gold: #E8B23A; --team: #FF1E00;
  --deep: color-mix(in srgb, var(--team) 52%, #000);
  --num: "Chakra Petch", "SukhumvitSet", Inter, sans-serif;
  padding-top: 18px;
}
.f1-yd .f1-wait, .f1-yd .f1-err { border-radius: 20px; }

/* buttons */
.f1-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--red, #FF1E00); color: #111; font: 700 14.5px/1.2 var(--sp-display, inherit); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s cubic-bezier(.22, 1, .36, 1); }
.f1-btn:hover { background: #FF4A33; }
.f1-btn:active { transform: scale(.97); }
.f1-btn.is-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--ln2, rgba(255, 255, 255, .14)); }
.f1-btn.is-ghost:hover { background: rgba(255, 255, 255, .06); }

/* ---------- the title row ---------- */
.f1-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.f1-top h1 { margin: 0; font: 700 clamp(34px, 5vw, 56px)/1 var(--num); letter-spacing: -.01em; text-transform: none; }
.f1-yr { color: var(--red); }
.f1-top-l { margin: 8px 0 0; font-size: 15px; color: var(--mu); }
.f1-season { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 6px; margin: 0; min-width: 132px; font-size: 13px; color: var(--mu); }
.f1-season b { font: 700 24px/1 var(--num); color: #fff; font-variant-numeric: tabular-nums; }
.f1-season > i { grid-column: 1 / -1; display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--s2); overflow: hidden; }
.f1-season > i > i { display: block; height: 100%; border-radius: 2px; background: var(--red); }

/* ---------- the driver rail ---------- */
.f1-rail { display: flex; gap: 8px; margin: 18px -24px 0; padding: 2px 24px 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.f1-rail::-webkit-scrollbar { display: none; }
.f1-rail:empty { display: none; }
.f1-chipd { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 6px; border-radius: 23px;
  border: 1px solid var(--ln); background: var(--s1); color: #fff; font: 700 14px/1 var(--num); letter-spacing: .03em; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s cubic-bezier(.22, 1, .36, 1); }
.f1-chipd:hover { border-color: var(--ln2); }
.f1-chipd:active { transform: scale(.96); }
.f1-chipd .f1-face-chip { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--tc); }
.f1-chipd.is-on { background: color-mix(in srgb, var(--tc) 52%, #000); border-color: color-mix(in srgb, var(--tc) 70%, #000); }
.f1-chipd.is-add { padding: 0 16px 0 12px; color: var(--mu); font: 600 14px/1 var(--sp-display, inherit); letter-spacing: 0; border-style: dashed; }
.f1-chipd.is-add:hover, .f1-chipd.is-add[aria-expanded="true"] { color: #fff; border-color: var(--red); }

/* the picker under the rail */
.f1-pick { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--s1); border: 1px solid var(--ln); }
.f1-pick[hidden] { display: none; }
.f1-pick-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.f1-pick-h p { margin: 0; display: grid; gap: 2px; }
.f1-pick-h b { font: 700 17px/1.3 var(--sp-display, inherit); }
.f1-pick-h small { font-size: 13px; color: var(--mu); }
.f1-pick-msg { margin: 8px 0 0; min-height: 0; font-size: 13.5px; color: #FF6B57; }
.f1-pick-msg:empty { display: none; }
.f1-pick-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px 18px; margin-top: 14px; }
.f1-pick-tn { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 12.5px/1.2 var(--sp-display, inherit); color: var(--mu); }
.f1-pick-tn .f1-bar { height: 14px; width: 4px; }
.f1-pick-d { display: grid; grid-template-columns: 40px minmax(0, 1fr) 26px; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 4px; padding: 6px 10px 6px 6px;
  border-radius: 16px; border: 1px solid transparent; background: var(--s2); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.f1-pick-d .f1-face-sm { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--tc); }
.f1-pick-d span { display: grid; min-width: 0; }
.f1-pick-d b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1-pick-d small { font-size: 12px; color: var(--mu); }
.f1-pick-ck { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ln2); color: transparent; transition: background-color .2s, color .2s; }
.f1-pick-ck .f1-ic { width: 15px; height: 15px; stroke-width: 3; }
.f1-pick-d[aria-pressed="true"] { border-color: color-mix(in srgb, var(--tc) 70%, transparent); background: color-mix(in srgb, var(--tc) 16%, var(--s2)); }
.f1-pick-d[aria-pressed="true"] .f1-pick-ck { background: var(--red); box-shadow: none; color: #111; }
.f1-pick-more { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 16px 0 0; }
.f1-pick-more a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: #fff; font-weight: 600; text-decoration: none; }
.f1-pick-more a .f1-ic { color: var(--red); }

/* ---------- the 5-way control ---------- */
.f1-yd .f1-tabwrap { margin-top: 14px; padding: 8px 0; }
.f1-yd .f1-tabwrap::after { display: none; }
.f1-yd .f1-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 640px; gap: 0; padding: 4px; overflow: visible;
  border-radius: 20px; background: var(--s1); border: 1px solid var(--ln); }
.f1-yd .f1-seg button { display: grid; justify-items: center; gap: 3px; min-height: 52px; padding: 7px 4px 6px; border-radius: 16px;
  font: 600 13px/1.2 var(--sp-display, inherit); font-style: normal; color: var(--mu); white-space: nowrap; }
.f1-yd .f1-seg button[aria-selected="true"] { color: #fff; }
.f1-yd .f1-seg .f1-tab-ic { width: 22px; height: 22px; opacity: .72; transition: opacity .2s, transform .2s; }
.f1-yd .f1-seg button[aria-selected="true"] .f1-tab-ic { opacity: 1; transform: none; }
.f1-yd .f1-seg .f1-tab-pill { top: 4px; bottom: 4px; border-radius: 16px; background: var(--s2); box-shadow: inset 0 -2px 0 var(--red); }

/* panels */
.f1-yd .f1-pane > :first-child { margin-top: 14px; }
.f1-yd .f1-sec { margin-top: 0; }
.f1-yd .f1-pane .f1-sec + .f1-sec, .f1-yd .f1-ov + .f1-sec { margin-top: 44px; }
.f1-yd .f1-sec-h { margin-bottom: 14px; }
.f1-yd .f1-sec-h h2 { padding: 0; font: 700 clamp(22px, 2.6vw, 28px)/1.25 var(--sp-display, inherit); }
.f1-yd .f1-sec-h h2::before { display: none; }

/* ---------- Overview ---------- */
.f1-yd .f1-ov { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.f1-ov-a { display: grid; gap: 14px; align-content: start; }
.f1-yd .f1-ov .f1-next { margin: 0; max-width: none; }

/* the livery card */
.f1-mec { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 236px; padding: 20px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(125deg, color-mix(in srgb, var(--tc) 58%, #000) 0%, color-mix(in srgb, var(--tc) 30%, #050505) 52%, #050505 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 40%, transparent), 0 24px 48px -30px color-mix(in srgb, var(--tc) 80%, #000); }
.f1-mec-pic { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 46%; }
.f1-face-me { position: absolute; inset: 0; border-radius: 0; background: transparent; -webkit-mask: linear-gradient(90deg, transparent, #000 55%); mask: linear-gradient(90deg, transparent, #000 55%); }
.f1-face-me b { display: none; }
.f1-face-me img { object-position: 50% 16%; }
.f1-mec-no { position: absolute; right: 10px; bottom: -14px; font: 700 128px/1 var(--num); color: rgba(255, 255, 255, .1); letter-spacing: -.04em; }
.f1-mec-main { display: grid; align-content: start; gap: 4px; }
.f1-mec-name, .f1-mec-sub { max-width: 64%; }
.f1-mec-name { margin: 0; font: 600 18px/1.15 var(--sp-display, inherit); }
.f1-mec-open { padding: 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.f1-mec-open::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.f1-mec-open b { display: block; font: 700 clamp(28px, 4vw, 38px)/1.05 var(--num); text-transform: uppercase; letter-spacing: .01em; }
.f1-mec-sub { margin: 2px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.f1-mec-sub .f1-thai { margin-left: 4px; }
.f1-mec-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.f1-mec-p { margin: 0; font: 700 64px/.86 var(--num); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.f1-mec-st { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 16px; margin: 0; }
.f1-mec-st div { min-width: 0; }
.f1-mec-st dt { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.f1-mec-st dd { margin: 0; font: 700 17px/1.15 var(--num); font-variant-numeric: tabular-nums; }
.f1-mec-form { margin-top: 14px; }
.f1-mec-form p { margin: 0 0 6px; font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.f1-mec-form ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.f1-mec-form li { display: grid; justify-items: center; align-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.f1-mec-form li b { font: 700 16px/1 var(--num); }
.f1-mec-form li small { margin-top: 3px; font: 600 9.5px/1 var(--num); color: rgba(255, 255, 255, .62); }
.f1-mec-form li.is-win { background: var(--gold); color: #111; }
.f1-mec-form li.is-win small { color: rgba(17, 17, 17, .7); }
.f1-mec-form li.is-pod { background: rgba(255, 255, 255, .9); color: #111; }
.f1-mec-form li.is-pod small { color: rgba(17, 17, 17, .66); }
.f1-mec-form li.is-out b { font-size: 11px; color: #FF8A7A; }
.f1-mec-hint { margin: 12px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.f1-mec :is(.f1-mec-form, .f1-mec-hint, .f1-mec-row, .f1-mec-sub) { position: relative; z-index: 1; pointer-events: none; }

/* the weekend card */
.f1-wk { position: relative; padding: 18px 18px 16px; border-radius: 24px; background: var(--s1); border: 1px solid var(--ln); }
.f1-wk.is-live { border-color: rgba(255, 30, 0, .5); }
.f1-wk-h { display: grid; gap: 2px; }
.f1-wk-name { margin: 0; font: 700 20px/1.3 var(--sp-display, inherit); }
.f1-wk-where { margin: 0; font-size: 13.5px; color: var(--mu); }
.f1-wk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.f1-yd .f1-chip { padding: 4px 10px; border-radius: 999px; background: var(--s2); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.f1-yd .f1-chip.is-spr { background: rgba(255, 30, 0, .16); color: #FF7A66; }
/* the start lights: five pods; .on is lit; .is-in = first drawing (they come on one by one); .is-new = lit since the last drawing; .is-goout = all go out */
.f1-lt { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; padding: 8px; border-radius: 18px; background: #050505; box-shadow: inset 0 0 0 1px var(--ln); }
.f1-lt i { height: 28px; border-radius: 14px; background: #2a0c07; box-shadow: inset 0 0 0 1px rgba(255, 30, 0, .22); }
.f1-lt i.on { background: radial-gradient(circle at 50% 38%, #ff7a5c, #FF1E00 58%, #c41500); box-shadow: 0 0 16px rgba(255, 30, 0, .55), inset 0 0 0 1px rgba(255, 140, 110, .5); }
.f1-lt.is-in i.on, .f1-lt i.on.is-new { animation: f1LtOn .16s cubic-bezier(.22, 1, .36, 1) calc(var(--n) * 70ms) backwards; }
.f1-lt.is-goout i { animation: f1LtOff .26s ease-out backwards; }
@keyframes f1LtOn { from { opacity: .2; transform: scale(.82); box-shadow: none; } }
@keyframes f1LtOff { from { background: #FF1E00; box-shadow: 0 0 16px rgba(255, 30, 0, .55); } }
.f1-wk-live { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 16px/1.3 var(--sp-display, inherit); }
.f1-yd .f1-cd { margin: 0 0 12px; }
.f1-yd .f1-cd-k { margin: 0 0 4px; font-size: 13px; color: var(--mu); }
.f1-yd .f1-cd-n { display: flex; gap: 14px; }
.f1-yd .f1-cd-n span { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; padding: 0; border: 0; background: none; font-size: 12px; color: var(--mu); text-transform: none; letter-spacing: 0; }
.f1-yd .f1-cd-n b { font: 700 30px/1 var(--num); color: #fff; font-variant-numeric: tabular-nums; }
.f1-yd .f1-sess li { grid-template-columns: minmax(0, 1fr) auto 50px 60px; padding: 8px 10px; border-radius: 12px; }
.f1-yd .f1-sess li:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.f1-yd .f1-sess .is-race .f1-s-n { color: var(--red); }
.f1-yd .f1-s-t { font-family: var(--num); }
.f1-wk-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.f1-wk-pod { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.f1-wk-pod li { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 16px; background: var(--s2); }
.f1-wk-pod .f1-face-sm { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--tc); }
.f1-wk-pp { font: 700 16px/1 var(--num); text-align: center; }
.f1-wk-pod .is-p1 .f1-wk-pp { color: var(--gold); }
.f1-wk-pn { display: grid; min-width: 0; }
.f1-wk-pn small { font-size: 12px; color: var(--mu); }
.f1-wk-pt { font: 700 15px/1 var(--num); color: var(--mu); }
.f1-wk-nx { margin: 12px 0 0; font-size: 13.5px; color: var(--mu); }
.f1-wk-nx b { color: #fff; }

/* the tower (standings, and its top on Overview) */
.f1-tw { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; border-radius: 22px; background: var(--s1); border: 1px solid var(--ln); }
.f1-tr-b { position: relative; display: grid; grid-template-columns: 28px 4px 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 7px 12px 7px 6px;
  border: 0; border-radius: 18px; background: transparent; color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.f1-tr-b:hover { background: rgba(255, 255, 255, .04); }
.f1-tr-p { font: 700 17px/1 var(--num); text-align: center; font-variant-numeric: tabular-nums; }
.f1-tw > li:first-child .f1-tr-p { color: var(--gold); }
.f1-tr-bar { width: 4px; height: 26px; border-radius: 2px; background: var(--tc); }
.f1-tr-b .f1-face-sm { width: 36px; height: 36px; }
.f1-tr-b .f1-logo-sm { width: 36px; height: 26px; padding: 3px 4px; border-radius: 7px; }
.f1-tr-n { display: grid; gap: 1px; min-width: 0; }
.f1-tr-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.f1-tr-n small { font-size: 12px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1-tr-n .f1-thai { font-size: 10.5px; padding: 1px 6px 1px 3px; }
.f1-tr-n .f1-meter { width: 100%; max-width: 220px; height: 4px; margin-top: 4px; }
.f1-tr-v { display: grid; justify-items: end; gap: 2px; }
.f1-tr-v b { font: 700 17px/1 var(--num); font-variant-numeric: tabular-nums; }
.f1-tr-v small { font-size: 11.5px; color: var(--mu); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f1-tr.is-gone { opacity: .5; }
.f1-tr.is-fav .f1-tr-b { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 45%, transparent); }
/* your driver: lit in their colour, and pinned to the screen's edge while their place is off it */
.f1-tr.is-me .f1-tr-b { background: color-mix(in srgb, var(--tc) 52%, #000); }
.f1-tw:not(.is-mini) .f1-tr.is-me { position: sticky; z-index: 2; top: calc(var(--f1-stick) + 76px); bottom: 12px; border-radius: 18px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .9); }
html.has-bottomnav.has-tabs .f1-tw:not(.is-mini) .f1-tr.is-me { bottom: calc(var(--bn-top, 70px) + 8px); }
.f1-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; scroll-margin-top: calc(var(--f1-stick) + 84px); }
.f1-yd .f1-ctl .f1-tabs { margin: 0; background: var(--s1); border-color: var(--ln); }
.f1-yd .f1-ctl .f1-tabs button { min-height: 40px; font-style: normal; }
.f1-yd .f1-ctl .f1-tab-pill { background: var(--s2); box-shadow: inset 0 -2px 0 var(--red); }
.f1-yd .f1-ctl .f1-tabs button[aria-selected="true"] { color: #fff; }
.f1-oddsT { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--ln); background: var(--s1); color: var(--mu); font: 600 14px/1 var(--sp-display, inherit); cursor: pointer; }
.f1-oddsT[hidden] { display: none; }
.f1-oddsT-sw { position: relative; width: 36px; height: 22px; border-radius: 11px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln2); transition: background-color .2s; }
.f1-oddsT-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.f1-oddsT[aria-pressed="true"] { color: #fff; border-color: rgba(255, 30, 0, .5); }
.f1-oddsT[aria-pressed="true"] .f1-oddsT-sw { background: var(--red); box-shadow: none; }
.f1-oddsT[aria-pressed="true"] .f1-oddsT-sw::after { transform: translateX(14px); }
.f1-oddsLeft { margin: -4px 0 10px; }
.f1-odds-note { margin-top: 12px; font-size: 13.5px; color: var(--mu); }
.f1-odds-note summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #fff; font-weight: 600; }
.f1-odds-note p { margin: 0; max-width: 68ch; line-height: 1.7; }
.f1-yd .f1-champ { margin-bottom: 10px; }
.f1-yd .f1-panel > .f1-tw { margin-top: 0; }

/* Overview's top of the tower */
.f1-yd .f1-mini { padding: 0; border: 0; background: none; }
.f1-yd .f1-mini-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 4px 10px; }
.f1-yd .f1-mini-h h2 { margin: 0; font: 700 18px/1.3 var(--sp-display, inherit); }
.f1-yd .f1-mini-h small { font-size: 12.5px; color: var(--mu); }
.f1-yd .f1-mini-go { width: 100%; margin-top: 10px; }

/* Overview: the season as one line */
.f1-strip-a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 10px; padding: 16px 18px 18px; border-radius: 22px; background: var(--s1); border: 1px solid var(--ln); color: #fff; text-decoration: none; transition: border-color .2s; }
.f1-strip-a:hover { border-color: var(--ln2); }
.f1-strip-h { display: grid; gap: 2px; min-width: 0; }
.f1-strip-h b { font: 700 16px/1.3 var(--sp-display, inherit); }
.f1-strip-h small { font-size: 13px; color: var(--mu); }
.f1-strip-go { display: inline-flex; align-items: center; gap: 2px; align-self: start; min-height: 32px; font-weight: 600; font-size: 14px; }
.f1-strip-go .f1-ic { color: var(--red); }
.f1-strip-l { grid-column: 1 / -1; position: relative; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: center; height: 20px; }
.f1-strip-l::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--s2); }
.f1-strip-l li { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 2px #3a3a3e; }
.f1-strip-l li:is(.is-won, .is-wait) { background: var(--tc, #6b6b70); box-shadow: none; }
.f1-strip-l li.is-next, .f1-strip-l li.is-live { width: 14px; height: 14px; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 30, 0, .22); }

/* ---------- the calendar: a track of stops ---------- */
.f1-trk { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f1-trk::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--s2); }
.f1-st { position: relative; }
.f1-st-b { display: grid; grid-template-columns: 16px 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px 12px 8px 14px;
  border: 1px solid transparent; border-radius: 18px; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s; }
.f1-st-b:hover { background: rgba(255, 255, 255, .03); }
.f1-st-b[aria-expanded="true"] { background: var(--s1); border-color: var(--ln); border-radius: 18px 18px 0 0; }
.f1-st-dot { position: relative; z-index: 1; justify-self: center; width: 12px; height: 12px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #3a3a3e; }
.f1-st.is-won .f1-st-dot, .f1-st.is-wait .f1-st-dot { background: var(--tc, #6b6b70); box-shadow: 0 0 0 3px #000; }
.f1-st.is-next .f1-st-dot, .f1-st.is-live .f1-st-dot { width: 16px; height: 16px; background: var(--red); box-shadow: 0 0 0 3px #000, 0 0 0 7px rgba(255, 30, 0, .22); }
.f1-st-r { font: 700 13px/1 var(--num); color: var(--mu); }
.f1-st.is-next .f1-st-r, .f1-st.is-live .f1-st-r { color: var(--red); }
.f1-st-n { display: grid; gap: 2px; min-width: 0; }
.f1-st-n b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1-st-n small { font-size: 12.5px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1-st-x { display: grid; justify-items: end; gap: 3px; }
.f1-st-b > .f1-ic { color: var(--mu); transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.f1-st-b[aria-expanded="true"] > .f1-ic { transform: rotate(90deg); color: #fff; }
.f1-st.is-soon .f1-st-n b { color: rgba(255, 255, 255, .86); }
.f1-yd .f1-st .f1-caldet { margin: 0; }
.f1-yd .f1-st .f1-cdx { margin: 0; padding: 4px 16px 16px; border: 1px solid var(--ln); border-top: 0; border-radius: 0 0 18px 18px; background: var(--s1); box-shadow: none; }
.f1-yd .f1-st .f1-cdx::before { display: none; }
.f1-yd .f1-cdx-where { margin: 0 0 12px; font-size: 13.5px; color: var(--mu); }
.f1-yd .f1-cdx-where a { color: #fff; }
.f1-yd .f1-cdx-grid { gap: 16px 22px; }
.f1-yd .f1-cdx-h { font-size: 12.5px; color: var(--mu); }

/* results: your drivers' rows */
.f1-yd .f1-rtbl tr.is-me { background: color-mix(in srgb, var(--tc) 30%, #000) !important; }
.f1-yd .f1-rtop li.is-me { box-shadow: 0 0 0 2px var(--tc); }

/* the driver card: follow */
.f1-dc-fol { justify-self: start; margin-top: 4px; }
.f1-dc-fol.is-ghost .f1-ic { color: var(--red, #FF1E00); }

/* the source note: one line, the rest behind it */
.f1-yd ~ * .f1-src, .f1-src { margin: 36px 0 0; font-size: 13px; color: var(--muted); }
details.f1-src summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; min-height: 44px; cursor: pointer; list-style: none; }
details.f1-src summary::-webkit-details-marker, .f1-odds-note summary::-webkit-details-marker { display: none; }
.f1-odds-note summary { list-style: none; }
details.f1-src summary::after, .f1-odds-note summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
details.f1-src[open] summary::after, .f1-odds-note[open] summary::after { transform: translateY(1px) rotate(-135deg); }
details.f1-src p { margin: 6px 0 0; max-width: 72ch; line-height: 1.7; }

/* ---------- wide screens: two columns ---------- */
@media (min-width: 980px) {
  .f1-yd .f1-ov { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 18px 22px; align-items: start; }
  .f1-yd .f1-strip { grid-column: 1 / -1; }
  .f1-mec { min-height: 270px; padding: 24px; }
  .f1-mec-p { font-size: 76px; }
  .f1-mec-st { grid-template-columns: repeat(3, auto); }
}
@media (min-width: 701px) { .f1-rail { margin: 22px 0 0; padding: 2px 0 4px; flex-wrap: wrap; overflow: visible; } }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .f1-yd { padding-top: 10px; }
  .f1-rail { margin: 14px -16px 0; padding: 2px 16px 4px; }
  .f1-top { align-items: center; }
  .f1-top h1 { font-size: 38px; }
  .f1-top-l { margin-top: 6px; font-size: 14px; }
  .f1-season { min-width: 96px; }
  .f1-season b { font-size: 20px; }
  .f1-yd .f1-tabwrap { margin-top: 10px; padding: 6px 0; }
  .f1-yd .f1-seg button { font-size: 12.5px; min-height: 50px; }
  .f1-mec { min-height: 0; padding: 16px; border-radius: 22px; }
  .f1-mec-pic { width: 50%; }
  .f1-mec-name, .f1-mec-sub { max-width: 70%; }
  .f1-mec-p { font-size: 54px; }
  .f1-mec-st { gap: 3px 12px; }
  .f1-mec-st dd { font-size: 15px; }
  .f1-mec-no { font-size: 104px; }
  .f1-mec-form li { width: 42px; height: 42px; }
  .f1-wk { padding: 16px 14px 14px; border-radius: 22px; }
  .f1-wk-name { font-size: 18px; }
  .f1-lt { gap: 6px; padding: 7px; }
  .f1-lt i { height: 24px; }
  .f1-yd .f1-cd-n b { font-size: 26px; }
  .f1-yd .f1-sess li { grid-template-columns: minmax(0, 1fr) auto 46px; }
  .f1-yd .f1-mini .f1-tw > li:nth-child(n+6):not(.is-me) { display: none; }
  .f1-tr-b { grid-template-columns: 24px 4px 34px minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px 6px 4px; }
  .f1-tr-b .f1-face-sm { width: 34px; height: 34px; }
  .f1-st-b { grid-template-columns: 16px 30px minmax(0, 1fr) auto 16px; gap: 8px; padding: 8px 8px 8px 14px; }
  .f1-yd .f1-st .f1-cdx { padding: 2px 12px 14px; }
  .f1-pick { margin: 12px -4px 0; padding: 14px 12px; }
  .f1-pick-g { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .f1-yd .f1-seg button { font-size: 11.5px; padding-inline: 2px; }
  .f1-mec-name, .f1-mec-sub { max-width: 76%; }
}
@media (prefers-reduced-motion: reduce) {
  .f1-lt.is-in i.on, .f1-lt i.on.is-new, .f1-lt.is-goout i { animation: none; }
  .f1-chipd, .f1-btn, .f1-oddsT-sw::after, .f1-st-b > .f1-ic, .f1-pick-d, .f1-pick-ck, .f1-tr-b { transition: none; }
}

/* phase 24 polish: the sprint mark is a small chip, the champion's name upright */
.f1-yd .f1-st-x .f1-spr { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; line-height: 1.5; color: #FF7A66; background: rgba(255, 30, 0, .14); }
.f1-yd .f1-champ b { font-style: normal; }
.f1-yd .f1-champ-k { color: #FF7A66; }
.f1-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (max-width: 480px) { .f1-more { gap: 8px; } .f1-more a { padding: 0 12px; font-size: 14px; gap: 6px; } }
.f1-more a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; border-radius: 18px; background: var(--s1, #0f0f10); border: 1px solid var(--ln, #26262a); color: #fff; font-weight: 600; text-decoration: none; transition: border-color .2s; }
.f1-more a:hover { border-color: var(--ln2, #3a3a3e); }
.f1-more a::after { content: ""; width: 7px; height: 7px; border: solid var(--red, #ff1e00); border-width: 2px 2px 0 0; transform: rotate(45deg); }
@media (min-width: 980px) { .f1-yd .f1-more { grid-column: 1 / -1; } }

/* ==========================================================================
   Phase 25 (2026-11-09): the drivers, teams and New to F1 pages in the hub's
   world. One four-way control (links), the hub's title row, livery cards.
   ========================================================================== */
.f1-art { --s1: #0f0f10; --s2: #18181a; --ln: rgba(255, 255, 255, .08); --ln2: rgba(255, 255, 255, .14); --mu: #9a9aa3; --red: #FF1E00; }

/* the title row on a sub page: crumbs, then the H1 */
.f1-top-sub .wk-crumbs { margin: 0 0 14px; }
.f1-top-sub h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; }

/* the four-way control (links): the hub's segmented look, static lit state */
:is(.f1-yd, .f1-art) .f1-tabwrap { margin-top: 18px; padding: 8px 0; }
:is(.f1-yd, .f1-art) .f1-tabwrap::after { display: none; }
:is(.f1-yd, .f1-art) .f1-seg4 { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); width: 100%; max-width: calc(var(--n, 4) * 140px); gap: 0; padding: 4px; overflow: visible;
  border-radius: 20px; background: var(--s1); border: 1px solid var(--ln); }
:is(.f1-yd, .f1-art) .f1-seg4 .f1-tablink { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; padding: 7px 4px 6px; border-radius: 16px;
  font: 600 13px/1.2 var(--sp-display, inherit); font-style: normal; color: var(--mu); white-space: nowrap; background: none; box-shadow: none; text-decoration: none; transition: color .2s, background-color .2s; }
:is(.f1-yd, .f1-art) .f1-seg4 .f1-tablink:hover { color: #fff; }
:is(.f1-yd, .f1-art) .f1-seg4 .f1-tablink[aria-current="page"] { color: #fff; background: var(--s2); box-shadow: inset 0 -2px 0 var(--red); }
:is(.f1-yd, .f1-art) .f1-seg4 .f1-tab-ic { width: 22px; height: 22px; opacity: .72; transform: none; }
:is(.f1-yd, .f1-art) .f1-seg4 .f1-tablink[aria-current="page"] .f1-tab-ic { opacity: 1; transform: none; }
.f1-art .f1-tabwrap { margin: 4px 0 22px; }

/* the drivers page: a search box and the order switch on one row */
.f1-dv-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.f1-find { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 24px; background: var(--s1); border: 1px solid var(--ln); color: var(--mu); transition: border-color .2s; }
.f1-find:focus-within { border-color: var(--red); color: #fff; }
.f1-yd .f1-find input { -webkit-appearance: none; appearance: none; padding: 0; border-radius: 0; box-shadow: none; flex: 1; min-width: 0; height: 46px; border: 0; background: none; color: #fff; font: 500 16px/1.2 inherit; font-family: inherit; outline: none; }
.f1-find input::placeholder { color: var(--mu); }
.f1-find input::-webkit-search-cancel-button { filter: invert(1) grayscale(1); }
.f1-yd .f1-dv-ctl .f1-tabs { flex: none; margin: 0; background: var(--s1); border-color: var(--ln); }
.f1-yd .f1-dv-ctl .f1-tabs button { min-height: 40px; font-style: normal; }
.f1-yd .f1-dv-ctl .f1-tab-pill { background: var(--s2); box-shadow: inset 0 -2px 0 var(--red); }
.f1-yd .f1-dv-ctl .f1-tabs button[aria-selected="true"] { color: #fff; }
.f1-yd #drivers .f1-round { margin: 0 0 14px; }
.f1-none { margin: 8px 0 0; padding: 22px 18px; border-radius: 20px; background: var(--s1); border: 1px dashed var(--ln2); color: var(--mu); text-align: center; }
.f1-none[hidden], .f1-lv[hidden], .f1-dgt[hidden] { display: none; }

/* livery cards */
.f1-yd .f1-dgrid { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; }
.f1-yd .f1-lv-b { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 150px auto auto; align-items: end; justify-items: stretch; gap: 0; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 22px; overflow: hidden; isolation: isolate; text-align: left; color: #fff; cursor: pointer;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 55%, #000) 0%, color-mix(in srgb, var(--tc) 22%, #070707) 48%, #0b0b0c 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 34%, transparent); transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s; }
.f1-yd .f1-lv-b::before, .f1-yd .f1-lv-b::after { display: none; }
.f1-yd .f1-lv-b:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 70%, transparent), 0 18px 34px -20px color-mix(in srgb, var(--tc) 80%, #000); }
.f1-lv-pic { grid-row: 1; grid-column: 1; position: relative; align-self: stretch; z-index: -1; }
.f1-face-lv { position: absolute; top: 0; right: 0; bottom: 0; width: 72%; border-radius: 0; background: transparent; box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 98%); mask-image: linear-gradient(180deg, #000 58%, transparent 98%); }
.f1-face-lv img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; border-radius: 0; }
.f1-face-lv b { display: grid; place-items: center; width: 100%; height: 100%; font: 700 40px/1 var(--num); color: rgba(255, 255, 255, .5); }
.f1-yd .f1-lv-no { position: absolute; z-index: -1; left: 12px; top: 30px; padding: 0; border-radius: 0; background: none; text-shadow: none;
  font: 700 76px/1 var(--num); color: rgba(255, 255, 255, .12); letter-spacing: -.04em; }
.f1-yd .f1-lv-pos { position: absolute; left: 14px; top: 14px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font: 700 13px/1 var(--num); color: #fff; }
.f1-lv-fol { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #111; }
.f1-lv-fol .f1-ic { width: 15px; height: 15px; stroke-width: 3; }
.f1-lv-b > .f1-lv-fol { position: absolute; right: 12px; top: 12px; }
.f1-yd .f1-lv-main { grid-row: 2; display: grid; gap: 3px; padding: 4px 16px 0; }
.f1-yd .f1-lv-main .f1-dg-name { font: 600 13.5px/1.25 var(--sp-display, inherit); color: rgba(255, 255, 255, .86); }
.f1-yd .f1-lv-main .f1-dg-name span { display: block; font: 700 21px/1.1 var(--num); font-style: normal; text-transform: uppercase; letter-spacing: .01em; color: #fff; overflow-wrap: anywhere; }
.f1-yd .f1-lv-main small { font-size: 12.5px; color: rgba(255, 255, 255, .66); }
.f1-yd .f1-lv-main .f1-thai { justify-self: start; margin: 4px 0 0; }
.f1-yd .f1-lv-st { grid-row: 3; grid-column: 1; width: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 16px 14px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; color: rgba(255, 255, 255, .66); }
.f1-yd .f1-lv-st b { font: 700 22px/1 var(--num); font-style: normal; color: #fff; font-variant-numeric: tabular-nums; }
.f1-yd .f1-lv.is-mine .f1-lv-b { box-shadow: inset 0 0 0 2px var(--red); }
.f1-yd .f1-lv.is-out .f1-lv-b { opacity: .55; }
.f1-yd .f1-dgt + .f1-dgt { margin-top: 28px; }
.f1-yd .f1-dgt-h { font: 700 19px/1.2 var(--num); font-style: normal; }
.f1-yd .f1-dgt-h a { color: #fff; }

/* livery bands: the teams page */
.f1-yd .f1-teams { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.f1-yd .f1-team { padding: 0 0 14px; border: 0; border-radius: 24px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.f1-yd .f1-team::before { inset: 0; height: auto; background: linear-gradient(170deg, color-mix(in srgb, var(--tc) 46%, #000) 0, color-mix(in srgb, var(--tc) 14%, var(--s1)) 120px, var(--s1) 200px); z-index: 0; }
.f1-yd .f1-team::after { display: none; }
.f1-yd .f1-team:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 50%, transparent), 0 18px 36px -22px color-mix(in srgb, var(--tc) 70%, #000); }
.f1-yd .f1-team:hover::before { height: auto; }
.f1-yd .f1-team > * { position: relative; z-index: 1; }
.f1-yd .f1-team-h { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo pos pts" "logo name pts" "logo gap gap"; align-items: center; gap: 2px 14px; padding: 18px 18px 6px; }
.f1-yd .f1-team-h .f1-logo { grid-area: logo; }
.f1-yd .f1-team-pos { grid-area: pos; font: 700 12.5px/1 var(--num); font-style: normal; color: rgba(255, 255, 255, .7); }
.f1-yd .f1-team-pts { align-self: start; }
.f1-yd .f1-team h3 { grid-area: name; font: 700 22px/1.15 var(--num); font-style: normal; }
.f1-yd .f1-team-pts { grid-area: pts; color: rgba(255, 255, 255, .7); }
.f1-yd .f1-team-pts b { font: 700 22px/1 var(--num); font-style: normal; color: #fff; }
.f1-team-gap { grid-area: gap; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.f1-yd .f1-team-blurb { margin: 8px 18px 12px; color: rgba(255, 255, 255, .72); }
.f1-yd .f1-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 18px 12px; padding: 12px 0; border-color: var(--ln); }
.f1-yd .f1-facts dd { font-size: 13.5px; }
.f1-yd .f1-drivers { display: grid; gap: 6px; padding: 0 10px; }
.f1-yd .f1-drv { background: var(--s2); border-radius: 18px; min-height: 64px; }
.f1-yd .f1-drv.is-mine { box-shadow: inset 0 0 0 2px var(--red); }
.f1-yd .f1-drv-st { grid-auto-flow: row; }
.f1-yd .f1-drv-st .f1-lv-fol { width: 22px; height: 22px; justify-self: end; }
.f1-yd .f1-drv-st b, .f1-yd .f1-drv-no { font-style: normal; font-family: var(--num); }

@media (max-width: 700px) {
  .f1-yd .f1-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .f1-yd .f1-lv-b { grid-template-rows: 124px auto auto; border-radius: 20px; }
  .f1-yd .f1-lv-no { font-size: 60px; top: 34px; left: 10px; }
  .f1-yd .f1-lv-main { padding: 2px 12px 0; }
  .f1-yd .f1-lv-main .f1-dg-name span { font-size: 17px; }
  .f1-yd .f1-lv-st { margin: 10px 12px 12px; flex-wrap: wrap; gap: 2px 8px; }
  .f1-yd .f1-lv-st b { font-size: 19px; }
  .f1-yd .f1-teams { grid-template-columns: minmax(0, 1fr); }
  .f1-yd .f1-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(.f1-yd, .f1-art) .f1-seg4 .f1-tablink { font-size: 12.5px; min-height: 50px; }
  .f1-find { flex-basis: 100%; }
}
@media (max-width: 360px) { :is(.f1-yd, .f1-art) .f1-seg4 .f1-tablink { font-size: 11.5px; padding-inline: 2px; } }
@media (prefers-reduced-motion: reduce) { .f1-yd .f1-lv-b, .f1-yd .f1-team { transition: none; } }
/* space.css gives every field a fill and border with !important; the box here is the label */
.f1-find #f1DvQ, .f1-find #f1DvQ:focus { background-color: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 0; height: 46px; color: #fff; }
.f1-face-lv { -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 98%), linear-gradient(90deg, transparent, #000 45%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 58%, transparent 98%), linear-gradient(90deg, transparent, #000 45%); mask-composite: intersect; }
/* the predictions' main buttons match .f1-btn: flat F1 red, ink text (5.3:1) */
.f1-yd .f1-pr-btn:not(.is-ghost) { background: var(--red); color: #111 !important; box-shadow: none; }
.f1-yd .f1-pr-btn:not(.is-ghost):hover { background: #FF4A33; }

/* finish review (2026-11-09): on a phone the weekend card's lights reach the first screen */
@media (max-width: 700px) {
  .f1-yd .f1-top-l { margin-top: 4px; font-size: 14px; }
  .f1-yd .f1-rail { margin-top: 12px; }
  .f1-yd .f1-tabwrap { margin-top: 8px; padding: 6px 0; }
  .f1-yd .f1-pane > :first-child { margin-top: 8px; }
  .f1-mec { padding: 14px 16px; }
  .f1-mec-open b { font-size: 26px; }
  .f1-mec-row { margin-top: 8px; gap: 12px; }
  .f1-mec-p { font-size: 46px; }
  .f1-mec-st { grid-template-columns: repeat(3, auto); gap: 2px 12px; }
  .f1-mec-st > div:nth-child(n+4) { display: none; }
  .f1-mec-form { margin-top: 10px; }
  .f1-mec-form p { display: none; }
  .f1-mec-form li { width: 36px; height: 36px; border-radius: 10px; }
  .f1-mec-form li b { font-size: 14px; }
  .f1-mec-form li small { font-size: 8.5px; margin-top: 2px; }
  .f1-mec-no { font-size: 88px; }
}
/* the last-five chips keep a solid box over a dark photo */
.f1-mec-form li { background: #0f0f10; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.f1-nw { white-space: nowrap; }
/* calendar rows: the dates never truncate, only the place does */
.f1-st-n small { display: flex; gap: 6px; min-width: 0; text-overflow: clip; }
.f1-st-loc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1-st-d { flex: none; white-space: nowrap; }
.f1-st-d::before { content: "·"; margin-right: 6px; }
/* no eyebrow labels: plain lines, no tracking (tracked Thai breaks its marks apart) */
.f1-yd .f1-champ b { margin: 0; }
.f1-yd .f1-champ-k { margin: 2px 0 2px; font: 500 13px/1.45 inherit; font-family: inherit; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .72); }
body[data-wsec="f1"] :is(.f1-cdx-h, .f1-cdx-k, .f1-dc-k) { letter-spacing: 0; text-transform: none; }
.f1-yd .f1-team-pos { display: none; }
.f1-yd .f1-team-h { grid-template-areas: "logo name pts" "logo gap gap"; }
/* the calendar's next weekend: the hub's lights, still, and a smaller countdown */
.f1-cdx .f1-lt.is-still { margin: 2px 0 12px; }
.f1-cdx .f1-cd.is-sm .f1-cd-n b { font-size: 26px; }

/* ===== Race replay (2026-11-09, phase 26; f1-replay.js) =====
   desktop: the map and its controls on the left, the order on the right;
   phones: map, controls, then the order (5 rows + yours, "ดูทุกคัน" for the rest) */
.f1-rp-root { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "top top" "map tw" "ctl tw"; gap: 14px; align-items: start; }
.f1-rp-root > .f1-wait { grid-column: 1 / -1; }
.f1-rp-stage { display: contents; }
.f1-rp-top { grid-area: top; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.f1-rp-sel { position: relative; flex: 0 1 460px; min-width: 0; }
.f1-rp-sel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.f1-yd #f1RpSel { width: 100%; min-height: 48px; padding: 0 44px 0 18px; border: 0 !important; border-radius: 999px; appearance: none; -webkit-appearance: none;
  background: var(--s1) !important; box-shadow: inset 0 0 0 1px var(--ln2) !important; color: #fff; font: 600 15px/1.2 var(--num); cursor: pointer; text-overflow: ellipsis; }
.f1-yd #f1RpSel:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.f1-rp-sub { margin: 0; color: var(--mu); font-size: 14px; }

.f1-rp-map { grid-area: map; position: relative; aspect-ratio: var(--ar, 1.5); max-height: 66vh; width: 100%; min-height: 220px; overflow: hidden;
  border-radius: 22px; background: radial-gradient(120% 90% at 50% 40%, #141416, #070708); box-shadow: inset 0 0 0 1px var(--ln); }
.f1-rp-map svg { display: block; width: 100%; height: 100%; }
.f1-rp-trk-b { fill: none; stroke: #232327; stroke-linejoin: round; }
.f1-rp-trk { fill: none; stroke: #5d5d66; stroke-linejoin: round; }
.f1-rp-sf { fill: #fff; }
.f1-rp-dot { fill: var(--c); stroke: #000; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.f1-rp-ring { fill: none; stroke: none; }
.f1-rp-car.is-mine .f1-rp-ring { stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.f1-rp-car.is-on .f1-rp-ring { stroke: var(--red); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.f1-rp-code { display: none; fill: #fff; font-family: var(--num); font-weight: 700; paint-order: stroke; stroke: #000; stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.f1-rp-car:is(.is-mine, .is-on, .is-lead) .f1-rp-code { display: inline; }
.f1-rp-car.is-out { opacity: .35; }
.f1-rp-flag { position: absolute; left: 12px; top: 12px; margin: 0; padding: 6px 12px; border-radius: 999px; font: 700 13px/1.2 var(--num); color: #111; background: #F5C400; }
.f1-rp-flag.is-red { background: var(--red); }
.f1-rp-flag.is-chq { color: #111; background: #fff; }
.f1-rp-lap { position: absolute; right: 12px; top: 12px; margin: 0; padding: 6px 12px; border-radius: 999px; font: 700 13px/1.2 var(--num); color: #fff; background: rgba(0, 0, 0, .62); box-shadow: inset 0 0 0 1px var(--ln2); font-variant-numeric: tabular-nums; }
.f1-rp-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); }
.f1-rp-msg[hidden] { display: none; }
.f1-rp-msg .f1-wait, .f1-rp-msg .f1-err { max-width: 420px; background: var(--s1); text-align: center; }

.f1-rp-tw { grid-area: tw; padding: 10px; border-radius: 22px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.f1-rp-tw-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 8px 8px; }
.f1-rp-tw-h h3 { margin: 0; font: 700 15px/1.2 var(--num); color: #fff; }
.f1-rp-gm { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--s2); color: #fff; font: 600 13px/1.2 var(--num); cursor: pointer; position: relative; }
.f1-rp-gm::after { content: ""; position: absolute; inset: -4px 0; }
.f1-rp-rows { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.f1-rp-r[hidden] { display: none; }
.f1-rp-rb { display: grid; grid-template-columns: 26px 4px 46px minmax(0, 1fr) auto 24px; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px 0 6px;
  border: 0; border-radius: 12px; background: transparent; color: #fff; font: 600 14px/1.2 var(--num); text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.f1-rp-rb:hover { background: rgba(255, 255, 255, .04); }
.f1-rp-rb:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.f1-rp-r.is-on .f1-rp-rb { background: var(--s2); box-shadow: inset 2px 0 0 var(--red); }
.f1-rp-p { text-align: right; color: var(--mu); }
.f1-rp-tc { width: 4px; height: 20px; border-radius: 2px; background: var(--c); }
.f1-rp-c { font-weight: 700; letter-spacing: .02em; }
.f1-rp-r.is-mine .f1-rp-c::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: var(--red); vertical-align: 2px; }
.f1-rp-nm { overflow: hidden; color: var(--mu); font: 500 13px/1.2 inherit; font-family: inherit; white-space: nowrap; text-overflow: ellipsis; visibility: hidden; }
.f1-rp-g { justify-self: end; color: #d8d8de; font-size: 13.5px; }
.f1-rp-g.is-pit { color: #F5C400; }
.f1-rp-g.is-outg { color: var(--mu); }
.f1-rp-ty { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--ty); color: var(--ty); font: 700 11px/1 var(--num); }
.f1-rp-ty[hidden] { visibility: hidden; display: grid; }
.f1-rp-r.is-out { opacity: .45; }
.f1-rp-more { display: none; width: 100%; min-height: 44px; margin-top: 6px; border: 0; border-radius: 12px; background: var(--s2); color: #fff; font: 600 14px/1.2 var(--num); cursor: pointer; }

.f1-rp-ctl { grid-area: ctl; display: grid; gap: 10px; padding: 12px 14px 14px; border-radius: 22px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.f1-rp-bar { position: relative; height: 32px; }
.f1-rp-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 3px; background: #26262b; }
.f1-rp-fill { position: absolute; left: 0; top: 13px; height: 6px; border-radius: 3px; background: #fff; opacity: .55; }
.f1-rp-segs { position: absolute; inset: 0; pointer-events: none; }
.f1-rp-segs i { position: absolute; top: 13px; height: 6px; border-radius: 2px; }
.f1-rp-segs .is-sc, .f1-rp-segs .is-vsc { background: #F5C400; z-index: 1; }
.f1-rp-segs .is-red { background: var(--red); z-index: 1; }
.f1-rp-segs .is-chq, .f1-rp-segs .is-go { top: 8px; width: 2px; height: 16px; margin-left: -1px; background: #fff; border-radius: 1px; opacity: .8; }
.f1-yd #f1RpPos { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; padding: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; cursor: pointer; z-index: 2; }
#f1RpPos::-webkit-slider-runnable-track { height: 32px; background: transparent; }
#f1RpPos::-moz-range-track { height: 32px; background: transparent; }
#f1RpPos::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--red); }
#f1RpPos::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--red); }
#f1RpPos:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--red), 0 0 0 6px rgba(255, 255, 255, .35); }
.f1-rp-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.f1-rp-play { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: var(--red); color: #111; cursor: pointer; }
.f1-rp-play .f1-ic { width: 24px; height: 24px; }
.f1-rp-play .f1-ic path, .f1-btn .f1-ic path[d^="M8 5.5"] { fill: currentColor; }
.f1-rp-ib { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--ln2); cursor: pointer; }
.f1-rp-time { display: grid; min-width: 104px; margin: 0; font-family: var(--num); font-variant-numeric: tabular-nums; text-align: center; }
.f1-rp-time b { font-size: 14px; color: #fff; }
.f1-rp-time span { font-size: 12.5px; color: var(--mu); }
.f1-rp-spd { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: #0a0a0b; box-shadow: inset 0 0 0 1px var(--ln); }
.f1-rp-spd button { min-width: 46px; min-height: 40px; padding: 0 10px; font: 700 13.5px/1 var(--num); color: var(--mu); }
.f1-rp-spd button[aria-pressed="true"] { color: #fff; background: var(--s2); box-shadow: inset 0 -2px 0 var(--red); }
.f1-rp-fol { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1px var(--ln2); font: 600 14px/1.2 var(--num); cursor: pointer; }
.f1-rp-fol[aria-pressed="true"] { background: var(--red); color: #111; box-shadow: none; }

@media (min-width: 1100px) { .f1-rp-nm { visibility: visible; } }
@media (max-width: 899px) {
  .f1-rp-root { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "map" "ctl" "tw"; }
  .f1-rp-map { max-height: 58vh; }
  .f1-rp-more { display: block; }
  .f1-rp-rb { grid-template-columns: 26px 4px 46px minmax(0, 1fr) 24px; }
  .f1-rp-nm { display: none; }
}
@media (max-width: 480px) {
  .f1-rp-root { gap: 10px; }
  .f1-rp-map { border-radius: 18px; min-height: 200px; }
  .f1-rp-ctl { padding: 10px 10px 12px; }
  .f1-rp-spd { margin-left: 0; }
  .f1-rp-spd button { min-width: 42px; padding: 0 6px; }
  .f1-rp-time { min-width: 0; flex: 1; }
  .f1-rp-fol span { display: none; }
  .f1-rp-fol { padding: 0 12px; }
  .f1-rp-fol .f1-ic { margin: 0; }
}
