/* Site design system: a grey canvas, white cards, a three-column app layout, a ticker of coming
   matches, match rows grouped by league. Colours, type and spacing as tokens below. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/static/fonts/schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/static/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F7F7F5; --surface: #FFFFFF; --sunken: #F2F2EF;
  --ink: #0B0B0C; --text: #0B0B0C; --muted: #5C5E65; --faint: #8A8C93;
  --mist: #D2D4DA; --line: #E0E1E5; --track: #E9EAEE;
  --cobalt: #2A50FF; --cobalt-text: #2442D9; --cobalt-soft: #EAEEFF;
  --home: #0B0B0C; --draw: #D2D4DA; --away: #2A50FF;
  --ok: #0F6B3A; --ok-soft: #E3F3EA; --warn: #7A4B00; --warn-soft: #FBF0D9; --bad: #A1261B; --bad-soft: #FBE6E3;
  --focus: #2A50FF;
  --bar: var(--surface); --bar-2: var(--surface); --on-bar: var(--text); --on-bar-muted: var(--muted);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: var(--font);
  --r: 12px; --r-sm: 8px; --r-xs: 6px;
  --wrap: 1320px; --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0B0C; --surface: #16171A; --sunken: #1D1E22;
    --ink: #F7F7F5; --text: #F2F2F0; --muted: #A0A2A9; --faint: #7D7F87;
    --mist: #4A4C53; --line: #26272C; --track: #25262B;
    --cobalt: #3D63FF; --cobalt-text: #8FA6FF; --cobalt-soft: #1A2250;
    --home: #F2F2F0; --draw: #4A4C53; --away: #3D63FF;
    --ok: #6FD39A; --ok-soft: #10281B; --warn: #F0C064; --warn-soft: #2A2110; --bad: #FF9A8E; --bad-soft: #2E1512;
    --focus: #8FA6FF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B0B0C; --surface: #16171A; --sunken: #1D1E22;
  --ink: #F7F7F5; --text: #F2F2F0; --muted: #A0A2A9; --faint: #7D7F87;
  --mist: #4A4C53; --line: #26272C; --track: #25262B;
  --cobalt: #3D63FF; --cobalt-text: #8FA6FF; --cobalt-soft: #1A2250;
  --home: #F2F2F0; --draw: #4A4C53; --away: #3D63FF;
  --ok: #6FD39A; --ok-soft: #10281B; --warn: #F0C064; --warn-soft: #2A2110; --bad: #FF9A8E; --bad-soft: #2E1512;
  --focus: #8FA6FF; color-scheme: dark;
}

/* -- base ----------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 500 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.prose a, .link, .note a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
::selection { background: var(--cobalt); color: #fff; }
.num {  letter-spacing: -.01em; }
.muted { color: var(--muted); }
.vesta { color: var(--cobalt-text); font-weight: 700; }
.away-text { color: var(--cobalt-text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 719px) { .hide-sm { display: none !important; } }
@media (max-width: 1023px) { .hide-md { display: none !important; } }

/* -- top bar -------------------------------------------------------------------------------- */
.topbar { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 5px; flex: none; }
.brand img { height: 21px; width: auto; align-self: center; }
.brand .data { font-weight: 400; color: var(--on-bar-muted); font-size: 20px; letter-spacing: -.045em; line-height: 1; }
.topsearch { flex: 0 1 340px; position: relative; }
.topsearch input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px 0 40px; background: var(--paper); color: var(--text); font: 500 15px var(--font); }
.topsearch input::placeholder { color: var(--on-bar-muted); }
.topsearch > svg { position: absolute; left: 14px; top: 11px; width: 18px; height: 18px; color: var(--on-bar-muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 15px; color: var(--muted); padding: 21px 2px 19px; margin: 0 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ink); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--sunken); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }
.nav-ico, .nav-search, .nav-more, .menu-btn .ico-close { display: none; }
@media (max-width: 1099px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; z-index: 90; flex-direction: column; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-2); padding: 10px var(--gutter) 16px; margin: 0; }
  .nav.open { display: flex; animation: nav-in .18s var(--ease, ease-out); }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .nav > a { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; padding: 11px 12px; border-radius: var(--r-sm); color: var(--text); }
  .nav > a:hover { background: var(--sunken); }
  .nav > a[aria-current="page"] { background: var(--cobalt-soft); color: var(--cobalt-text); }
  .nav-ico { display: block; width: 21px; height: 21px; flex: none; color: var(--muted); }
  .nav > a[aria-current="page"] .nav-ico { color: var(--cobalt-text); }
  .nav-more { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-more .nav-head { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 12px 4px; }
  .nav-more a { padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: var(--r-xs); }
  .nav-more a:hover { color: var(--text); background: var(--sunken); }
  .menu-btn { display: inline-grid; }
  .menu-btn[aria-expanded="true"] .ico-open { display: none; }
  .menu-btn[aria-expanded="true"] .ico-close { display: block; }
  html.nav-open body::after { content: ""; position: fixed; inset: 64px 0 0; z-index: 80; background: rgba(11, 11, 12, .35); }
  html.nav-open .bottombar { display: none; }
  html.nav-open .topbar { z-index: 95; }
}
@media (max-width: 719px) {
  .nav-search { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0 12px; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sunken); }
  .nav-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
  .nav-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px/1.3 var(--font); color: var(--text); outline: none; }
}
@media (max-width: 719px) { .topsearch { display: none; } .tools .btn-text { display: none; } }

/* -- ticker (coming matches with Vesta's bars) ---------------------------------------------- */
.ticker { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 0; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.tick { flex: none; display: grid; gap: 7px; width: 196px; padding: 10px 16px; border-right: 1px solid var(--line); }
.tick:hover { background: var(--sunken); }
.tick-top { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--on-bar-muted); letter-spacing: .02em; }
.tick-teams { display: flex; justify-content: space-between; align-items: baseline; font: 700 14px/1 var(--font); }
.tick-teams .a { color: var(--cobalt-text); }
.tick-bar { display: flex; gap: 2px; height: 4px; }
.tick-bar span { border-radius: 2px; }
.tick-bar .h { background: var(--home); } .tick-bar .d { background: var(--draw); } .tick-bar .a { background: var(--away); }
.tick-pcts { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--on-bar-muted); }
.tick-pcts .a { color: var(--cobalt-text); }
.tick-label { flex: none; display: grid; place-items: center; padding: 0 16px; font: 700 12px/1.2 var(--font); color: var(--on-bar-muted); writing-mode: vertical-rl; transform: rotate(180deg); border-right: 1px solid var(--line); }

/* -- app layout ------------------------------------------------------------------------------ */
.app { display: grid; gap: 16px; padding-top: 20px; padding-bottom: 48px; }
@media (min-width: 1024px) { .app.with-side { grid-template-columns: 240px minmax(0, 1fr); } .app.with-rail { grid-template-columns: minmax(0, 1fr) 340px; } .app.three { grid-template-columns: 240px minmax(0, 1fr); } }
@media (min-width: 1280px) { .app.three { grid-template-columns: 240px minmax(0, 1fr) 340px; } }
.col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.side { position: sticky; top: 140px; }
@media (max-width: 1023px) { .side { position: static; } .app .side { display: none; } }
.rail { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 1279px) and (min-width: 1024px) { .app.three .rail { grid-column: 2; } }

/* -- cards ----------------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.card-head h2, .card-head h3 { font-size: 17px; letter-spacing: -.01em; }
.card-head .more { font-weight: 600; font-size: 14px; color: var(--cobalt-text); }
.card-head .more:hover { text-decoration: underline; }
.card-head-sub { padding-top: 4px; }
.card-head-sub h3 { font-size: 14px; color: var(--muted); font-weight: 600; }
.card-body { padding: 0 18px 18px; }
.card-foot { border-top: 1px solid var(--line); padding: 12px 18px; text-align: center; font-weight: 600; font-size: 14px; }
.card-foot a { color: var(--cobalt-text); }
.card-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.note { font-size: 13px; color: var(--muted); padding: 0 18px 16px; margin: 0; }

/* side navigation */
.side-list { list-style: none; margin: 0; padding: 4px 8px 10px; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); font-weight: 600; }
.side-list a:hover { background: var(--sunken); }
.side-list a[aria-current="page"] { background: var(--cobalt-soft); color: var(--cobalt-text); }
.side-list .sub { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 500; }

