/* CYON CCOV Football League website.
   Visual rules live in DESIGN.md ("The Matchday Programme"). Change tokens here, not in components. */

/* ---------- Fonts (self-hosted, three files) ---------- */
@font-face { font-family: "Funnel Display"; src: url("fonts/funnel-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("fonts/funnel-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("fonts/funnel-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* One colour, Premier League style (chosen by Victor, 16 Nov 2026). Everything else is white and grey. */
  --brand: #3b1670;          /* masthead, score blocks, top bands */
  --on-brand: #ffffff;
  --on-brand-muted: rgba(255, 255, 255, 0.72);
  --accent: #3b1670;         /* links, active tab, kick-off times, leader number */
  --accent-wash: #efecf4;
  --honour: #c8bed7;         /* honours text on a purple band */
  --honour-ink: #3b1670;     /* honours text on paper */
  --honour-wash: #efecf4;
  --paper: #f4f4f6;
  --surface: #ffffff;
  --surface-quiet: #f8f8fa;
  --line: #e3e3e8;
  --ink: #1a1a1f;
  --muted: #5f6068;
  --win: #0b7a46;
  --draw: #66717d;
  --loss: #b3261e;
  --card-yellow: #e7b400;
  --card-red: #c62828;

  --display: "Funnel Display", system-ui, -apple-system, "Segoe UI", sans-serif;   /* chosen by Victor, 16 Nov 2026 */
  --body: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px;
  --r-sm: 3px; --r-md: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #24104a;
    --accent: #c4b0f5;
    --accent-wash: #2a2142;
    --honour: #c8bed7;
    --honour-ink: #c4b0f5;
    --honour-wash: #251d3a;
    /* Warm near-black, not purple-tinted: purple stays for the brand blocks, links and honours only (audit, 17 Nov 2026). */
    --paper: #121110;
    --surface: #1c1a18;
    --surface-quiet: #252220;
    --line: #36322e;
    --ink: #efebe6;
    --muted: #aca59c;
    --win: #1f7a4b;
    --draw: #5a6573;
    --loss: #b8352d;
    --card-red: #e5534b;
    color-scheme: dark;
  }
}

/* ---------- Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
  caret-color: var(--accent);
  accent-color: var(--accent);
}
::selection { background: var(--honour-wash); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
.num, .fig { font-variant-numeric: tabular-nums; }
.fig { font-family: var(--display); font-weight: 700; }
.muted { color: var(--muted); }
abbr[title] { text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
* { scrollbar-color: var(--line) transparent; scrollbar-width: thin; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-left: max(var(--s4), env(safe-area-inset-left));
  padding-right: max(var(--s4), env(safe-area-inset-right));
}

/* ---------- Sample banner ---------- */
.sample { background: var(--surface-quiet); color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px; text-align: center; }
.sample .wrap { padding-block: var(--s2); }

/* ---------- Masthead ---------- */
.mast { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); }
.mast::after {               /* faint centre-circle line, masthead only */
  content: ""; position: absolute; right: -40px; bottom: -120px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
}
.mast .wrap { position: relative; z-index: 1; padding-block: var(--s5) 28px; }
.mast h1 {
  font: 700 clamp(20px, 5.5vw, 34px)/1.05 var(--display);   /* Funnel is wider than Barlow: one line on a 360px phone */
  letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance;
}
.mast p { margin-top: var(--s1); color: var(--on-brand-muted); font-size: 14px; }

