/* =============================================================================
   Sunday Marathon — "Canonical Site v2" visual system (2026-09-21).

   Source: the owner's claude.ai/design file "Sunday Marathon Canonical Site
   v2.dc.html" (project "Website pages audit"). A reference work, not a
   dashboard: the site is an almanac of race dates, so it borrows from the
   things that hold authority over schedules (timetables, ledgers, departures
   boards).
     - Hairline rules replace card borders; corners are square.
     - Archivo (var(--font-headline)) sets headlines.
     - IBM Plex Mono (var(--font-data)) sets every label, date and figure.
     - Inter (var(--font-body)) sets body text. Volt stays the accent.

   Loaded by BOTH public layouts (main.php and app-public.php) after their own
   stylesheets. Tokens come from tokens.css (no :root here). Everything is
   namespaced .alm-* so legacy pages keep their own look until they move over.
   Page-specific layout lives in each view; this file holds the site chrome
   (status strip, app bar, footer, mobile tab bar) and the shared primitives.

   Breakpoints: phone layout (mobile app bar + bottom tab bar) at <= 860px;
   compact desktop 861-1099px; full desktop >= 1100px.
   ========================================================================== */

.alm, .alm *, .alm *::before, .alm *::after,
.alm-strip, .alm-strip *, .alm-bar, .alm-bar *, .alm-foot, .alm-foot *, .alm-tabs, .alm-tabs * { box-sizing: border-box; }
.alm :where(h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, blockquote, table, form, fieldset) { margin: 0; padding: 0; }
.alm :where(ul, ol) { list-style: none; }
.alm :where(a) { color: inherit; text-decoration: none; }
.alm :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.alm :where(table) { border-collapse: collapse; width: 100%; }
.alm :where(th) { font-weight: inherit; }