/* team code badges (no crests: the three letters of broadcast graphics) */
.badge { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--sunken); border: 1px solid var(--line); font: 700 10px/1 var(--mono); letter-spacing: .02em; color: var(--text); }
.badge.lg { width: 60px; height: 60px; border-radius: 50%; font-size: 17px; background: var(--ink); color: var(--paper); border: 0; }
.badge.lg.away { background: var(--cobalt); color: #fff; }
.badge.xl { width: 84px; height: 84px; border-radius: 50%; font-size: 22px; background: var(--ink); color: var(--paper); border: 0; letter-spacing: .02em; }
.badge.xl.away { background: var(--cobalt); color: #fff; }
.badge.away { background: var(--cobalt-soft); border-color: transparent; color: var(--cobalt-text); }
.badge.comp { background: var(--surface); color: var(--text); }

/* -- buttons, chips, forms -------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border-radius: 8px; border: 0; background: var(--ink); color: var(--paper); font: 700 14px/1 var(--font); white-space: nowrap; cursor: pointer; }
.btn:hover { opacity: .88; }
.btn-accent { background: var(--cobalt); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-light { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--bad); color: #fff; }
.chips { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--sunken); font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.chip:hover { color: var(--text); }
.chip[aria-current="page"] { background: var(--ink); color: var(--paper); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, select.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: 500 15px/1.3 var(--font); }
.input:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--cobalt); flex: none; }
.field-error { color: var(--bad); font-size: 13px; font-weight: 600; }
.notice { background: var(--sunken); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.select { appearance: none; -webkit-appearance: none; height: 36px; padding: 0 34px 0 14px; border-radius: 8px; border: 1px solid var(--line); background-color: var(--surface); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px; background-repeat: no-repeat; color: var(--text); font: 600 14px var(--font); cursor: pointer; }

/* -- page header card with tabs ---------------------------------------------------------------- */
.phead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.phead-top { display: flex; align-items: center; gap: 18px; padding: 22px 24px 18px; flex-wrap: wrap; }
.phead-title { display: grid; gap: 2px; min-width: 0; flex: 1; }
.phead-title h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.phead-title .card-sub { font-size: 14px; }
.phead-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.tabs { position: relative; display: flex; gap: 4px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 14px 10px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mist); }
.crumbs a:hover { color: var(--text); }

/* -- match list (league groups) ------------------------------------------------------------- */
.league-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.league-head .more { margin-left: auto; font-weight: 600; font-size: 14px; color: var(--cobalt-text); white-space: nowrap; }
.league-head .more:hover { text-decoration: underline; }
.league-head h3 { font-size: 15px; }
.league-head .card-sub { margin-left: auto; }
.mrow { display: grid; grid-template-columns: 58px minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: var(--sunken); }
.mrow-time { font: 500 13px/1.2 var(--mono); color: var(--muted); text-align: center; }
.mrow-time .ft { font-family: var(--font); font-weight: 700; font-size: 12px; }
.mrow-teams { display: grid; gap: 6px; min-width: 0; }
.mteam { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.mteam .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mteam .badge { width: 24px; height: 24px; border-radius: 7px; font-size: 8px; }
.mteam .goals { margin-left: auto; font: 700 15px var(--mono); }
.mteam.lost { color: var(--muted); font-weight: 500; }
.mrow-prob { display: grid; gap: 6px; }
.mrow-prob .pcts { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); }
.mrow-prob .pcts .d { color: var(--muted); } .mrow-prob .pcts .a { color: var(--cobalt-text); }
.mrow-prob .lbl { font-size: 11px; color: var(--faint); text-align: right; font-weight: 600; }
@media (max-width: 559px) { .mrow { grid-template-columns: 46px minmax(0, 1fr); } .mrow-prob { grid-column: 2; } }
.pbar { display: flex; gap: 2px; height: 6px; }
.pbar span { display: block; height: 100%; border-radius: 3px; min-width: 3px; }
.pbar .h { background: var(--home); } .pbar .d { background: var(--draw); } .pbar .a { background: var(--away); }
.pbar.lg { height: 14px; gap: 4px; } .pbar.lg span { border-radius: 7px; }
.pbar.xl { height: 28px; gap: 5px; } .pbar.xl span { border-radius: 10px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* date switcher */
.dates { display: flex; align-items: center; gap: 8px; padding: 12px; }
.dates .nav-arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sunken); flex: none; font-weight: 700; }
.dates .days { position: relative; flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dates .days::-webkit-scrollbar { display: none; }
.dates .days a { flex: 1 0 64px; display: grid; gap: 2px; text-align: center; padding: 8px 6px; border-radius: 12px; }
.dates .days a:hover { background: var(--sunken); }
.dates .days a .dw { font-size: 12px; font-weight: 600; color: var(--muted); }
.dates .days a .dd { font-weight: 800; font-size: 15px; }
.dates .days a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.dates .days a[aria-current="page"] .dw { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* -- featured forecast card ------------------------------------------------------------------- */
.feature { padding: 22px 24px 24px; }
.feature-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 20px 0 18px; }
.versus .side-team { display: grid; justify-items: center; gap: 10px; text-align: center; }
.versus .side-team .name { font-weight: 800; font-size: clamp(17px, 2vw, 22px); letter-spacing: -.02em; }
.versus .side-team.a .name { color: var(--cobalt-text); }
.versus .mid { display: grid; justify-items: center; gap: 4px; }
.versus .clock { font: 500 clamp(26px, 3.4vw, 36px)/1 var(--mono); letter-spacing: -.04em; }
.versus .score { font: 500 clamp(34px, 4.4vw, 52px)/1 var(--mono); letter-spacing: -.05em; }
.versus .score .dash { color: var(--faint); margin: 0 .12em; }
.versus .when { font-size: 13px; color: var(--muted); font-weight: 600; }
.probline { display: grid; gap: 10px; }
.probline .pcts { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.probline .pcts > div { display: grid; gap: 2px; }
.probline .pcts .d { text-align: center; } .probline .pcts .a { text-align: right; }
.probline .v { font: 500 clamp(24px, 3vw, 34px)/1 var(--mono); letter-spacing: -.04em; }
.probline .d .v { color: var(--muted); } .probline .a .v { color: var(--cobalt-text); }
.probline .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.probline .pbar { animation: none; }
.pbar.grow span { animation: grow 900ms cubic-bezier(.2, .8, .15, 1) both .1s; }
@keyframes grow { from { flex-basis: 33.33%; } }
@media (prefers-reduced-motion: reduce) { .pbar.grow span { animation: none; } }
.feature-read { margin: 16px 0 0; font-size: 15px; }
.feature-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.published { font-size: 12px; color: var(--muted); }

/* -- small tables (standings, lists) ----------------------------------------------------------- */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th:first-child, table.t td:first-child { padding-left: 18px; }
table.t th:last-child, table.t td:last-child { padding-right: 18px; }
table.t thead th { font-size: 12px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line); background: var(--sunken); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--sunken); }
table.t td.n, table.t th.n { text-align: right; font-family: var(--mono);  }
table.t td.c, table.t th.c { text-align: center; }
table.t td.team { font-weight: 700; }
table.t td.team a { display: inline-flex; align-items: center; gap: 10px; }
table.t td.team a:hover .nm { color: var(--cobalt-text); }
table.t td.team .badge { width: 24px; height: 24px; border-radius: 7px; font-size: 8px; }
table.t td.strong { font-weight: 800; }
table.t td .pos { color: var(--muted); font-family: var(--mono); }
table.t tr.me td { background: var(--cobalt-soft); }
.table-wrap { position: relative; overflow-x: auto; }
.heat { display: inline-block; min-width: 56px; padding: 4px 8px; border-radius: 6px; text-align: right; font-family: var(--mono); background: color-mix(in srgb, var(--cobalt) calc(var(--a) * 70%), transparent); }
.heat.hot { color: #fff; }
.heat.neg { background: color-mix(in srgb, var(--bad) calc(var(--a) * 45%), transparent); }
.sub-row { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }

/* form squares */
.form { display: inline-flex; gap: 3px; vertical-align: middle; }
.form i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font: 700 10px/1 var(--font); font-style: normal; color: #fff; }
.form .w { background: var(--ink); color: var(--paper); } .form .d { background: var(--mist); color: var(--text); } .form .l { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--mist); }