/* ---------- Tabs ---------- */
.tabs { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  flex: 1 0 auto; display: grid; place-items: center; min-height: 48px; padding: 0 4px;
  font: 700 14px/1.2 var(--display); letter-spacing: 0.03em; text-transform: uppercase;   /* all five tabs fit at 360px */
  color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent;
}
/* Small phones (320px, e.g. iPhone SE first generation): a touch smaller and tighter, so Awards isn't cut off. */
@media (max-width: 350px) { .tabs a { padding: 0 2px; font-size: 13px; letter-spacing: 0; } }
.tabs a:hover { color: var(--ink); }
.tabs a:focus-visible { outline-offset: -3px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Page and sections ---------- */
main .wrap { display: flex; flex-direction: column; gap: var(--s5); padding-block: var(--s5) var(--s6); }
.sec { display: flex; flex-direction: column; gap: var(--s3); }
.sec-h {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: var(--s3); row-gap: 2px;
  padding-bottom: 6px; border-bottom: 2px solid var(--line);
}
/* Funnel is wide: the heading shrinks a little on small phones, and a note that doesn't fit beside it
   moves whole onto its own line, right-aligned, instead of splitting ("Player of the Week · MD10" + "Fan vote"). */
.sec-h h2 { font: 700 clamp(19px, 5.6vw, 22px)/1.05 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-wrap: balance; }
.sec-h > span { margin-left: auto; font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.note { font-size: 14px; color: var(--muted); }
.empty { font-size: 14px; color: var(--muted); }
.back { align-self: flex-start; font-weight: 700; font-size: 16px; text-decoration: none; padding-block: var(--s2); }
.back:hover { text-decoration: underline; }
.pair { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Team mark (neutral until real crests arrive) ---------- */
/* Sizes, checked against premierleague.com, BBC Sport and Sky Sports on a 375px phone (17 Nov 2026):
   28px in lists and tables (default; they use 20 to 24), 32px on fixtures and results (.fm; they use 20 to 24),
   40px on the Teams list (.md; Premier League clubs list 40), 56px in the match and player bands (.lg; Premier League
   match header 56), 64px on a team's page (.xl; Premier League club header 64). */
.mark {
  flex: none; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-quiet); border: 1px solid var(--ink); color: var(--ink);
  font: 700 13px/1 var(--display); letter-spacing: 0.02em;
}
.mark.i3 { letter-spacing: -0.03em; }   /* three-letter initials (CTK) fit inside the 28px ring */
.mark.md { width: 40px; height: 40px; font-size: 15px; }
.mark.lg { width: 56px; height: 56px; font-size: 20px; }
.mark.xl { width: 64px; height: 64px; font-size: 23px; }
.band .mark { background: transparent; border-color: var(--on-brand-muted); color: var(--on-brand); }
/* Real crest: no circle, the picture fills the badge space and keeps its shape. */
.mark.crest, .band .mark.crest { background: transparent; border: 0; border-radius: 0; }
.mark.crest img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Fixture tile (tappable) ---------- */
.fx {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s2);
  padding: var(--s3); background: var(--surface); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color 150ms ease-out;
}
.fx:hover, .fx:focus-visible { border-color: var(--accent); }
.fx .side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx .side.r { align-items: flex-end; text-align: right; }
.tn { font: 700 19px/1.05 var(--display); }
.fx .mid { text-align: center; font: 700 22px/1 var(--display); color: var(--accent); }
.fx .mid small { display: block; margin-top: 2px; font: 400 13px/1.3 var(--body); color: var(--muted); }
.fx .mid small.ampm { margin-top: 0; font: 700 13px/1.2 var(--display); letter-spacing: 0.08em; color: var(--accent); }
.fx .foot { grid-column: 1 / -1; padding-top: var(--s2); border-top: 1px dashed var(--line); text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Score block ---------- */
.score {
  display: inline-block; min-width: 64px; padding: var(--s1) var(--s3); border-radius: var(--r-sm);
  background: var(--brand); color: var(--on-brand); text-align: center;
  font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums;
}
.score small { display: block; font: 700 13px/1.2 var(--display); letter-spacing: 0.1em; color: var(--on-brand-muted); }

/* ---------- Result rows ---------- */
.res {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s3); align-items: start;
  padding-block: var(--s3); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.res:last-child { border-bottom: 0; }
.res:hover .tn { text-decoration: underline; }
.res .side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); min-width: 0; }
.res .side.r { align-items: flex-end; }
.res .tn, .res .who { display: block; }
.res .side.r { text-align: right; }
.res .lost .tn, .res .side.lost .tn { color: var(--muted); }
.res .who { font-size: 14px; color: var(--muted); }
/* Team badge above the name on fixture tiles and result rows (initials until real crests arrive). */
.mark.fm { width: 32px; height: 32px; }   /* fixtures and results */

