/* Base stylesheet for every page. Was inlined into each HTML response, which
   meant ~40KB re-sent on every page view and never cached. It is linked with a
   ?v=<filemtime> now, so browsers cache it for a year and pick up a new copy the
   moment the file is uploaded. Page-specific CSS stays inline in layout.php:
   it is small, it differs per page, and a second request for 20 lines is worse.
   Font URLs are absolute (/fonts/...) so they resolve from here, not from the page. */
/* Self-hosted. These used to come from fonts.googleapis.com, which handed
   every visitor's IP to Google and made the "no third-party requests" line on
   privacy.php untrue. Latin + latin-ext only: nothing here is Vietnamese,
   Cyrillic or Greek, and driver names need the accented latin range.
   Regenerate with the recipe in runbook.php -> Assets. */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/barlow-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/barlow-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Saira Semi Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/saira-semi-condensed-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'Saira Semi Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/saira-semi-condensed-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Saira Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/saira-semi-condensed-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'Saira Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/saira-semi-condensed-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
@font-face {
  font-family: 'Saira Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/saira-semi-condensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
@font-face {
  font-family: 'Saira Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/saira-semi-condensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
:root{
  --bg:#131519; --surface:#1a1d23; --line:#23262e;
  --text:#eceef1; --muted:#98a0ab; --gold:#e0a100; --gold-hi:#ffc94a;
  --up:#6ddc82; --dn:#ff8a8a;
  --silver:#c8ccd4; --bronze:#c08552;
  /* Timing-screen colours. Purple = fastest lap shown, green = the driver's own
     best. Lifted from every live timing tower in the sport, so the meaning
     arrives without a legend. Both are tuned up in lightness to clear AA on the
     --surface grey rather than using broadcast's saturated values. */
  --fastest:#c58cff; --pb:#6ddc82;
  /* Concentrated, not diffuse: on a #131519 page a wide soft shadow is invisible.
     Short blur + real opacity so an edge actually lifts off the background. */
  --sh-1:0 1px 2px rgba(0,0,0,.55), 0 3px 6px -2px rgba(0,0,0,.6);
  --sh-2:0 2px 4px rgba(0,0,0,.6), 0 7px 14px -5px rgba(0,0,0,.72);
  --sh-3:0 3px 6px rgba(0,0,0,.65), 0 14px 26px -9px rgba(0,0,0,.8);
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  /* Numbers: positions, times, gaps, ratings, stats (Tom, 2026-10-20). A coding font on
     every number was the clearest "made by AI" tell. Plex Mono stays for things that
     really are code: commands, login codes, recovery keys. */
  --num:"Saira Semi Condensed",Barlow,system-ui,sans-serif;
  /* One family (2026-09-20, Tom's pick). Archivo was a second grotesque sans with
     nearly the same skeleton as Barlow, so it cost 204 KB — 44% of the font
     payload — to make headlines that read as heavier body text. Weight and size
     do that job now. Kept as a variable because the headline role is still a
     real role, and naming it leaves one place to change if it ever splits again. */
  --display:Barlow,system-ui,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
/* Tells the browser to draw its own widgets dark: date/time pickers, their popups,
   scrollbars, unstyled selects. Without it those come back white on a dark page. */
:root{color-scheme:dark}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:Barlow,system-ui,"Segoe UI",sans-serif;font-size:16.5px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
  /* short pages must not leave the footer floating in the middle */
  min-height:100vh;display:flex;flex-direction:column}
.content{flex:1 0 auto}
p{margin:0;text-wrap:pretty}
h1,h2,h3{font-family:var(--display);font-weight:700;letter-spacing:-.022em;margin:0;line-height:1.12}
a{color:var(--gold);text-decoration:none}
/* One hover for the whole site: whatever a link rests at, hovering brightens it
   to --gold-hi. Nothing hovers to white any more. */
a:hover{color:var(--gold-hi)}
/* Underline only inside a sentence, where a colour change alone is ambiguous.
   In tables, headers and the nav it is noise — and a table row already lights up. */
:is(p,li,.lede,.alt,.sub,.hint,.intro,.prose,.credit,.say,.deflabel) a:hover{
  text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
/* Inline chevrons/arrows sit on the text baseline and inherit its colour. */
.ico{display:inline-block;vertical-align:-2px;flex:none}
img{max-width:100%;display:block}
.wrap{max-width:1100px;margin:0 auto;padding:0 22px}
.muted{color:var(--muted)}
.mono{font-family:var(--num);font-variant-numeric:tabular-nums;letter-spacing:.04em}
/* Race dates in tables (Tom, 2026-10-20: 13px read as fine print next to the numbers). */
.date{font-size:15px}
.eyebrow{font-size:15px;font-weight:600;color:var(--gold)}
/* No font-family here any more: this used to opt out of Archivo, and --display
   is Barlow now, so the override said nothing. */
.sect-title{font-size:15px;font-weight:600;color:var(--muted)}
.notice{background:linear-gradient(90deg, rgba(224,161,0,.17), rgba(224,161,0,.06)),
  rgba(19,21,25,.92);border-bottom:1px solid rgba(224,161,0,.28)}
.notice-in{max-width:1100px;margin:0 auto;padding:9px 22px;display:flex;align-items:center;gap:11px;
  font-size:13px;color:#d9d2be}
.notice b{font-family:var(--mono);font-size:13px;color:var(--gold);border-radius:4px;
  padding:2px 7px;flex:none;box-shadow:inset 0 0 0 1px rgba(224,161,0,.35)}
.notice a{text-decoration:underline;text-underline-offset:2px}

/* ---- sticky nav ---- */
.topbar{position:sticky;top:0;z-index:50;
  -webkit-backdrop-filter:saturate(160%) blur(14px);backdrop-filter:saturate(160%) blur(14px)}
.nav{position:relative;background:rgba(19,21,25,.9);
  border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(0,0,0,.5), 0 10px 26px -20px rgba(0,0,0,.9)}
.nav-in{max-width:1100px;margin:0 auto;padding:0 22px;height:58px;display:flex;align-items:center}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);
  font-family:var(--display);font-weight:800;font-size:17px;letter-spacing:-.015em}
.brand:hover{color:var(--text)}
.b-sim{color:var(--gold)}
.nav-links{display:flex;align-items:center;gap:24px;margin-left:36px}
.nav-right{display:flex;align-items:center;gap:22px;margin-left:auto}
.nav-links a,.nav-right a{position:relative;color:var(--muted);font-weight:500;font-size:16.5px}
.nav-links a:hover,.nav-right a:hover{color:var(--gold-hi)}
.nav-links a[aria-current],.nav-right a[aria-current]{color:var(--text)}
.nav-links a[aria-current]::after,.nav-right a[aria-current]::after{content:"";position:absolute;
  left:0;right:0;bottom:-20px;height:2px;background:var(--gold)}
.navmenu{display:none;margin-left:auto}
/* Discord icon: last on the right on desktop; once the links collapse it sits just
   left of the menu button (the margin-left:auto rules in the breakpoints below). */
.nav-dc{display:flex;margin-left:22px;color:var(--muted)}
.nav-dc:hover{color:var(--gold-hi)}
.nav-dc + .navmenu{margin-left:14px}
.navmenu>summary{list-style:none;display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface);
  box-shadow:var(--sh-1);cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease}
.navmenu>summary::-webkit-details-marker{display:none}
.navmenu>summary::marker{content:""}
.navmenu>summary svg{transition:opacity .18s ease}
.navmenu .i-close{display:none}
.navmenu[open]>summary{background:var(--gold);border-color:var(--gold)}
.navmenu[open] .i-open{display:none}
.navmenu[open] .i-close{display:block}
/* Dim the page behind the open panel so the two do not read as one surface.
   Absolute, not fixed: .topbar carries a backdrop-filter, which makes it the
   containing block for fixed descendants. ponytail: costs ~100vh of extra
   scroll height while the menu is open; swap for a fixed overlay if that ever
   shows. */
.navmenu[open]::before{content:"";position:absolute;top:100%;left:0;right:0;height:100vh;
  background:rgba(10,11,14,.66);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  z-index:1;pointer-events:none}
.navpanel{z-index:2}
.navpanel{position:absolute;left:0;right:0;top:58px;background:#15181d;
  border-bottom:1px solid var(--line);padding:6px 20px 16px;box-shadow:var(--sh-3)}
.navpanel a{display:block;padding:13px 2px;color:var(--text);font-weight:600;font-size:15.5px;
  border-bottom:1px solid rgba(255,255,255,.055)}
.navpanel a:last-of-type{border-bottom:0}
.navpanel a.btn-primary{color:#131519;border-bottom:0}
/* Log out reads as leaving, not as one more page (Tom, 2026-10-24). Phone menu only. */
.navpanel a[href="logout"]{color:var(--dn)}
.navpanel .btn{display:flex;margin-top:14px;width:100%} /* flex, not .navpanel a's block: keeps the label centred */

/* ---- buttons + fields ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:50px;padding:0 26px;border-radius:10px;border:1px solid transparent;cursor:pointer;
  font-family:var(--display);font-weight:700;font-size:15.5px;letter-spacing:.015em;white-space:nowrap}
.btn-primary{background:var(--gold);color:#131519;box-shadow:0 1px 0 rgba(255,255,255,.22) inset,
  0 6px 18px -8px rgba(224,161,0,.65), var(--sh-1)}
.btn-primary:hover{background:var(--gold-hi);color:#131519}
/* ghost is an inset ring, not a border: no box to compete with the primary */
.btn-ghost{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px #363b45}
.btn-ghost:hover{box-shadow:inset 0 0 0 1px var(--muted)}
.btn-sm{min-height:40px;padding:0 16px;font-size:14px;border-radius:8px}
label{display:block;font-size:14px;font-weight:600;color:var(--muted);margin:0 0 7px}
.field{margin-bottom:18px}
input[type=text],input[type=password],input[type=email],input[type=number],
input[type=date],input[type=time],input[type=datetime-local]{
  width:100%;height:46px;padding:0 13px;background:#15171c;
  border:1px solid #3b4049;border-radius:7px;color:var(--text);font:inherit;font-size:15px;
  box-shadow:0 1px 2px rgba(0,0,0,.4) inset}
input[type=date]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator{filter:invert(.72);cursor:pointer}
input::placeholder{color:#7f8590}
input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(224,161,0,.16)}
/* Keyboard focus must be visible on every interactive thing, not only the text
   inputs above — links, buttons, chips, the nav toggle, checkboxes, file pickers.
   :focus-visible, so mouse clicks stay ring-free. */
:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
input[type=text]:focus-visible,input[type=password]:focus-visible,
input[type=datetime-local]:focus-visible{outline:none}
.hint{font-size:12.5px;color:var(--muted);margin-top:7px}
.backlink,.golink{display:inline-flex;align-items:center;gap:6px}
.backlink{color:var(--muted);font-size:14px;font-weight:600;margin-bottom:16px}
.backlink:hover,.golink:hover{color:var(--gold-hi)}
/* The arrow leans toward where it is taking you. Motion is opt-out for anyone
   who has asked the OS for less of it. */
.backlink .ico,.golink .ico,.chip .ico{transition:transform .15s ease}
.golink:hover .ico,.chip:hover .ico{transform:translateX(2px)}
.backlink:hover .ico{transform:translateX(-2px)}
.chip .ico{margin:0 -2px}
@media (prefers-reduced-motion:reduce){
  .backlink .ico,.golink .ico,.chip .ico{transition:none}
  .golink:hover .ico,.chip:hover .ico{transform:none}
  .backlink:hover .ico{transform:none}
}
.card{background:var(--surface);border-radius:16px;padding:30px}
/* Elevation follows hierarchy, not habit. A page-level container sits above the
   page; a stat tile sits inside one, so it lifts less and corners tighter. These
   were all one radius and one shadow, which flattened the difference between a
   whole results table and a single number.
   Radius is NOT set here: .stat, .item and .box declare their own inside
   $PAGE_CSS, which is inlined after this file and would win anyway. Their values
   are 12px, 14px and 12px to match the tiers below. */
.card,.tablewrap,.panel,.cmds{box-shadow:var(--sh-2)}
.item{box-shadow:var(--sh-2)}          /* a card you can click into */
.stat,.box{box-shadow:var(--sh-1)}     /* sits inside a page, lifts less */
.card h1{font-size:24px;margin-bottom:6px}

/* ---- tables ---- */
/* Columns marked hide-sm drop off below the phone breakpoint. This was used on
   five pages before it was ever defined, so the tables ran full-width on mobile. */
@media (max-width:700px){ .hide-sm{display:none} }
.tablewrap{border-radius:16px;background:var(--surface);
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  /* Scroll shadows: the two `local` layers ride with the content and cover the
     two `scroll` shadows, so an edge shadow appears only when there is actually
     more table in that direction. No JavaScript, nothing to keep in sync. */
  background-color:var(--surface);
  background-image:
    linear-gradient(to right, var(--surface), var(--surface)),
    linear-gradient(to left,  var(--surface), var(--surface)),
    linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,0)),
    linear-gradient(to left,  rgba(0,0,0,.5), rgba(0,0,0,0));
  background-position:left center, right center, left center, right center;
  background-repeat:no-repeat;
  background-size:24px 100%, 24px 100%, 15px 100%, 15px 100%;
  background-attachment:local, local, scroll, scroll}
table{width:100%;border-collapse:collapse;font-size:15.5px}
thead th{text-align:left;padding:16px 20px;background:transparent;white-space:nowrap;
  font-size:13.5px;font-weight:500;color:var(--muted)}
tbody td{height:62px;padding:0 20px;white-space:nowrap;border-top:1px solid rgba(255,255,255,.055)}
tbody tr:hover td{background:rgba(255,255,255,.028)}
.n{text-align:right;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:15px;
  letter-spacing:.04em}
/* A number column's header is still a header: without this, .n out-ranked thead th and
   "Fastest lap" came out bigger than "Date" (Tom, 2026-10-20). */
th.n{text-align:right;font-family:inherit;font-size:13.5px;letter-spacing:normal}
/* Server list, race result, race history, races list: every column left-aligned, so the columns read
   evenly spaced and a number with its change (1566 +6) lines up, the change trailing
   (Tom, 2026-10-24). */
.srv-list .n,.res .n,.hist .n,.laprec .n,.rlist .n:not(:last-child){text-align:left}
.driver{color:var(--text);font-weight:600}
.driver:hover{color:var(--gold-hi)}
.p{font-family:var(--num);font-variant-numeric:tabular-nums;font-weight:600;font-size:15.5px;
  color:var(--muted)}
.p1{color:var(--gold)}
.p2{color:var(--silver)}
.p3{color:var(--bronze)}
.p-dnf{font-size:11.5px;letter-spacing:.09em;font-weight:500;color:#949aa4}
tr.dnf td{color:#949aa4}
/* Right after its number (Tom, 2026-10-20): a fixed-width slot read as a second column.
   Every change - rating, reputation, places gained - is the size of its cell (Tom, 2026-10-24). */
.d{display:inline-block;margin-left:5px;
  font-family:var(--num);font-variant-numeric:tabular-nums;font-size:inherit;font-weight:500}
.d-up{color:var(--up)}
.d-dn{color:var(--dn)}
.d-ev{color:#8b919b}
/* A coloured lap keeps the same weight as an uncoloured one — the colour is the
   whole signal, so bolding it as well would double-state it. */
.lap-best{color:var(--fastest)}
.lap-pb{color:var(--pb)}
a:hover .lap-best,a:hover .lap-pb{color:inherit}
.sub-id{display:block;font-size:12.5px;color:#8f959f;margin-top:1px;font-weight:400}
.layout{font-weight:600;font-size:15px}

/* ---- avatars ---- */
.who-cell{display:flex;align-items:center;gap:12px}
.av{width:34px;height:34px;border-radius:11px;flex:none;display:flex;align-items:center;
  justify-content:center;font-family:var(--display);font-weight:700;font-size:13px;
  color:#131519;box-shadow:0 0 0 1px rgba(255,255,255,.08), var(--sh-1)}
.av-lg{width:78px;height:78px;font-size:27px;border-radius:14px}
.av-none{background:#2b303a;color:#7f8590}
.av svg{width:82%;height:82%}

/* ---- spec tags (cars, tracks, home server list) ---- */
/* Pressed into the card: same fill and border as before, shadow from the top edge. */
.spec{font-size:12px;color:var(--muted);background:#1b1e25;border:1px solid var(--line);
  border-radius:5px;padding:3px 8px;box-shadow:inset 0 2px 4px rgba(0,0,0,.6)}
.spec b{color:var(--text);font-weight:600;font-family:var(--num);font-variant-numeric:tabular-nums;letter-spacing:.04em}
/* Driver tier: Rookie / AM / Pro, colour on the tag. */
.tier-rookie{--tier:#5fd47a} .tier-am{--tier:#ff9b3d} .tier-pro{--tier:#ff5a5a}
.spec.tier{color:var(--tier);font-weight:700;text-transform:uppercase;letter-spacing:.06em}

/* ---- misc ---- */
.foot{border-top:1px solid var(--line);margin-top:72px;padding:26px 0 40px;
  color:#878d97;font-size:13px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.foot a{color:#8b919b}
.foot a:hover{color:var(--gold-hi)}
.foot .sp{margin-left:auto}
.secret{font-family:var(--mono);font-weight:600;text-align:center;background:#15171c;
  border:1px dashed #4b515c;border-radius:8px;padding:17px 12px;
  font-size:29px;letter-spacing:.2em;color:var(--text);box-shadow:0 2px 10px rgba(0,0,0,.45) inset}
.secret-key{border-color:var(--gold);color:var(--gold);font-size:17px;letter-spacing:.11em}
/* The recovery key is shown once and is the only way back into an account, so it
   has to be selectable and copyable — a field, not a div. No `type` attribute on
   purpose: `input[type=text]` above would override the .secret type scale. */
input.secret{width:100%;-webkit-appearance:none;appearance:none}
.callout{display:flex;gap:13px;align-items:flex-start;background:rgba(224,161,0,.09);
  border:1px solid rgba(224,161,0,.4);border-radius:9px;padding:15px 16px;box-shadow:var(--sh-1)}
.callout b{color:var(--gold)}
.callout p{font-size:13.5px;color:#d9d5c8}
.once{display:inline-flex;align-items:center;font-family:var(--mono);font-size:13px;
  color:var(--muted);border-radius:4px;padding:2px 7px;vertical-align:2px;
  box-shadow:inset 0 0 0 1px var(--line)}
.chatcmd{display:inline-block;font-family:var(--mono);font-size:13.5px;background:#15171c;
  border:1px solid #3b4049;border-radius:5px;padding:2px 7px;color:var(--text)}
/* form feedback + media, shared by every page rather than per-page blocks */
.err{background:#3a1e1e;border:1px solid #5b2a2a;color:#ff8a8a;border-radius:7px;
  padding:11px 13px;font-size:13.5px;margin-bottom:18px}
.ok-msg{background:#1e3a24;border:1px solid #2c5a37;color:#6ddc82;border-radius:7px;
  padding:11px 13px;font-size:13.5px;margin-bottom:18px}
img.av{object-fit:cover;background:#2b303a}
.shot img{position:relative;width:100%;height:100%;object-fit:cover}
.sel{height:46px;padding:0 13px;background:#15171c;border:1px solid #3b4049;border-radius:7px;
  color:var(--text);font:inherit;font-size:14.5px;box-shadow:0 1px 2px rgba(0,0,0,.4) inset;
  cursor:pointer;display:flex;align-items:center;gap:9px}
.sel:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(224,161,0,.16)}
.sel option{background:#15171c;color:var(--text)}
/* The closed control has always been ours; the OPEN panel is drawn by the OS, so
   it looks different in every browser. `base-select` hands that panel over to CSS.
   Chrome 135+ today; everywhere else the @supports block is skipped and the native
   panel is used, which is correct, just not ours. No JavaScript either way. */
@supports (appearance:base-select){
  .sel, .sel::picker(select){appearance:base-select}
  .sel::picker(select){
    background:#1a1d23;border:1px solid #3b4049;border-radius:9px;padding:5px;
    box-shadow:var(--sh-3);margin-top:5px}
  .sel option{display:flex;align-items:center;gap:9px;padding:8px 11px;border-radius:6px;
    font:inherit;font-size:14.5px;background:transparent;cursor:pointer}
  .sel option:hover,.sel option:focus{background:#272b34;color:var(--text)}
  .sel option:checked{color:var(--gold)}
  .sel option::checkmark{content:"";color:var(--gold)}
  .sel::picker-icon{color:#9aa0aa;transition:transform .15s ease}
  .sel:open::picker-icon{transform:rotate(180deg)}
}
/* Date + 24h time. Three controls rather than one datetime-local: that control
   shows an AM/PM clock wherever the browser locale says so and cannot be told not to. */
.dtrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dtrow input[type=date]{width:auto;flex:1 1 170px;min-width:0}
.dtsep{color:var(--muted);font-family:var(--num)}
.sel.dt-h{width:auto;min-width:74px;padding-right:30px}
@media (max-width:700px){ .sel.dt-h{width:auto} }
select.sel{-webkit-appearance:none;appearance:none;display:inline-block;line-height:44px;
  padding-right:34px;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%239aa0aa' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 13px center}
input[type=file]{font:inherit;font-size:13.5px;color:var(--muted);max-width:100%}
input[type=file]::file-selector-button{font:inherit;font-family:var(--display);font-weight:700;
  font-size:13px;margin-right:11px;padding:9px 14px;border:1px solid #3b4049;border-radius:6px;
  background:var(--surface);color:var(--text);cursor:pointer}
/* quick filters: a row of links that read as one control group */
.chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px;border-radius:7px;
  border:1px solid #3b4049;background:var(--surface);color:var(--muted);
  font-size:13.5px;font-weight:600;box-shadow:var(--sh-1);white-space:nowrap}
.chip:hover{color:var(--gold-hi);border-color:var(--muted)}
.chip[aria-current]{background:var(--gold);border-color:var(--gold);color:#131519}
.chip[aria-current]:hover{color:#131519}
/* pager */
.pager{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:13.5px;color:var(--muted)}
.pager .sp{margin-left:auto}
.page{padding-top:36px}
.page h1{font-size:33px;margin-bottom:5px}
.page .lede{color:var(--muted);font-size:16px;margin-bottom:24px;max-width:660px}
.narrow{max-width:740px;margin:0 auto}
.sect-head{display:flex;align-items:baseline;gap:16px;margin-bottom:14px}
/* Page header (Tom, 2026-10-24): title (+ lede) left, the page's key facts right, one
   row. Facts are label over value with a hairline between. Narrow screens wrap the
   facts under the title. Every page with headline numbers uses this pair. */
.phead{display:flex;align-items:flex-end;justify-content:space-between;gap:14px 30px;flex-wrap:wrap;
  margin-bottom:24px}
.phead>h1{margin-bottom:0}
.phead .lede{margin-bottom:0}
/* "More X are being added" line under the Cars / Tracks grids. */
.page .lede.more{margin:32px auto 0;text-align:center}
/* Never wraps to a second row: when space runs out a long value wraps inside its column. */
.facts{display:flex;margin:0}
.facts>div{min-width:0;padding-left:24px;margin-left:24px;border-left:1px solid var(--line)}
.facts>div:first-child{padding-left:0;margin-left:0;border-left:0}
.facts dt{font-size:13px;color:var(--muted);margin-bottom:3px}
.facts dd{margin:0;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:20px;font-weight:600}
.sect-head .sp{margin-left:auto;font-size:13.5px}

@media (max-width:930px){
  .nav-md .nav-links,.nav-md .nav-right{display:none}
  .nav-md .navmenu{display:block}
  .nav-md .nav-dc{margin-left:auto}
}
@media (max-width:1080px){
  .nav-lg .nav-links,.nav-lg .nav-right{display:none}
  .nav-lg .navmenu{display:block}
  .nav-lg .nav-dc{margin-left:auto}
}
/* Guest nav (7 links since Stats, 2026-10-24) wraps below 800px. */
@media (max-width:800px){
  .nav-links,.nav-right{display:none}
  .navmenu{display:block}
  .nav-dc{margin-left:auto}
}
@media (max-width:700px){
  .wrap{padding:0 20px}
  .page{padding-top:26px}
  .page h1{font-size:25px}
  .facts dd{font-size:16px}
  .facts>div{padding-left:16px;margin-left:16px}
  table{font-size:14px}
  tbody td{height:54px;padding:0 12px}
  thead th{padding:12px}
  .n{font-size:13px}
  .date{font-size:13.5px}
  /* Date over time in table cells: width 1% shrinks the cell to its longest word. */
  td.date{white-space:normal;width:1%}
  /* Radius shrinks with the tile: 11px on 27px read as a circle. The profile tile
     keeps its own size, it only has to fit beside the name. */
  .av{width:27px;height:27px;font-size:11px;border-radius:8px}
  .av-lg{width:56px;height:56px;font-size:20px;border-radius:14px}
  .who-cell{gap:9px}
  .card{padding:22px}
  .foot{margin-top:44px;padding:20px 0 26px;font-size:12.5px;
    justify-content:center;text-align:center;gap:8px 16px}
  .foot .sp{margin-left:0;order:3}
  .foot span:first-child{order:4;width:100%;color:#7f8590}
}