/* stats blocks */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.kpi:last-child { border-right: 0; }
.kpi .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi .v { font: 500 28px/1.05 var(--mono); letter-spacing: -.04em; }
.kpi .v small { font-size: 14px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi .s { font-size: 12px; color: var(--muted); }
@media (max-width: 559px) { .kpi { border-right: 0; border-bottom: 1px solid var(--line); } }
.prob-list { display: grid; gap: 12px; padding: 4px 18px 18px; }
.prob { display: grid; grid-template-columns: minmax(130px, 1.5fr) minmax(60px, 1fr) 46px; gap: 12px; align-items: center; }
.prob-label { font-weight: 600; font-size: 14px; line-height: 1.3; }
.prob-track { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.prob-track span { display: block; height: 100%; background: var(--text); border-radius: 999px; }
.prob-track.accent span { background: var(--cobalt); }
.prob-value { text-align: right; font: 500 14px var(--mono); }
.prob-sep { height: 1px; background: var(--line); margin: 4px 0; }
.level { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.level::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }
.level-l2::before { background: var(--muted); } .level-l3::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--sunken); color: var(--muted); white-space: nowrap; }
.pill-ok { background: var(--ink); color: var(--paper); }
.pill-accent { background: var(--cobalt-soft); color: var(--cobalt-text); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.score-grid { border-collapse: separate; border-spacing: 4px; margin: 0 auto; }
.score-grid th { font: 500 12px var(--mono); color: var(--muted); padding: 4px; }
.score-grid td { width: 58px; height: 42px; text-align: center; font: 500 13px var(--mono); border-radius: 8px; background: color-mix(in srgb, var(--cobalt) calc(var(--a) * 90%), var(--sunken)); }
.score-grid td.hot { color: #fff; }
.score-grid td[data-actual] { box-shadow: inset 0 0 0 2px var(--text); font-weight: 700; }
@media (max-width: 559px) { .score-grid td { width: 42px; height: 34px; font-size: 11px; } }
.bands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0 18px 18px; }
.band { display: grid; gap: 8px; }
.band-bars { display: flex; gap: 4px; align-items: flex-end; justify-content: center; height: 120px; border-bottom: 1px solid var(--line); }
.band-bars span { width: 40%; max-width: 26px; border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bh { background: var(--home); } .ba { background: var(--away); }
.band-name { text-align: center; font: 500 11px var(--mono); color: var(--muted); }
.cmp { display: grid; gap: 14px; padding: 4px 18px 18px; }
.cmp-row { display: grid; grid-template-columns: 56px 1fr 56px; gap: 12px; align-items: center; }
.cmp-v { font: 600 16px var(--mono); } .cmp-v.r { text-align: right; color: var(--cobalt-text); }
.cmp-mid { display: grid; gap: 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }

/* charts */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 500 12px var(--mono); }
.chart .line { stroke: var(--cobalt); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .dot { fill: var(--cobalt); }
.chart-wrap { padding: 0 18px 12px; }

/* record */
.dots { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; display: block; background: var(--home); }
.dots i.miss { background: transparent; box-shadow: inset 0 0 0 2px var(--cobalt); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 0 18px 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--home); }
.legend i.miss { background: transparent; box-shadow: inset 0 0 0 2px var(--cobalt); }
.legend i.d { background: var(--draw); } .legend i.a { background: var(--away); }
.calib-row { display: grid; grid-template-columns: 70px 1fr 90px; gap: 12px; align-items: center; padding: 8px 18px; }
.calib-track { position: relative; height: 10px; background: var(--track); border-radius: 999px; }
.calib-seen { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text); border-radius: 999px; }
.calib-said { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--cobalt); border-radius: 2px; }
td.actual { color: var(--cobalt-text); font-weight: 800; }

/* hero (only on the home: the brand's statement) */
.hero-card { background: var(--cobalt); color: #fff; border-radius: var(--r); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; position: relative; overflow: hidden; }
.hero-card h1 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.035em; line-height: 1.05; max-width: 620px; }
.hero-card p { color: rgba(255, 255, 255, .86); max-width: 560px; margin: 0; font-size: 15px; }
.hero-card .mark { position: absolute; right: -10px; bottom: 22px; display: flex; gap: 8px; width: 42%; opacity: .95; }
.hero-card .mark span { height: 22px; border-radius: 8px; }
@media (max-width: 719px) { .hero-card .mark { display: none; } }
.hero-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }


/* lock */
.lock { padding: 22px 18px; display: grid; gap: 8px; justify-items: start; background: linear-gradient(180deg, var(--surface), var(--sunken)); }
.lock h3 { font-size: 16px; }
.lock p { color: var(--muted); margin: 0 0 6px; font-size: 14px; max-width: 520px; }
.lock-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li a, .list li > div { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); }
.list li a:hover { background: var(--sunken); }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta { font-size: 12px; color: var(--muted); display: block; }
.list .val { font: 600 15px var(--mono); }
.rank { width: 22px; text-align: center; font: 500 13px var(--mono); color: var(--muted); flex: none; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sunken); border: 1px solid var(--line); font: 700 12px var(--font); color: var(--muted); flex: none; }
.avatar.lg { width: 72px; height: 72px; font-size: 22px; }
.story-card { padding: 18px; display: grid; gap: 8px; align-content: start; }
.story-card h3 { font-size: 17px; line-height: 1.25; }
.story-card p { color: var(--muted); font-size: 14px; margin: 0; }
.story-card:hover h3 { color: var(--cobalt-text); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--cobalt-text); }

/* prose pages */
.prose-card { padding: clamp(22px, 3vw, 36px); }
.prose { max-width: 760px; font-size: 16px; line-height: 1.7; }
.prose h2 { margin: 36px 0 10px; font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--sunken); padding: 1px 5px; border-radius: 5px; }
ol.terms li { margin-bottom: 14px; }
mark.todo { background: var(--warn-soft); color: var(--warn); padding: 0 5px; border-radius: 5px; font-weight: 700; }

/* auth */
.auth { display: grid; gap: 16px; padding: 28px 0 48px; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 440px; align-items: start; } }
.auth .hero-card { min-height: 100%; }
.auth-card { padding: 26px; }
.auth-card h1, .auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card form { margin-top: 18px; }
.auth-alt { margin: 16px 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.auth-alt a { color: var(--cobalt-text); font-weight: 700; }
.sell-pitch { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.sell-pitch li { display: flex; gap: 10px; align-items: baseline; color: rgba(255, 255, 255, .9); }
.sell-pitch li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; transform: translateY(-1px); }
.stack { display: grid; gap: 12px; justify-items: start; padding: 0 18px 18px; }
.stack .field { width: 100%; margin-bottom: 0; }
.sessions { list-style: none; padding: 0 18px; margin: 0 0 12px; display: grid; gap: 10px; font-size: 14px; }

/* system pages */
.system { padding: 56px 0 32px; }
.system .code { font: 500 13px var(--mono); color: var(--cobalt-text); display: block; margin-bottom: 14px; }
.system h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.system p { font-size: 17px; color: var(--muted); max-width: 580px; margin-top: 12px; }
.system .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.system .splitmark { display: flex; gap: 6px; margin-bottom: 26px; }
.system .splitmark span { height: 10px; border-radius: 999px; }
.search-row { display: flex; gap: 8px; margin-top: 20px; max-width: 520px; }
.search-row .input { flex: 1; }

/* footer */
.site-footer { background: var(--surface); color: var(--text); border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 24px; }
.footer-top { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-claim { margin: 14px 0 0; color: var(--on-bar-muted); max-width: 360px; font-size: 14px; }
.footer-col h2 { font-size: 13px; font-weight: 700; color: var(--on-bar-muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.footer-col a:hover { color: var(--cobalt-text); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sunken); }
.social a:hover { background: var(--line); }
.social svg { width: 17px; height: 17px; }
.footer-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 12px; color: var(--on-bar-muted); }
.footer-legal p { margin: 0; }

/* logo: ink on light, white on dark */
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; } :root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .topbar, .ticker, .site-footer, .skip, .side { display: none; } body { background: #fff; } }

.nav { gap: 0; }
.tick { width: 180px; }


/* numbers: the typeface's proportional figures; its tabular set also widens . and :, so it is not used */

/* ================================================================================================
   Polish: depth, affordances, interaction states
   ================================================================================================ */
:root {
  --shadow-1: 0 1px 2px rgba(11, 11, 12, .05), 0 1px 1px rgba(11, 11, 12, .03);
  --shadow-2: 0 1px 2px rgba(11, 11, 12, .04), 0 6px 18px -6px rgba(11, 11, 12, .10);
  --shadow-3: 0 2px 4px rgba(11, 11, 12, .05), 0 14px 32px -10px rgba(11, 11, 12, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] { --shadow-1: none; --shadow-2: 0 0 0 1px rgba(255,255,255,.02); --shadow-3: 0 12px 30px -12px rgba(0,0,0,.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-1: none; --shadow-2: 0 0 0 1px rgba(255,255,255,.02); --shadow-3: 0 12px 30px -12px rgba(0,0,0,.8); } }

.card, .phead { box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--line) 80%, transparent); }
a.card, .card.story-card { transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.hero-card { box-shadow: 0 10px 30px -12px rgba(42, 80, 255, .55); }

/* header: gains a shadow once the page scrolls */
.topbar { transition: box-shadow .2s var(--ease); }
.topbar.scrolled { box-shadow: 0 6px 20px -12px rgba(11, 11, 12, .25); }
.btn { box-shadow: var(--shadow-1); transition: transform .12s var(--ease), box-shadow .2s var(--ease), opacity .15s; }
.btn:hover { opacity: 1; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-accent:hover { box-shadow: 0 6px 16px -6px rgba(42, 80, 255, .6); }

/* search with suggestions */
.topsearch .kbd { position: absolute; right: 10px; top: 9px; font: 600 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; background: var(--surface); }
.topsearch input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); background: var(--surface); }
.topsearch input:focus + .kbd { display: none; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-3); z-index: 80; }
.suggest li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; }
.suggest li a .k { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--sunken); border-radius: 5px; padding: 3px 6px; }
.suggest li a .d { font-size: 12px; color: var(--muted); }
.suggest li a strong { font-weight: 700; }
.suggest li[aria-selected="true"] a, .suggest li a:hover { background: var(--sunken); }
.suggest .empty-s { padding: 12px 10px; color: var(--muted); font-size: 14px; }