/* ---------- League table ---------- */
.lt th, .lt td { padding: 10px 4px;   /* 4px sides so the team badge still fits a 360px phone */ text-align: center; white-space: nowrap; }
.lt th {
  font: 700 13px/1.2 var(--display); letter-spacing: 0.03em; text-transform: uppercase;   /* 13px so "NEXT" fits beside the badges at 360px */
  color: var(--muted); border-bottom: 2px solid var(--line);
}
.lt td { border-bottom: 1px solid var(--line); background: var(--surface); }
.lt tr:last-child td { border-bottom: 0; }
.lt .l { text-align: left; }
.lt .pos { width: 36px; text-align: left; font: 700 18px/1 var(--display); }
.lt .pts { font: 700 24px/1 var(--display); }
/* Team badge on the left (initials until real crests arrive), name above the form circles on the right. */
.lt .team a { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s2); row-gap: 6px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.lt .team .tm { grid-row: 1 / 3; }
.lt .team a:hover .tname, .lt tr[data-href]:hover .team .tname { text-decoration: underline; }
.lt tr.leader td { background: var(--accent-wash); }
.lt tr.top .pos { color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }   /* Premier League-style edge bar, leader only */
.lt tr.hl td { background: var(--accent-wash); }                                      /* the two teams on a match page */
.lt tr[data-href] { cursor: pointer; }                                                /* whole row opens the team */
.lt .nx { width: 38px; }
.lt .nx a { display: inline-flex; text-decoration: none; }
.lt td.team { white-space: normal; }   /* a long name (Christ The King) may wrap so badge, name and form fit a 360px phone */
.lt .team .tname { line-height: 1.15; }
.lt .wide { display: none; }
@media (min-width: 521px) { .lt .wide { display: table-cell; } }
.mv { display: inline-block; margin-left: 4px; width: 0; height: 0; vertical-align: middle; border: 5px solid transparent; }
.mv.up { border-bottom-color: var(--win); border-top-width: 0; }
.mv.down { border-top-color: var(--loss); border-bottom-width: 0; }
.ctrl { display: flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--muted); }
select {
  min-height: 44px; padding: 0 var(--s3); font: 700 16px/1 var(--body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.report p { margin: 0 0 var(--s3); max-width: 65ch; }
.report p:last-child { margin-bottom: 0; }
.report h3 { margin: var(--s4) 0 var(--s2); font: 700 16px/1.35 var(--body); }
/* Long reports: the rest is hidden until "Read full report"; the last visible paragraph ends in "…". */
.report:not(.open) .more { display: none; }
.report.long:not(.open) p.cut::after { content: "…"; }
.report-toggle { margin-top: var(--s3); }
#app:focus { outline: none; }   /* focus moves here on each page change for screen readers; no ring around the whole page */
.sec { scroll-margin-top: 56px; }   /* clears the sticky tab bar when "Show less" scrolls back up */
.scroll { overflow-x: auto; }

/* ---------- Form chips ---------- */
.form { display: inline-flex; gap: 3px; }
.form i {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;   /* round, like the Premier League */
  font: 700 13px/1 var(--display); font-style: normal; color: #fff;
}
.form .W { background: var(--win); }
.form .D { background: var(--draw); }
.form .L { background: var(--loss); }

/* ---------- Leaderboards and lists ---------- */
.lb li { border-bottom: 1px solid var(--line); }
.lb li:last-child { border-bottom: 0; }
.lb .row {
  display: grid; grid-template-columns: 28px 28px 1fr auto; column-gap: var(--s3); row-gap: 6px; align-items: center;
  min-height: 52px; padding: var(--s2) 0; color: var(--ink); text-decoration: none;
}
.lb a.row:hover b { text-decoration: underline; }
.lb.plain .row { grid-template-columns: 40px 1fr; }   /* Teams tab: no rank, no value */
.lb .rk { font: 400 15px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--muted); }   /* smaller and lighter than the 24px bold value (Victor, 17 Nov 2026) */
.lb .top .rk { color: var(--honour-ink); }
.lb .nm { min-width: 0; }
.lb .nm b { display: block; }
.lb .nm span { font-size: 14px; color: var(--muted); }
.lb .val { font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Label and value rows (season facts, totals) ---------- */
.kv { margin: 0; }
.kv dt { flex: none; }
/* A long value drops whole onto its own line (still right-aligned) instead of breaking mid-phrase. */
.kv div { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: var(--s3); row-gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0 0 0 auto; font-weight: 700; text-align: right; }
.kv dd a { color: var(--ink); }

/* ---------- Plain data tables (squad, player log, award races) ---------- */
.dt th, .dt td { padding: 10px 4px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }   /* 4px sides: award, player and squad tables fit a 360px phone */
.dt th { font: 700 13px/1.2 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); border-bottom-width: 2px; }
.dt .l { text-align: left; }
.dt td.l a { color: var(--ink); font-weight: 700; text-decoration: none; }
.dt td.l a:hover { text-decoration: underline; }
.dt tr:last-child td { border-bottom: 0; }
.dt .no { color: var(--muted); }
/* Small inline badge before a team name in a sentence (Player of the Week band). */
.mark.inline { margin-right: 6px; vertical-align: middle; }   /* default 28px size, sitting in a line of text */
/* Award tables: team badge left of the player's name, team underneath. */
.dt .ap { display: flex; align-items: center; gap: var(--s2); }
.dt td.wrap { white-space: normal; }   /* player page opponent: "Blazing Warriors" takes two lines beside its badge so the table fits 360px */
.dt .ap .muted { display: block; font-weight: 400; }
.dt.stats td { font-size: 24px; }

/* ---------- Cards (football) ---------- */
.card { display: inline-flex; align-items: center; gap: 6px; }
.card::before { content: ""; flex: none; width: 10px; height: 14px; border-radius: 2px; background: var(--card-yellow); }
.card.red::before { background: var(--card-red); }
.card-pair { display: inline-flex; gap: var(--s3); }

/* ---------- Honours band ---------- */
.honours { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4); background: var(--honour-wash); }
.honours .who { display: block; margin-top: var(--s1); font: 700 clamp(22px, 6.2vw, 32px)/1.05 var(--display); color: var(--ink); text-decoration: none; }
.honours a.who:hover { text-decoration: underline; }
.honours .why { margin-top: var(--s1); font-size: 14px; color: var(--muted); }
.honours .pct { font: 700 40px/1 var(--display); color: var(--honour-ink); text-align: right; font-variant-numeric: tabular-nums; }
.honours .pct small { display: block; font: 400 13px/1.3 var(--body); color: var(--muted); }

