/* Layout and base components: Tabler 1.5.1 (MIT). Swervle uses one ink/paper
   palette, one font family and an 8px spacing scale throughout. */
:root {
 --ui-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
 --ink: #10222a; --paper: #fff8e9; --surface: #fffdf8;
 --muted: #68716f; --line: #dedfd6; --orange: #ff5a36;
 --tblr-font-sans-serif: var(--ui-font); --tblr-body-font-family: var(--ui-font);
 --tblr-body-bg: #f6f5ef; --tblr-body-color: var(--ink);
 --tblr-primary: var(--ink); --tblr-primary-rgb: 16,34,42;
 --tblr-link-color: var(--ink); --tblr-link-hover-color: #354b4c;
 --tblr-border-color: var(--line); --tblr-card-bg: var(--surface);
 --tblr-border-radius: 6px; --tblr-muted: var(--muted);
 color-scheme: light; font-synthesis: none;
}
/* Dark surfaces derive from Swervle ink; cream text and orange actions stay familiar. */
:root[data-theme="dark"] {
 --ink: #f2eee4; --paper: #fff8e9; --surface: #18252b;
 --muted: #a4b2b4; --line: #34464c;
 --tblr-body-bg: #0f181c; --tblr-body-color: var(--ink);
 --tblr-card-bg: var(--surface); --tblr-border-color: var(--line);
 --tblr-link-color: var(--ink); --tblr-link-hover-color: #fff8e9;
 --tblr-muted: var(--muted); --tblr-secondary-color: var(--muted);
 --tblr-bg-surface: var(--surface); --tblr-bg-surface-secondary: #213239;
 color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--tblr-body-bg); color: var(--ink); font: 15px/1.6 var(--ui-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: inherit; }