/* ticker: a real carousel, with arrows, faded edges and snap */
.ticker { position: relative; }
.ticker-inner { display: flex; align-items: stretch; gap: 0; padding: 0 var(--gutter); position: relative; }
.ticker-title { flex: none; display: grid; align-content: center; gap: 2px; padding: 0 18px 0 0; margin-right: 6px; border-right: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.ticker-title span { font-weight: 600; font-size: 12px; color: var(--muted); }
@media (max-width: 719px) { .ticker-title { display: none; } }
.ticker-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 48px), transparent 100%); }
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-track.at-start { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%); }
.ticker-track.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%); }
.ticker-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ticker-track.dragging a { pointer-events: none; }
.tick { scroll-snap-align: start; width: 184px; transition: background .15s; border-right: 1px solid var(--line); }
.tick:hover { background: var(--sunken); }
.tick-teams .vs { font-weight: 500; font-size: 12px; color: var(--muted); }
.tick-bar { height: 5px; } .tick-bar span { border-radius: 3px; }
.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.scroll-btn:hover { box-shadow: var(--shadow-3); transform: translateY(-50%) scale(1.06); }
.scroll-btn svg { width: 16px; height: 16px; }
.scroll-btn.prev { left: calc(var(--gutter) + 132px); }
.scroll-btn.next { right: calc(var(--gutter) - 6px); }
@media (max-width: 719px) { .scroll-btn { display: none; } }

/* rows: the whole row is the target, with a chevron that moves on hover */
.mrow { position: relative; grid-template-columns: 58px minmax(0, 1fr) 150px 14px; transition: background .15s; }
.mrow::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--faint); border-top: 2px solid var(--faint); transform: rotate(45deg); transition: transform .15s var(--ease), border-color .15s; justify-self: end; }
.mrow:hover::after { border-color: var(--text); transform: translateX(3px) rotate(45deg); }
@media (max-width: 559px) { .mrow { grid-template-columns: 46px minmax(0, 1fr) 10px; } .mrow::after { grid-column: 3; grid-row: 1; } }
.mteam .name { font-size: 15px; }
.league-head { transition: background .15s; }
a.league-head:hover { background: var(--sunken); }
a.league-head::after { content: "View all"; margin-left: 12px; font-size: 13px; font-weight: 700; color: var(--cobalt-text); }
.side-list a { transition: background .15s, color .15s; }

/* bars: an explicit label on hover */
[data-tip] { position: relative; }
[data-tip]:hover::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--font); padding: 7px 9px; border-radius: 6px; box-shadow: var(--shadow-2); z-index: 20; pointer-events: none; }
.pbar span { transition: filter .15s; }
.pbar span:hover { filter: brightness(1.15); }

/* match page: tabs stay in view and follow the section */
.phead .tabs { position: sticky; top: 64px; background: var(--surface); border-radius: 0 0 var(--r) var(--r); z-index: 5; }
.sticky-tabs { position: sticky; top: 64px; z-index: 30; }
.tabs a { transition: color .15s, border-color .15s; }

/* tables: sticky header, full-row hover */
table.t thead th { position: sticky; top: 0; z-index: 1; }
table.t tbody tr { transition: background .12s; }