/* ---------- Matches tab: the season at a glance ---------- */
/* One row per match: home name and badge on the right of its half, the score block in the middle, away on the left of its half. */
.mt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mt tbody { scroll-margin-top: 56px; }   /* a matchday link lands below the sticky tab bar */
.mt .grp th { padding: var(--s4) 0 var(--s2); border-bottom: 2px solid var(--line); text-align: left; font: 700 15px/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.mt tbody:first-of-type .grp th { padding-top: var(--s1); }
.mt .grp th span { margin-left: var(--s2); font: 400 14px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.mt td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
/* 15px names wrap only between words: "Blazing Warriors" and "Christ The King" take two lines on a 360px phone, never "Firestor-m". */
.mt .tn { font: 700 15px/1.15 var(--display); }
.mt col.c { width: 68px; }   /* fixed layout takes widths from the <col>s, not the first row (a matchday heading) */
.mt .t { display: flex; align-items: center; gap: 6px; }
.mt .t .mark { flex: none; }
.mt td.h .t { justify-content: flex-end; text-align: right; }
.mt td.c { text-align: center; }
.mt .lost { color: var(--muted); }
.mt .sc {
  display: inline-block; min-width: 56px; padding: 7px 6px; border-radius: var(--r-sm);
  background: var(--brand); color: var(--on-brand); text-decoration: none;
  font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mt .sc.ko { padding-inline: 4px; border: 1px solid var(--line); background: transparent; color: var(--accent); font-size: 14px; }
.mt tr[data-href] { cursor: pointer; }
.mt tr[data-href]:hover .tn { text-decoration: underline; }
.mt tr.has-note td { border-bottom: 0; }
.mt tr.nt td { padding: 0 0 10px; font-size: 13px; color: var(--muted); text-align: center; }

.btn {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-quiet); color: var(--ink); cursor: pointer; text-decoration: none;
  display: inline-grid; place-items: center;
  font: 700 14px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color 150ms ease-out;
}
.btn:hover { border-color: var(--accent); }

/* ---------- Detail page top band ---------- */
.band { border-radius: var(--r-md); background: var(--brand); color: var(--on-brand); }
.band .in { display: flex; align-items: center; gap: 14px; padding: 18px var(--s4) 20px; }
.band h2 { font: 700 clamp(26px, 7vw, 34px)/1.05 var(--display); text-wrap: balance; }   /* names in normal case; capitals are for headings and labels */
.band p { margin-top: var(--s1); font-size: 14px; color: var(--on-brand-muted); }
.band a { color: var(--on-brand); }
.band .meta { padding: var(--s3) var(--s4) 0; text-align: center; font-size: 14px; color: var(--on-brand-muted); }
.band .vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: var(--s4) var(--s3) 20px; }
.band .vs .side { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; min-width: 0; }
.band .vs .side a { font: 700 19px/1.05 var(--display); text-decoration: none; }
.band .vs .side a:hover { text-decoration: underline; }
.band .big { margin: 0; font: 700 46px/1 var(--display); text-align: center; font-variant-numeric: tabular-nums; color: var(--on-brand); }
.band .big small { display: block; margin-top: var(--s1); font: 700 13px/1.2 var(--display); letter-spacing: 0.12em; color: var(--on-brand-muted); }
.band .kick { font: 700 28px/1 var(--display); color: var(--honour); text-align: center; }
.band .kick small { display: block; margin-top: var(--s1); font: 700 13px/1.2 var(--display); letter-spacing: 0.12em; color: var(--on-brand-muted); }
/* Match header events (Premier League pattern): home scorers right-aligned, icon, away scorers */
.mh { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.mh-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: 15px; }
.mh-row .h { text-align: right; }
.mh-row li + li { margin-top: 6px; }
.mh-row li.assist { margin-top: 0; font-size: 14px; color: var(--on-brand-muted); }
.mh-row a { font-weight: 700; text-decoration: none; }
.mh-row a:hover { text-decoration: underline; }
.mh-row .assist a { font-weight: 400; color: inherit; }
.mh-row .sub { font-size: 14px; color: var(--on-brand-muted); }
.mh-ic { display: grid; place-items: center; padding-top: 2px; color: var(--on-brand); }
.mh-ic svg { width: 16px; height: 16px; }
.card-ic { width: 10px; height: 14px; border-radius: 2px; background: var(--card-yellow); }
.band:not(.open) .extra { display: none; }
.mh-toggle {
  align-self: center; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--on-brand); cursor: pointer;
  transition: background-color 150ms ease-out;
}
.mh-toggle:hover { background: rgba(255, 255, 255, 0.22); }
.mh-toggle:focus-visible { outline: 2px solid var(--on-brand); outline-offset: 2px; }
.mh-toggle svg { width: 16px; height: 16px; transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.band.open .mh-toggle svg { transform: rotate(45deg); }

.badge { display: inline-block; padding: 2px var(--s2); border-radius: 999px; background: var(--honour-wash); color: var(--honour-ink); font-size: 13px; font-weight: 700; }

/* ---------- Match events, two columns ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.two-col h3 { margin-bottom: var(--s2); font: 700 14px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.two-col .r { text-align: right; }
.two-col ul { display: flex; flex-direction: column; gap: 6px; }
.two-col .r ul { align-items: flex-end; }
.two-col li a { color: var(--ink); font-weight: 700; text-decoration: none; }
.two-col li a:hover { text-decoration: underline; }
.two-col .sub { margin-top: var(--s3); }

/* ---------- Notice band (loading problems) ---------- */
/* Neutral on purpose: purple wash means honours, so a warning must not wear it. */
.notice { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.notice b { font: 700 19px/1.15 var(--display); }
.notice p { font-size: 14px; }
.loading { padding: var(--s6) 0; text-align: center; color: var(--muted); }

/* ---------- Footer ---------- */
footer { padding-block: 0 var(--s6); text-align: center; font-size: 14px; color: var(--muted); }
footer p + p { margin-top: var(--s1); }
/* The CYON mottos (Victor, 17 Nov 2026): last thing on every page, in the brand colour, set apart by a short rule. */
footer .motto { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); font: 700 15px/1.4 var(--display); color: var(--accent); }

/* ---------- Pressed feedback (phones have no hover) ---------- */
.fx:active, .res:active, .lb a.row:active, .lt tr[data-href]:active td, .mt tr[data-href]:active td, .kv dd a:active { background: var(--surface-quiet); }
.btn:active, .mh-toggle:active { transform: translateY(1px); }
.tabs a:active { color: var(--ink); background: var(--surface-quiet); }

/* ---------- Data checks page (committee) ---------- */
.checks { display: flex; flex-direction: column; gap: var(--s2); padding-left: var(--s5); list-style: decimal; font-size: 15px; }

/* ---------- Wide tables ---------- */
/* If a table is still wider than the phone, app.js adds a one-line hint under it. */
.swipe-note { margin-top: calc(var(--s2) * -1); }
