/* Self-hosted fonts (latin subset). Display font blocks briefly (it is preloaded) so headlines never
   redraw; text fonts are optional so a slow load keeps the system font instead of swapping mid-read. */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: block; src: url(/static/fonts/barlow-condensed-latin-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: block; src: url(/static/fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: optional; src: url(/static/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: optional; src: url(/static/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: optional; src: url(/static/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: optional; src: url(/static/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: optional; src: url(/static/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: optional; src: url(/static/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: optional; src: url(/static/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: optional; src: url(/static/fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); }

/* Just In Time Racing — site styles */

:root {
    --ink: #0d1117;
    --ink-2: #161b22;
    --ink-3: #21262d;
    --paper: #f5f6f8;
    --card: #ffffff;
    --line: #e3e6eb;
    --line-strong: #cfd4dc;
    --text: #14181f;
    --muted: #5b6472;
    --faint: #8a93a2;
    --accent: #e8452c;
    --accent-ink: #c2341d;
    --accent-soft: #fdece8;
    --lane: #b8442f;
    --gold: #f2b230;
    --link: #1f5fbf;
    --mark: #ffe58f;
    --girls: #b0367c;
    --boys: #1f5fbf;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(13, 17, 23, .06), 0 4px 16px rgba(13, 17, 23, .05);
    --wrap: 1200px;
    color-scheme: light;
    --chrome-bg: rgba(255, 255, 255, .92);
    --chrome-solid: #ffffff;
    --chrome-text: #14181f;
    --chrome-muted: #5b6472;
    --chrome-hover: rgba(13, 17, 23, .06);
    --chrome-line: #e3e6eb;
    --chrome-input: #f1f3f6;
    --hero-bg: radial-gradient(1200px 400px at 85% -10%, rgba(232, 69, 44, .13), transparent 60%), linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
    --hero-text: #0d1117;
    --hero-muted: #4b5563;
    --hero-faint: #6b7280;
    --hero-lanes: .28;
    --stat-bg: #ffffff;
    --stat-line: #e3e6eb;
    --eyebrow-text: #c2341d;
    --search-shadow: 0 8px 28px rgba(13, 17, 23, .08);
    --head-bg: linear-gradient(180deg, #ffffff, #f2f4f7);
    --head-text: #0d1117;
    --head-muted: #5b6472;
    --fact-bg: #ffffff;
    --fact-line: #e3e6eb;
    --fact-text: #2d3540;
    --thead-bg: #eef0f4;
    --thead-text: #3a4250;
    --footer-bg: #eef0f4;
    --footer-text: #5b6472;
    --footer-head: #0d1117;
    --footer-link: #2d3540;
    --footer-line: #dde1e7;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0b0e13;
        --card: #12161d;
        --line: #232a34;
        --line-strong: #2f3845;
        --text: #e8ebf0;
        --muted: #a1aab8;
        --faint: #77808f;
        --accent-soft: #2a1612;
        --link: #6ea8ff;
        --mark: #6b5310;
        --girls: #f07bbd;
        --boys: #6ea8ff;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
        color-scheme: dark;
        --chrome-bg: rgba(13, 17, 23, .92);
        --chrome-solid: #0d1117;
        --chrome-text: #ffffff;
        --chrome-muted: #c9d1d9;
        --chrome-hover: rgba(255, 255, 255, .08);
        --chrome-line: rgba(255, 255, 255, .07);
        --chrome-input: rgba(255, 255, 255, .06);
        --hero-bg: radial-gradient(1200px 400px at 85% -10%, rgba(232, 69, 44, .35), transparent 60%), linear-gradient(180deg, #0d1117 0%, #131922 100%);
        --hero-text: #ffffff;
        --hero-muted: #c4ccd6;
        --hero-faint: #8b949e;
        --hero-lanes: .55;
        --stat-bg: rgba(13, 17, 23, .7);
        --stat-line: rgba(255, 255, 255, .08);
        --eyebrow-text: #ffb4a6;
        --search-shadow: 0 20px 50px rgba(0, 0, 0, .35);
        --head-bg: linear-gradient(180deg, #0d1117, #151b24);
        --head-text: #ffffff;
        --head-muted: #aeb7c3;
        --fact-bg: rgba(255, 255, 255, .07);
        --fact-line: rgba(255, 255, 255, .1);
        --fact-text: #dfe5ec;
        --thead-bg: #161b22;
        --thead-text: #ffffff;
        --footer-bg: #0d1117;
        --footer-text: #9aa4b2;
        --footer-head: #ffffff;
        --footer-link: #c9d1d9;
        --footer-line: rgba(255, 255, 255, .08);
    }
}

:root[data-theme="dark"] {
    --paper: #0b0e13;
    --card: #12161d;
    --line: #232a34;
    --line-strong: #2f3845;
    --text: #e8ebf0;
    --muted: #a1aab8;
    --faint: #77808f;
    --accent-soft: #2a1612;
    --link: #6ea8ff;
    --mark: #6b5310;
    --girls: #f07bbd;
    --boys: #6ea8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
    --chrome-bg: rgba(13, 17, 23, .92);
    --chrome-solid: #0d1117;
    --chrome-text: #ffffff;
    --chrome-muted: #c9d1d9;
    --chrome-hover: rgba(255, 255, 255, .08);
    --chrome-line: rgba(255, 255, 255, .07);
    --chrome-input: rgba(255, 255, 255, .06);
    --hero-bg: radial-gradient(1200px 400px at 85% -10%, rgba(232, 69, 44, .35), transparent 60%), linear-gradient(180deg, #0d1117 0%, #131922 100%);
    --hero-text: #ffffff;
    --hero-muted: #c4ccd6;
    --hero-faint: #8b949e;
    --hero-lanes: .55;
    --stat-bg: rgba(13, 17, 23, .7);
    --stat-line: rgba(255, 255, 255, .08);
    --eyebrow-text: #ffb4a6;
    --search-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    --head-bg: linear-gradient(180deg, #0d1117, #151b24);
    --head-text: #ffffff;
    --head-muted: #aeb7c3;
    --fact-bg: rgba(255, 255, 255, .07);
    --fact-line: rgba(255, 255, 255, .1);
    --fact-text: #dfe5ec;
    --thead-bg: #161b22;
    --thead-text: #ffffff;
    --footer-bg: #0d1117;
    --footer-text: #9aa4b2;
    --footer-head: #ffffff;
    --footer-link: #c9d1d9;
    --footer-line: rgba(255, 255, 255, .08);
}

*, *::before, *::after { box-sizing: border-box; }
/* Overscroll ("rubber band") shows the root background: header color above, footer color below. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: linear-gradient(180deg, var(--chrome-solid) 50%, var(--footer-bg) 50%) fixed; overscroll-behavior-y: none; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--text);
    font: 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--chrome-bg);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--chrome-line);
    color: var(--chrome-text);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--chrome-text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font: 800 italic 22px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand-name span { color: var(--accent); }
.brand-sub { display: block; font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--chrome-muted); margin-top: 3px; font-style: normal; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
    color: var(--chrome-muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px;
    white-space: nowrap;
}
.nav a:hover { color: var(--chrome-text); background: var(--chrome-hover); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--chrome-text); background: rgba(232, 69, 44, .18); box-shadow: inset 0 -2px 0 var(--accent); }
.header-search { position: relative; width: 220px; }
.header-search input {
    width: 100%; height: 36px; border-radius: 9px; border: 1px solid var(--chrome-line);
    background: var(--chrome-input); color: var(--chrome-text); padding: 0 12px 0 34px; font: 14px var(--sans);
}
.header-search input::placeholder { color: #8b949e; }
.header-search input:focus { outline: none; border-color: var(--accent); background: var(--chrome-input); }
.header-search svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: #8b949e; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--chrome-text); padding: 8px; border-radius: 8px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; display: block; }

@media (max-width: 980px) {
    .header-search { display: none; }
}
@media (max-width: 820px) {
    .menu-btn { display: block; }
    .nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
        background: var(--chrome-solid); padding: 8px 12px 16px; border-bottom: 1px solid var(--chrome-line);
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px; font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--hero-text);
    background: var(--hero-bg);
    padding: 72px 0 88px;
}
.hero::after {
    /* Track lanes */
    content: ""; position: absolute; left: -10%; right: -10%; bottom: -40px; height: 150px;
    background: repeating-linear-gradient(180deg, var(--lane) 0 26px, rgba(255, 255, 255, .55) 26px 28px);
    transform: perspective(500px) rotateX(58deg);
    transform-origin: bottom; opacity: var(--hero-lanes);
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--sans); letter-spacing: .16em;
    text-transform: uppercase; color: var(--eyebrow-text); background: rgba(232, 69, 44, .1); border: 1px solid rgba(232, 69, 44, .35);
    padding: 7px 11px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 69, 44, .25); }
.hero h1 {
    font: 800 italic clamp(44px, 7vw, 84px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.005em;
    margin: 20px 0 16px; max-width: 900px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: var(--hero-muted); max-width: 680px; margin: 0 0 28px; }

.big-search { display: flex; max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--search-shadow); }
.big-search input {
    flex: 1; min-width: 0; border: 0; background: transparent; font: 500 18px var(--sans); color: #14181f; padding: 12px 14px;
}
.big-search input:focus { outline: none; }
.big-search button {
    border: 0; background: var(--accent); color: #fff; font: 700 16px var(--sans); padding: 0 22px; border-radius: 10px; cursor: pointer;
}
.big-search button:hover { background: var(--accent-ink); }
.search-hints { margin-top: 12px; color: var(--hero-faint); font-size: 14px; }
.search-hints a { color: var(--hero-muted); border-bottom: 1px dashed var(--line-strong); }
.search-hints a:hover { text-decoration: none; color: var(--hero-text); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 48px; max-width: 860px; background: var(--stat-line); border: 1px solid var(--stat-line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--stat-bg); padding: 18px 20px; }
.stat b { display: block; font: 800 italic 36px/1 var(--display); color: var(--hero-text); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--hero-faint); }
@media (max-width: 640px) {
    .hero { padding: 48px 0 72px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .big-search input { font-size: 16px; }
    .big-search button { padding: 0 16px; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font: 800 italic 34px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.kicker { font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }

.sport-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .sport-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sport-grid { grid-template-columns: 1fr; } }
.sport-card {
    position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; min-height: 190px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    color: var(--text); overflow: hidden; transition: transform .15s ease, border-color .15s ease;
}
.sport-card:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.sport-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.sport-card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.sport-card .icon svg { width: 22px; height: 22px; }
.sport-card h3 { font: 800 italic 26px/1 var(--display); text-transform: uppercase; margin: 6px 0 0; }
.sport-card p { margin: 0; color: var(--muted); font-size: 14px; }
.sport-card .meta { margin-top: auto; font-size: 13px; color: var(--faint); font-weight: 600; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.quote { margin: 0; padding: 24px 24px 20px; border-left: 4px solid var(--accent); }
.quote p { font-size: 17px; margin: 0 0 12px; }
.quote cite { font-style: normal; color: var(--muted); font-size: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8452c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }

.recent { list-style: none; margin: 0; padding: 0; }
.recent li { border-top: 1px solid var(--line); }
.recent li:first-child { border-top: 0; }
.recent a { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 12px 18px; align-items: center; color: var(--text); }
.recent a:hover { background: var(--paper); text-decoration: none; }
.recent .d { font: 700 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.recent .t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.logos a {
    display: grid; place-items: center; height: 84px; padding: 14px 18px; background: #fff; border-radius: 10px;
    border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease;
}
.logos a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.logos img { height: 44px; width: 100%; max-width: 150px; object-fit: contain; display: block; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
    background: var(--head-bg); color: var(--head-text); padding: 28px 0 30px;
    border-bottom: 3px solid var(--accent);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--head-muted); margin: 0 0 14px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--head-muted); }
.page-head h1 { font: 800 italic clamp(30px, 4.6vw, 50px)/1.02 var(--display); text-transform: uppercase; margin: 0; letter-spacing: .005em; }
.page-head .sub { color: var(--head-muted); margin: 10px 0 0; max-width: 820px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fact {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--fact-text);
    background: var(--fact-bg); border: 1px solid var(--fact-line); padding: 6px 10px; border-radius: 8px;
}
.fact svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Results page ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 28px 0 56px; }
@media (max-width: 1040px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.toolbar {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid var(--line);
    position: sticky; top: 64px; background: var(--card); z-index: 5; border-radius: var(--radius) var(--radius) 0 0;
}
.filter { position: relative; flex: 1; min-width: 200px; }
.filter input {
    width: 100%; height: 40px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 12px 0 36px;
    background: var(--paper); color: var(--text); font: 15px var(--sans);
}
.filter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filter svg { position: absolute; left: 11px; top: 12px; width: 16px; height: 16px; color: var(--faint); }
.btn {
    display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong);
    background: var(--card); color: var(--text); font: 600 14px var(--sans); cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.match-count { font-size: 13px; color: var(--muted); font-weight: 600; }

.results-body { padding: 18px; overflow-x: auto; }
.results-body > :first-child { margin-top: 0; }

/* Hy-Tek text results */
pre.hytek {
    font: 13.5px/1.55 var(--mono); color: var(--text); margin: 0 0 18px; white-space: pre; tab-size: 8;
    font-variant-numeric: tabular-nums; min-width: min-content;
}
pre.hytek .ev { display: inline-block; font-weight: 700; color: var(--accent-ink); margin-top: 10px; }
:root[data-theme="dark"] pre.hytek .ev { color: #ff8b73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) pre.hytek .ev { color: #ff8b73; } }
pre.hytek .rule { color: var(--line-strong); }
pre.hytek .ln { display: inline-block; width: 100%; border-radius: 3px; }
pre.hytek .ln.hit { background: var(--mark); }
pre.hytek .ln.dim { opacity: .28; }
pre.hytek b, pre.hytek strong { font-weight: 700; }

/* Word / Excel tables, normalised */
.results-body table { border-collapse: collapse; margin: 0 0 20px; font-size: 14px; font-variant-numeric: tabular-nums; }
.results-body table.data { width: 100%; min-width: 560px; }
.results-body table.nested { min-width: 0; margin: 0; }
.results-body td, .results-body th { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.results-body table.plain td { white-space: normal; border: 0; padding: 4px 8px; }
.results-body tr.hdr td, .results-body tr.hdr th, .results-body thead th {
    background: var(--thead-bg); color: var(--thead-text); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 0;
    position: sticky; top: 0;
}
.results-body table.data tbody tr:not(.hdr):nth-child(even) td { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.results-body table.data tr:not(.hdr):hover td { background: var(--accent-soft); }
.results-body tr.hit td { background: var(--mark) !important; }
.results-body tr.dim { opacity: .28; }
.results-body p { margin: 0 0 10px; }
.results-body h2, .results-body h3, .results-body h4 { font: 800 italic 22px/1.1 var(--display); text-transform: uppercase; margin: 22px 0 10px; }
.results-body hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.legacy-links { display: flex; gap: 8px; flex-wrap: wrap; }
.legacy-links a { font-weight: 600; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; }

/* Workbook tabs */
.tabs { display: flex; gap: 6px; padding: 12px 12px 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab {
    flex: 0 0 auto; border: 1px solid var(--line); border-bottom: 0; background: var(--paper); color: var(--muted); font: 600 13px var(--sans);
    padding: 9px 14px; border-radius: 9px 9px 0 0; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: inset 0 3px 0 var(--accent); }
.tab.missing { color: var(--faint); text-decoration: line-through; }
.sheet[hidden] { display: none; }
.sheet h2.sheet-title { font: 800 italic 22px/1.1 var(--display); text-transform: uppercase; margin: 0 0 12px; }
.notice {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; margin: 0 0 16px;
    background: #fff7e6; border: 1px solid #f6d58b; color: #6a4a00; font-size: 14px;
}
:root[data-theme="dark"] .notice { background: #2a2210; border-color: #5b4713; color: #f3d48a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice { background: #2a2210; border-color: #5b4713; color: #f3d48a; } }
.notice svg { flex: 0 0 18px; height: 18px; margin-top: 2px; }

/* Sidebar */
.side { display: grid; gap: 18px; align-content: start; }
.side h2 { font: 800 italic 18px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.side ul { list-style: none; margin: 0; padding: 6px 0; }
.side li a { display: block; padding: 8px 18px; font-size: 14px; color: var(--text); line-height: 1.35; }
.side li a:hover { background: var(--paper); text-decoration: none; color: var(--accent-ink); }
.side li a small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.side li a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }

/* ---------- Hub pages ---------- */
.season-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 700 13px var(--sans);
    background: var(--card); border: 1px solid var(--line-strong); color: var(--text); font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.season { margin: 28px 0; scroll-margin-top: 84px; }
.season-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.season-head h2 { font: 800 italic 34px/1 var(--display); text-transform: uppercase; margin: 0; }
.season-head .count { color: var(--muted); font-size: 14px; font-weight: 600; }
.season-head .more { margin-left: auto; font-weight: 700; font-size: 14px; }
.meets { list-style: none; padding: 0; margin: 0; }
.meet { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.meet:first-child { border-top: 0; }
.meet .d { font: 700 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.meet .n { min-width: 0; }
.meet .n a, .meet .n strong { font-weight: 650; color: var(--text); }
.meet .n a:hover { color: var(--accent-ink); }
.meet .n small { display: block; color: var(--faint); font-size: 12.5px; }
.meet .links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pill {
    display: inline-flex; align-items: center; font: 700 12px var(--sans); padding: 5px 10px; border-radius: 999px;
    border: 1px solid var(--line-strong); color: var(--text); background: var(--card); white-space: nowrap;
}
.pill:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.pill.g { color: var(--girls); border-color: color-mix(in srgb, var(--girls) 35%, transparent); }
.pill.b { color: var(--boys); border-color: color-mix(in srgb, var(--boys) 35%, transparent); }
.badge { display: inline-block; font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); margin-left: 6px; vertical-align: 2px; }
:root[data-theme="dark"] .badge { color: #ff8b73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #ff8b73; } }
@media (max-width: 640px) {
    .meet { grid-template-columns: 1fr; gap: 6px; }
    .meet .links { justify-content: flex-start; }
}
details.more-list summary { cursor: pointer; padding: 12px 18px; font-weight: 700; color: var(--link); border-top: 1px solid var(--line); list-style: none; }
details.more-list summary::-webkit-details-marker { display: none; }
details.more-list summary::after { content: " ▾"; }
details.more-list[open] summary::after { content: " ▴"; }

/* ---------- Search ---------- */
.search-page form { display: flex; gap: 10px; max-width: 760px; }
.search-page input[type=search] {
    flex: 1; min-width: 0; height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 16px; font: 500 17px var(--sans);
    background: var(--card); color: var(--text);
}
.search-page input[type=search]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hit-card { padding: 16px 18px; border-top: 1px solid var(--line); }
.hit-card:first-child { border-top: 0; }
.hit-card h3 { font-size: 16px; margin: 0 0 2px; font-weight: 700; }
.hit-card .where { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.hit-card pre { margin: 0; font: 12.5px/1.6 var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; }
.hit-card mark, .results-body mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font: 800 italic 28px/1.05 var(--display); text-transform: uppercase; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 28px; margin-top: 24px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { color: var(--footer-head); font: 800 italic 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--footer-link); }
.site-footer .fine { border-top: 1px solid var(--footer-line); margin-top: 32px; padding-top: 18px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.theme-toggle { background: none; border: 1px solid var(--footer-line); color: var(--footer-link); border-radius: 8px; padding: 5px 10px; font: 600 13px var(--sans); cursor: pointer; }

.empty-state { text-align: center; padding: 56px 20px; }
.empty-state h2 { font: 800 italic 36px/1 var(--display); text-transform: uppercase; }

@media print {
    .site-header, .site-footer, .side, .toolbar, .tabs, .skip { display: none !important; }
    .page-head { background: none; color: #000; border: 0; padding: 0 0 10px; }
    .page-head .crumbs, .facts { display: none; }
    .layout { display: block; padding: 0; }
    .card { border: 0; box-shadow: none; }
    .sheet[hidden] { display: block !important; }
    body { background: #fff; }
}

/* ---------- Hero photos & photo strip ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; justify-items: center; text-align: center; max-width: 960px; margin: 0 auto; }
.hero-photos { position: relative; height: 420px; }
.hero-photos img {
    position: absolute; width: 78%; border-radius: 14px; object-fit: cover; aspect-ratio: 3 / 2;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55); border: 3px solid rgba(255, 255, 255, .9);
}
.hero-photos img:first-child { top: 0; right: 0; transform: rotate(3deg); }
.hero-photos img:last-child { bottom: 0; left: 0; transform: rotate(-4deg); }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photos { display: none; }
}
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.photo-strip figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); aspect-ratio: 3 / 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.photo-strip figure:hover img { transform: scale(1.04); }
.photo-strip figcaption {
    position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; color: #fff; font-size: 12.5px; font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}
@media (max-width: 860px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .photo-strip figure:first-child { grid-column: span 2; } }

@media (max-width: 640px) {
    pre.hytek { font-size: 11.5px; }
    .results-body { padding: 12px; }
    .layout { padding-top: 16px; }
    .page-head h1 { font-size: 28px; }
    .fact { font-size: 12px; padding: 5px 8px; }
}

/* Timing request form */
.tform { display: grid; gap: 14px; }
.tform label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.tform input, .tform select, .tform textarea {
    width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 12px; font: 15px var(--sans);
    background: var(--paper); color: var(--text);
}
.tform input:focus, .tform select:focus, .tform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tform .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.tform fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tform legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.tform .chk { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tform .chk input { width: auto; }
.tform .err { color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.tform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .tform .row2, .tform .row3 { grid-template-columns: 1fr; } }

.nav a.nav-cta { background: var(--accent); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--accent-ink); }
@media (max-width: 820px) { .nav a.nav-cta { margin: 6px 0 0; text-align: center; } }
.tform .row2, .tform .row3 { align-items: end; }
.tform input, .tform select, .tform textarea { height: 44px; }
.tform textarea { height: auto; min-height: 120px; resize: vertical; }
.tform fieldset { background: var(--paper); }
.tform .chk { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); cursor: pointer; font-size: 14px; }
.tform .chk:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tform .chk input { accent-color: var(--accent); margin: 0; }
.tform button[type=submit] { justify-content: center; width: 100%; }

.tform .topics { gap: 8px; }
.tform .topics a.chk { text-decoration: none; color: var(--text); }
.tform .ref { margin: -4px 0 0; font-size: 14px; color: var(--muted); }
.fine-print { margin: 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.side-h { font: 800 italic 22px/1 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.sent-box { text-align: center; padding: 24px 8px; }
.sent-box svg { width: 56px; height: 56px; color: var(--accent); }
.sent-box h2 { font: 800 italic 32px/1 var(--display); text-transform: uppercase; margin: 10px 0; }

/* Logo marquee */
.logo-section .section-head { margin-bottom: 26px; }
.marquee { overflow: hidden; padding: 14px 0 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-tile {
    flex: 0 0 auto; display: grid; place-items: center; width: 240px; height: 120px; padding: 22px 28px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.logo-tile:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 34px rgba(13, 17, 23, .16); border-color: var(--accent); }
.logo-tile img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }
@media (max-width: 640px) { .logo-tile { width: 180px; height: 96px; padding: 16px 20px; } .logo-tile img { max-height: 56px; } }
/* Reduced-motion visitors still see it move, just slower; hover or focus pauses it. */
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 140s; } }
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.news-body p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.news-body .dateline { font-weight: 800; letter-spacing: .02em; }
.news-body h2 { margin-top: 30px; }

/* News recap tables: compact, never wider than the article */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 8px; }
.results-body table.data.compact { min-width: 0; font-size: 14.5px; }
.results-body table.data.compact td, .results-body table.data.compact th { padding: 8px 10px; vertical-align: top; }
.results-body table.data.compact td:first-child { white-space: nowrap; color: var(--muted); }
.results-body table.data.compact .sub-line { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }

.page-head .byline { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.page-head .byline a { color: inherit; font-weight: 700; }
.fact-link { text-decoration: none; font-weight: 700; color: var(--accent); }
.pill-accent { background: var(--accent); color: #fff; }

/* Homepage: quote in the hero, latest results grid */
.hero-quote { align-self: center; }
.hero-quote .quote { margin: 0; padding: 26px 28px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--card); color: var(--text); font-size: 17px; line-height: 1.6; box-shadow: var(--shadow); }
.hero-quote .quote p { margin: 0 0 12px; }
.hero-quote cite { font-style: normal; font-weight: 700; font-size: 14px; color: var(--muted); }
.latest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.latest-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.latest-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.latest-date { flex: none; width: 52px; text-align: center; font: 800 italic 15px/1.1 var(--display); text-transform: uppercase; color: var(--accent); }
.latest-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.latest-body strong { line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-body small { color: var(--muted); font-size: 13px; }

/* Header theme toggle (sun shows in dark mode, moon in light) */
.theme-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--chrome-line); background: var(--chrome-input); color: var(--chrome-muted); cursor: pointer; }
.theme-btn:hover { color: var(--chrome-text); border-color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
@media (max-width: 980px) { .site-header .wrap { gap: 10px; } .theme-btn { margin-left: 4px; width: 36px; height: 36px; } }
@media (max-width: 400px) { .brand-sub { display: none; } .brand-name { font-size: 20px; } }

/* The press quote sits in the hero on wide screens and at the bottom of the page on phones. */
.quote-bottom { display: none; margin: 0 0 28px; }
@media (max-width: 760px) { .quote-top { display: none; } .quote-bottom { display: block; } }
@media (max-width: 760px) { .stat { padding: 14px 14px; } .stat b { font-size: 27px; } }

/* Compact season picker under the hero search */
.season-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 760px; }
.season-pick a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.season-pick a:hover { border-color: var(--accent); transform: translateY(-1px); }
.season-pick .icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.season-pick .icon svg { width: 17px; height: 17px; }
.season-pick strong { display: block; font-size: 14px; line-height: 1.2; }
.season-pick small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .season-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Press quote in the footer */
.foot-quote { margin: 32px 0 0; padding: 18px 0 0 18px; border-left: 3px solid var(--accent); max-width: 900px; }
.foot-quote p { margin: 0 0 6px; font-style: italic; line-height: 1.6; color: var(--footer-link); }
.foot-quote cite { font-style: normal; font-weight: 700; font-size: 13px; color: var(--footer-text); }

/* Hero: headline left with the stats block beside it; intro, search and season cards below.
   Phones: headline, then search and cards, then stats. */
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-areas: "head stats" "main main"; column-gap: 48px; align-items: end; }
.hero-head { grid-area: head; }
.hero-head h1 { margin-bottom: 0; }
.hero-layout .stats { grid-area: stats; margin: 0; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-layout .stat { padding: 18px 20px; }
.hero-layout .stat b { font-size: 36px; }
.hero-main { grid-area: main; margin-top: 24px; max-width: 780px; }
@media (max-width: 900px) {
    .hero-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "stats"; }
    .hero-layout .stats { margin-top: 28px; }
    .hero-layout .stat b { font-size: 27px; }
}
.season-pick-label { margin: 26px 0 0; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hero-faint); }
.season-pick { margin-top: 10px; }

/* Search filters */
.search-row { display: flex; gap: 10px; }
.search-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.search-filters .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.search-filters .chip { cursor: pointer; }
.search-filters .chip input { position: absolute; opacity: 0; pointer-events: none; }
.search-filters .chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.season-select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--head-muted); }
.season-select select { height: 36px; border-radius: 9px; border: 1px solid var(--fact-line); background: var(--fact-bg); color: var(--fact-text); padding: 0 10px; font: 600 14px var(--sans); }
.search-page form.search-form { display: block; max-width: none; }
.search-page .search-row { max-width: 760px; }
.search-page .search-row input[type=search] { flex: 1; }

/* Homepage timing panel */
.timing-card { display: grid; gap: 18px; }
.timing-lead { margin: 0; font-size: 17px; line-height: 1.55; }
.timing-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.timing-feats > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: start; }
.timing-feats .icon { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.timing-feats .icon svg { width: 18px; height: 18px; }
.timing-feats strong { font-size: 15px; line-height: 1.3; }
.timing-feats small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.timing-for { margin: 0; font-size: 14px; color: var(--muted); }
.timing-for strong { color: var(--text); }
.timing-quote { margin: 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--accent); }
.timing-quote p { margin: 0 0 6px; font-style: italic; font-size: 14px; line-height: 1.6; color: var(--muted); }
.timing-quote cite { font-style: normal; font-weight: 700; font-size: 13px; }
.timing-ctas { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .timing-feats { grid-template-columns: 1fr; } }

/* Sport pages: one season at a time, season bar stays in reach */
.season.is-hidden { display: none; }
.season-nav[data-season-nav] { position: sticky; top: 64px; z-index: 20; background: var(--paper); padding: 14px 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.season-nav .chip-all { font-style: italic; }
@media (max-width: 760px) { .season-nav[data-season-nav] { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .season-nav[data-season-nav]::-webkit-scrollbar { display: none; } .season-nav[data-season-nav] .chip { flex: none; } }

/* Full-width timing panel on the homepage */
.timing-wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
.timing-wide > .timing-lead, .timing-wide > .timing-feats, .timing-wide > .timing-for, .timing-wide > .timing-ctas { grid-column: 1; }
.timing-wide > .timing-quote { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
@media (max-width: 900px) { .timing-wide { grid-template-columns: minmax(0, 1fr); } .timing-wide > .timing-quote { grid-column: 1; grid-row: auto; } }
.latest-date { line-height: 1.15; }

/* Hero right column: stats, then the newest meets */
.hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "head side" "main side"; align-items: start; }
.hero-side { grid-area: side; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-self: stretch; align-content: start; padding-top: 34px; }
.hero-side .stats { grid-area: auto; margin: 0; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-side .stat { padding: 14px 16px; }
.hero-side .stat b { font-size: 30px; }
.just-posted { border: 1px solid var(--stat-line); border-radius: 14px; background: var(--stat-bg); overflow: hidden; }
.jp-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hero-faint); }
.jp-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 69, 44, .2); }
.just-posted a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--stat-line); color: var(--hero-text); text-decoration: none; }
.just-posted a:hover { background: rgba(232, 69, 44, .08); }
.jp-date { flex: none; width: 50px; font: 800 italic 14px/1.1 var(--display); text-transform: uppercase; color: var(--accent); }
.jp-name { min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.3; }
.jp-name small { display: block; font-weight: 400; font-size: 12px; color: var(--hero-faint); }
.hero { padding: 56px 0 72px; }
@media (max-width: 900px) {
    .hero-layout { grid-template-areas: "head" "main" "side"; }
    .hero-side { padding-top: 28px; }
    .just-posted { display: none; }
}
.jp-tag { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }

/* Season picker in the hero's right column (2 x 2) */
.hero-seasons .season-pick-label { margin: 6px 0 0; }
.hero-seasons .season-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin-top: 10px; }
.hero-seasons .season-pick a { padding: 12px 14px; }
@media (max-width: 900px) { .hero-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "side"; } .hero-side { padding-top: 24px; } .hero-seasons { order: -1; } }

/* Even hero: right column runs the full height of the left one. Its label sits level with
   "Official results"; the season cards end level with the search area. */
.hero-layout { align-items: stretch; }
.hero-side { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding-top: 0; }
.numbers-label { margin: 6px 0 12px; }
.hero-seasons { padding-bottom: 2px; }
@media (max-width: 900px) {
    .hero-side { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 24px; }
    .hero-seasons { order: -1; }
}

/* Right column: natural-height stat tiles and the season cards, centered against the left column. */
@media (min-width: 901px) {
    .hero-side { justify-content: center; gap: 26px; }
    .hero-numbers .stat { padding: 18px 20px; min-width: 0; container-type: inline-size; }
    /* Sized to the tile: "1,080,000+" (the widest) always fits with room to spare. */
    .hero-numbers .stat b { font-size: min(40px, 16.5cqi); white-space: nowrap; }
}

/* News kicker: meet name above a recap headline */
.news-kicker { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.recent .t .news-kicker { margin: 0 0 2px; font-size: 11px; }

/* News index: recap cards by year, filterable by sport */
:root { --serif: "Source Serif 4", Georgia, "Times New Roman", serif; }
.news-wrap { padding: 8px 20px 56px; }
.news-filters { position: sticky; top: 64px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.news-filters .season-nav[data-season-nav] { position: static; border-bottom: 0; padding: 14px 0 8px; margin: 0; }
.news-sports { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; }
.news-sports .chip { cursor: pointer; font: inherit; font-size: 13px; }
.news-year-h { font: 800 italic 34px/1 var(--display); letter-spacing: .01em; margin: 28px 0 14px; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); transition: border-color .15s, transform .15s; }
.news-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.news-card .news-kicker { margin: 0; font-size: 11px; }
.news-hl { font: 700 20px/1.25 var(--serif); letter-spacing: -.005em; }
.news-card:hover .news-hl { color: var(--accent-ink); }
.news-dek { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted); }
.news-card[hidden] { display: none; }
.page-head h1 + .sub { max-width: 60ch; }
/* recap page headline in the same serif */
.page-head .news-kicker + h1 { font: 700 clamp(30px, 4.4vw, 46px)/1.12 var(--serif); letter-spacing: -.01em; text-transform: none; font-style: normal; max-width: 26ch; }
@media (max-width: 760px) { .news-filters .season-nav[data-season-nav] { flex-wrap: nowrap; overflow-x: auto; } .news-grid { grid-template-columns: 1fr; } .news-hl { font-size: 19px; } }
@media (max-width: 760px) {
  .news-filters { position: static; }
  .news-sports { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .news-sports::-webkit-scrollbar { display: none; }
  .news-sports .chip { flex: none; }
}
.news-filters .news-jump { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 14px 0 8px; scrollbar-width: none; }
.news-filters .news-jump::-webkit-scrollbar { display: none; }
.news-jump .chip { flex: none; }
.news-jump .chip[hidden], .news-year[hidden] { display: none; }
.news-year { scroll-margin-top: 170px; }
@media (max-width: 760px) { .news-year { scroll-margin-top: 16px; } }
.news-search { display: flex; gap: 8px; margin: 22px 0 4px; max-width: 640px; }
.news-search input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.news-search input:focus { outline: none; border-color: var(--accent); }
.news-search .btn { flex: none; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.news-count { margin: 18px 0 16px; color: var(--muted); }
.news-count strong { color: var(--text); }
.news-snippet { -webkit-line-clamp: 4; }
.news-snippet mark { background: var(--accent-soft); color: var(--text); padding: 0 2px; border-radius: 3px; }
/* News: quieter, newspaper-style meet labels (no accent color) */
.news-kicker { color: var(--muted); letter-spacing: .1em; }
.news-card:hover .news-hl { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-card:hover { border-color: var(--text); }

/* Structured results tables on phones: place · name (year · school underneath) · mark */
.results-body .m-sub { display: none; }
@media (max-width: 640px) {
  .results-body table.data.res { min-width: 0; font-size: 15px; }
  .results-body table.res .c-yr, .results-body table.res .c-school, .results-body table.res .c-pts { display: none; }
  .results-body table.res td, .results-body table.res th { white-space: normal; padding: 9px 8px; }
  .results-body table.res .c-pl { width: 2.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
  .results-body table.res .c-mark { text-align: right; white-space: nowrap; }
  .results-body table.res .m-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
  .results-body table.res td.c-name a { font-weight: 600; }
}

/* Hy-Tek printouts on phones: parsed rows instead of the wide monospace printout */
.hy-m { display: none; }
@media (max-width: 640px) {
  .results-body .hy-m { display: block; margin: 0 0 18px; }
  .results-body pre.hytek.has-phone { display: none; }
  .results-body.show-raw pre.hytek.has-phone { display: block; }
  .results-body.show-raw .hy-m .hy-r, .results-body.show-raw .hy-m h3, .results-body.show-raw .hy-m h4 { display: none; }
  .hy-ev { font: 800 italic 20px/1.15 var(--display); text-transform: uppercase; margin: 22px 0 8px; }
  .hy-sub { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
  .hy-r { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 10px; align-items: baseline; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 15px; font-variant-numeric: tabular-nums; }
  .hy-r .pl { color: var(--muted); }
  .hy-r .nm { font-weight: 600; }
  .hy-r .nm small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .hy-r .mk { font-weight: 700; white-space: nowrap; }
  .hy-r.hy-team .nm { font-weight: 500; }
  .hy-r.hit { background: var(--mark); }
  .hy-r.dim { opacity: .3; }
  .hy-raw { margin-top: 16px; }
}
@media (max-width: 640px) {
  .results-body table.data:not(.res):not(.compact) { min-width: 0; font-size: 13px; }
  .results-body table.data:not(.res):not(.compact) td, .results-body table.data:not(.res):not(.compact) th { padding: 6px 6px; }
}

/* Athlete pages on phones: two-line rows (what / where-when underneath) with the mark on the right */
@media (max-width: 640px) {
  .results-body table.data.ath { min-width: 0; font-size: 15px; }
  .results-body table.ath .c-x { display: none; }
  .results-body table.ath td, .results-body table.ath th { white-space: normal; padding: 9px 8px; }
  .results-body table.ath .c-mark { text-align: right; white-space: nowrap; }
  .results-body table.ath .m-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
  .results-body table.ath td a { font-weight: 600; }
}

/* Generic two-line tables on phones (schools, records, meet history): extra columns fold under the first */
table.m2 .m-sub, table.m2 .c-m { display: none; }
@media (max-width: 640px) {
  table.data.m2 { min-width: 0 !important; width: 100%; font-size: 15px; }
  table.m2 .c-x { display: none; }
  table.m2 .c-m { display: table-cell; }
  table.m2 td, table.m2 th { white-space: normal !important; padding: 9px 8px; }
  table.m2 .c-mark { text-align: right; white-space: nowrap !important; }
  table.m2 .c-pl { width: 2em; color: var(--muted); }
  table.m2 .m-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
}

/* Homepage: latest recaps above latest results */
.recaps-home { padding-bottom: 8px; }
.see-more { font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.see-more-row { display: none; margin: 16px 0 0; }
@media (max-width: 760px) { .section-head .see-more { display: none; } .see-more-row { display: block; } .see-more-row .btn { width: 100%; justify-content: center; } }
li[data-sport][hidden] { display: none; }
.news-types { padding-top: 0; }
@media (max-width: 760px) { .news-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .news-types::-webkit-scrollbar { display: none; } .news-types .chip { flex: none; } }