button, input { font: inherit; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--ui-font); color: var(--ink); letter-spacing: -.025em; }
h1 { font-size: 36px; line-height: 1.2; font-weight: 650; }
h2 { font-size: 20px; line-height: 1.35; font-weight: 650; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 650; }
p { margin: 0 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.skip-link { position: absolute; top: -80px; left: 24px; z-index: 20; padding: 8px 16px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 8px; color: var(--paper); }
.site-sheet { max-width: 1248px; padding: 0 32px; margin: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; align-items: center; gap: 24px; min-height: 100px; padding: 20px 0; }
.wordmark { display: block; flex: none; width: 180px; }
.wordmark img { width: 100%; }
.header-inner nav { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.header-inner nav a { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: 4px; color: #4e5b5c; font-size: 13px; font-weight: 550; white-space: nowrap; text-decoration: none; }
.header-inner nav a:hover { color: var(--ink); background: #e9ebe3; }
.header-inner nav a[aria-current] { color: var(--ink); background: #e9ebe3; border-color: #d8ded4; }
.site-main { padding: 40px 0 56px; }
.button, .small-button, .compact-button, .result-open, .back-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid #c9cfca; border-radius: 5px; background: transparent; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.4; box-shadow: 0 1px 1px #10222a06; }
.button:hover, .small-button:hover, .compact-button:hover, .result-open:hover, .back-link:hover { background: #e9ebe3; color: var(--ink); border-color: #8b9892; text-decoration: none; }
.primary-button { min-height: 62.4px; padding: 14.4px 24px; border: 0; border-radius: 4.48px; background: var(--orange); color: var(--paper); font: 800 18.4px var(--ui-font); letter-spacing: .736px; }
.primary-button:hover { background: #ed4927; color: var(--paper); border-color: transparent; }
.front-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr); align-items: center; gap: 56px; padding: 0 0 40px; border-bottom: 1px solid var(--line); }
.play-menu h1 { margin: 8px 0 12px; font-size: clamp(36px, 4vw, 48px); letter-spacing: -.045em; }
.play-menu .eyebrow { margin-bottom: 8px; }
.play-menu .home-title { margin: 0 0 16px; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
.race-track-name { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.play-menu .primary-button { min-width: 240px; }
.steam-block { margin-top: 12px; }
.steam-button { min-width: 240px; min-height: 44px; }
.trailer-region { overflow: hidden; border-radius: 6px; margin: 0; }
.trailer-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--ink); overflow: hidden; border-radius: 6px; }
.trailer-poster, .steam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steam-video { object-fit: contain; }
.trailer-placeholder { display: grid; height: 100%; place-items: center; color: var(--paper); font-size: 32px; }
.trailer-play { position: absolute; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 16px; border: 0; border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 650; }
.play-triangle { display: inline-block; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.trailer-caption { display: flex; justify-content: space-between; padding-top: 12px; }
.trailer-caption h2, .trailer-source { font-size: 12px; font-weight: 500; color: var(--muted); }
.player-status { position: absolute; inset: auto 12px 8px; padding: 12px; background: var(--paper); font-size: 13px; }
.front-lower { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 32px; }
.front-lower:not(:has(.highlights)) { grid-template-columns: 1fr; }
.card { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 1px 2px #10222a04; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; }
.eyebrow, .section-meta { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .075em; }
.eyebrow { margin-bottom: 4px; }
.section-meta { white-space: nowrap; }
.results-summary { padding: 16px 24px 0; }
.track-name { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin: 16px 0 24px; }
.facts dt { color: var(--muted); font-size: 12px; font-weight: 400; }
.facts dd { margin: 4px 0 0; color: var(--ink); font-size: 25px; font-weight: 550; line-height: 1.3; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.data-tag { display: inline-flex; margin-left: 8px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; font-weight: 600; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 11px; font-weight: 550; background: #f2f3ec; }
td { font-size: 14px; }
.numeric { text-align: right; white-space: nowrap; }
.leaderboard { margin: 0; --tblr-table-color: var(--ink); --tblr-table-border-color: var(--line); }
.leaderboard th, .leaderboard td { padding: 12px 16px; }
.leaderboard th { color: var(--muted); background: #f2f3ec; font-size: 11px; font-weight: 550; }
.leaderboard th:first-child, .leaderboard td:first-child { padding-left: 24px; }
.leaderboard th:last-child, .leaderboard td:last-child { padding-right: 24px; }
.leaderboard tbody tr:last-child td { border-bottom: 0; }
.leaderboard tbody tr:hover { background: #f3f4ed; }
.leaderboard td:nth-child(2) { overflow-wrap: anywhere; }
.rank { width: 48px; color: var(--muted); }
.time-value { font-weight: 600; color: var(--ink); }
.gap-value { color: var(--muted); font-size: 12px; }
.highlights { margin-top: 32px; }
.front-lower .highlights { margin: 0; }
.highlight-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 24px; padding: 24px; }
.youtube-player { aspect-ratio: 16/9; overflow: hidden; background: var(--ink); border-radius: 4px; }
.youtube-poster { position: relative; display: grid; width: 100%; height: 100%; place-items: center; }
.youtube-poster img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 1px solid #ffffff50; border-radius: 4px; background: #10222aeb; color: var(--paper); font-size: 12px; font-weight: 600; }
.youtube-poster:hover .video-play { background: var(--ink); }
.youtube-frame { width: 100%; height: 100%; border: 0; }
.highlight-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.highlight-caption h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.highlight-caption time, .video-source { color: var(--muted); font-size: 12px; }
.video-source { min-height: 36px; display: inline-flex; align-items: center; }
.community-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; margin-top: 24px; border-block: 1px solid var(--line); }
.community-strip h2 { margin: 0; font-size: 16px; }
.home-news { margin-top: 24px; }
.home-news .news-entry { padding: 24px; margin: 0; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { margin: 4px 0 8px; }
.page-heading p { margin: 0; color: var(--muted); }
.back-link { margin-bottom: 24px; padding: 0; border: 0; box-shadow: none; min-height: 24px; color: var(--muted); }
.back-link:hover { background: transparent; text-decoration: underline; }
.day-page-heading .daily-recap { max-width: 78ch; margin-top: 16px; color: var(--ink); font-size: 15px; line-height: 1.7; }
.day-page-heading > .small-button { flex: none; }
.day-page-heading.has-winner-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; }
.daily-winner-card { min-width: 0; margin: 0; }
.daily-winner-card a { display: block; border-radius: 8px; overflow: hidden; }
.daily-winner-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.daily-winner-card figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 800px) { .day-page-heading.has-winner-card { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.day-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.facts-full { grid-template-columns: repeat(6,minmax(0,1fr)); padding: 24px 0; margin: 0 0 16px; border-block: 1px solid var(--line); }
.facts-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.coverage-note, .quiet, .small-note { color: var(--muted); font-size: 12px; }
.coverage-note { margin-bottom: 8px; }
.stats-info { margin: 8px 0; color: var(--muted); font-size: 13px; }
.stats-info summary { min-height: 32px; width: fit-content; padding: 4px 0; font-size: 12px; cursor: pointer; }
.stats-info > div { max-width: 800px; padding: 12px 0; }
.report-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0,1.3fr); gap: 24px; align-items: start; margin-top: 24px; }
.report-times { padding: 24px; }
.report-board { min-width: 0; }
.report-board .section-heading { padding-bottom: 16px; border: 0; }
.report-board .scope-label { padding: 0 24px 16px; margin: 0; font-size: 11px; color: var(--muted); }
.report-board > .table-scroll { max-height: 660px; overflow: auto; }
.report-board th { position: sticky; top: 0; z-index: 1; }
.report-board .small-note { padding: 0 24px; margin: 16px 0; }
.analysis-heading h2 { font-size: 20px; margin: 0 0 8px; }
.analysis-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.time-compare { margin-top: 24px; }
.time-compare label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.compare-controls { display: flex; gap: 8px; }
.compare-controls input { min-width: 0; width: 100%; height: 44px; padding: 8px 12px; border: 1px solid #b9c4bb; border-radius: 4px; color: var(--ink); background: var(--surface); font-size: 16px; }
.btn-primary { --tblr-btn-bg: var(--ink); --tblr-btn-border-color: var(--ink); --tblr-btn-hover-bg: #304447; --tblr-btn-hover-border-color: #304447; --tblr-btn-active-bg: #304447; }
#compare-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.comparison-result { display: block; margin-top: 20px; padding: 20px; border: 1px solid #ccd7cc; border-radius: 4px; background: #edf1e8; }
.comparison-result:empty { display: none; }
.comparison-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.comparison-heading span { font-size: 13px; }
.comparison-heading strong { grid-column: 2; grid-row: 1 / span 2; font-size: 32px; font-weight: 650; letter-spacing: -.04em; }
.comparison-heading small { color: var(--muted); font-size: 11px; }
.comparison-details { display: flex; gap: 24px; padding-top: 16px; margin: 16px 0; border-top: 1px solid #ccd7cc; }
.comparison-details dt { color: var(--muted); font-size: 11px; font-weight: 400; }
.comparison-details dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.next-position { margin: 0; font-size: 13px; }
.comparison-context { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.finish-distribution { margin-top: 28px; padding: 24px 0 16px; border-top: 1px solid var(--line); }
.finish-distribution h3 { margin: 0 0 4px; font-size: 17px; }
.finish-distribution header p { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.finish-plot { display: block; width: 100%; height: auto; overflow: visible; }
.finish-plot text { font-family: var(--ui-font); fill: var(--muted); }
.finish-plot .plot-heading { font-size: 13px; font-weight: 600; fill: var(--ink); }
.finish-plot .plot-caption { font-size: 11px; }
.finish-plot .plot-tick { font-size: 12px; font-variant-numeric: tabular-nums; }
.plot-grid { stroke: #e4e6df; stroke-width: 1; }
.density-area { fill: #dce6dc; }
.density-line { fill: none; stroke: #597968; stroke-width: 2.5; stroke-linejoin: round; }
.plot-median-guide { stroke: #597968; stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.plot-whisker { stroke: #597968; stroke-width: 1.5; }
.plot-box { fill: #b6c9b9; stroke: #597968; stroke-width: 1.5; }
.plot-median { stroke: var(--ink); stroke-width: 2.5; }
.plot-outlier { fill: var(--surface); stroke: #83988b; stroke-width: 1; }
.plot-axis { stroke: #cbd1c8; stroke-width: 1; }
.distribution-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 20px 0 16px; }
.distribution-summary dt { color: var(--muted); font-size: 11px; font-weight: 400; }
.distribution-summary dd { margin: 4px 0 0; color: var(--ink); font-size: clamp(13px,1.2vw,16px); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-data { padding-top: 8px; border-top: 1px solid var(--line); }
.chart-data th, .chart-data td { padding: 8px; font-size: 11px; }
.report-track { margin: 24px 0 0; }
.report-track img { width: 100%; border-radius: 4px; }
.report-track figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
.day-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.results-list { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.season-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.season-picker a[aria-current] { color: var(--ink); background: #e9ebe3; border-color: #8b9892; }
.season-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.season-heading h2 { margin: 0; }
.season-heading > span { color: var(--muted); font-size: 13px; }
.board-pagination { padding: 16px 24px; }
.board-pagination .small-note { padding: 0; margin: 0 0 12px; }
.scope-picker { display: flex; gap: 8px; margin-bottom: 20px; }
.scope-picker a[aria-current] { background: #e9ebe3; border-color: #8b9892; }
[data-paged-board] tr[hidden], [data-more-results][hidden] { display: none; }
.result-row { display: flex; align-items: center; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); }
.result-row:last-child { border: 0; }
.result-title { flex: 1; min-width: 150px; }
.result-title h2 { margin: 0; font-size: 18px; }
.result-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.result-row .facts { flex: 1.6; margin: 0; }
.result-row .facts dd { font-size: 20px; }
.track-image { width: 64px; height: 64px; flex: none; }
.track-image img { display: block; width: 100%; height: 100%; border-radius: 5px; }
.report-board-column { min-width: 0; display: grid; gap: 24px; }
.report-map { overflow: hidden; }
.report-map a { display: block; }
.report-map img { display: block; width: 100%; height: auto; }
.result-best span { display: block; color: var(--muted); font-size: 11px; }
.result-best strong { font-size: 18px; }
.document-content { max-width: 800px; margin: 0 auto; padding: 32px 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); line-height: 1.75; }
.document-content > h1 { padding-bottom: 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.document-content h2 { margin: 32px 0 12px; font-size: 19px; }
.document-content h3 { margin: 24px 0 12px; }
.document-content li { margin-bottom: 8px; }
.document-content a { text-decoration: underline; }
.document-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.document-heading h1 { margin: 0; }
.document-art { width: 100px; flex: none; margin: 0; }
.document-art img { width: 100%; height: auto; border-radius: 4px; }
.document-content .note { padding: 16px; margin-top: 24px; background: #f2f3ec; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.document-content table { margin: 16px 0; }
.document-content td, .document-content th { padding: 12px; font-size: 13px; }
.document-content pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; padding: 16px; background: #f2f3ec; }
kbd { display: inline-block; padding: 2px 6px; border: 1px solid #c9cfca; border-radius: 3px; background: var(--surface); color: var(--ink); font: 12px var(--ui-font); }
.help-directory { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.help-topic { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.help-topic p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.community-page-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.community-page-grid h2 { margin-bottom: 16px; }
.creators { margin-top: 24px; }
.creators ul { list-style: none; padding: 0; }
.creators li { padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.news-page { max-width: 800px; }
.news-entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-entry time, .news-edited { color: var(--muted); font-size: 12px; }
.news-edited { margin-left: 8px; }
.news-entry h3 { margin: 8px 0 16px; font-size: 22px; }
.announcement-body { line-height: 1.75; overflow-wrap: anywhere; }
.announcement-link { text-decoration: underline; }
.announcement-image { display: block; margin: 16px 0; }
.announcement-image img { width: auto; max-height: 560px; height: auto; object-fit: contain; }
.text-link { min-height: 40px; display: inline-flex; align-items: center; font-size: 13px; text-decoration: underline; }
.empty-state { padding: 24px; color: var(--muted); }
.not-found { padding: 40px 0; }
@media (max-width: 1100px) {
 .header-inner { gap: 20px; }
 .wordmark { width: 150px; }
 .header-inner nav a { padding: 8px; font-size: 12px; }
 .front-grid { gap: 32px; }
}
@media (max-width: 850px) {
 .header-inner { grid-template-columns: minmax(0, 1fr) 40px; gap: 16px; }
 .header-inner .wordmark { justify-self: center; }
 .header-inner nav { grid-column: 1 / -1; grid-row: 2; }
 .header-inner > .theme-toggle { grid-column: 2; grid-row: 1; }
 .header-inner nav { justify-content: center; }
 .front-grid { grid-template-columns: minmax(240px,.9fr) minmax(0,1.1fr); gap: 24px; }
 .front-lower, .report-grid { grid-template-columns: 1fr; }
 .report-board > .table-scroll { max-height: 580px; }
 .result-row { flex-wrap: wrap; gap: 16px; }
 .result-row .facts { flex-basis: 100%; order: 3; }
 .result-title { min-width: 120px; }
}
@media (max-width: 600px) {
 .site-sheet { padding: 0 20px; }
 .site-main { padding: 24px 0 40px; }
 .header-inner { padding: 20px 0 16px; }
 .wordmark { width: 168px; }
 .header-inner nav { display: grid; grid-template-columns: repeat(5,1fr); width: 100%; gap: 4px; }
 .header-inner nav a { justify-content: center; padding: 8px 3px; font-size: 11px; min-height: 40px; }
 .front-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
 .play-menu h1 { font-size: 36px; }
 .race-track-name { margin-bottom: 20px; font-size: 16px; }
 .play-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
 .play-menu > h1, .play-menu > p { grid-column: 1 / -1; }
 .play-menu .primary-button { min-width: 0; width: 100%; min-height: 50px; font-size: 16px; padding: 12px; }
 .steam-block { margin: 0; }
 .steam-button { min-width: 0; min-height: 50px; width: 100%; padding: 12px 8px; font-size: 12px; }
 .trailer-play { bottom: 12px; left: 12px; min-height: 40px; padding: 8px 12px; }
 .front-lower { margin-top: 24px; }
 .section-heading { padding: 20px; }
 .section-heading h2 { font-size: 18px; }
 .section-heading .small-button { font-size: 12px; padding: 8px 12px; }
 .results-summary { padding: 16px 20px 0; }
 .facts { gap: 12px; margin-bottom: 20px; }
 .facts dt { font-size: 11px; }
 .facts dd { font-size: clamp(18px,5.3vw,23px); white-space: nowrap; }
 .leaderboard th, .leaderboard td { padding: 12px 8px; font-size: 12px; }
 .leaderboard th { font-size: 10px; }
 .leaderboard th:first-child, .leaderboard td:first-child { padding-left: 16px; }
 .leaderboard th:last-child, .leaderboard td:last-child { padding-right: 16px; }
 .leaderboard .gap-value { font-size: 11px; }
 .highlight-list { padding: 20px; }
 .day-page-heading { align-items: start; flex-direction: column; gap: 16px; }
 h1 { font-size: 30px; }
 .facts-full { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
 .facts-full dd { font-size: 25px; }
 .report-times { padding: 20px; }
 .document-content { padding: 24px 20px; }
 .document-content h1 { font-size: 28px; }
 .document-art { width: 72px; }
 .document-content table { display: block; overflow-x: auto; }
 .help-directory, .community-page-grid { grid-template-columns: 1fr; gap: 24px; }
 .back-link { margin-bottom: 20px; }
}
@media (max-width: 370px) {
 .site-sheet { padding: 0 12px; }
 .header-inner nav a { font-size: 10px; }
 .section-heading, .report-times, .highlight-list { padding: 16px; }
 .results-summary { padding: 16px 16px 0; }
 .document-content { padding: 20px 16px; }
 .document-heading { gap: 12px; }
 .document-art { width: 64px; }
}
/* Exact main-game action styles, shared by race and Steam including touch. */
.play-menu .primary-button { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 62.4px; padding: 14.4px 24px; border: 0; border-radius: 4.48px; font: 800 18.4px var(--ui-font); letter-spacing: .736px; box-shadow: none; text-align: center; }
.play-menu .primary-button:hover { background: #ff3d1f; }
.play-menu .primary-button:active { filter: brightness(.94); }
.play-menu .steam-button { color: #fff; background: #171d25; }
.play-menu .steam-button:hover { color: #fff; background: #232c38; }
.play-menu .steam-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.steam-block { margin-top: 9.6px; }
@media (max-width: 600px) { .play-menu { display: block; } }
@media (pointer: coarse) { .play-menu .primary-button { min-height: 52px; font-size: 16.8px; letter-spacing: .672px; } }
.header-inner { gap: 24px; }
.header-inner nav a { padding-inline: 8px; }
.header-inner nav .primary-button { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 4.48px; background: var(--orange); color: var(--paper); font: 800 14px/1 var(--ui-font); letter-spacing: .56px; box-shadow: none; }
.header-inner nav .primary-button:hover { background: #ff3d1f; color: var(--paper); }
.header-inner nav .primary-button:active { filter: brightness(.94); }
@media (max-width: 600px) { .header-inner nav .primary-button { grid-column: span 2; } }
@media (max-width: 600px) { .header-inner nav { grid-template-columns: repeat(4,1fr); } .header-inner nav a { padding-inline: 3px; } }
.racer-link { text-decoration: underline; text-decoration-color: #b8c4bb; }
.racer-search { display: grid; grid-template-columns: 1fr 220px auto; align-items: end; gap: 16px; margin-bottom: 24px; }
.racer-search label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.racer-search input, .racer-search select { width: 100%; min-width: 0; height: 44px; padding: 8px 12px; background: var(--surface); color: var(--ink); border: 1px solid #b9c4bb; border-radius: 4px; font: 15px var(--ui-font); }
.racer-search .btn { height: 44px; }
.account-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px; }
.account-heading h2 { margin-bottom: 4px; font-size: 26px; }
.account-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.account-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 24px; margin: 0; border-top: 1px solid var(--line); }
.account-metrics dt { color: var(--muted); font-size: 12px; font-weight: 400; }
.account-metrics dd { margin: 4px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.medal-totals { display: flex; flex-wrap: wrap; gap: 24px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 13px; }
.account-section { margin-top: 24px; }
.account-section .section-heading p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.account-section > p { padding: 20px 24px; margin: 0; }
.account-section table { margin: 0; }
.account-section th, .account-section td { padding: 12px 24px; }
.account-empty { padding: 32px; }
.account-empty h2 { margin-bottom: 12px; }
.account-empty p { max-width: 600px; color: var(--muted); }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.account-today { padding: 24px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.account-today h3 { margin: 0 0 8px; }
.account-today p { margin: 0; font-size: 13px; color: var(--muted); }
.account-today strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.account-status { padding: 16px 24px; color: var(--muted); font-size: 13px; }
.account-history tbody tr:nth-child(n+21) { display: none; }
.account-history.is-expanded tbody tr { display: table-row; }
.account-section .show-all { margin: 16px 24px; }
.attempt-trend { display: flex; align-items: end; gap: 4px; height: 100px; margin: 0 24px 24px; }
.attempt-trend > span { flex: 1; min-width: 3px; background: #718b7d; height: var(--height); border-radius: 2px 2px 0 0; }
.attempt-trend-caption { display: flex; justify-content: space-between; margin: 0 24px 16px; font-size: 11px; color: var(--muted); }
@media (max-width: 700px) { .racer-search { grid-template-columns: 1fr 1fr; } .racer-search .btn { grid-column: 1 / -1; } .account-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .account-heading, .account-today { align-items: start; flex-direction: column; } .account-section th, .account-section td { padding: 12px 16px; } }

/* Twitch uses the same neutral cards and spacing as race reports. */
.streams-section { margin-top: 24px; overflow: hidden; }
.streams-live-grid, .streams-vod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0 24px 24px; }
.streams-live-grid .stream-featured { grid-column: span 2; grid-row: span 2; }
.stream-card { min-width: 0; }
.stream-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); color: #fff; border-radius: 4px; }
.stream-preview img { width: 100%; height: 100%; object-fit: cover; }
.stream-preview:hover .stream-play { background: #10222a; }
.stream-play { position: absolute; bottom: 12px; left: 12px; padding: 8px 12px; background: #10222ae8; color: #fff; border-radius: 4px; font-size: 13px; font-weight: 600; }
.stream-placeholder { font-size: 24px; font-weight: 800; }
.stream-details { padding-top: 12px; }
.stream-channel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stream-channel h3 { font-size: 16px; margin: 0; }
.stream-live { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #345c46; }
.stream-live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; }
.stream-title { margin: 6px 0; font-size: 13px; overflow-wrap: anywhere; }
.stream-meta { margin: 0; color: var(--muted); font-size: 12px; }
.streams-past-heading { border-top: 1px solid var(--line); padding: 20px 24px; }
.streams-past-heading h3 { font-size: 16px; margin: 0; }
.stream-status { padding: 0 24px 24px; margin: 0; color: var(--muted); font-size: 13px; }
.stream-dialog { width: min(960px, calc(100vw - 48px)); max-width: none; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.stream-dialog::backdrop { background: #10222acc; }
.stream-dialog > button { display: block; margin: 0 0 12px auto; }
.stream-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; border: 0; }
@media (max-width: 700px) {
 .streams-live-grid, .streams-vod-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 16px 20px; }
 .streams-live-grid .stream-featured { grid-column: auto; grid-row: auto; }
 .stream-status, .streams-past-heading { padding-left: 16px; padding-right: 16px; }
}

.streams-live-grid:has(> :only-child) { grid-template-columns: 1fr; }
.streams-live-grid > .stream-featured:only-child { grid-column: auto; grid-row: auto; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 700px) { .streams-live-grid > .stream-featured:only-child { display: block; } }

/* Public community and race media share the game's paper, ink and medal chips. */
.game-intro { font-size: 17px; line-height: 1.65; margin: 0 0 24px; max-width: 42ch; }
.podium-medal { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 999px; font-weight: 800; }
.podium-medal[data-podium="gold"] { color: #5b4000; background: #ffc84a; }
.podium-medal[data-podium="silver"] { color: #39474c; background: #dfe6e8; }
.podium-medal[data-podium="bronze"] { color: #4a2a12; background: #d9a273; }
.community-page-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.community-info { padding: 24px; }
.community-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.video-author { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.social-caption { font-size: 14px; margin-top: 16px; overflow-wrap: anywhere; }
.social-caption p:last-child { margin-bottom: 0; }
.faq-list { max-width: 800px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq-item p { margin: 16px 0 0; max-width: 72ch; }
.faq-help { margin-top: 32px; }
.announcement-body blockquote { border-left: 3px solid var(--line); padding-left: 16px; margin: 16px 0; }
.announcement-body pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.home-news > p, .home-news > a { margin: 24px; }
@media (max-width: 700px) { .community-page-grid { grid-template-columns: 1fr; } .game-intro { font-size: 16px; } }

.news-entry h3, .news-page h1 { overflow-wrap: anywhere; }
.home-news [data-announcements] > p { padding: 24px; margin: 0; }

/* Discord content keeps its hierarchy inside the site's quiet news cards. */
.news-entry { padding: 32px 0; }
.news-heading h1 { margin: 0; }
.news-page > .news-entry:first-of-type { padding-top: 0; }
.news-entry > h3 { font-size: 23px; line-height: 1.3; margin: 10px 0 20px; }
.announcement-body { font-size: 15px; line-height: 1.6; }
.announcement-body .discord-heading { font-size: 16px; font-weight: 750; letter-spacing: 0; line-height: 1.4; margin: 24px 0 8px; }
.announcement-body .discord-heading:first-child { margin-top: 0; }
.announcement-body ul, .announcement-body ol { padding-left: 22px; margin: 8px 0 20px; }
.announcement-body li { padding-left: 2px; margin: 4px 0; }
.announcement-body p { margin-bottom: 16px; }
.announcement-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: 20px 0; max-width: 640px; }
.announcement-gallery.is-single { grid-template-columns: minmax(0,1fr); }
.announcement-gallery .announcement-image { margin: 0; border-radius: 6px; overflow: hidden; background: #e9ebe3; }
.announcement-gallery img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.announcement-trailer { max-width: 640px; margin: 20px 0; }
.link-preview { display: flex; flex-direction: column; gap: 8px; max-width: 460px; padding: 18px; margin: 16px 0; border: 1px solid var(--line); border-left: 3px solid #acb6b1; border-radius: 5px; background: #f3f3ed; text-decoration: none; overflow: hidden; }
.link-preview:hover { border-color: #8b9892; text-decoration: none; }
.link-preview-provider { color: var(--muted); font-size: 12px; }
.link-preview-title { font-size: 16px; }
.link-preview-description { font-size: 13px; line-height: 1.5; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 12; overflow: hidden; }
.link-preview-field { display: grid; font-size: 13px; gap: 2px; }
.link-preview img { width: 100%; max-height: 280px; object-fit: contain; border-radius: 4px; margin-top: 6px; }
.announcement-reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0; }
.reaction-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #e0e2db; border-radius: 5px; background: #f1f2ed; color: #68716f; font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; }
.reaction-emoji { display: inline-flex; filter: grayscale(1); opacity: .65; font-size: 15px; }
.reaction-emoji img { width: 17px; height: 17px; object-fit: contain; }
.trailer-region > .youtube-player { border-radius: 6px; }
@media(max-width: 600px) { .news-entry > h3 { font-size: 20px; } .announcement-body { font-size: 14px; } .link-preview { padding: 14px; } }

.faq-xp { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 14px; }
.faq-xp th, .faq-xp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.faq-xp th { background: #e9ebe3; font-weight: 600; }
.faq-xp th:last-child, .faq-xp td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Theme preference shares the navigation alignment and spacing. */
.theme-toggle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 0; padding: 8px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); cursor: pointer; }
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[aria-pressed="true"] svg { fill: currentColor; stroke-width: 1; }
.twitch-mark { width: 19px; height: 19px; flex: none; }
@media(max-width: 850px) { .header-inner { gap: 16px; } .header-inner nav { flex-basis: 100%; } }
@media(max-width: 600px) { .header-inner nav a { min-height: 44px; } .theme-toggle { grid-column: 4; justify-self: center; margin-left: 0; } }
:root[data-theme="dark"] .header-inner nav a { color: #bbc6c7; }
:root[data-theme="dark"] .header-inner nav a:hover,
:root[data-theme="dark"] .header-inner nav a[aria-current],
:root[data-theme="dark"] .small-button:hover,
:root[data-theme="dark"] .compact-button:hover,
:root[data-theme="dark"] .result-open:hover,
:root[data-theme="dark"] .season-picker a[aria-current],
:root[data-theme="dark"] .scope-picker a[aria-current] { background: #273b42; color: var(--ink); border-color: #62777e; }
:root[data-theme="dark"] .header-inner nav .primary-button { background: var(--orange); color: var(--paper); }
:root[data-theme="dark"] .header-inner nav .primary-button:hover { background: #ff3d1f; }
:root[data-theme="dark"] :is(.small-button,.compact-button,.result-open,kbd,.compare-controls input,.racer-search input,.racer-search select) { border-color: #62777e; }
:root[data-theme="dark"] :is(th,.leaderboard th,.document-content .note,.document-content pre,.faq-xp th) { background: #213239; }
:root[data-theme="dark"] .leaderboard { --tblr-table-bg: var(--surface); --tblr-table-hover-bg: #213239; }
:root[data-theme="dark"] .leaderboard tbody tr:hover { background: #213239; }
:root[data-theme="dark"] :is(.trailer-frame,.youtube-player,.stream-preview,.youtube-poster:hover .video-play) { background: #10222a; }
:root[data-theme="dark"] .trailer-play { color: #10222a; }
:root[data-theme="dark"] .player-status { color: #10222a; }
:root[data-theme="dark"] .btn-primary { --tblr-btn-bg: #d8e4df; --tblr-btn-color: #10222a; --tblr-btn-border-color: #d8e4df; --tblr-btn-hover-bg: #eff4f0; --tblr-btn-hover-color: #10222a; --tblr-btn-hover-border-color: #eff4f0; --tblr-btn-active-bg: #c6d8cf; --tblr-btn-active-color: #10222a; }
:root[data-theme="dark"] .comparison-result { background: #20362f; border-color: #476358; }
:root[data-theme="dark"] .comparison-details { border-color: #476358; }
:root[data-theme="dark"] .plot-grid { stroke: #30434a; }
:root[data-theme="dark"] .density-area { fill: #284b42; }
:root[data-theme="dark"] :is(.density-line,.plot-median-guide,.plot-whisker) { stroke: #95c7b3; }
:root[data-theme="dark"] .plot-box { fill: #365e51; stroke: #95c7b3; }
:root[data-theme="dark"] .plot-outlier { stroke: #a4b2b4; }
:root[data-theme="dark"] .plot-axis { stroke: #62777e; }
:root[data-theme="dark"] .stream-live { color: #83e6c7; }
:root[data-theme="dark"] .announcement-gallery .announcement-image { background: #213239; }
:root[data-theme="dark"] .link-preview { background: #213239; border-left-color: #62777e; }
:root[data-theme="dark"] .reaction-chip { color: #a4b2b4; background: #213239; border-color: var(--line); }
:root[data-theme="dark"] code { color: #c0ddd1; }
:root[data-theme="dark"] .play-menu .steam-button { box-shadow: inset 0 0 0 1px #4e5b66; }

.plot-layers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.plot-layers button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.plot-layers button span { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.plot-layers button[aria-pressed="true"] { color: var(--ink); }
.plot-layers button[aria-pressed="true"] span { background: #597968; border-color: #597968; }
.plot-layers button[aria-pressed="false"] { text-decoration: line-through; }
.finish-plot .plot-value { font-size: 13px; font-weight: 600; fill: var(--ink); }
:root[data-theme="dark"] .plot-layers button[aria-pressed="true"] span { background: #95c7b3; border-color: #95c7b3; }

.chart-data h3 { margin: 12px 0; font-size: 15px; }
.finish-plot { cursor: crosshair; }
.plot-crosshair { pointer-events: none; }
.plot-crosshair > line { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 4 3; }
.plot-crosshair rect { fill: var(--ink); }
.finish-plot .plot-crosshair text { fill: var(--surface); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* One source image, one continuous feather. Keep the accepted 9px image blur. */
.front-grid { --hero-bleed: 141px; position: relative; isolation: isolate; border-bottom-color: transparent;
 --hero-feather: linear-gradient(to right,transparent,#00000014 8%,#00000059 20%,#000000b3 35%,#000 50%,#000000b3 65%,#00000059 80%,#00000014 92%,transparent),linear-gradient(to bottom,rgb(0 0 0 / 0.00000) 0%,rgb(0 0 0 / 0.00616) 2.5%,rgb(0 0 0 / 0.02447) 5%,rgb(0 0 0 / 0.05450) 7.5%,rgb(0 0 0 / 0.09549) 10%,rgb(0 0 0 / 0.14645) 12.5%,rgb(0 0 0 / 0.20611) 15%,rgb(0 0 0 / 0.27300) 17.5%,rgb(0 0 0 / 0.34549) 20%,rgb(0 0 0 / 0.42178) 22.5%,rgb(0 0 0 / 0.50000) 25%,rgb(0 0 0 / 0.57822) 27.5%,rgb(0 0 0 / 0.65451) 30%,rgb(0 0 0 / 0.72700) 32.5%,rgb(0 0 0 / 0.79389) 35%,rgb(0 0 0 / 0.85355) 37.5%,rgb(0 0 0 / 0.90451) 40%,rgb(0 0 0 / 0.94550) 42.5%,rgb(0 0 0 / 0.97553) 45%,rgb(0 0 0 / 0.99384) 47.5%,rgb(0 0 0 / 1.00000) 50%,rgb(0 0 0 / 0.99384) 52.5%,rgb(0 0 0 / 0.97553) 55%,rgb(0 0 0 / 0.94550) 57.5%,rgb(0 0 0 / 0.90451) 60%,rgb(0 0 0 / 0.85355) 62.5%,rgb(0 0 0 / 0.79389) 65%,rgb(0 0 0 / 0.72700) 67.5%,rgb(0 0 0 / 0.65451) 70%,rgb(0 0 0 / 0.57822) 72.5%,rgb(0 0 0 / 0.50000) 75%,rgb(0 0 0 / 0.42178) 77.5%,rgb(0 0 0 / 0.34549) 80%,rgb(0 0 0 / 0.27300) 82.5%,rgb(0 0 0 / 0.20611) 85%,rgb(0 0 0 / 0.14645) 87.5%,rgb(0 0 0 / 0.09549) 90%,rgb(0 0 0 / 0.05450) 92.5%,rgb(0 0 0 / 0.02447) 95%,rgb(0 0 0 / 0.00616) 97.5%,rgb(0 0 0 / 0.00000) 100%); }
.site-header, .home-page > :not(.front-grid) { position: relative; z-index: 1; }
.front-grid::before, .hero-fade-grain { position: absolute; inset: calc(0px - var(--hero-bleed)) auto calc(0px - var(--hero-bleed)) 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; mask-image: var(--hero-feather); mask-composite: intersect; }
.front-grid::before { content: ''; z-index: -1; background-image: url('./assets/home-track-wide.webp'); background-repeat: no-repeat; background-size: var(--hero-art-size,cover); background-position: var(--hero-art-position,center); filter: blur(9px); opacity: .46; }
.hero-fade-grain { z-index: 0; background: url('./assets/fade-grain.svg') repeat; background-size: 128px 128px; opacity: .025; }
.front-grid > .play-region, .front-grid > .trailer-region { position: relative; z-index: 1; }
:root[data-theme="light"] .front-grid::before { opacity: .48; }
@media(max-width: 700px) { .front-grid::before { background-image: url('./assets/home-track-phone.webp'); opacity: .34; } }
@media(max-width: 600px) { .front-grid { --hero-bleed: 307px; } }
.plot-average-guide { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 3; }
.plot-peak-leader { fill: none; stroke: var(--ink); stroke-width: 1; }
.plot-peak-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }

/* Mobile keeps the race action visible; the menu holds the remaining controls. */
.header-menu { display: contents; }
.mobile-race, .menu-toggle { display: none; }
@media (max-width: 850px) {
 .header-inner { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 12px; min-height: 76px; padding: 16px 0; }
 .header-inner .wordmark { width: min(160px, 100%); justify-self: start; }
 .header-inner .mobile-race { display: inline-flex; min-height: 44px; height: 44px; padding: 0 14px; font-size: 14px; line-height: 1; letter-spacing: .56px; }
 .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--surface); cursor: pointer; }
 .menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
 .menu-toggle[aria-expanded="true"] { background: var(--line); }
 .header-menu { display: grid; grid-column: 1 / -1; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
 .menu-ready:not(.menu-open) .header-menu { display: none; }
 .header-inner .header-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1; grid-row: auto; gap: 6px; width: 100%; }
 .header-inner .header-menu nav a { min-height: 44px; padding: 10px 12px; font-size: 14px; }
 .header-inner .header-menu nav .primary-button { display: none; }
 .header-menu .theme-toggle { grid-column: 1; grid-row: auto; justify-self: end; width: 44px; height: 44px; }
}
@media (max-width: 370px) {
 .header-inner { gap: 8px; }
 .header-inner .mobile-race { padding-inline: 10px; font-size: 12px; }
}