/* ---- Layout ------------------------------------------------------------- */
.alm-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
.alm-night { background: var(--night); color: #fff; }
.alm-page { display: block; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.alm-mono { font-family: var(--font-data); }
.alm-num { font-variant-numeric: tabular-nums; }
.alm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Type --------------------------------------------------------------- */
.alm-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: var(--font-data); font-size: 10px; font-weight: 600; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: var(--volt-text); }
.alm-night .alm-eyebrow, .alm-eyebrow--night { color: var(--volt); }
.alm-eyebrow--bar::before { content: ""; flex: none; width: 22px; height: 3px; background: var(--volt); }
.alm-eyebrow--live::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--volt); animation: almPulse 2s ease-out infinite; }
@keyframes almPulse { 0% { box-shadow: 0 0 0 0 rgba(198,242,78,.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(198,242,78,0); } }
.alm-h1 { margin: 0; font-family: var(--font-headline); font-weight: 700; font-size: clamp(2.6rem, 1.1rem + 4.4vw, 4.75rem); line-height: .92; letter-spacing: -.05em; color: inherit; text-wrap: balance; }
.alm-h2 { margin: 0; font-family: var(--font-headline); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.alm-h2--sm { font-size: clamp(1.6rem, 1.3rem + 1vw, 1.9rem); letter-spacing: -.035em; }
.alm-night .alm-h2 { color: #fff; }
.alm-lead { margin: 0; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.6; color: var(--on-night); }
.alm-sub { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-4); max-width: 44ch; }
.alm-accent { color: var(--volt); }
.alm-muted { color: var(--muted); }

/* Underlined mono link ("All 412 races ->") */
.alm-ulink { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 2px solid var(--volt); font-family: var(--font-data); font-size: 10px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; color: var(--ink); text-decoration: none; transition: color .15s, border-color .15s; }
.alm-ulink:hover { color: var(--volt-text); border-color: var(--volt-deep); }
.alm-ulink svg { width: 14px; height: 14px; flex: none; }
.alm-night .alm-ulink { color: #fff; }
.alm-night .alm-ulink:hover { color: var(--volt); }

/* ---- Buttons (square) ----------------------------------------------------- */
.alm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: 0; background: var(--volt); color: var(--ink); font-family: var(--font-body); font-size: 14.5px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.alm-btn:hover { background: color-mix(in oklab, var(--volt) 88%, #fff); color: var(--ink); }
.alm-btn svg { width: 16px; height: 16px; flex: none; }
.alm-btn--lg { min-height: 48px; padding: 0 26px; font-size: 15px; }
.alm-btn--ink { background: var(--ink); color: #fff; }
.alm-btn--ink:hover { background: var(--ink-2); color: #fff; }
.alm-btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.alm-btn--line:hover { background: var(--ink); color: #fff; }
.alm-btn--night { background: transparent; border-color: oklch(0.45 0.012 95); color: #fff; }
.alm-btn--night:hover { border-color: #fff; color: #fff; background: transparent; }
.alm-btn--mono { font-family: var(--font-data); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.alm-btn--block { display: flex; width: 100%; }
.alm-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.alm-btn--night.is-on { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.alm-btn:disabled { opacity: .6; cursor: progress; }
.alm-btn:focus-visible, .alm-ulink:focus-visible, .alm-chip:focus-visible { outline: 2px solid var(--volt-deep); outline-offset: 3px; }
.alm-night .alm-btn:focus-visible, .alm-night .alm-ulink:focus-visible { outline-color: var(--volt); }

/* ---- Chips (square, mono) ------------------------------------------------ */
.alm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alm-chips-label { margin-right: 8px; font-family: var(--font-data); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.alm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid var(--rule-chip); background: #fff; color: var(--ink); font-family: var(--font-data); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; line-height: 1.2; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.alm-chip b { font-weight: 600; color: var(--volt-text); font-variant-numeric: tabular-nums; }
a.alm-chip:hover { border-color: var(--ink); }
.alm-chip--dark, .alm-chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.alm-chip--dark b, .alm-chip[aria-current="true"] b { color: var(--volt); }
a.alm-chip--dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }

/* ---- Status marks -------------------------------------------------------- */
.alm-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-data); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.alm-status--open { color: var(--ink); }
.alm-status--open::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--volt-deep); }
.alm-status--alert { color: var(--danger); }
.alm-nil { font-family: var(--font-data); font-size: 10.5px; letter-spacing: .02em; color: var(--muted); }

/* ---- Section head (eyebrow + H2 left, link right, ink rule under) -------- */
.alm-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.alm-sechead .alm-eyebrow { margin-bottom: 12px; }
.alm-sechead--plain { display: block; padding-bottom: 14px; margin-bottom: 16px; }
.alm-h3 { margin: 0; font-family: var(--font-headline); font-weight: 700; font-size: clamp(1.55rem, 1.3rem + .9vw, 1.875rem); line-height: 1.05; letter-spacing: -.035em; color: var(--ink); }

/* ---- Hairline table ------------------------------------------------------- */
.alm-table { width: 100%; border-collapse: collapse; }
.alm-table th { padding: 12px 16px; text-align: left; vertical-align: bottom; font-family: var(--font-data); font-size: 10px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); background: none; }
.alm-table td { padding: 16px; vertical-align: middle; border-bottom: 1px solid var(--rule-soft); font-size: 14.5px; line-height: 1.45; color: var(--text-3); }
.alm-table th:first-child, .alm-table td:first-child { padding-left: 0; }
.alm-table th:last-child, .alm-table td:last-child { padding-right: 0; }
.alm-table .is-right { text-align: right; }
.alm-table .alm-cell-data { font-family: var(--font-data); font-size: 11px; letter-spacing: .02em; color: oklch(0.40 0.012 95); font-variant-numeric: tabular-nums; }
.alm-table .alm-cell-strong { font-family: var(--font-data); font-size: 14px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.alm-racename { font-family: var(--font-headline); font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); text-decoration: none; transition: color .15s; }
a.alm-racename:hover { color: var(--volt-text); }
.alm-cc { font-family: var(--font-data); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.alm-place { display: inline-flex; align-items: baseline; gap: 10px; }
/* Breakpoint-only fragments (phone rows repeat a few short facts inside the
   primary cell so tables can collapse into two-column rows). Each element keeps
   its own display value; these only ever hide. */
@media (min-width: 861px) { .alm-only-m { display: none !important; } }
@media (max-width: 860px) { .alm-only-d { display: none !important; } }

/* ---- Stat strip (on night) ------------------------------------------------ */
.alm-stats { display: flex; border-top: 1px solid var(--rule-night); }
.alm-stat { flex: 1 1 0; min-width: 0; padding: 20px 32px; border-right: 1px solid var(--rule-night); }
.alm-stat:first-child { padding-left: 0; }
.alm-stat:last-child { border-right: 0; padding-right: 0; }
.alm-stat-v { margin: 0; font-family: var(--font-headline); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.alm-stat-v.is-accent { color: var(--volt); }
.alm-stat-l { margin: 5px 0 0; font-family: var(--font-data); font-size: 10.5px; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; color: oklch(0.65 0.012 95); }

/* ---- Breadcrumbs on night ------------------------------------------------- */
.alm-crumbs { border-bottom: 1px solid var(--rule-night-2); }
.alm-crumbs ol { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 12px 0; margin: 0; list-style: none; font-family: var(--font-data); font-size: 10px; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; color: var(--on-night-3); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.alm-crumbs ol::-webkit-scrollbar { display: none; }
.alm-crumbs li { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.alm-crumbs li + li::before { content: "/"; color: var(--on-night-3); }
.alm-crumbs a { color: var(--on-night-3); text-decoration: none; }
.alm-crumbs a:hover { color: #fff; }
.alm-crumbs [aria-current="page"] { color: #fff; }

/* ---- Q&A rows ------------------------------------------------------------- */
.alm-qa { border-top: 1px solid var(--rule); }
.alm-qa-row { padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.alm-qa-q { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.alm-qa-a { margin: 7px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-3); max-width: 64ch; }
.alm-qa-a a { color: var(--volt-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Pagination ----------------------------------------------------------- */
.alm-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.alm-pager-note { font-family: var(--font-data); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.alm-pager-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.alm-pager-nav a, .alm-pager-nav span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--rule-chip); font-family: var(--font-data); font-size: 11px; font-weight: 600; color: var(--ink); text-decoration: none; }
.alm-pager-nav a:hover { border-color: var(--ink); }
.alm-pager-nav [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.alm-pager-nav .is-gap { border-color: transparent; color: var(--muted); }
.alm-pager-nav svg { width: 16px; height: 16px; }

/* =============================================================================
   SITE CHROME
   ========================================================================== */

/* Status strip (above the bar; scrolls away) */
.alm-strip { position: relative; z-index: 41; background: #fff; border-bottom: 1px solid var(--rule); font-family: var(--font-data); font-size: 10.5px; letter-spacing: .02em; line-height: 1.2; text-transform: uppercase; color: var(--muted); padding-top: env(safe-area-inset-top); }
.alm-strip-in { display: flex; align-items: stretch; height: 30px; }
.alm-strip-cell { display: flex; align-items: center; gap: 8px; padding: 0 20px; border-right: 1px solid var(--rule); white-space: nowrap; }
.alm-strip-cell:first-child { padding-left: 0; }
.alm-strip-cell--end { margin-left: auto; padding-right: 0; border-right: 0; border-left: 1px solid var(--rule); color: var(--text-2); }
.alm-strip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--volt-deep); flex: none; }
.alm-strip .is-m { display: none; }

/* App bar (sticky). app.css pins html,body to height:100%, which makes <body>
   (the bar's containing block) exactly one screen tall, so the bar would stop
   sticking after the first screen of scroll. Let body grow with its content. */
body { height: auto; min-height: 100%; }
.alm-bar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--ink); font-family: var(--font-body); }
.alm-bar-in { display: flex; align-items: center; gap: 36px; height: 66px; }
.alm-brand { display: flex; align-items: center; gap: 9px; flex: none; color: var(--ink); text-decoration: none; }
.alm-brand:hover { color: var(--ink); }
.alm-brand .sm-logo { box-shadow: none !important; width: 26px !important; height: 26px !important; }
.alm-brand .sm-logo svg { width: 26px; height: 26px; }
.alm-brand-tx { font-family: var(--font-headline); font-weight: 700; font-size: 20px; letter-spacing: -.035em; line-height: 1; color: var(--ink); white-space: nowrap; }
.alm-brand-tx span { color: var(--volt-deep) !important; }
.alm-nav { display: flex; align-items: center; gap: 30px; }
.alm-nav a { padding: 6px 0; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--text-4); text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s; }
.alm-nav a:hover { color: var(--ink); }
.alm-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--volt-deep); }
.alm-bar-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.alm-search { display: flex; align-items: center; gap: 8px; width: 230px; padding: 7px 0; border-bottom: 1px solid var(--ink); }
.alm-search svg { width: 15px; height: 15px; flex: none; }
.alm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; margin: 0; font-family: var(--font-data); font-size: 11px; letter-spacing: .01em; color: var(--ink); -webkit-appearance: none; appearance: none; }
.alm-search input::placeholder { color: var(--muted); text-transform: uppercase; opacity: 1; }
.alm-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.alm-search button { display: grid; place-items: center; padding: 0; margin: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.alm-search:focus-within { border-bottom-color: var(--volt-deep); box-shadow: 0 1px 0 var(--volt-deep); }
.alm-iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--ink); text-decoration: none; }
.alm-iconbtn svg { width: 20px; height: 20px; }
.alm-iconbtn .gi-svg { width: 20px; height: 20px; font-size: 20px; }
.alm-iconbtn:hover { color: var(--volt-text); }
.alm-badge { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--danger); color: #fff; font-family: var(--font-data); font-size: 9.5px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.alm-search-m { display: none; }
.alm-signin { display: inline-flex; align-items: center; height: 38px; padding: 0 20px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s; }
.alm-signin:hover { background: var(--ink-2); color: #fff; }
.alm-member { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--ink); font-family: var(--font-data); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.alm-member:hover { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.alm-ava { display: inline-flex; flex: none; text-decoration: none; }
.alm-bar a:focus-visible, .alm-bar button:focus-visible, .alm-bar input:focus-visible { outline: 2px solid var(--volt-deep); outline-offset: 2px; }
.alm-skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 600; }
.alm-skip:focus { left: 12px; top: 12px; color: #fff; }

@media (max-width: 1099px) {
  .alm-bar-in { gap: 24px; }
  .alm-nav { gap: 22px; }
  .alm-search { display: none; }
  .alm-search-m { display: grid; }
  .alm-member { display: none; }
  .alm-strip-cell--hide-md { display: none; }
}

/* Footer */
.alm-foot { background: var(--night-2); color: #fff; font-family: var(--font-body); }
.alm-foot a { color: var(--on-night-link); text-decoration: none; transition: color .15s; }
.alm-foot a:hover { color: var(--volt); }
.alm-foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-night-2); }
.alm-foot-brand { padding: 40px 32px 36px 0; border-right: 1px solid var(--rule-night-2); }
.alm-foot-line { margin: 0 0 14px; font-family: var(--font-headline); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -.035em; color: #fff; }
.alm-foot-line span { color: var(--volt); }
.alm-foot-copy { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--on-night-2); max-width: 36ch; }
.alm-foot-meta { margin: 0; font-family: var(--font-data); font-size: 10.5px; letter-spacing: .02em; line-height: 2; text-transform: uppercase; color: var(--on-night-2); }
.alm-foot-maker { margin: 16px 0 0; font-size: 12.5px; line-height: 1.55; color: oklch(0.62 0.012 95); max-width: 40ch; }
.alm-foot-maker a { color: var(--on-night-link); text-decoration: underline; text-decoration-color: oklch(0.45 0.012 95); text-underline-offset: 3px; }
.alm-foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 40px 24px 36px; border-right: 1px solid var(--rule-night-2); }
.alm-foot-col:last-child { border-right: 0; padding-right: 0; }
.alm-foot-col h2 { margin: 0 0 7px; font-family: var(--font-data); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase; color: var(--volt); }
.alm-foot-col a { font-size: 13.5px; line-height: 1.35; }
.alm-foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 18px 0; font-family: var(--font-data); font-size: 10.5px; letter-spacing: .02em; line-height: 1.6; text-transform: uppercase; color: var(--on-night-2); }
.alm-foot-bottom nav { display: flex; gap: 16px; }
.alm-foot-bottom a { color: var(--on-night-2); }
.alm-foot a:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }

/* Mobile tab bar */
.alm-tabs { display: none; }

/* ---- Phone layout ------------------------------------------------------------ */
@media (max-width: 860px) {
  .alm-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

  .alm-strip-in { height: 26px; justify-content: space-between; }
  .alm-strip { font-size: 10px; }
  .alm-strip-cell { padding: 0; border: 0; }
  .alm-strip-cell--end { margin-left: 0; border: 0; color: var(--muted); }
  .alm-strip .is-d { display: none; }
  .alm-strip .is-m { display: inline; }
  .alm-strip-cell--hide-m { display: none; }

  .alm-bar-in { gap: 12px; height: 56px; }
  .alm-brand { gap: 8px; }
  .alm-brand .sm-logo, .alm-brand .sm-logo svg { width: 24px !important; height: 24px !important; }
  .alm-brand-tx { font-size: 17px; }
  .alm-nav { display: none; }
  .alm-bar-end { gap: 4px; }
  .alm-signin { height: 36px; padding: 0 15px; font-size: 13px; margin-left: 4px; }
  .alm-bar-end .alm-iconbtn--desk { display: none; }
}
@media (max-width: 380px) {
  /* Signed-in bar on the narrowest phones: keep logo, search, bell and avatar. */
  .alm-bar-end .alm-iconbtn--dm { display: none; }
}
@media (max-width: 860px) {

  .alm-foot-grid { grid-template-columns: 1fr 1fr; }
  .alm-foot-brand { grid-column: 1 / -1; padding: 30px 0 26px; border-right: 0; border-bottom: 1px solid var(--rule-night-2); }
  .alm-foot-line { font-size: 23px; line-height: 1.08; margin-bottom: 12px; }
  .alm-foot-copy { font-size: 13.5px; margin-bottom: 14px; max-width: none; }
  .alm-foot-col { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--rule-night-2); }
  .alm-foot-col:nth-child(even) { border-right: 1px solid var(--rule-night-2); }
  .alm-foot-col:nth-child(odd) { border-right: 0; padding-left: 16px; padding-right: 0; }
  .alm-foot-col h2 { font-size: 10px; margin-bottom: 5px; }
  .alm-foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 0; font-size: 10px; line-height: 2; }

  .alm-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); font-family: var(--font-body); }
  .alm-tabs a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; padding: 6px 4px 9px; margin-top: -1px; border-top: 2px solid transparent; color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .alm-tabs a[aria-current="page"] { color: var(--ink); border-top-color: var(--volt-deep); }
  .alm-tabs svg { width: 19px; height: 19px; flex: none; }
  .alm-tabs span { font-family: var(--font-data); font-size: 10.5px; letter-spacing: .02em; line-height: 1.1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .alm-tabs a:focus-visible { outline: 2px solid var(--volt-deep); outline-offset: -4px; }
  /* Keep the last footer links clear of the fixed tab bar. */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

  .alm-stats { flex-wrap: wrap; }
  .alm-stat { flex: 1 1 50%; padding: 16px 0 16px 16px; }
  .alm-stat:nth-child(odd) { padding-left: 0; }
  .alm-stat:nth-child(even) { border-right: 0; }
  .alm-stat:nth-child(n+3) { border-top: 1px solid var(--rule-night); }
  .alm-stat-v { font-size: 26px; }
  .alm-stat-l { font-size: 10px; margin-top: 4px; }

  .alm-crumbs ol { font-size: 10.5px; gap: 7px; min-height: 38px; padding: 10px 0; }
  .alm-crumbs li { gap: 7px; }

  .alm-racename { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .alm-eyebrow--live::before { animation: none; }
  .alm *, .alm-bar *, .alm-foot * { transition: none !important; }
}