/* forms and focus */
.input { transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* entrance of the feature bar only (one orchestrated moment) */
.pbar.grow span { animation-duration: 1000ms; }

.subnav { position: sticky; top: 64px; z-index: 30; margin-top: 12px; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); }
.subnav a { padding: 13px 10px 11px; }
.ticker .wrap.ticker-inner { padding: 0 var(--gutter); overflow: visible; }
.scroll-btn[hidden] { display: none; }
.ticker-track:not(.at-start):not(.at-end) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.ticker-track.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
.suggest li a .k { background: none; padding: 0; font-weight: 600; font-size: 12px; }
.suggest li[aria-selected="true"] a { background: var(--cobalt-soft); }
.suggest li[aria-selected="true"] a strong { color: var(--cobalt-text); }
@media (max-width: 719px) { .feature-top { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* ---------- Pass 2: day picker, colour key, calmer details */
.daybar .card-head { padding-bottom: 12px; }
.day-chips { display: flex; gap: 8px; padding: 0 18px 14px; overflow-x: auto; scrollbar-width: none; }
.day-chips::-webkit-scrollbar { display: none; }
.day-chips a { flex: 1 0 auto; min-width: 96px; display: grid; gap: 1px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.day-chips a:hover { border-color: var(--mist); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.day-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day-chips .dw { font-size: 12px; font-weight: 600; color: var(--muted); }
.day-chips a[aria-current="page"] .dw, .day-chips a[aria-current="page"] .dn { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.day-chips .dd { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.day-chips .dn { font-size: 12px; color: var(--muted); }
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 18px 14px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 14px; height: 6px; border-radius: 3px; }
.key i.h { background: var(--home); } .key i.d { background: var(--draw); } .key i.a { background: var(--away); }
.key .muted { margin-left: auto; font-weight: 500; }
@media (max-width: 719px) { .key .muted { margin-left: 0; flex-basis: 100%; } }
.mrow-teams { max-width: 360px; }
.avatar:not(.lg) { display: none; }
.rail .mrow { grid-template-columns: 48px minmax(0, 1fr); row-gap: 8px; }
.rail .mrow-prob { grid-column: 2; }
.rail .mrow::after { display: none; }

/* ---------- insights: projection strips and charts, percentile bars */
.pos-strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.pos-strip i { width: 9px; height: 18px; border-radius: 2px; background: color-mix(in srgb, var(--cobalt) calc(var(--p) * 100%), var(--track)); }
.pos-strip i.top { box-shadow: inset 0 0 0 1.5px var(--ink); }
table.proj td { padding-top: 9px; padding-bottom: 9px; }
.pos-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 8px 0 0; }
.pos-chart .pc { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.pos-chart .pb { width: 100%; min-height: 2px; border-radius: 4px 4px 2px 2px; background: var(--mist); }
.pos-chart .pb.top { background: var(--cobalt); }
.pos-chart .pv { font-size: 10px; font-weight: 700; color: var(--muted); }
.pos-chart .pn { font-size: 10px; color: var(--muted); }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(80px, 180px) 64px; gap: 14px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.rank-row .v { text-align: right; font-weight: 700; }
.rank-row .bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.rank-row .bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.rank-row .bar i.hi { background: var(--cobalt); }
.rank-row .p { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; }
.race-league { padding: 10px 18px 12px; border-top: 1px solid var(--line); }
.race-league > a { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.race-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 40px; gap: 10px; align-items: center; font-size: 14px; padding: 3px 0; }
.race-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-row .v { text-align: right; font-weight: 700; font-size: 13px; }
.race-row .bar { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.race-row .bar i { display: block; height: 100%; background: var(--cobalt); border-radius: 99px; }
.split-rec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.split-rec > div { background: var(--surface); padding: 14px 18px; }
.split-rec .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.split-rec .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 719px) { .rank-row { grid-template-columns: minmax(0, 1fr) 52px 70px 44px; gap: 8px; padding: 10px 14px; } }
.rank-head { font-size: 11px; font-weight: 700; color: var(--muted); padding-top: 8px; padding-bottom: 6px; }
.rank-head .v { font-weight: 700; }
.rank-row .p { font-size: 14px; font-weight: 700; color: var(--text); }
@media (max-width: 719px) { table.proj .heat { min-width: 44px; padding: 3px 6px; } table.proj td.team .nm { white-space: nowrap; } }
@media (max-width: 719px) {
  .rank-row { grid-template-columns: minmax(0, 1fr) 44px 64px 58px; }
  .rank-head .p { font-size: 10px; }
  table.proj td.team .nm { display: block; max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
  table.proj th, table.proj td { padding-left: 6px; padding-right: 6px; }
}
.show-sm { display: none; }
@media (max-width: 719px) { .show-sm { display: inline; } table.proj .heat { min-width: 38px; padding: 3px 4px; font-size: 13px; } table.proj td.pos { width: 20px; } }
table.stakes { margin-top: 8px; }
table.stakes th:not(:first-child) { white-space: normal; max-width: 110px; }
table.stakes tr.stake-team th { text-align: left; font-size: 15px; font-weight: 800; color: var(--text); padding-top: 16px; background: none; border-top: 1px solid var(--line); }
table.stakes tr.stake-team th.away-text { color: var(--cobalt-text); }
table.stakes td:first-child { padding-left: 18px; }
table.facts td { vertical-align: top; }
table.facts .muted-label { color: var(--muted); font-weight: 600; white-space: nowrap; width: 1%; padding-right: 24px; }
table.facts .big-n { display: inline-block; min-width: 28px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.facts-list .fact-n { flex: none; min-width: 64px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.facts-list .title { white-space: normal; }
table.facts td { white-space: normal; }
.team-link { font-weight: 700; }
.team-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.facts-list.compact .fact-n { min-width: 56px; font-size: 18px; }
.facts-list.compact li > a, .facts-list.compact li > div { padding: 11px 18px; }
.up { color: var(--cobalt-text); font-weight: 700; }
.down { color: var(--muted); }

/* goals by quarter of an hour (team page): fits a phone without scrolling */
.t.mins th, .t.mins td { text-align: center; }
.t.mins th:first-child, .t.mins td:first-child { text-align: left; }
@media (max-width: 560px) {
  .t.mins th, .t.mins td { padding-left: 4px; padding-right: 4px; font-size: 12px; }
  .t.mins th:first-child, .t.mins td:first-child { padding-left: 12px; }
}

/* European cups: the date above a day's matches */
.day-head { padding: 10px 16px 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; }

/* ================================================================================================
   Phones: long lists, grouped cards, tighter headers, a bottom bar
   ================================================================================================ */
.is-more { display: none !important; }
.more-btn { display: block; width: 100%; min-height: 46px; padding: 12px 18px; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--cobalt-text); font: 700 14px/1.2 var(--font); cursor: pointer; text-align: center; }
.more-btn:hover { background: var(--sunken); }
.more-btn[aria-expanded="false"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }

/* groups of cards behind tabs: built by site.js from [data-groups] and [data-g] */
.gtabs { position: sticky; top: 64px; z-index: 25; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; background: var(--paper); }
.gtabs::-webkit-scrollbar { display: none; }
.gtabs button { flex: none; min-height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 700 14px/1 var(--font); padding: 0 15px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.gtabs button:hover { color: var(--text); }
.gtabs button[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gtabs { grid-column: 1 / -1; }
.card .gtabs { position: static; background: none; padding: 0 16px 10px; }
@media (min-width: 1024px) { .gtabs.sm { display: none; } }
@media (min-width: 720px) { .gtabs.xs { display: none; } }
@media (max-width: 1023px) { [data-groups=""] .g-off { display: none !important; } }
@media (max-width: 719px) { [data-groups="xs"] .g-off { display: none !important; } }
[data-groups="all"] .g-off { display: none !important; }

/* round pager (league matches) */
.pager { display: flex; align-items: center; gap: 8px; padding: 12px; }
.pager .nav-arrow { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sunken); flex: none; }
.pager .nav-arrow:hover { background: var(--line); }
.pager .nav-arrow[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.pager .nav-arrow svg { width: 18px; height: 18px; }
.pager-mid { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 2px; text-align: center; }
.pager-mid strong { font-size: 16px; letter-spacing: -.01em; }
.pager-mid .card-sub { font-size: 12px; }
.pager form { display: contents; }
.pager .select { max-width: 100%; }

/* the bottom bar: the main sections within a thumb's reach */
.bottombar { display: none; }
@media (max-width: 719px) {
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .bottombar a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 10px; font: 600 11px/1 var(--font); color: var(--muted); }
  .bottombar a svg { width: 22px; height: 22px; }
  .bottombar a[aria-current="page"] { color: var(--cobalt-text); }
  .bottombar a:active { background: var(--sunken); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

@media (max-width: 719px) {
  /* header: brand, theme, sign in, menu on one line */
  .topbar .wrap { gap: 10px; }
  .tools { margin-left: auto; gap: 2px; }
  .tools .btn { min-height: 38px; padding: 8px 12px; }
  .nav { max-height: calc(100vh - 64px); overflow-y: auto; }

  /* page and card headers */
  .app { padding-top: 12px; gap: 12px; }
  .col, .rail { gap: 12px; }
  .wrap[style*="padding-top:20px"] { padding-top: 12px !important; }
  .phead-top { padding: 16px; gap: 12px 14px; }
  .phead-title h1 { font-size: 24px; }
  .phead-title .card-sub { font-size: 13px; }
  .phead-actions { margin-left: 0; flex: 1 1 100%; }
  .phead-actions .select { flex: 1; width: 100%; height: 40px; }
  a.phead-actions { flex: none; margin-left: auto; }
  .badge.xl { width: 56px; height: 56px; font-size: 15px; }
  .avatar.lg { width: 56px; height: 56px; font-size: 18px; }
  .tabs { padding: 0 6px; }
  .tabs a { padding: 14px 10px 12px; }
  .card-head { flex-wrap: wrap; row-gap: 2px; padding: 14px 16px 10px; }
  .card-head .card-sub, .card-head .level { flex-basis: 100%; }
  .card-head .more { margin-left: auto; }
  .note { padding: 0 16px 14px; }
  .feature { padding: 18px 16px 20px; }
  .versus { gap: 10px; margin: 16px 0 14px; }

  /* numbers: two to a row, on an even grid of hairlines */
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
  .kpi { background: var(--surface); border: 0 !important; padding: 13px 16px; }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi .v { font-size: 24px; }

  /* lists and rows: denser */
  .list li a, .list li > div { padding: 10px 16px; gap: 10px; }
  .facts-list .fact-n { min-width: 52px; font-size: 19px; }
  .mrow { padding: 10px 14px; gap: 10px; }
  table.t th:first-child, table.t td:first-child { padding-left: 14px; }
  table.t th:last-child, table.t td:last-child { padding-right: 14px; }
  table.t th, table.t td { padding-left: 6px; padding-right: 6px; }
  .league-head { padding: 12px 16px; }
  .chart-wrap { padding: 0 10px 10px; }

  /* tables wider than the phone: the first column stays, a shadow says there is more */
  .table-wrap { scrollbar-width: none; }
  .table-wrap::-webkit-scrollbar { display: none; }
  .table-wrap.scrolls table.t td.team, .table-wrap.scrolls table.t th:nth-child(2):not(.n) { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .table-wrap.scrolls table.t td.team { box-shadow: 6px 0 8px -6px rgba(11, 11, 12, .18); }
  .table-wrap.scrolls:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }

  /* footer: three short columns side by side */
  .site-footer { padding: 28px 0 22px; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-col ul { gap: 10px; font-size: 13px; }
  .footer-legal { margin-top: 22px; }
}

/* league pages: the rail (leader, next matches, scorers) repeats what the tabs show; phones see it on the table tab only */
@media (max-width: 1023px) { .rail-extra { display: none; } }
@media (max-width: 719px) {
  table.fc td.team { white-space: normal; min-width: 128px; }
  table.fc td.team a { display: inline; }
  table.fc th.n, table.fc td.n { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 719px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid .mrow { grid-template-columns: minmax(0, 1fr) auto !important; padding: 11px 12px; gap: 6px; }
  .team-grid .mrow::after { display: none; }
  .team-grid .mrow > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .team-grid .mrow:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* match rows on phones: time, teams and Vesta's bar on one line, as the score apps */
@media (max-width: 559px) {
  .mrow:not(.cup) { grid-template-columns: 40px minmax(0, 1fr) 104px; gap: 10px; padding: 10px 14px; }
  .mrow:not(.cup) .mrow-prob { grid-column: 3; grid-row: 1; gap: 5px; }
  .mrow:not(.cup)::after { display: none; }
  .mrow-prob .pcts { font-size: 11px; }
  .mrow-prob .lbl { font-size: 10px; }
  .mteam .name { font-size: 14px; }
  .mrow-teams { gap: 4px; }
  .mrow-time { font-size: 12px; }
  .mrow.cup { grid-template-columns: 40px minmax(0, 1fr); padding: 10px 14px; gap: 6px 10px; }
  .mrow.cup::after { display: none; }
  .mrow.cup .mrow-prob { grid-column: 2; }
  .mrow.cup .mrow-prob .lbl { text-align: left; }
}

/* cards folded to their heading on phones (site.js, [data-fold-sm]) */
.foldable > .card-head { position: relative; padding-right: 48px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.foldable > .card-head::after { content: ""; position: absolute; right: 20px; top: 21px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-135deg); transition: transform .2s var(--ease); }
.foldable.folded > .card-head::after { transform: rotate(45deg); top: 17px; }
.foldable.folded > .card-head { padding-bottom: 14px; }
.folded > :not(:first-child) { display: none !important; }
@media (max-width: 719px) { .card-head .more { padding: 10px 0; margin: -10px 0; } }
@media (max-width: 1099px) {
  .nav a { border-bottom: 0; border-radius: 10px; padding: 11px 14px; margin: 1px 0; }
  .nav a[aria-current="page"] { background: var(--sunken); }
}

/* ================================================================================================
   Marks: our own crests in club colours, flags, generic player silhouettes (web/identity.py)
   ================================================================================================ */
.mark { display: inline-grid; place-items: center; flex: none; width: var(--s); height: calc(var(--s) * 1.15); vertical-align: middle; }
.mark svg { display: block; width: var(--s); height: auto; }
.mark.big svg { filter: none; }
.flagmark, .avatarmark, .cupmark { height: var(--s); }
.flagmark img { width: var(--s); height: var(--s); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(11, 11, 12, .12); }
.mark.big.flagmark img { box-shadow: 0 0 0 1px rgba(11, 11, 12, .1); }
.plainmark { height: var(--s); border-radius: 30%; background: var(--sunken); border: 1px solid var(--line); font: 700 calc(var(--s) * .3)/1 var(--font); letter-spacing: .02em; color: var(--muted); }
.plainmark.big { border-radius: 50%; background: var(--ink); color: var(--paper); border: 0; }
.cupmark { border-radius: 50%; background: var(--cobalt); color: #fff; font: 800 calc(var(--s) * .34)/1 var(--font); letter-spacing: -.02em; }
.cupmark.int { background: var(--ink); color: var(--paper); }
.avatarmark { border-radius: 50%; overflow: hidden; }
.avatarmark svg { border-radius: 50%; }
.mteam { gap: 8px; }
.mteam .mark { width: 18px; }
table.t td.team a { gap: 10px; }
table.t td.team .mark + .nm .sub-row { font-weight: 500; }
.side-list a .mark { margin-right: -2px; }
.league-head .mark { margin-right: -2px; }
.versus .side-team .mark, .phead-top > .mark { justify-self: center; }
.cupmark svg { width: 62%; height: 62%; }
.cupmark.int { background: var(--ink); color: var(--paper); }
h2.with-mark { display: flex; align-items: center; gap: 10px; }
.phead-top > .flagmark img { box-shadow: 0 0 0 1px rgba(11,11,12,.1); }
@media (max-width: 719px) {
  table.t td.team { white-space: normal; min-width: 132px; }
  table.t td.team .nm { line-height: 1.25; }
  table.t td.team a { gap: 8px; }
}
@media (max-width: 719px) { table.proj td.team .mark { --s: 16px !important; } table.proj td.team a { gap: 6px; } }
@media (max-width: 719px) { table.proj td.team { min-width: 0; } }

/* real logos (config/site.toml logos): the dark version when the theme is dark */
.logomark { height: var(--s); }
.logomark img { width: var(--s); height: var(--s); object-fit: contain; }
.logomark .dk { display: none; }
:root[data-theme="dark"] .logomark .lt { display: none; } :root[data-theme="dark"] .logomark .dk { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logomark .lt { display: none; } :root:not([data-theme="light"]) .logomark .dk { display: block; } }
.mark.big.logomark img { filter: drop-shadow(0 1px 2px rgba(11, 11, 12, .08)); }

/* national team competitions */
.intl-card .card-head { padding-bottom: 6px; }
.intl-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 18px 16px; font-size: 14px; }
.intl-meta > span { display: grid; gap: 1px; }
.intl-meta .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.groups { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); border-top: 1px solid var(--line); }
.group-table { border-bottom: 1px solid var(--line); }
.group-name { padding: 10px 18px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
@media (max-width: 719px) { .groups { grid-template-columns: 1fr; } }
.hist { display: grid; gap: 8px; width: 100%; }
.hist-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hist-top .title { white-space: normal; }
.hist-top .title:hover { color: var(--cobalt-text); }
.hist-eds { display: flex; flex-wrap: wrap; gap: 4px; }
.hist-eds .ed { font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--sunken); color: var(--muted); }
.hist-eds .ed:hover { color: var(--text); }
.hist-eds .ed.won { background: var(--ink); color: var(--paper); }
.hist-eds .ed.final { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--text); }
.list.history li > div { display: block; }
.list.history .hist a { border-top: 0; padding: 0; display: inline; gap: 0; }
.list.history .hist a:hover { background: none; }
.list.history .hist-eds .ed { padding: 3px 7px; }
.list.history .hist-eds .ed:hover { background: var(--line); }
.list.history .hist-eds .ed.won:hover { background: var(--ink); }
.hist-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; }
.hist-top .meta { grid-column: 1; grid-row: 2; }
.hist-top .pill { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 719px) { .league-head .card-sub { display: none; } .league-head h2, .league-head h3 { flex: 1; } }

/* live scores (footy.site.live) */
.live-clock { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1 var(--font); color: var(--bad); }
.live-clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.mteam .goals.live { color: var(--bad); }
.versus .score.live { color: var(--bad); }
.live-strip { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.live-strip::-webkit-scrollbar { display: none; }
.live-strip .live-title { flex: none; display: grid; place-items: center; padding: 0 14px; border-right: 1px solid var(--line); }
.live-strip a { flex: none; display: grid; gap: 2px; padding: 10px 16px; border-right: 1px solid var(--line); font-size: 14px; }
.live-strip a:hover { background: var(--sunken); }
.live-strip .lt strong { color: var(--bad); }
.live-strip .lm { font-size: 12px; font-weight: 700; color: var(--bad); }

/* follow a team (site.js, localStorage) */
.follow { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 700 14px var(--font); cursor: pointer; }
.follow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.follow[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.follow[aria-pressed="true"] svg { fill: currentColor; }
.following .card-head .card-sub { flex-basis: 100%; }

/* accessibility (axe): readable small labels, headings one level under the page title */
.mrow-prob .lbl { color: var(--muted); }
.league-head h2 { font-size: 15px; }
.score-grid td.hot { background: var(--cobalt-text); color: #fff; }
:root[data-theme="dark"] .score-grid td.hot { background: #2442D9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .score-grid td.hot { background: #2442D9; } }
table.t tr.playing td { background: color-mix(in srgb, var(--bad) 6%, transparent); }
table.t td.pos .mv { margin-left: 4px; font-size: 9px; }
table.t td.pos .mv.up { color: var(--ok); } table.t td.pos .mv.down { color: var(--bad); }

/* ================================================================================================
   Narrow phones (320-420 px): nothing cut, nothing squeezed
   ================================================================================================ */
.app { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 420px) { .hide-xs { display: none !important; } }
@media (max-width: 559px) {
  .mrow.nofc:not(.cup) { grid-template-columns: 40px minmax(0, 1fr); }
  .mrow.nofc:not(.cup) .mrow-prob { display: none; }
}
@media (max-width: 420px) {
  /* match rows on two levels: the teams across the row, Vesta's bar under them */
  .mrow:not(.cup) { grid-template-columns: 38px minmax(0, 1fr); row-gap: 8px; }
  .mrow:not(.cup) .mrow-prob { grid-column: 2; grid-row: 2; }
  .mrow-prob .pcts { font-size: 12px; }
  .mteam .name { font-size: 15px; }
  .wrap { padding: 0 12px; }
  .phead-top { padding: 14px; }
  .card-head { padding: 12px 14px 8px; }
  .note { padding: 0 14px 12px; }
  .kpi { padding: 12px 14px; }
  .kpi .v { font-size: 22px; }
  .list li a, .list li > div { padding: 10px 14px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-grid .mrow:nth-child(odd) { border-right: 0; }
  a.phead-actions { display: none; }
  .feature { padding: 16px 14px 18px; }
  .versus .badge.xl, .versus .mark.big { --s: 64px !important; }
  .bottombar a { font-size: 10.5px; }
}
.groups { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.col > *, .rail > * { min-width: 0; }  /* a wide child (a row of tabs) never widens the column */
@media (max-width: 420px) { .mteam .name { white-space: normal; line-height: 1.2; } }

/* menus (site.js): the site's own list over the native select */
.dd { position: relative; display: inline-block; min-width: 0; max-width: 100%; }
.dd-native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; width: 100%; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 120px; min-height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: 700 14px/1.2 var(--font); cursor: pointer; text-align: left; box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); }
.dd-btn:hover { border-color: var(--mist); }
.dd-btn[aria-expanded="true"] { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.dd-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.dd-pop { position: absolute; z-index: 90; top: calc(100% + 6px); right: 0; min-width: max(100%, 240px); max-width: min(92vw, 420px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-3); padding: 6px; }
.dd-pop[hidden] { display: none; }
.dd-search { width: 100%; height: 38px; margin-bottom: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--text); font: 500 14px var(--font); }
.dd-search:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.dd-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; outline: none; overscroll-behavior: contain; }
.dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.dd-list li[hidden] { display: none; }
.dd-list li.on { background: var(--sunken); }
.dd-list li[aria-selected="true"] { color: var(--cobalt-text); }
.dd-list li[aria-selected="true"]::after { content: ""; flex: none; width: 5px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.pager .dd-pop { left: 50%; right: auto; transform: translateX(-50%); }
@media (max-width: 719px) {
  .phead-actions .dd, .card-body .dd { display: block; width: 100%; }
  .dd-pop, .pager .dd-pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; transform: none; max-width: none; border-radius: 16px 16px 0 0; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px -10px rgba(11, 11, 12, .35); }
  .dd-pop::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--mist); margin: 0 auto 10px; }
  .dd-list { max-height: 55vh; }
  .dd-list li { min-height: 46px; font-size: 15px; }
  html.menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 85; background: rgba(11, 11, 12, .35); }
  html.menu-open .bottombar { display: none; }
}

/* players to watch, line-ups (partials/watch.html) */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.watch-team { min-width: 0; padding-bottom: 8px; }
.watch-team + .watch-team { border-left: 1px solid var(--line); }
@media (max-width: 719px) { .watch-team + .watch-team { border-left: 0; border-top: 1px solid var(--line); } }
.watch-head { display: flex; align-items: center; gap: 8px; padding: 12px 18px 6px; font-weight: 800; }
.watch-head .card-sub, .watch-head .pill { margin-left: auto; }
.watch-list li a { border-top: 0; }
.watch-list .title { white-space: normal; overflow: visible; text-overflow: clip; }
.watch-p { display: grid; justify-items: end; line-height: 1.1; }
.watch-p strong { font-size: 18px; letter-spacing: -.02em; }
.watch-p span { font-size: 11px; color: var(--muted); font-weight: 600; }
.watch-grid.watch-stack { grid-template-columns: minmax(0, 1fr); }
.watch-grid.watch-stack .watch-team + .watch-team { border-left: 0; border-top: 1px solid var(--line); }
.t.every tr.bench td { color: var(--muted); }
.t.every tr.bench a { color: inherit; }
.t.every td:first-child { white-space: normal; }
.bench-tag { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; white-space: nowrap; }
.stat-rows { padding: 2px 18px 16px; display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 3.2em; align-items: center; gap: 4px 10px; }
.stat-row .stat-label { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-row .v { font: 600 16px/1 var(--mono); letter-spacing: -.02em; }
.stat-row .v.a { text-align: right; }
.stat-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); gap: 2px; }
.stat-bar .h { background: var(--home); }
.stat-bar .a { background: var(--away); }
.watch-creators { padding: 4px 18px 8px; font-size: 13px; color: var(--muted); }
.lineup-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 18px; font-size: 14px; border-top: 1px solid var(--line); }
.lineup-label { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.lineup-names a { font-weight: 600; }
.lineup-names a:hover { color: var(--cobalt-text); }
@media (max-width: 420px) { .lineup-line { grid-template-columns: 1fr; gap: 2px; padding: 8px 14px; } .watch-head { padding: 12px 14px 6px; } }
.next-watch { display: flex; align-items: center; gap: 18px; padding: 4px 18px 14px; flex-wrap: wrap; }
.next-watch:hover strong { color: var(--cobalt-text); }
.nw-match { display: grid; gap: 4px; flex: 1 1 200px; }
.nw-match strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nw-match .meta { font-size: 13px; color: var(--muted); }
.nw-p { display: grid; justify-items: end; line-height: 1.1; }
.nw-p strong { font-size: 24px; letter-spacing: -.02em; }
.nw-p span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* tab rows wider than the screen: faded edges where there is more (not on the sticky ones:
   the mask would fade their background too) */
.tabs:not(.subnav).scrolls:not(.at-end), .chips.scrolls:not(.at-end), .day-chips.scrolls:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.tabs:not(.subnav).scrolls:not(.at-start), .chips.scrolls:not(.at-start), .day-chips.scrolls:not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.tabs:not(.subnav).scrolls:not(.at-start):not(.at-end), .chips.scrolls:not(.at-start):not(.at-end), .day-chips.scrolls:not(.at-start):not(.at-end) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.mrow-time .tbc { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.auto-note { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); max-width: 720px; }
.t td .prov { font-weight: 500; color: var(--muted); font-size: 11px; }
/* league table: the top four and the bottom three, the groups of the projections */
table.t tr.zone-top td:first-child { box-shadow: inset 3px 0 0 var(--cobalt); }
table.t tr.zone-bottom td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.zone-key { display: flex; gap: 16px; font-size: 12px; }
.zone-key span { display: inline-flex; align-items: center; gap: 6px; }
.zone-key i { width: 3px; height: 12px; border-radius: 2px; background: var(--cobalt); }
.zone-key i.bottom { background: var(--bad); }
/* a directory of clubs (teams page): tiles with the crest */
.team-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; padding: 12px 14px 14px; }
.team-tiles > a { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .15s, background .15s; }
.team-tiles > a:hover { border-color: var(--mist); background: var(--sunken); }
.team-tiles .tt-text { display: grid; min-width: 0; }
.team-tiles .tt-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.team-tiles .tt-meta { font-size: 12px; color: var(--muted); }
@media (max-width: 420px) { .team-tiles { grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; } .team-tiles > a { padding: 8px; gap: 8px; } .team-tiles .tt-name { font-size: 13px; } }
/* the goals of a played match: home on the left, away on the right, the minute in the middle */
.goal-line { list-style: none; margin: 0; padding: 0 0 8px; border-top: 1px solid var(--line); }
.goal-line li { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; padding: 10px 18px; }
.goal-line li + li { border-top: 1px solid var(--line); }
.goal-line .g-min { grid-column: 2; grid-row: 1; display: grid; justify-items: center; gap: 4px; font: 700 14px/1 var(--mono); }
.goal-line .g-score { font-size: 12px; font-weight: 600; color: var(--muted); }
.goal-line .g-who { display: grid; gap: 3px; min-width: 0; }
.goal-line .g-name { font-weight: 700; }
.goal-line .g-name a:hover { color: var(--cobalt-text); }
.goal-line .g-team { font-size: 12px; color: var(--muted); }
.goal-line .g-tag { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.goal-line li.gh .g-who { grid-column: 1; grid-row: 1; }
.goal-line li.ga .g-who { grid-column: 3; grid-row: 1; text-align: right; }
.goal-line li.ga .g-team { color: var(--cobalt-text); }
.league-chips { padding: 12px 18px; border-top: 1px solid var(--line); }
.chip[aria-current="page"] .mark { filter: none; }
.did { justify-self: start; margin-top: 4px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--sunken); color: var(--muted); }
.did.hit { background: var(--ok-soft); color: var(--ok); }
.mrow-teams .mnote { font-size: 11px; font-weight: 600; color: var(--muted); padding-left: 26px; }
.markets { display: grid; gap: 16px; min-width: 0; }
.markets > * { min-width: 0; }
.markets > .gtabs { position: static; padding-top: 0; }  /* the match page already has its sticky section tabs */
/* a story: the first paragraph larger, the teams it mentions as chips */
.prose p.lede { font-size: 1.15em; font-weight: 600; letter-spacing: -.01em; }
.story-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.story-teams-k { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 6px; }
.story-teams .chip { padding: 6px 10px; font-size: 13px; }
.more-head { font-size: 17px; margin: 8px 2px 0; }
.suggest a .sg-mark { flex: none; display: inline-grid; place-items: center; width: 26px; }
.suggest a .sg-mark:empty { display: none; }
/* grouped columns (charts.columns): a player's goals and expected goals by season */
.chart.cols { width: 100%; height: auto; display: block; }
.chart.cols .c-goals { fill: var(--home); }
.chart.cols .c-xg { fill: var(--cobalt); }
.chart.cols .val { fill: var(--muted); font: 600 11px var(--mono); }
.chart-box { padding: 4px 14px 12px; }
.chart-box .legend { padding: 4px 4px 0; }
.legend i.cg { background: var(--home); } .legend i.cx { background: var(--cobalt); }
/* a club match: the two clubs' colours as a band on top of the header */
.phead.club-band, .card.club-band { position: relative; overflow: hidden; }
.phead.club-band::before, .card.club-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--hc) 0 50%, var(--ac) 50% 100%); }
.phead.club-band.one::before { background: var(--hc); }
.chart.duo { width: 100%; height: auto; display: block; }
.chart.duo path { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart.duo .l-pts { stroke: var(--home); } .chart.duo .l-pts-dot { fill: var(--home); }
.chart.duo .l-xp { stroke: var(--cobalt); stroke-dasharray: 6 5; } .chart.duo .l-xp-dot { fill: var(--cobalt); }
.chart.duo .end { font: 700 13px var(--mono); fill: var(--text); }
.chart.duo .l-xp-end { fill: var(--cobalt-text); }
.goal-line .g-assist { font-size: 12px; color: var(--text); }

/* -- match centre (partials/centre.html): events, stats, the line-ups on a pitch --------------- */
.ev-ico { width: 16px; height: 16px; flex: none; vertical-align: -3px; margin-right: 6px; }
.ev-ico.goal { color: var(--text); }
.ev-ico.goal.og { color: var(--bad); }
.ev-card { display: inline-block; width: 10px; height: 14px; border-radius: 2px; vertical-align: -2px; margin-right: 8px; flex: none; }
.ev-card.y { background: #F5C518; } .ev-card.r { background: #D7263D; }
.ev-line li.ev-sub .g-name, .ev-line li.ev-yellow .g-name, .ev-line li.ev-red .g-name { font-weight: 600; }
.ev-line .ev-out { color: var(--muted); }
.ev-line li.ev-sep { display: block; text-align: center; padding: 6px 18px; background: var(--sunken); font-size: 12px; font-weight: 700; color: var(--muted); }
.ev-line li.ga .g-name { justify-content: flex-end; }
.ev-line .g-name { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }

.pitch-heads { display: flex; justify-content: space-between; gap: 12px; padding: 0 18px 10px; font-size: 14px; }
.pitch-heads .ph { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pitch-heads .ph strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch { --turf: #1E6B45; --turf-2: #1A603E; --chalk: rgba(255, 255, 255, .55); position: relative; margin: 0 14px 14px; border-radius: var(--r); overflow: hidden; aspect-ratio: 68 / 105; max-height: 860px;
  background: repeating-linear-gradient(180deg, var(--turf) 0 9.52%, var(--turf-2) 9.52% 19.04%); }
:root[data-theme="dark"] .pitch { --turf: #17533A; --turf-2: #134A33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pitch { --turf: #17533A; --turf-2: #134A33; } }
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--chalk); stroke-width: .35; vector-effect: non-scaling-stroke; }
.pitch-lines.hz { display: none; }
.pitch-players { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.pl { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; width: 76px; text-align: center; }
.pl.h { top: calc(5% + var(--d) * 36%); left: calc(100% - var(--x) * 1%); }
.pl.a { top: calc(89% - var(--d) * 33%); left: calc(var(--x) * 1%); }
.pl-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 800 13px/1 var(--font); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.pl.h .pl-dot { background: #fff; color: #0B0B0C; }
.pl.a .pl-dot { background: var(--cobalt); color: #fff; }
.pl-name { font-size: 11.5px; font-weight: 700; line-height: 1.15; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); white-space: nowrap; }
.pl-name a:hover { text-decoration: underline; }
.pl-badges { position: absolute; top: -6px; left: calc(50% + 10px); display: flex; gap: 2px; align-items: center; }
.pl-badges .b-goal .ev-ico { width: 15px; height: 15px; margin: 0; color: #0B0B0C; --ball-mark: #fff; background: #fff; border-radius: 50%; }
.pl-badges .b-goal.og .ev-ico { color: #D7263D; }
.pl-badges .b-assist { font: 800 9px/1 var(--font); background: #fff; color: #0B0B0C; border-radius: 4px; padding: 2px 3px; }
.pl-badges .ev-card { width: 8px; height: 11px; margin: 0; }
.pl-badges .b-off { font: 700 9px/1 var(--font); background: rgba(0, 0, 0, .55); color: #fff; border-radius: 4px; padding: 2px 3px; }
@media (min-width: 720px) {
  .pitch { aspect-ratio: 105 / 68; max-height: none; background: repeating-linear-gradient(90deg, var(--turf) 0 9.52%, var(--turf-2) 9.52% 19.04%); }
  .pitch-lines.v { display: none; } .pitch-lines.hz { display: block; }
  .pl.h { left: calc(6% + var(--d) * 38%); top: calc(var(--x) * 1%); }
  .pl.a { left: calc(94% - var(--d) * 38%); top: calc(100% - var(--x) * 1%); }
}
@media (max-width: 420px) { .pl { width: 64px; } .pl-dot { width: 30px; height: 30px; font-size: 12px; } .pl-name { font-size: 10.5px; } }
.pitch-bench { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.bench-side { padding: 10px 18px 14px; min-width: 0; }
.bench-side + .bench-side { border-left: 1px solid var(--line); }
@media (max-width: 719px) { .bench-side + .bench-side { border-left: 0; border-top: 1px solid var(--line); } }
.bench-head { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.pitch-bench ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pitch-bench li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bench-no { width: 22px; text-align: right; font: 700 12px var(--mono); color: var(--muted); }
.bench-on { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--ok); }
.bench-on .ev-ico { width: 14px; height: 14px; margin-right: 2px; }
.pitch-bench .pl-badges { position: static; }
/* the matches page: only the matches being played */
.live-filter { padding: 0 2px; }
.live-filter .chip { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.live-filter .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #E23B3B; box-shadow: 0 0 0 3px rgba(226, 59, 59, .2); }
html.only-live .col .mrow:not(.is-live) { display: none; }
html.only-live .col section.card:has(.mrow):not(:has(.mrow.is-live)) { display: none; }
html.only-live .col .more-btn { display: none; }
html.only-live .col .is-more { display: grid !important; }
/* a brand without logo files (config/site.toml name): written in type */
.wordmark { font: 900 22px/1 var(--font); letter-spacing: -.045em; color: var(--text); }
.wordmark .wm-num { color: var(--cobalt); margin-right: 1px; }
@media (max-width: 560px) {
  .goal-line li { grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); padding: 8px 12px; }
  .goal-line .g-name { font-size: 14px; }
  .goal-line .g-min { font-size: 13px; }
  .ev-line .g-team { display: none; }  /* the side tells the team: home left, away right */
  .ev-line li.ga .g-name { color: var(--cobalt-text); }
  .ev-line .ev-ico { margin-right: 4px; }
}
/* the strip under the top bar: a match being played */
.tick-live { background: color-mix(in srgb, #E23B3B 5%, var(--surface)); }
.tick-live .live-tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--bad); }
.tick-live .tick-score strong { font: 800 15px/1 var(--mono); }
.tick-live .tick-pcts .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
@media (max-width: 560px) {
  .pitch-heads { flex-direction: column; gap: 6px; }
  .pitch-heads .ph.a { flex-direction: row-reverse; justify-content: flex-end; }
  .pitch-heads .ph strong { white-space: normal; overflow: visible; }
}
.nav-search { position: relative; }
.nav-search > svg { position: static; }
.nav-search .suggest { min-width: 0; top: calc(100% + 4px); }
.nav-search .suggest li a { font-size: 15px; font-weight: 500; }

/* -- glow-up (2026-10-03) -----------------------------------------------------------------------
   Depth without decoration: one soft shadow scale, rounder cards, the match head washed in the
   two clubs' colours, tabular numbers everywhere a number lines up, quiet hover and press states,
   scroll hints on the strips that overflow on a phone. */
:root { --r: 14px; --r-sm: 10px; --shadow-sm: 0 1px 2px rgba(16, 18, 27, .05); --shadow: 0 1px 2px rgba(16, 18, 27, .05), 0 10px 28px -16px rgba(16, 18, 27, .16); --shadow-lift: 0 2px 4px rgba(16, 18, 27, .06), 0 16px 36px -18px rgba(16, 18, 27, .26); --ease: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-sm: 0 0 0 1px rgba(255, 255, 255, .02); --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 28px -18px rgba(0, 0, 0, .7); --shadow-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 16px 36px -18px rgba(0, 0, 0, .8); } }
:root[data-theme="dark"] { --shadow-sm: 0 0 0 1px rgba(255, 255, 255, .02); --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 28px -18px rgba(0, 0, 0, .7); --shadow-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 16px 36px -18px rgba(0, 0, 0, .8); }

.card, .phead { box-shadow: var(--shadow); }
a.card, .card a.card-link { transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.card-head h2, .card-head h3 { font-size: 18px; letter-spacing: -.02em; }

/* numbers that sit in columns keep their width */
td.n, .mrow-prob .pcts, .tick-pcts, .stat-row .v { font-variant-numeric: tabular-nums; }

/* brand */
.brand .wordmark { font-size: 25px; letter-spacing: -.055em; }
.site-footer .wordmark { font-size: 22px; }

/* buttons: a press you can feel */
.btn { border-radius: var(--r-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .15s; }
.btn:hover { opacity: 1; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn, a.card { transition: none; } .btn:hover, a.card:hover { transform: none; } }

/* the match head: the two clubs' colours as a wash from each side, the crests lifted */
.phead.club-band { background:
  linear-gradient(100deg, color-mix(in srgb, var(--hc) 10%, var(--surface)) 0%, var(--surface) 34%, var(--surface) 66%, color-mix(in srgb, var(--ac) 10%, var(--surface)) 100%); }
.phead.club-band::before { height: 4px; }
.phead.club-band.one { background: linear-gradient(100deg, color-mix(in srgb, var(--hc) 10%, var(--surface)) 0%, var(--surface) 42%); }
.versus .side-team img, .versus .side-team .crest { filter: drop-shadow(0 6px 12px rgba(16, 18, 27, .14)); }
.versus .clock { font-weight: 600; }

/* probability bars: a little thicker on the big ones, the same three colours */
.pbar.xl { height: 26px; }
.pbar.xl span:first-child { border-radius: 10px 4px 4px 10px; }
.pbar.xl span:last-child { border-radius: 4px 10px 10px 4px; }

/* lists and tables: hover tells where a row leads */
.mrow { transition: background-color .15s; }
.mrow:hover { background: color-mix(in srgb, var(--cobalt) 4%, var(--surface)); }
table.t tbody tr { transition: background-color .15s; }
table.t tbody tr:hover { background: color-mix(in srgb, var(--cobalt) 4%, var(--surface)); }

/* the strip of coming matches and the tabs of a page: a fade at the edge that scrolls */
.ticker .wrap, .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.tabs a[aria-current="page"] { border-bottom-width: 3px; border-bottom-color: var(--cobalt); }
.tick { transition: background-color .15s; }

/* phones: more room for the content, comfortable taps */
@media (max-width: 719px) {
  .card-head { padding: 14px 16px 10px; }
  .card-body { padding: 0 16px 16px; }
  .feature { padding: 18px 16px 20px; }
  .versus { gap: 10px; margin: 16px 0 14px; }
  .versus .side-team img { width: 56px; height: 56px; }
  .tabs a { padding: 14px 12px 12px; }
  .bottombar a { min-height: 52px; }
  .mrow { padding: 12px 14px; gap: 10px; }
  .btn { min-height: 44px; }
}
@media (max-width: 360px) {
  .pager { gap: 4px; padding: 10px 8px; }
  .pager .nav-arrow { width: 36px; height: 36px; }
  .pager .dd-btn { padding: 0 10px; gap: 8px; font-size: 13px; }
}

/* -- navigation buttons: back to the top, the season before and after ------------------------ */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 65; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lift); transition: transform .15s var(--ease), opacity .2s; }
.to-top[hidden] { display: none; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { transform: translateY(-2px); }
@media (max-width: 719px) { .to-top { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); width: 44px; height: 44px; } }
.season-nav { display: flex; align-items: center; gap: 6px; }
.season-nav .nav-arrow { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sunken); color: var(--text); transition: background-color .15s; }
.season-nav .nav-arrow:hover { background: var(--line); }
.season-nav .nav-arrow[data-off] { visibility: hidden; }
.season-nav .nav-arrow svg { width: 18px; height: 18px; }
.season-nav form { min-width: 0; }
.match-nav { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 0; }
.match-nav a { display: inline-flex; align-items: center; gap: 8px; max-width: 48%; min-height: 44px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; font-size: 14px; }
.match-nav a:hover { border-color: var(--mist); }
.match-nav a .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-nav a .k { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.match-nav .next { margin-left: auto; text-align: right; }
.match-nav svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 719px) {
  .match-nav a { max-width: 49%; padding: 8px 10px; font-size: 13px; line-height: 1.25; }
  .match-nav a .t { white-space: normal; overflow: visible; }
}
