/* =====================================================================
   TYGERBERG CRICKET CLUB — STYLESHEET
   Palette: black · old gold · white · ball-red (live, wickets, losses)
            · pitch green (the ground, home games, done)
   Type:    Archivo (variable width) · Newsreader · IBM Plex Mono
   Motif:   hand-hung scoreboard number plates
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0c0b09;
  --ink-2: #151411;
  --ink-3: #201e1a;
  --gold: #b8923f;        /* old gold — fills, rules, plates */
  --gold-hi: #d6b56b;     /* old gold lifted for text on black */
  --gold-lo: #7a5d1d;     /* old gold as text on white and whites (AA: 5.6 / 5.0) */
  --white: #f6f4ef;
  --whites: #ece8de;      /* cricket whites — light sections */
  --red: #b4231c;         /* the ball — used sparingly */
  --pitch: #2f6a3e;       /* Florida Park outfield — fills; whites on it 5.3:1, as text on whites 5.3:1 */
  --pitch-hi: #7fbf8a;    /* outfield green as text and lines on black (9.1:1) */
  --line-d: rgba(246, 244, 239, 0.14);
  --line-l: rgba(12, 11, 9, 0.16);
  --mute-d: rgba(246, 244, 239, 0.62);
  --mute-l: rgba(12, 11, 9, 0.62);

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  /* small mono labels: 11px, raised to 12px on phones (see the end of this file) */
  --fs-label: 11px;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-swing: cubic-bezier(0.3, 1.5, 0.5, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
code { font-family: var(--f-mono); font-size: 0.86em; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.gold { color: var(--gold-hi); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-d);
}
.eyebrow--gold { color: var(--gold-hi); }

.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px 2px;
  border: 1px solid currentColor;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
.tag--sample { color: var(--gold-hi); }
.tag--active { color: var(--pitch-hi); }
.light .tag--active { color: var(--pitch); }
.tag--demo { color: #fff; background: var(--red); border-color: var(--red); }
.tag--tbc { color: var(--mute-d); }

.link-arrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-hi);
}
.link-arrow::after {
  content: "";
  width: 22px; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease);
}
.link-arrow:hover::after { width: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 24px 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--sm { padding: 11px 16px 10px; font-size: 12px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--line.btn--light:hover,
.live .btn--line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* =====================================================================
   SCOREBOARD PLATES — the signature motif
   ===================================================================== */
.plates { display: inline-flex; gap: 0.08em; font-size: 28px; line-height: 1; }
.plates--sm { font-size: 22px; }
.plates--xl { font-size: clamp(44px, 6vw, 84px); }

.plate {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 0.7em;
  height: 0.98em;
  padding-top: 0.06em;
  background: linear-gradient(180deg, #1d1c18 0%, #121110 100%);
  color: var(--white);
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: 1em;
  line-height: 1;
  border-radius: 0.04em;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0.05em 0.1em rgba(0, 0, 0, 0.45);
  transform-origin: 50% 0.08em;
  font-variant-numeric: tabular-nums;
}
/* the hook hole each plate hangs from */
.plate::before {
  content: "";
  position: absolute;
  top: 0.06em; left: 50%;
  width: 0.08em; height: 0.08em;
  margin-left: -0.04em;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}
.plate--gold { background: var(--gold); color: var(--ink); }
.plate--gold::before { background: rgba(0, 0, 0, 0.55); }
.plate--blank { color: transparent; }
.plate--sep { width: 0.3em; background: none; box-shadow: none; }
.plate--sep::before { display: none; }

.plate.is-hung { animation: hang 0.7s var(--ease-swing) both; }
@keyframes hang {
  0%   { transform: translateY(-55%) rotate(-14deg); opacity: 0; }
  45%  { transform: translateY(0) rotate(7deg); opacity: 1; }
  70%  { transform: rotate(-3deg); }
  100% { transform: rotate(0); }
}

/* =====================================================================
   PHOTOGRAPHY GRADE — any [data-photo] becomes graded black & gold
   ===================================================================== */
.ph { position: relative; overflow: hidden; background: var(--ink-3); }
.ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(0.86);
  transition: transform 1.2s var(--ease), filter 0.8s;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  mix-blend-mode: multiply;
  opacity: 0.42;
  pointer-events: none;
}
.ph--soft::after { opacity: 0.3; }

/* =====================================================================
   LOGO SLOT — canonical logo, never altered
   ===================================================================== */
.logo-slot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
}
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.logo-slot--footer { width: 88px; height: 88px; }
.logo-slot.is-empty {
  border: 1px dashed currentColor;
  color: var(--gold-hi);
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}
.logo-slot--footer.is-empty { color: var(--ink); font-size: var(--fs-label); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.35s, border-color 0.35s, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(12, 11, 9, 0.94);
  border-color: var(--line-d);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 900; font-stretch: 75%;
  font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase;
}
.brand__sub {
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-hi); margin-top: 5px;
}

.nav__list { display: flex; gap: 26px; }
.nav__list a {
  position: relative;
  font-weight: 600; font-stretch: 110%;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold); transition: right 0.35s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { right: 0; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 14px; border: 1px solid var(--line-d); background: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.2s;
}
.menu-toggle:hover { border-color: var(--gold); }
.menu-toggle__bars { position: relative; width: 20px; height: 2px; background: var(--white); transition: background 0.2s; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--white);
  transition: transform 0.3s var(--ease);
}
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* full-screen menu */
.menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--ink);
  overflow-y: auto;
  border-top: 1px solid var(--line-d);
}
.menu[hidden] { display: none; }
.menu__inner {
  min-height: 100%;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
  padding: clamp(24px, 4vw, 56px) var(--gutter) 48px;
}
.menu__list { counter-reset: none; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-d); }
.menu__list a {
  display: flex; justify-content: space-between; align-items: baseline; text-decoration: none;
  font-weight: 900; font-stretch: 64%; text-transform: uppercase;
  font-size: clamp(26px, 4.2vh, 42px); line-height: 1.04; padding: 5px 0; gap: 12px;
  transition: color 0.2s, padding 0.35s var(--ease);
}
.menu__list a span { display: inline-block; animation: menu-in 0.7s var(--ease) both; animation-delay: calc(var(--i) * 35ms + 60ms); }
@keyframes menu-in { from { transform: translateY(105%); } }
.menu__list a:hover { color: var(--gold-hi); padding-left: 14px; }
.menu__list a[aria-current="page"] { color: var(--gold-hi); }
.menu__list a[aria-current="page"]::after { content: "You are here"; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.12em; font-stretch: 100%; color: var(--mute-d); }
.menu__aside { display: flex; flex-direction: column; gap: 14px; align-self: end; border-top: 2px solid var(--gold); padding-top: 18px; }
.menu__aside address { font-weight: 700; font-size: 20px; line-height: 1.3; }
.menu__motto { font-family: var(--f-serif); font-style: italic; color: var(--gold-hi); font-size: 30px; margin-top: 18px; }
.menu-open, .lb-open { overflow: hidden; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: max(100svh, 720px);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-h);
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img { transform: scale(1.08); animation: hero-drift 18s var(--ease) both; }
.hero__media::after { opacity: 0.5; }
@keyframes hero-drift { from { transform: scale(1.16); } to { transform: scale(1.04); } }

.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.78) 0%, rgba(12, 11, 9, 0.2) 30%, rgba(12, 11, 9, 0.25) 55%, var(--ink) 98%),
    linear-gradient(90deg, rgba(12, 11, 9, 0.7) 0%, rgba(12, 11, 9, 0) 60%);
}

.hero__creases { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.crease {
  stroke: var(--gold);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw 2.2s var(--ease) forwards;
}
.crease--2 { animation-delay: 0.25s; opacity: 0.35; }
.crease--3 { animation-delay: 0.6s; opacity: 0.5; }
.crease--4 { animation-delay: 0.75s; opacity: 0.5; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__rail {
  position: absolute; left: calc(var(--gutter) / 2 - 6px); top: calc(var(--header-h) + 48px);
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute-d);
}

.hero__grid {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  gap: 48px;
  align-items: end;
  padding-block: 56px 28px;
}
.hero__lede .eyebrow { margin-bottom: 20px; }
.hero__title { font-weight: 400; }
.hero__club {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__seventy { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.hero__seventy p { font-size: 15px; line-height: 1.5; color: var(--mute-d); }
.hero__seventy .link-arrow { margin-top: 4px; }

.next-match {
  background: rgba(12, 11, 9, 0.88);
  border-top: 3px solid var(--gold);
  padding: 22px 24px 24px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.next-match__head { display: flex; justify-content: space-between; align-items: center; }
.next-match__teams {
  margin: 14px 0 18px;
  font-weight: 900; font-stretch: 70%;
  text-transform: uppercase;
  font-size: 34px; line-height: 0.95;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px;
}
.next-match__teams em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  text-transform: none; color: var(--gold-hi); font-size: 26px;
}
.next-match__count { display: flex; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); }
.next-match__count > div { display: flex; flex-direction: column; gap: 6px; }
.next-match__count small { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-d); }
.next-match__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 18px 0 20px; }
.next-match__meta .wide { grid-column: 1 / -1; }
.next-match__meta dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-d); }
.next-match__meta dd { font-weight: 600; font-size: 15px; }

.hero__wordmark {
  position: relative;
  text-align: center;
  font-weight: 900;
  font-stretch: 62%;
  font-size: 21.8vw; /* TYGERBERG ≈ 4.37em wide → ~96vw */
  line-height: 0.74;
  letter-spacing: -0.012em;
  margin-bottom: -0.035em;
  white-space: nowrap;
  color: var(--white);
  user-select: none;
}
.hero__wordmark .ch { display: inline-block; font-stretch: 62%; }
.hero__wordmark.is-animating .ch { animation: stretch-in 1.5s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 150ms); }
@keyframes stretch-in {
  from { font-stretch: 125%; opacity: 0; transform: translateY(18%); }
  40% { opacity: 1; }
  to { font-stretch: 62%; opacity: 1; transform: none; }
}

/* reveal-on-load for hero lede */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.is-loaded [data-reveal] { opacity: 1; transform: none; }
.is-loaded [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.is-loaded [data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* =====================================================================
   SECTIONS — shared
   ===================================================================== */
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }

.section-head {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  grid-template-areas: "label title" ". note";
  column-gap: 32px;
  row-gap: 22px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head__label {
  grid-area: label;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding-top: 0.9em;
  border-top: 2px solid var(--gold);
  align-self: start;
  color: var(--gold-lo);
}
.section-head__title {
  grid-area: auto;
  font-weight: 900; font-stretch: 64%;
  font-size: clamp(56px, 9.5vw, 148px);
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.section-head__note {
  grid-area: note;
  max-width: 56ch;
  font-size: 14px;
  color: var(--mute-l);
}
.section-head__note .tag { margin-right: 8px; }
.section-head--light .section-head__label { color: var(--gold-hi); }
.section-head--light .section-head__note { color: var(--mute-d); }

/* light sections — cricket whites */
.fixtures, .news, .events, .social { background: var(--whites); color: var(--ink); }
.fx-page .tag--sample, .fixtures .tag--sample, .news .tag--sample, .events .tag--sample, .social .tag--sample { color: var(--gold-lo); }
.fixtures .link-arrow, .news .link-arrow, .events .link-arrow, .social .link-arrow { color: var(--ink); }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   FIXTURES
   ===================================================================== */
.fixtures__layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); margin-bottom: 56px; }

.fixture-lead {
  background: var(--ink); color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr;
  position: relative;
  overflow: hidden;
}
.fixture-lead__date {
  background: var(--gold); color: var(--ink);
  padding: 28px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-width: 150px;
}
.fixture-lead__day { font-weight: 900; font-stretch: 62%; font-size: 120px; line-height: 0.8; }
.fixture-lead__month { font-weight: 800; font-stretch: 120%; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; }
.fixture-lead__dow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.fixture-lead__body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 22px; }
.fixture-lead__vs {
  font-weight: 900; font-stretch: 66%;
  text-transform: uppercase;
  font-size: clamp(40px, 4.6vw, 68px); line-height: 0.88;
}
.fixture-lead__vs em { display: block; font-family: var(--f-serif); font-weight: 400; font-stretch: 100%; text-transform: none; color: var(--gold-hi); font-size: 0.5em; margin: 6px 0; }
.fixture-lead__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; margin-top: auto; }
.fixture-lead__meta dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-d); }
.fixture-lead__meta dd { font-weight: 600; }
.fixture-lead .tag { position: absolute; top: 16px; right: 16px; }

.fixture-list { border-top: 2px solid var(--ink); align-self: start; }
.fixture-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  grid-template-areas: "date opp ha" "date meta meta";
  gap: 2px 16px;
  padding: 16px 4px 15px;
  border-bottom: 1px solid var(--line-l);
  transition: background 0.25s, padding 0.35s var(--ease);
}
.fixture-row:hover { background: rgba(184, 146, 63, 0.14); padding-left: 12px; }
.fixture-row__date { grid-area: date; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.25; padding-top: 3px; }
.fixture-row__date b { display: block; font-family: var(--f-display); font-weight: 900; font-stretch: 66%; font-size: 30px; letter-spacing: 0; line-height: 0.95; }
.fixture-row__opp { grid-area: opp; font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 21px; line-height: 1.15; }
.fixture-row__ha { grid-area: ha; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; align-self: start; padding: 2px 6px; border: 1px solid var(--ink); }
.fixture-row__ha.is-home { background: var(--pitch); color: var(--whites); border-color: var(--pitch); }
.fixture-row__meta { grid-area: meta; font-size: 14px; color: var(--mute-l); }

/* =====================================================================
   LIVE — the scoreboard
   ===================================================================== */
.live { background: var(--ink-2); }
.live::before {
  /* subtle timber-slat texture of a pavilion scoreboard */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.018) 38px 39px);
}
.scoreboard { display: grid; grid-template-columns: 1fr 320px; gap: 32px; position: relative; }
.scoreboard__frame {
  background: #0a0a08;
  border: 10px solid #1a1814;
  outline: 1px solid var(--gold);
  outline-offset: -4px;
  padding: clamp(18px, 3vw, 36px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.sb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); flex-wrap: wrap; }
.sb-match { font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 18px; }
.sb-status { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-d); display: flex; align-items: center; gap: 8px; }
.sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.sb-dot.is-on { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.sb-main { display: grid; grid-template-columns: 1.6fr 0.8fr 1.2fr 0.8fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line-d); }
.sb-cell { display: flex; flex-direction: column; gap: 10px; }
.sb-label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }

.sb-rows { padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.sb-row { display: grid; grid-template-columns: 52px 1fr auto 64px; align-items: center; gap: 16px; padding: 10px 0; }
.sb-row + .sb-row { border-top: 1px dashed var(--line-d); }
.sb-name { font-weight: 700; font-stretch: 88%; font-size: 19px; text-transform: uppercase; }
.sb-name.is-striker::after { content: " *"; color: var(--gold-hi); }
.sb-mini { font-family: var(--f-mono); font-size: 12px; color: var(--mute-d); text-align: right; }

.sb-over { display: flex; align-items: center; gap: 18px; padding-top: 20px; flex-wrap: wrap; }
.balls { display: flex; gap: 8px; flex-wrap: wrap; }
.ball {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-stretch: 80%; font-size: 15px;
  border: 1px solid var(--line-d);
  animation: ball-in 0.5s var(--ease-swing) both;
}
.ball--dot { color: var(--mute-d); }
.ball--4, .ball--6 { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.ball--w { background: var(--red); border-color: var(--red); color: #fff; }
.ball--x { border-style: dashed; color: var(--gold-hi); font-size: 12px; }
@keyframes ball-in { from { transform: scale(0.3); opacity: 0; } }

.sb-side { display: flex; flex-direction: column; gap: 24px; }
.sb-facts { display: grid; gap: 0; border-top: 1px solid var(--line-d); }
.sb-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.sb-facts dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-d); }
.sb-facts dd { font-weight: 700; text-align: right; }
.sb-commentary { font-family: var(--f-serif); font-style: italic; font-size: 22px; line-height: 1.3; min-height: 3.9em; }
.sb-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.sb-source { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--mute-d); letter-spacing: 0.06em; }
/* Match alerts (web push) */
.alerts { display: grid; justify-items: start; gap: 12px; padding-top: 20px; border-top: 2px solid var(--gold); }
.alerts__title { margin: 0; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.alerts__text { margin: 0; font-size: 15px; line-height: 1.45; }
.alerts__status { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mute-d); }
.alerts__status:empty { display: none; }
.alerts .btn[disabled] { opacity: 0.6; cursor: default; }
@media (pointer: coarse) { .alerts .btn { min-height: 44px; } }

/* =====================================================================
   NEWS — magazine grid
   ===================================================================== */
.news__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-l); padding: 8px 12px; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--whites); border-color: var(--ink); }

.news__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px clamp(20px, 2.4vw, 32px);
}
.story { position: relative; display: flex; flex-direction: column; gap: 14px; }
.story a { text-decoration: none; }
.story__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.story__img { aspect-ratio: 4 / 3; }
.story:hover .story__img img { transform: scale(1.04); filter: grayscale(0.4) contrast(1.1) brightness(0.92); }
.story__kicker { display: flex; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-l); }
.story__kicker b { color: var(--gold-lo); font-weight: 500; }
.story__title { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: 28px; line-height: 0.98; }
.story:hover .story__title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.story__standfirst { font-family: var(--f-serif); font-size: 17px; line-height: 1.45; color: var(--mute-l); max-width: 46ch; }

/* Layout: every story takes a third of the row with the same 4:3 photo, so
   titles and text line up whatever the number of stories. On Home the newest
   story leads across the full width: photo left, headline right. */
.news__grid .story { grid-column: span 4; }
.story--lead {
  grid-column: 1 / -1 !important;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto auto auto;
  column-gap: clamp(28px, 4vw, 56px); row-gap: 14px;
  padding-bottom: clamp(20px, 3vw, 36px); border-bottom: 2px solid var(--ink); margin-bottom: 8px;
}
.story--lead .story__img { grid-column: 1; grid-row: 1 / -1; aspect-ratio: 3 / 2; }
.story--lead .story__kicker, .story--lead .story__title, .story--lead .story__standfirst { grid-column: 2; }
.story--lead .story__kicker { grid-row: 2; }
.story--lead .story__title { grid-row: 3; font-size: clamp(40px, 4.6vw, 68px); font-stretch: 66%; font-weight: 900; line-height: 0.88; }
.story--lead .story__standfirst { grid-row: 4; font-size: 19px; }

/* text-only stories get an editorial treatment */
.story--text { border-top: 2px solid var(--ink); padding-top: 18px; }
.story--text .story__title {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  text-transform: none; font-size: 38px; line-height: 1.02; letter-spacing: -0.01em;
}
.story__empty { font-size: 14px; color: var(--mute-l); grid-column: 1 / -1; }

/* =====================================================================
   TEAMS — typographic index
   ===================================================================== */
.teams { background: var(--ink); overflow: hidden; }
.team-index { border-top: 1px solid var(--line-d); }
.team { border-bottom: 1px solid var(--line-d); }
.team__link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  align-items: center;
  gap: 32px;
  padding: clamp(18px, 2.4vw, 30px) 0;
  text-decoration: none;
}
.team__name {
  font-weight: 900; font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.84;
  transition: color 0.35s, -webkit-text-stroke-color 0.35s, letter-spacing 0.6s var(--ease);
}
.team:hover .team__name, .team:focus-within .team__name {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-hi);
  letter-spacing: 0.02em;
}
.team__info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; position: relative; z-index: 1; }
.team__copy { color: var(--mute-d); font-size: 15px; }
.team-float {
  position: fixed; left: 0; top: 0; z-index: 5;
  width: 280px; aspect-ratio: 4 / 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.team-float img { transform: scale(1.15) rotate(-3deg); transition: transform 0.6s var(--ease); }
.team-float.is-on { opacity: 1; }
.team-float.is-on img { transform: scale(1) rotate(-3deg); }

/* =====================================================================
   HISTORY — seventy seasons
   ===================================================================== */
.history { background: var(--ink); border-top: 1px solid var(--line-d); }
.history .section-head { grid-template-areas: "label title"; }
.history__years { display: inline-flex; align-items: center; gap: 0.12em; font-size: clamp(64px, 14vw, 220px); }
.history__arrow { width: 0.6em; height: 2px; background: var(--gold); position: relative; }
.history__arrow::after {
  content: ""; position: absolute; right: -2px; top: -6px;
  border: 7px solid transparent; border-left: 10px solid var(--gold); border-right: 0;
}
.history__intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px);
  margin-left: calc((100% - 32px) / 4 + 32px);
  margin-bottom: 72px;
  color: var(--mute-d);
}
.history__lead { font-family: var(--f-serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; color: var(--white); }

.seasons { margin-bottom: 80px; }
.seasons__ticks {
  display: flex; align-items: flex-end; gap: clamp(2px, 0.45vw, 7px);
  height: clamp(140px, 18vw, 240px);
  border-bottom: 1px solid var(--line-d);
  cursor: crosshair;
  touch-action: pan-y;
}
.tick {
  flex: 1;
  height: 42%;
  background: rgba(246, 244, 239, 0.32);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: background 0.2s, transform 0.9s var(--ease);
  transition-delay: 0s, calc(var(--i) * 14ms);
}
.seasons.is-in .tick { transform: scaleY(1); }
.tick--decade { height: 66%; background: rgba(246, 244, 239, 0.55); }
.tick--first, .tick--last { height: 100%; background: var(--gold); }
.tick--now { position: relative; }
.tick--now::after {
  content: ""; position: absolute; left: 50%; top: -14px;
  width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--red);
}
.tick.is-active { background: var(--white); }
.tick--first.is-active, .tick--last.is-active { background: var(--gold-hi); }
.seasons__readout { display: flex; align-items: baseline; gap: 24px; padding-top: 18px; flex-wrap: wrap; }
.seasons__year { font-weight: 900; font-stretch: 64%; font-size: 64px; line-height: 0.9; color: var(--gold-hi); font-variant-numeric: tabular-nums; min-width: 3.4ch; }
.seasons__note { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--mute-d); }

.chapters {
  display: grid;
  grid-template-columns: repeat(8, minmax(150px, 1fr));
  overflow-x: auto;
  border-top: 1px solid var(--line-d);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  margin-bottom: 96px;
}
.chapter { padding: 22px 20px 28px 0; border-right: 1px solid var(--line-d); min-height: 200px; display: flex; flex-direction: column; gap: 10px; }
.chapter + .chapter { padding-left: 20px; }
.chapter:last-child { border-right: 0; }
.chapter__decade { font-weight: 900; font-stretch: 62%; font-size: 64px; line-height: 0.85; color: transparent; -webkit-text-stroke: 1px rgba(246, 244, 239, 0.5); }
.chapter.has-entry .chapter__decade { color: var(--gold-hi); -webkit-text-stroke: 0; }
.chapter h4, .chapter__entry { margin: 0; font-weight: 700; font-stretch: 90%; font-size: 16px; }
.chapter p { font-size: 14px; color: var(--mute-d); }
.chapter__open { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-d); margin-top: auto; }

.archive-call { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-3); }
.archive-call__img { min-height: 360px; }
.archive-call__body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: center; }
.archive-call h3 { font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; }
.archive-call p { color: var(--mute-d); max-width: 44ch; }

/* =====================================================================
   EVENTS
   ===================================================================== */
.events__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.event-feature {
  background: var(--ink); color: var(--white);
  padding: clamp(28px, 4vw, 48px);
  position: relative; overflow: hidden;
  min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
}
.event-feature__num {
  position: absolute; right: -0.06em; top: -0.16em;
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(260px, 30vw, 440px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold);
  pointer-events: none;
}
.event-feature__when { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); position: relative; }
.event-feature h3 { position: relative; font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(44px, 5vw, 72px); line-height: 0.88; }
.event-feature p { position: relative; color: var(--mute-d); max-width: 40ch; }

.event-list { border-top: 2px solid var(--ink); }
.event {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line-l);
}
.event__date { display: flex; flex-direction: column; line-height: 1; }
.event__day { font-weight: 900; font-stretch: 62%; font-size: 64px; line-height: 0.82; }
.event__month { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }
.event h3 { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 24px; line-height: 1.05; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.event__place { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute-l); margin: 6px 0; }
.event p { font-size: 15px; color: var(--mute-l); }

/* =====================================================================
   PARTNERS
   ===================================================================== */
.partners { background: var(--ink-2); }
.partners__tiers { display: grid; gap: 40px; }
.tier__label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 14px; }
.tier__row { display: grid; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.tier--principal .tier__row { grid-template-columns: 1fr; }
.tier--partner .tier__row { grid-template-columns: repeat(3, 1fr); }
.tier--supporter .tier__row { grid-template-columns: repeat(4, 1fr); }
.sponsor {
  background: var(--ink-2);
  display: grid; place-items: center;
  aspect-ratio: 3 / 1.4;
  padding: 24px;
  text-decoration: none;
  transition: background 0.3s;
}
.tier--principal .sponsor { aspect-ratio: auto; min-height: 220px; }
.sponsor:hover { background: var(--ink-3); }
.sponsor img { max-height: 80px; width: auto; object-fit: contain; }
.tier--principal .sponsor img { max-height: 120px; }
.sponsor__empty { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246, 244, 239, 0.4); text-align: center; }
.partners__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; flex-wrap: wrap; }
.partners__cta p { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); max-width: 30ch; line-height: 1.2; }

/* =====================================================================
   SOCIAL
   ===================================================================== */
.social__layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.social__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social__grid li { aspect-ratio: 1; }
.social__grid li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.social__grid .ph { width: 100%; height: 100%; }
.social__grid li:hover img { transform: scale(1.05); }
.social__links { border-top: 2px solid var(--ink); }
.social-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line-l);
  text-decoration: none;
  transition: padding 0.35s var(--ease), color 0.2s;
}
a.social-link:hover { padding-left: 12px; color: var(--gold-lo); }
.social-link__net { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(32px, 3.4vw, 48px); line-height: 0.9; }
.social-link__handle { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--mute-l); }

/* =====================================================================
   JOIN / VISIT
   ===================================================================== */
.join { background: var(--ink); border-top: 1px solid var(--line-d); }
.join__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.join .section-head__label { color: var(--gold-hi); display: inline-block; margin-bottom: 26px; }
.join__title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(72px, 11vw, 170px); line-height: 0.82; }
.join__lede { font-family: var(--f-serif); font-size: 21px; line-height: 1.4; color: var(--mute-d); margin: 28px 0 48px; max-width: 34ch; }
.visit { border-top: 1px solid var(--line-d); padding-top: 22px; display: grid; gap: 12px; }
.visit address { font-weight: 700; font-stretch: 90%; font-size: 22px; line-height: 1.25; }

.join-form { display: grid; gap: 22px; align-content: start; padding-top: 8px; }
.join-form fieldset { border: 0; padding: 0; margin: 0; }
.join-form legend { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 14px;
  border: 1px solid var(--line-d);
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chips label:hover span { border-color: var(--gold); }
.chips input:checked + span { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-d); }
.field .opt { text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(246, 244, 239, 0.35);
  padding: 10px 0; font-size: 19px;
  border-radius: 0;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-hi); }
.field input[aria-invalid="true"] { border-bottom-color: #e0574f; }
.field__error { font-size: 13px; color: #ef7a73; min-height: 0; }
.field__error:empty { display: none; }
.join-form .btn { justify-self: start; }
.join-form__status { font-size: 15px; color: var(--gold-hi); min-height: 1.5em; }
.join-form__status.is-ok { color: var(--pitch-hi); }
.light .join-form__status.is-ok { color: var(--pitch); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .scoreboard { grid-template-columns: 1fr; }
  .sb-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .sb-commentary { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 72px; }
  .hero__rail { display: none; }
  .next-match { max-width: 460px; }
  .section-head { grid-template-columns: 1fr; grid-template-areas: "label" "title" "note"; }
  .section-head__label { justify-self: start; padding-right: 32px; }
  .history .section-head { grid-template-areas: "label" "title"; }
  .fixtures__layout { grid-template-columns: 1fr; }
  .news__grid .story { grid-column: span 6; }
  .story--lead { grid-template-columns: 1fr; grid-template-rows: auto; }
  .story--lead .story__img, .story--lead .story__kicker, .story--lead .story__title, .story--lead .story__standfirst { grid-column: 1; grid-row: auto; }
  .team__link { grid-template-columns: 1fr; gap: 12px; }
  .team-float { display: none; }
  .history__intro { margin-left: 0; grid-template-columns: 1fr; }
  .archive-call { grid-template-columns: 1fr; }
  .archive-call__img { min-height: 240px; }
  .events__layout { grid-template-columns: 1fr; }
  .tier--supporter .tier__row { grid-template-columns: repeat(2, 1fr); }
  .social__layout { grid-template-columns: 1fr; }
  .join__layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .header-cta { display: none; }
  .brand__sub { display: none; }
  .logo-slot--nav { width: 40px; height: 40px; }
  .hero__club { font-size: 54px; }
  .next-match { padding: 18px; }
  .next-match__teams { font-size: 28px; }
  .fixture-lead { grid-template-columns: 1fr; }
  .fixture-lead__date { flex-direction: row; align-items: flex-end; gap: 16px; min-width: 0; padding: 18px 20px; }
  .fixture-lead__day { font-size: 80px; }
  .fixture-lead__body { padding: 22px 20px 24px; }
  .fixture-lead .tag { top: 14px; right: 14px; background: var(--ink); }
  .sb-main { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .sb-row { grid-template-columns: 40px 1fr auto; }
  .sb-row .sb-mini { grid-column: 2 / -1; text-align: left; margin-top: -10px; }
  .sb-side { grid-template-columns: 1fr; }
  .sb-commentary { grid-column: auto; grid-row: auto; }
  .plates--xl { font-size: 54px; }
  .news__grid .story { grid-column: 1 / -1; }
  .story--text .story__title { font-size: 32px; }
  .tier--partner .tier__row { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: repeat(8, 64vw); }
  .event { grid-template-columns: 72px 1fr; }
  .event__day { font-size: 52px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* nothing moves or animates; colour and fade changes stay, quick, so hover,
     focus and pressed states still answer */
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, opacity, box-shadow !important;
    transition-duration: 0.15s !important; transition-delay: 0s !important;
  }
  .reveal, [data-reveal] { opacity: 1; transform: none; }
  .tick { transform: none; }
}

/* #####################################################################
   MULTI-PAGE SYSTEM — shared components, graphics, motion, pages
   ##################################################################### */

/* ---------- Generic light surface (cricket whites) ---------- */
.light { background: var(--whites); color: var(--ink); }
.light .tag--sample { color: var(--gold-lo); }
.light .link-arrow { color: var(--ink); }
.light .section-head__note, .light .muted { color: var(--mute-l); }
.light .btn--line:hover { background: var(--ink); color: var(--whites); }
.tbc { color: var(--mute-d); font-weight: 400; font-style: italic; font-family: var(--f-serif); }
.light .tbc { color: var(--mute-l); }
.load-error, .empty { padding: 32px 0; font-size: 15px; color: var(--mute-l); }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 600; }
.muted { color: var(--mute-d); }

/* ---------- Ball-seam divider: two rows of stitching around a seam ---------- */
.seam {
  position: relative; height: 22px; margin: 0;
  background: linear-gradient(var(--red), var(--red)) center / 100% 1px no-repeat;
  opacity: 0.85;
}
.seam::before, .seam::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(115deg, transparent 0 8px, var(--red) 8px 9.5px, transparent 9.5px 14px);
}
.seam::before { top: 2px; }
.seam::after { bottom: 2px; transform: scaleY(-1); }

/* ---------- Halftone texture on graded photography ---------- */
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(12, 11, 9, 0.5) 0.8px, transparent 1.3px);
  background-size: 4px 4px;
  opacity: 0.35;
  mix-blend-mode: multiply;
}
.ph--archive img { filter: grayscale(1) sepia(0.35) contrast(1.25) brightness(0.8); }
.ph--archive::before { opacity: 0.6; background-size: 3px 3px; }
.parallax-inner { position: absolute; inset: -12% 0; }
.parallax-inner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Editorial annotation: mono note with a leader line ---------- */
.annot {
  position: absolute; display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-hi); white-space: nowrap; pointer-events: none;
}
.annot::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.annot--left { flex-direction: row-reverse; }

/* ---------- Split headline lines rising from a mask ---------- */
[data-split] .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
[data-split] .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--l) * 90ms + 80ms); }
[data-split].is-in .line > span { transform: none; }
/* SplitText (motion.js): a headline waits hidden for at most 0.6s while GSAP
   loads; each line's mask leaves room for descenders and italic overhang. */
[data-split-wait] { visibility: hidden; }
[data-split] .st-row { display: block; }
[data-split] [class$="-mask"] { display: block; padding: 0 0.08em 0.06em 0; margin: 0 -0.08em -0.06em 0; }
/* Smooth scrolling (smooth.js, Lenis): it scrolls the page itself every frame,
   so the browser's own smooth scrolling has to be off underneath it. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
/* Home: the hero film (herofilm.js). Frames stack in the hero photo's frame;
   GSAP moves them, so no CSS drift or transform transitions on them. */
.hero__media.is-film img { position: absolute; inset: 0; animation: none; transition: filter 0.8s; }
.hero__media.is-film::after { z-index: 3; }
.hero__flash { position: absolute; inset: 0; z-index: 4; background: var(--gold); opacity: 0; mix-blend-mode: screen; pointer-events: none; }

/* Home: the ball's line down the left margin (arc.js) */
body[data-page="home"] main { position: relative; }
.arc { position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none; overflow: visible; display: none; }
.arc.is-on { display: block; }
.arc path, .arc line { fill: none; stroke-linecap: round; }
.arc__trail { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 1 7; opacity: 0.28; }
.arc__line { stroke: var(--gold); stroke-width: 1.5; opacity: 0.9; }
.arc__tick { stroke: var(--gold); stroke-width: 2; opacity: 0; transition: opacity 0.5s; }
.arc__tick.is-hit { opacity: 0.9; }
.arc__ball circle { fill: var(--gold); }
.arc__ball .arc__seam { stroke: var(--ink); stroke-width: 1; opacity: 0.55; }
.arc__ball { transition: opacity 0.3s; }
.arc__ball.is-out { opacity: 0; }
/* Flip (motion.js) moves cards with transforms: no CSS transitions meanwhile */
.is-flipping [data-flip-id] { transition: none !important; }
.reveal { transition-delay: var(--d, 0ms); }

/* ---------- Page wipe transition ---------- */
.page-wipe {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center;
  transform: translateY(101%);
}
.page-wipe__mark { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(40px, 8vw, 120px); opacity: 0; transition: opacity 0.2s; }
.page-wipe.is-leaving { transform: none; transition: transform 0.42s cubic-bezier(0.7, 0, 0.3, 1); }
.page-wipe.is-leaving .page-wipe__mark, .page-wipe.is-covering .page-wipe__mark { opacity: 1; transition-delay: 0.15s; }
.page-wipe.is-covering { transform: none; }
.page-wipe.is-revealing { transform: translateY(-101%); transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1) 0.05s; }

/* ---------- Page transitions (browsers with cross-document View Transitions) ----------
   The browser keeps the old page on screen until the new one is ready, so a
   click moves at once (no wipe, no delay). The header stays put; the old page
   lifts away and fades, the new one rises in, and its headline does its own
   line-by-line rise. layout.js uses the gold wipe only where this is missing. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-group(site-header) { animation: none; z-index: 2; }
  ::view-transition-old(site-header) { display: none; }
  ::view-transition-new(site-header) { animation: none; }
  ::view-transition-old(root) { animation: vt-out 0.28s cubic-bezier(0.7, 0, 0.84, 0) both; }
  ::view-transition-new(root) { animation: vt-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-28px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Opening sequence (home, once per session) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 22px;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}
.intro.is-done { transform: translateY(-100%); }
.intro .plates { font-size: clamp(80px, 16vw, 200px); gap: 0.06em; }
.intro__caption { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi); min-height: 1.5em; }
.intro__skip { position: absolute; bottom: 28px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-d); }
.intro-running .hero [data-reveal] { opacity: 0; }

/* ---------- Custom cursor ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role=slider], .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-visible { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor__ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(214, 181, 107, 0.7);
  display: grid; place-items: center;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--gold); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--gold); border-color: var(--gold); }
.cursor.is-label .cursor__dot, .cursor.is-text .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring { opacity: 0; }
.cursor.is-down .cursor__ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.cursor__label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); opacity: 0; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- Lightbox + gallery tiles ---------- */
.tile { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; }
.tile img { transition: transform 0.9s var(--ease), filter 0.6s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); filter: grayscale(0.2) contrast(1.05) brightness(0.95); }
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(8, 8, 6, 0.96);
  display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gutter);
}
.lightbox[hidden] { display: none; }
.lightbox button { background: none; border: 1px solid var(--line-d); color: var(--white); padding: 10px 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.lightbox button:hover { border-color: var(--gold); color: var(--gold-hi); }
.lightbox__close { justify-self: end; }
.lightbox__figure { display: grid; place-items: center; min-height: 0; gap: 14px; padding: 12px 0; }
/* The enlarged view shows photographs and posters in their true colours. */
.lightbox__figure img { max-width: 100%; max-height: 74vh; object-fit: contain; }
.lightbox__figure figcaption { font-family: var(--f-serif); font-style: italic; color: var(--mute-d); }
.lightbox__nav { display: flex; justify-content: center; align-items: center; gap: 24px; }
.lightbox__count { font-family: var(--f-mono); font-size: 12px; color: var(--mute-d); }

/* ---------- Page heroes ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 88px);
  background: var(--ink);
}
.page-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.page-title {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(72px, 13vw, 210px); line-height: 0.8; letter-spacing: -0.005em;
  margin: 18px 0 0;
}
.page-intro { font-family: var(--f-serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.35; color: var(--mute-d); max-width: 36ch; }
.light .page-intro { color: var(--mute-l); }
.page-hero .tag { margin-right: 8px; }
.crumbs { font-family: var(--f-mono); font-size: max(11.5px, var(--fs-label)); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-d); }
.crumbs a { text-decoration: none; color: var(--gold-hi); }
.light .crumbs a { color: var(--gold-lo); }
.page-hero__ghost {
  position: absolute; right: -0.05em; bottom: -0.2em; z-index: 0;
  font-weight: 900; font-stretch: 62%; font-size: clamp(200px, 34vw, 560px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(184, 146, 63, 0.35);
  pointer-events: none; user-select: none;
}
.page-hero > .wrap { position: relative; z-index: 1; }

/* ---------- Footer (old gold) ---------- */
.site-footer { background: var(--gold); color: var(--ink); padding-block: 0 28px; }
.site-footer :focus-visible { outline-color: var(--ink); }
.footer__label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; opacity: 0.8; }
.footer__sponsors { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(12, 11, 9, 0.25); }
.footer__sponsors .footer__label { margin: 0; }
.footer__sponsors ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(12, 11, 9, 0.2); border: 1px solid rgba(12, 11, 9, 0.2); }
.footer__sponsors li { background: var(--gold); min-height: 64px; display: grid; place-items: center; }
.footer__sponsors img { max-height: 40px; width: auto; }
.footer__slot { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }
.footer__more { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; }
.footer__motto {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(80px, 17vw, 270px); line-height: 0.78; letter-spacing: -0.01em;
  margin: clamp(48px, 7vw, 100px) 0 56px;
}
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 0.8fr; gap: 32px; padding-top: 28px; border-top: 2px solid var(--ink); }
.footer__brand { display: flex; gap: 18px; align-items: flex-start; font-weight: 700; line-height: 1.35; }
.site-footer nav { display: flex; gap: 40px; }
.site-footer nav a, .footer__social a { text-decoration: none; font-weight: 700; font-stretch: 110%; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; line-height: 2.1; }
.site-footer nav a:hover, .footer__social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__social li { line-height: 2.1; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.footer__social .tbc, .footer__contact .tbc { color: rgba(12, 11, 9, 0.6); text-transform: none; letter-spacing: 0; font-size: 14px; }
.footer__contact address { font-weight: 600; line-height: 1.45; margin-bottom: 12px; }
.footer__contact dl > div { display: flex; gap: 10px; font-size: 14px; }
.footer__contact dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; min-width: 48px; }
.footer__base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 56px; font-family: var(--f-mono); font-size: max(11.5px, var(--fs-label)); letter-spacing: 0.04em; }
.footer__credits { max-width: 80ch; opacity: 0.75; }

/* ---------- Results: scorecards ---------- */
.results-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* One rule per job: a coloured top edge for the outcome, a heavy rule under the
   header, a hairline between the innings and one above the top performers. */
.scorecard {
  position: relative; display: flex; flex-direction: column;
  background: #f7f4ec; color: var(--ink);
  border: 1px solid var(--line-l); border-top: 4px solid var(--mute-l);
  padding: 16px 20px 18px;
}
.scorecard--won { border-top-color: var(--gold); }
.scorecard--lost { border-top-color: var(--red); }
.scorecard__letter {
  position: absolute; right: 16px; top: 14px;
  width: 26px; height: 26px; display: grid; place-items: center;
  font-weight: 900; font-stretch: 80%; font-size: 15px; line-height: 1;
  background: var(--ink); color: var(--white);
}
.scorecard--won .scorecard__letter { background: var(--gold); color: var(--ink); }
.scorecard--lost .scorecard__letter { background: var(--red); color: #fff; }
.scorecard__head { position: relative; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-l); margin-bottom: 14px; padding-right: 40px; min-height: 26px; }
.scorecard__inns { position: relative; border-top: 2px solid var(--ink); }
.scorecard__inns li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 10px; }
.scorecard__inns li + li { border-top: 1px solid var(--line-l); }
.sc__team { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 18px; }
.is-us .sc__team::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold); margin-right: 8px; vertical-align: 2px; }
.sc__score b { font-weight: 900; font-stretch: 70%; font-size: 30px; line-height: 1; }
.sc__score small { font-family: var(--f-mono); font-size: var(--fs-label); margin-left: 6px; color: var(--mute-l); }
.sc__score--dnb { font-family: var(--f-mono); font-size: 12px; color: var(--mute-l); }
.scorecard__foot { position: relative; padding-top: 10px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.scorecard__foot dl { border-top: 1px solid var(--line-l); padding-top: 12px; }
.scorecard__link { margin-top: auto; align-self: flex-start; }
.scorecard__result { font-size: 15px; }
.scorecard__result b { text-transform: uppercase; letter-spacing: 0.06em; font-stretch: 110%; }
.scorecard--won .scorecard__result b { color: var(--gold-lo); }
.scorecard--lost .scorecard__result b { color: var(--red); }
.scorecard__foot dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scorecard__foot dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-l); }
.scorecard__foot dd { font-size: 14px; font-weight: 600; }

/* ---------- Fixtures & results page ---------- */
.fx-hero .plates { font-size: clamp(40px, 5vw, 64px); }
.fx-summary { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 22px; justify-content: start; }
.fx-summary > div { display: flex; flex-direction: column; gap: 8px; }
.fx-summary small { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); }
.fx-summary__note { grid-column: 1 / -1; font-size: 13px; color: var(--mute-d); }
.fx-bar { position: sticky; top: 0; z-index: 10; background: var(--whites); border-bottom: 1px solid var(--line-l); }
.fx-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; }
.tabs { display: flex; gap: 0; border: 1px solid var(--ink); }
.tabs [role=tab] {
  background: none; border: 0; padding: 12px 22px; cursor: pointer;
  font-weight: 800; font-stretch: 90%; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em;
}
.tabs [role=tab][aria-selected="true"] { background: var(--ink); color: var(--whites); }
.fx-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fx-filters .news__filters { margin: 0; }
.fx-body { padding-block: 40px 120px; }
.fx-list { border-top: 2px solid var(--ink); }
.fx-month { display: flex; align-items: baseline; gap: 14px; padding: 48px 0 10px; border-bottom: 1px solid var(--line-l); }
.fx-month span { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(54px, 7vw, 96px); line-height: 0.8; }
.fx-month small { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--mute-l); }
.fx { border-bottom: 1px solid var(--line-l); }
.fx__row {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 110px 1fr 150px 110px 44px 28px; align-items: center; gap: 18px;
  padding: 18px 6px; transition: background 0.25s, padding 0.35s var(--ease);
}
.fx__row:hover, .fx.is-open .fx__row { background: rgba(184, 146, 63, 0.14); padding-left: 14px; }
.fx__date { display: flex; flex-direction: column; }
.fx__date b { font-weight: 900; font-stretch: 62%; font-size: 52px; line-height: 0.85; }
.fx__date span { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; }
.fx__opp { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 32px); line-height: 1; }
.fx__opp small { display: block; font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--mute-l); margin-bottom: 6px; }
.fx__team, .fx__format { font-size: 14px; font-weight: 600; }
.fx__format { font-family: var(--f-mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.fx__ha { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ink); font-weight: 800; font-size: 14px; }
.fx__ha.is-home { background: var(--pitch); color: var(--whites); border-color: var(--pitch); }
.fx__toggle { position: relative; width: 18px; height: 18px; }
.fx__toggle::before, .fx__toggle::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.fx__toggle::after { transform: rotate(90deg); }
.fx.is-open .fx__toggle::after { transform: rotate(0); }
.fx__panel { padding: 6px 6px 26px 134px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.fx__panel[hidden] { display: none; }
.fx__panel dl { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 32px; justify-content: start; }
.fx__panel dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-l); }
.fx__panel dd { font-weight: 600; }
.fx__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fx.is-open .fx__panel { animation: panel-in 0.45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } }
.rs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-top: 32px; }

/* ---------- Live page ---------- */
.live-page { padding-top: calc(var(--header-h) + 48px); }
.live-page__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 32px; }
.live-page__title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(60px, 9vw, 140px); line-height: 0.8; }
.live-page__note { max-width: 46ch; font-size: 14px; color: var(--mute-d); }
.live-progress { height: 4px; background: var(--line-d); margin: 22px 0 0; position: relative; overflow: hidden; }
.live-progress::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.8s var(--ease); }
.live-req { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-hi); margin-top: 10px; }
.live-extra { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 28px; margin-top: 40px; }
/* Nothing live: the board is off and shows the next match day instead of an old score */
.live-idle[hidden], [data-live-board][hidden] { display: none; }
.live-idle { display: flex; flex-direction: column; align-items: flex-start; }
.live-idle .sb-top { align-self: stretch; }
.live-idle .sb-dot { background: var(--mute-d); }
.live-idle__label { margin: 28px 0 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hi); }
.live-idle__day { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(40px, 5.5vw, 76px); line-height: 0.9; color: var(--whites); }
.live-idle__list { align-self: stretch; margin-top: 24px; border-top-color: var(--gold); }
.live-idle__list .fixture-row { border-bottom-color: var(--line-d); grid-template-columns: 1fr auto; grid-template-areas: "opp ha" "meta meta"; }
.live-idle__list .fixture-row__date { display: none; } /* the day is the heading above */
.live-idle__list .fixture-row__ha { border-color: var(--line-d); }
.live-idle__list .fixture-row__meta { color: var(--mute-d); }
.live-idle__note { margin: 24px 0 18px; font-size: 15px; color: var(--mute-d); max-width: 52ch; }
.is-idle .live-extra, .is-idle .sb-facts, .is-idle .sb-commentary, .is-idle .sb-source { display: none; }
.is-idle .sb-side { grid-template-columns: 1fr; }
.panel { border-top: 2px solid var(--gold); padding-top: 16px; }
.panel h2 { font-weight: 800; font-stretch: 90%; text-transform: uppercase; font-size: 18px; letter-spacing: 0.04em; margin-bottom: 4px; }
.panel__sub { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.08em; color: var(--mute-d); margin-bottom: 14px; }
.ground-svg { width: 100%; height: auto; display: block; max-width: 420px; margin-inline: auto; }
.ground-svg .oval { fill: rgba(47, 106, 62, 0.42); stroke: rgba(127, 191, 138, 0.55); stroke-width: 1.5; }
.ground-svg .ring { fill: none; stroke: rgba(127, 191, 138, 0.4); stroke-dasharray: 3 5; }
.ground-svg .pitch { fill: rgba(246, 244, 239, 0.16); }
.ground-svg .w1 { stroke: rgba(246, 244, 239, 0.45); stroke-width: 1; }
.ground-svg .w4 { stroke: var(--gold-hi); stroke-width: 1.6; }
.ground-svg .w6 { stroke: var(--red); stroke-width: 2; }
.ground-svg line.is-new { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 0.9s var(--ease) forwards; }
.fielder circle { fill: var(--white); }
.fielder text { fill: var(--mute-d); font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }
.fielder.is-key circle { fill: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-family: var(--f-mono); font-size: var(--fs-label); color: var(--mute-d); }
.legend i { display: inline-block; width: 16px; height: 2px; margin-right: 6px; vertical-align: middle; }
.legend .k6 { background: var(--red); } .legend .k4 { background: var(--gold-hi); } .legend .k1 { background: rgba(246, 244, 239, 0.45); }
.log { max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.log__item { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-d); font-size: 14px; animation: ball-in 0.4s var(--ease); }
.log__over { font-family: var(--f-mono); font-size: 12px; color: var(--mute-d); }
.log__item--4 .log__over, .log__item--6 .log__over { color: var(--gold-hi); }
.log__item--W { color: #ef7a73; }
.how-live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-live li { border-top: 1px solid var(--line-d); padding-top: 16px; }
.how-live h3 { font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: 20px; margin-bottom: 8px; }
.how-live p { color: var(--mute-d); font-size: 15px; }

/* ---------- News page + article ---------- */
.cover { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; text-decoration: none; background: var(--ink-3); }
.cover__img { min-height: 520px; }
.cover:hover .cover__img img { transform: scale(1.03); }
.cover__body { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.cover .story__kicker { color: var(--mute-d); }
.cover .story__kicker b { color: var(--gold-hi); }
.cover__title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(54px, 6vw, 96px); line-height: 0.84; }
.cover__standfirst { font-family: var(--f-serif); font-size: 20px; color: var(--mute-d); }
.load-more { display: flex; justify-content: center; margin-top: 56px; }
.load-more[hidden] { display: none; }
.article__head { padding: calc(var(--header-h) + 64px) 0 48px; background: var(--whites); color: var(--ink); }
.article__head .story__kicker { margin: 28px 0 20px; }
.article__title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(64px, 10vw, 160px); line-height: 0.82; max-width: 14ch; }
.article__standfirst { font-family: var(--f-serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; max-width: 40ch; margin-top: 28px; color: var(--mute-l); }
.link-arrow--back { flex-direction: row-reverse; }
.article__img { height: clamp(320px, 60vh, 640px); }
.article__layout { display: grid; grid-template-columns: minmax(0, 680px) 360px; justify-content: space-between; gap: 56px; padding-block: 72px 96px; }
.article__body p { font-family: var(--f-serif); font-size: 21px; line-height: 1.6; margin-bottom: 1.1em; color: rgba(246, 244, 239, 0.86); }
.article__first { display: flow-root; } /* holds the drop cap inside its own paragraph */
.article__first::first-letter { float: left; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: 5.2em; line-height: 0.78; margin: 0.06em 0.1em 0 0; color: var(--gold-hi); }
/* Single-column articles (no scorecard): the headline, standfirst and text share one centred column. */
.article--single .article__head .wrap,
.article--single .article__layout { width: min(100% - var(--gutter) * 2, 760px); }
.article--single .article__layout { grid-template-columns: minmax(0, 1fr); }
.article--single .article__title { font-size: clamp(52px, 8vw, 112px); max-width: none; }
.article--single .article__standfirst { max-width: none; }
.article__share { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.article__share-status { font-size: 14px; color: var(--gold-hi); }
.article__result { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.article__related { background: var(--whites); color: var(--ink); padding-block: 72px 96px; }
.article__related .section-head__label { display: inline-block; margin-bottom: 32px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article__missing { padding: calc(var(--header-h) + 96px) 0 120px; }
.article__missing p:last-child { margin-top: 24px; color: var(--mute-d); }

/* ---------- Teams page ---------- */
.team-jump { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; }
.team-jump a { font-weight: 800; font-stretch: 85%; text-transform: uppercase; text-decoration: none; font-size: 18px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.team-jump a:hover { color: var(--gold-hi); }
.chapter-team { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; border-top: 1px solid var(--line-d); }
.chapter-team:nth-child(even) .chapter-team__media { order: 2; }
.chapter-team__media { position: sticky; top: 0; height: 100vh; }
.chapter-team__index { position: absolute; left: 24px; bottom: -0.12em; z-index: 2; font-weight: 900; font-stretch: 62%; font-size: 260px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold-hi); }
.chapter-team__body { padding: clamp(40px, 7vw, 110px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.chapter-team__name { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(64px, 8vw, 130px); line-height: 0.82; }
.chapter-team__copy { font-family: var(--f-serif); font-size: 22px; color: var(--mute-d); max-width: 34ch; }
.ledger { border-top: 2px solid var(--gold); }
.ledger > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.ledger dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-d); padding-top: 3px; }
.ledger dd { font-weight: 600; }
.light .ledger > div { border-color: var(--line-l); }
.light .ledger dt { color: var(--mute-l); }
.squad { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin: 10px 0 8px; }
.squad li { aspect-ratio: 1; border: 1px dashed var(--line-d); display: grid; place-items: center; font-family: var(--f-mono); font-size: var(--fs-label); color: var(--mute-d); }
.squad__note { font-size: 13px; color: var(--mute-d); }
.chapter-team__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Youth page ---------- */
.youth-hero { background: var(--whites); color: var(--ink); }
.youth-hero .page-hero__ghost { -webkit-text-stroke-color: rgba(138, 106, 38, 0.35); }
.pitch-diagram { width: 100%; height: auto; display: block; }
/* The square at Florida Park: a cream strip on outfield green, labels in whites. */
.pitch-diagram .field { fill: var(--pitch); }
.pitch-diagram .strip { fill: #ddd3bb; }
.pitch-diagram .crease-l { stroke: var(--ink); stroke-width: 2; }
.pitch-diagram .stump { fill: var(--ink); }
.pitch-diagram .dim { stroke: rgba(236, 232, 222, 0.75); stroke-width: 1; }
.pitch-diagram text { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--whites); }
.pitch-diagram .ball-path { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 5; }
.pitch-diagram .ball { fill: var(--red); }
.pathway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.pathway li { padding: 22px 22px 28px 0; border-right: 1px solid var(--line-l); counter-increment: step; }
.pathway li + li { padding-left: 22px; }
.pathway li:last-child { border-right: 0; }
.pathway li::before { content: counter(step); display: block; font-weight: 900; font-stretch: 62%; font-size: 96px; line-height: 0.85; color: var(--gold-lo); margin-bottom: 14px; }
.pathway h3 { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 24px; line-height: 1; margin-bottom: 8px; }
.pathway p { font-size: 15px; color: var(--mute-l); }
.agegroups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agegroup { background: var(--ink); color: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.agegroup__label { font-weight: 900; font-stretch: 62%; font-size: 84px; line-height: 0.8; color: var(--gold-hi); }
.agegroup dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line-d); font-size: 14px; }
.agegroup dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-d); }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; font-weight: 800; font-stretch: 85%; font-size: 21px; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 0.8; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 62ch; color: var(--mute-l); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }

/* ---------- Events page ---------- */
.anniv { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.anniv .plates { font-size: clamp(64px, 8vw, 120px); }
.anniv p { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); max-width: 18ch; line-height: 1.5; }
.months { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; border-block: 2px solid var(--ink); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; margin-bottom: 48px; }
.months li { flex: 0 0 auto; scroll-snap-align: start; }
.month {
  display: grid; gap: 6px; min-width: 150px; text-align: left; padding: 18px 22px 16px; height: 100%;
  background: none; border: 0; border-right: 1px solid var(--line-l); cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.month:hover { background: rgba(184, 146, 63, 0.14); }
.month[aria-pressed="true"] { background: var(--ink); color: var(--whites); }
.month__name { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 54px; line-height: 0.85; }
.month__year, .month__count { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.month__dots { display: flex; gap: 4px; height: 6px; }
.month__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.event__type { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-lo); margin-bottom: 4px; }
.event__body .btn { margin-top: 14px; }
.events-page .event { grid-template-columns: 130px 1fr; }
.events-page .event__day { font-size: 92px; }

/* ---------- Sponsors page ---------- */
.opps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.opp { padding: 24px 22px 30px 0; border-right: 1px solid var(--line-l); display: flex; flex-direction: column; gap: 12px; }
.opp + .opp { padding-left: 22px; }
.opp:last-child { border-right: 0; }
.opp h3 { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: 38px; line-height: 0.88; }
.opp p { font-size: 15px; color: var(--mute-l); flex: 1; }
.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.reach li { border-top: 1px solid var(--line-d); padding-top: 18px; }
.reach b { display: block; font-weight: 900; font-stretch: 62%; font-size: 72px; line-height: 0.85; color: var(--gold-hi); margin-bottom: 10px; }
.reach p { color: var(--mute-d); font-size: 15px; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
.contact-details { border-top: 2px solid var(--gold); }
.contact-details > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.contact-details dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-d); padding-top: 3px; }
.contact-details dd { font-weight: 600; }
.map { position: relative; aspect-ratio: 16 / 9; background: var(--ink-3); border: 1px solid var(--line-d); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 24px; }
.map__placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.map__placeholder > *:not(svg) { position: relative; }
.map__placeholder p { font-size: 14px; color: var(--mute-d); max-width: 40ch; }

/* ---------- About page ---------- */
.statement { font-family: var(--f-serif); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.12; letter-spacing: -0.01em; max-width: 26ch; }
.statement em { color: var(--gold-hi); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line-d); }
.facts > div { padding: 18px 18px 22px 0; border-right: 1px solid var(--line-d); }
.facts > div + div { padding-left: 18px; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 10px; }
.facts dd { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 0.92; }
.facts dd small { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; font-size: 16px; color: var(--mute-d); margin-top: 8px; }
.motto-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.motto-block__latin { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(80px, 12vw, 200px); line-height: 0.8; }
.motto-block__latin span { display: block; }
.motto-block__latin span:nth-child(2) { color: var(--gold-lo); padding-left: 0.6em; }
.motto-block__gloss { display: grid; gap: 14px; }
.gloss-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line-l); }
.gloss-row b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 28px; }
.gloss-row span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-l); }

/* horizontal decades */
.hs { position: relative; background: var(--ink); }
.hs__sticky { overflow: hidden; padding-block: 64px; }
.hs.is-pinned .hs__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 0; }
.hs__track { display: flex; gap: 0; }
.hs:not(.is-pinned) .hs__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.hs__head { padding-bottom: 32px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hs__head h2 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(56px, 7vw, 110px); line-height: 0.84; }
.hs__progress { height: 2px; background: var(--line-d); margin-top: 32px; }
.hs__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.hs:not(.is-pinned) .hs__progress { display: none; }
.hs .chapters { display: flex; overflow: visible; border-top: 1px solid var(--line-d); margin: 0; padding-left: var(--gutter); }
.chapter--long { flex: 0 0 min(400px, 80vw); min-height: 52vh; padding: 28px 32px 32px !important; scroll-snap-align: start; border-right: 1px solid var(--line-d); }
.chapter--long .chapter__decade { font-size: clamp(120px, 13vw, 200px); }
.chapter__span { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--mute-d); }
.chapter__ask { font-family: var(--f-serif); font-style: italic; color: var(--white) !important; font-size: 18px !important; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 8px; }
.archive-grid li:nth-child(1) { grid-row: span 2; }
.archive-grid li:nth-child(5) { grid-column: span 2; }
.archive-grid .tile img { filter: grayscale(1) sepia(0.35) contrast(1.25) brightness(0.8); }
.archive-grid--colour .tile img { filter: none; object-position: 50% 25%; }
.archive-grid--colour .tile::before, .archive-grid--colour .tile::after { content: none; }
/* Six tiles with no gaps: one large photo and five smaller (3 columns), or one wide photo at each end (2 columns). */
.archive-grid--colour li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.archive-grid--colour li:nth-child(5) { grid-column: auto; }
@media (max-width: 960px) {
  .archive-grid--colour li:nth-child(1) { grid-row: auto; }
  .archive-grid--colour li:nth-child(6) { grid-column: span 2; }
}

/* ---------- Home additions ---------- */
.results-home { margin-top: 72px; }
.results-home__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.results-home__head h3 { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: 40px; line-height: 0.9; }
.section-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Responsive (multi-page) ---------- */
@media (max-width: 1180px) {
  .live-extra { grid-template-columns: 1fr 1fr; }
  .live-extra .panel--log { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .fx__row { grid-template-columns: 90px 1fr 120px 44px 28px; }
  .fx__format { display: none; }
  .fx__panel { padding-left: 114px; }
  .opps { grid-template-columns: 1fr 1fr; }
  .opp:nth-child(2) { border-right: 0; }
  .opp:nth-child(3) { padding-left: 0; }
  .agegroups { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1181px) {
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 0 12px; }
}
@media (max-width: 960px) {
  .page-hero__grid, .cover, .contact-layout, .motto-block, .split-2 { grid-template-columns: 1fr; }
  .cover__img { min-height: 320px; }
  .menu__inner { grid-template-columns: 1fr; }
  .menu__aside { align-self: start; }
  .results-strip, .rs-grid, .related { grid-template-columns: 1fr; }
  .footer__sponsors { grid-template-columns: 1fr; }
  .footer__sponsors ul { grid-template-columns: 1fr 1fr; }
  .chapter-team { grid-template-columns: 1fr; min-height: 0; }
  .chapter-team__media { position: relative; height: 56vh; order: 0 !important; }
  .chapter-team__index { font-size: 160px; }
  .article__layout { grid-template-columns: 1fr; }
  .article__result { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-d); }
  .facts > div:nth-child(4) { border-top: 1px solid var(--line-d); }
  .pathway { grid-template-columns: 1fr 1fr; }
  .pathway li:nth-child(2) { border-right: 0; }
  .pathway li:nth-child(3) { padding-left: 0; }
  .how-live, .reach { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .live-extra { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 0 12px; }
  .page-title { font-size: clamp(64px, 20vw, 110px); }
  .footer__grid { grid-template-columns: 1fr; }
  .fx-bar__inner { flex-direction: column; align-items: stretch; }
  .tabs [role=tab] { flex: 1; }
  .fx__row { grid-template-columns: 64px 1fr 36px 18px; gap: 12px; padding: 14px 2px; }
  .fx__team { display: none; }
  .fx__date b { font-size: 40px; }
  .fx__panel { padding: 4px 0 22px; grid-template-columns: 1fr; }
  .fx__panel dl { grid-template-columns: 1fr 1fr; }
  .fx-month span { font-size: 54px; }
  .squad { grid-template-columns: repeat(6, 1fr); }
  .ledger > div, .contact-details > div { grid-template-columns: 1fr; gap: 4px; }
  .pathway, .opps, .agegroups { grid-template-columns: 1fr; }
  .pathway li, .opp { border-right: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line-l); }
  .events-page .event { grid-template-columns: 80px 1fr; }
  .events-page .event__day { font-size: 60px; }
  .month { min-width: 116px; padding: 14px 16px; }
  .month__name { font-size: 42px; }
  .article__body p { font-size: 19px; }
  .archive-grid { grid-auto-rows: 140px; }
  .archive-grid li:nth-child(5) { grid-column: auto; }
  .fx-summary { grid-template-columns: repeat(2, auto); }
  .facts dd { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-split] .line > span { transform: none; }
  .page-wipe, .intro, .cursor { display: none; }
}

/* =====================================================================
   FINISHING: sticky filter offset, noscript nav, mobile hero composition
   ===================================================================== */
.site-header:not(.is-hidden) ~ main .fx-bar { top: var(--header-h); }
.fx-bar { transition: top 0.4s var(--ease); }

.noscript-nav {
  padding: 18px var(--gutter);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--mute-d);
}
.noscript-nav a { color: var(--white); }

/* Phone: the wordmark leads the hero, the lede follows, the next-match
   panel becomes a compact ticket instead of a full card. */
@media (max-width: 640px) {
  .hero { grid-template-rows: auto 1fr; min-height: 100svh; }
  .hero__wordmark { order: -1; margin: 28px 0 0; font-size: 21.8vw; }
  .hero__grid { padding-top: 24px; gap: 28px; align-items: start; }
  .hero__seventy { margin-top: 24px; }
  .next-match__meta { grid-template-columns: 1fr 1fr; margin: 14px 0 16px; }
  .next-match__count { gap: 12px; }
}

/* Scorecard watermark stays behind the text in narrow columns (article aside, phones) */
.scorecard { container-type: inline-size; }

/* Events page: the anniversary feature runs full width, so it scales up */
[data-event-feature] .event-feature {
  min-height: clamp(420px, 44vw, 600px);
  border: 1px solid var(--line-d); border-top: 3px solid var(--gold);
  background: radial-gradient(circle at 80% 20%, rgba(184, 146, 63, 0.14), transparent 55%), var(--ink-2);
}
[data-event-feature] .event-feature__num { font-size: clamp(300px, 44vw, 640px); right: 3%; top: -0.1em; }
[data-event-feature] .event-feature h3 { font-size: clamp(56px, 8.4vw, 132px); max-width: 9ch; }
[data-event-feature] .event-feature p:last-child { font-size: 18px; }

/* Headlines reused outside .section-head must not claim the named "title" area */

/* Sponsor tiers never push past the viewport */
.partners__tiers { grid-template-columns: minmax(0, 1fr); }
.tier, .tier__row > * { min-width: 0; }
.section-head > .section-head__title { grid-area: title; }

/* The header's backdrop-filter makes it the containing block for the fixed menu,
   so size the menu from the viewport rather than from bottom: 0. */
.menu { bottom: auto; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }

/* Phones: the filter bar would cover a third of the screen if it stuck */
@media (max-width: 640px) {
  .fx-bar, .site-header:not(.is-hidden) ~ main .fx-bar { position: static; }
}

/* Youth hero is light: dark text tones */
.youth-hero .page-intro { color: var(--mute-l); }
.youth-hero .crumbs, .youth-hero .crumbs a { color: var(--gold-lo); }

/* =====================================================================
   CLUB DATA — pieces that appear once the club's own data is connected
   ===================================================================== */
.tag--live { background: var(--red); border-color: var(--red); color: #fff; }
.tag--live.is-final { background: transparent; border-color: var(--gold); color: var(--gold-hi); }

/* Result cards without a recorded scorecard, and the link to the full card */
.scorecard__vs { position: relative; border-top: 2px solid var(--ink); margin: 0; padding: 14px 0 6px; font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 18px; }
.scorecard__vs em { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--gold-lo); font-stretch: 100%; }
.scorecard__vs small { display: block; margin-top: 6px; font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: var(--fs-label); letter-spacing: 0.08em; color: var(--mute-l); }
.scorecard__link { position: relative; justify-self: start; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-underline-offset: 4px; }
.scorecard__link::after { content: " ↗"; }

/* Live: switch between matches in progress */
.sb-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sb-switch__btn {
  font: 700 12px/1 var(--f-display); font-stretch: 110%; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 16px; background: none; color: var(--white); border: 1px solid var(--line-d); cursor: pointer;
}
.sb-switch__btn:hover { border-color: var(--gold); }
.sb-switch__btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Live: batting card and bowling figures */
.panel--card { min-width: 0; }
.card-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.card-table th, .card-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-d); text-align: right; font-variant-numeric: tabular-nums; }
.card-table th:first-child { text-align: left; padding-left: 0; }
.card-table thead th { font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--mute-d); }
.card-table tbody th { font-weight: 700; }
.card-table tbody th small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-label); color: var(--mute-d); margin-top: 3px; }
.card-table tr.is-in th { color: var(--gold-hi); }
.card-table td b { font-weight: 800; }
.card-extras { margin-top: 12px; font-family: var(--f-mono); font-size: var(--fs-label); line-height: 1.6; color: var(--mute-d); }

/* Teams: senior squad */
.squad-section { border-top: 1px solid var(--line-d); }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 18px; }
.player__img { aspect-ratio: 4 / 5; margin-bottom: 12px; background: var(--ink-2); display: grid; place-items: center; overflow: hidden; }
.player__img img { width: 100%; height: 100%; object-fit: cover; }
.player__initials { font-weight: 900; font-stretch: 62%; font-size: 64px; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.player__name { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 18px; line-height: 1.05; }
.player__role { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--mute-d); margin-top: 6px; }
.player__badge { display: inline-block; margin-left: 4px; padding: 2px 6px; background: var(--gold); color: var(--ink); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; }
.player__badge--vc { background: none; color: var(--gold-hi); border: 1px solid var(--gold); }
.chapter-team__squadlink { margin: 28px 0; color: var(--mute-d); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }

/* News: article HTML from the club editor */
.article__rich > * { margin-bottom: 1.1em; }
.article__rich p, .article__rich li { font-family: var(--f-serif); font-size: 21px; line-height: 1.6; color: rgba(246, 244, 239, 0.86); }
.article__rich h2, .article__rich h3, .article__rich h4 { font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: 0.95; font-size: clamp(28px, 3vw, 40px); margin-top: 1.4em; }
.article__rich ul, .article__rich ol { padding-left: 1.2em; }
.article__rich ul { list-style: square; }
.article__rich a { color: var(--gold-hi); text-underline-offset: 3px; }
.article__rich blockquote { border-left: 3px solid var(--gold); padding-left: 20px; font-style: italic; }
.article__rich figure { margin: 1.6em 0; }
.article__rich figure img { width: 100%; height: auto; display: block; }
.article__rich figcaption { margin-top: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--mute-d); }
.article__rich figure + figure { margin-top: -0.4em; }
.article__match { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding: 14px 0; margin-bottom: 28px; border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line-d); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute-d); }
.article__match b { color: var(--ink); background: var(--gold); padding: 3px 8px; letter-spacing: 0.1em; }
.article__album { padding: clamp(56px, 7vw, 96px) 0 0; }
.article__album-title { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(36px, 5vw, 64px); line-height: 0.9; margin: 12px 0 28px; }
@media (max-width: 640px) { .article__rich p, .article__rich li { font-size: 19px; } }

/* Events with nothing published */
.event--empty { display: block; padding: 32px 0; font-family: var(--f-serif); font-size: 20px; color: var(--mute-l); }
.event--empty .link-arrow { margin-left: 6px; }

/* Contact: Turnstile security check */
.turnstile { min-height: 65px; margin: 4px 0 18px; font-size: 14px; color: var(--mute-d); }

/* Menu and footer: services on the existing club site */
.site-footer nav ul:last-child a::after { content: " ↗"; }
.site-footer nav { flex-wrap: wrap; gap: 8px 40px; }

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* The official badge has white lettering: on the gold footer it sits on a black plate. */
.logo-slot--footer:has(img) { background: var(--ink); padding: 14px; width: auto; height: auto; border: 0; box-sizing: content-box; }
.logo-slot--footer img { width: 88px; height: auto; aspect-ratio: 298 / 360; display: block; }

/* Guard against decorative type spilling past the viewport on phones (clip keeps sticky working). */
body { overflow-x: clip; }


/* ---------- Sponsors: boundary boards ----------
   A run of boundary boards, each in the sponsor's ground colour, with the
   gold rope beneath. Logos keep their own artwork; --k (set per logo in JS)
   sizes each by visible area so badges and wordmarks carry equal weight. */
.boards { --logo: 86px; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 4px; }
.board {
  height: 152px; display: grid; place-items: center; overflow: hidden;
  text-decoration: none; position: relative;
  transition: transform 0.5s var(--ease);
}
.board--light { background: var(--white); }
.board--dark { background: #000; box-shadow: inset 0 0 0 1px rgba(246, 244, 239, 0.14); }
.board--empty { background: var(--ink-3); }
.board img { height: calc(var(--logo) * var(--k, 1)); width: auto; max-width: 84%; max-height: 92%; object-fit: contain; transition: transform 0.5s var(--ease); }
a.board:hover img { transform: scale(1.05); }
a.board:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.board__empty { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246, 244, 239, 0.4); }
.boards__rope {
  height: 6px; margin-top: 18px; border-radius: 3px;
  background: repeating-linear-gradient(-55deg, var(--gold) 0 5px, var(--gold-lo) 5px 8px);
  opacity: 0.85;
}
.tier--sponsor .tier__label { display: none; }

/* Sponsors page: a ledger, one row per sponsor */
.sponsor-ledger { counter-reset: none; border-bottom: 1px solid var(--line-d); }
.sponsor-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line-d);
}
.sponsor-row__board { --logo: 116px; height: clamp(170px, 17vw, 220px); }
.sponsor-row__body { display: grid; gap: 12px; justify-items: start; }
.sponsor-row__kind { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }
.sponsor-row__name { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(38px, 4.4vw, 68px); line-height: 0.86; }
.sponsor-row__copy { font-family: var(--f-serif); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: rgba(246, 244, 239, 0.74); max-width: 46ch; }
.sponsor-row .link-arrow { margin-top: 6px; }

/* Footer: sponsor names as a plain line of links */
.footer__sponsors ul { display: flex; flex-wrap: wrap; gap: 6px 0; background: none; border: 0; }
.footer__sponsors li { background: none; min-height: 0; display: block; }
.footer__sponsors li + li::before { content: "·"; margin: 0 12px; opacity: 0.5; }
.footer__sponsors li a { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; text-decoration: none; }
.footer__sponsors li a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .boards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .board__item { grid-column: span 2; }
  .board__item:nth-child(4):nth-last-child(2), .board__item:nth-child(5):last-child { grid-column: span 3; }
}
@media (max-width: 640px) {
  .boards { --logo: 64px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board__item, .board__item:nth-child(4):nth-last-child(2) { grid-column: auto; }
  .board__item:last-child:nth-child(odd) { grid-column: span 2; }
  .board { height: 112px; }
  .sponsor-row { grid-template-columns: 1fr; gap: 22px; }
  .sponsor-row__board { --logo: 92px; height: 180px; }
}

/* ---------- Committee page ----------
   The chair and vice-chair lead side by side; the rest of the committee
   follows four across in order of office. Portraits are the club's 300px
   files, so they are never shown wider than that. */
.exco__lead { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--gold); }
.exco__chair { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: end; padding: clamp(28px, 3.4vw, 44px) 0; }
.exco__chair + .exco__chair { border-left: 1px solid var(--line-d); padding-left: clamp(20px, 3vw, 44px); }
.exco__photo { aspect-ratio: 5 / 4; margin: 0; }
.exco__photo img { object-position: 50% 30%; }
.exco__photo--none { display: grid; place-items: center; }
.exco__photo--none span { position: relative; z-index: 2; font-weight: 900; font-stretch: 62%; font-size: 64px; color: var(--gold-hi); }
.exco__chair:hover .exco__photo img, .exco__member:hover .exco__photo img { filter: grayscale(0.2) contrast(1.05) brightness(0.95); }
.exco__no { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--mute-d); margin-right: 10px; }
.exco__text { display: grid; gap: 8px; padding-bottom: 4px; }
.exco__text .exco__no { margin: 0; }
.exco__role { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); line-height: 1.5; }
.exco__name { font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: 0.88; }
.exco__chair .exco__name { font-size: clamp(40px, 4.6vw, 72px); }

.exco__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 32px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line-d); }
.exco__member { display: grid; gap: 10px; align-content: start; max-width: 300px; }
.exco__member .exco__photo { margin-bottom: 6px; }
.exco__member .exco__name { font-size: clamp(28px, 2.4vw, 36px); }

.exco__cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.exco__cta p { font-family: var(--f-serif); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--mute-l); margin-bottom: 26px; max-width: 42ch; }

/* three office bearers: photo above name, three across */
@media (min-width: 961px) {
  .exco__lead--three { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 3.4vw, 52px); }
  .exco__lead--three .exco__chair + .exco__chair { border-left: 0; padding-left: 0; position: relative; }
  .exco__lead--three .exco__chair + .exco__chair::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(clamp(32px, 3.4vw, 52px) / -2); border-left: 1px solid var(--line-d); }
  .exco__lead--three .exco__chair { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; }
  .exco__lead--three .exco__name { font-size: clamp(40px, 3.6vw, 60px); }
}

@media (max-width: 960px) {
  .exco__lead { grid-template-columns: 1fr; }
  .exco__chair + .exco__chair { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-d); }
  .exco__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exco__cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .exco__chair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .exco__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .exco__member .exco__name { font-size: 26px; }
}

/* ---------- Youth page: age groups with sessions, junior count, youth contact ---------- */
.agegroups { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.agegroup { gap: 14px; padding: 22px 20px 20px; border-top: 3px solid var(--gold); }
.agegroup__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.agegroup__label { font-size: clamp(56px, 5vw, 76px); }
.agegroup__ball { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-d); border: 1px solid var(--line-d); padding: 4px 7px; white-space: nowrap; }
.agegroup__name { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 22px; line-height: 1; }
.agegroup__copy { font-size: 14px; line-height: 1.5; color: rgba(246, 244, 239, 0.7); flex: 1; }
.agegroup__sessions { width: 100%; border-collapse: collapse; }
.agegroup__sessions tr { border-top: 1px solid var(--line-d); }
.agegroup__sessions th, .agegroup__sessions td { padding: 9px 0 8px; vertical-align: top; text-align: left; }
.agegroup__sessions th { font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-hi); padding-right: 10px; }
.agegroup__sessions td { text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.agegroup__sessions small { display: block; font-weight: 400; font-size: 12px; color: var(--mute-d); margin-top: 2px; }

.youth-count { margin-top: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-l); }
.youth-count b { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: 44px; letter-spacing: 0; color: var(--gold-lo); vertical-align: -6px; margin-right: 8px; }

.youth-contact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--ink); }
.youth-contact__photo { aspect-ratio: 1; margin: 0; }
.youth-contact__photo img { object-position: 50% 25%; }
.youth-contact__role { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-lo); }
.youth-contact__name { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: 34px; line-height: 0.95; margin: 4px 0 8px; }
.youth-contact .link-arrow { font-size: 12px; overflow-wrap: anywhere; }

@media (max-width: 1100px) { .agegroups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .agegroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .agegroups { grid-template-columns: 1fr; } }

/* ---------- Events: past events as a poster wall ----------
   Club posters are graphics with their own colours and type, so they are not
   graded like photographs. Each card: poster, date and type, title, place. */
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(20px, 2.4vw, 32px); }
.poster { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.poster__img { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--ink-3); cursor: zoom-in; margin-bottom: 6px; }
.poster__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.poster__img:hover img { transform: scale(1.03); }
.poster__img:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.poster__img--none { display: grid; place-items: center; cursor: default; border-top: 3px solid var(--gold); }
.poster__img--none span { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 48px; color: var(--gold-hi); }
.poster__meta { display: flex; gap: 12px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-d); }
.poster__meta b { color: var(--gold-hi); font-weight: 500; }
.poster__title { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: 26px; line-height: 0.98; }
.poster__place { font-size: 14px; color: var(--mute-d); }
.poster__copy { font-family: var(--f-serif); font-size: 16px; line-height: 1.45; color: rgba(246, 244, 239, 0.72); }
@media (max-width: 960px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .posters { grid-template-columns: 1fr; } }

/* ---------- History page ----------
   Three chapters, each with its years set huge on the left and the story in
   serif on the right. 2012 gets its own plate; the players who went on are a
   typographic roll of honour. */
.era-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 28px; background: var(--line-d); border: 1px solid var(--line-d); }
.era-jump a { display: grid; gap: 4px; padding: 14px 16px; background: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 18px; transition: background 0.3s; }
.era-jump a:hover { background: var(--ink-3); }
.era-jump span { font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--gold-hi); }

.era { border-top: 1px solid var(--line-d); }
.era__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.era__head { position: sticky; top: 110px; }
.era__no { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }
.light .era__no { color: var(--gold-lo); }
.era__years { font-weight: 900; font-stretch: 62%; font-size: clamp(88px, 11vw, 170px); line-height: 0.8; margin: 14px 0 18px; color: var(--gold-hi); }
.light .era__years { color: var(--gold-lo); }
.era__years span { display: block; font-size: 0.42em; line-height: 1; color: currentColor; opacity: 0.55; }
.era__title { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 52px); line-height: 0.9; }
.era__body { display: grid; gap: 20px; font-family: var(--f-serif); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; max-width: 60ch; }
.era__body p { color: rgba(246, 244, 239, 0.78); }
.light .era__body p { color: var(--mute-l); }
.era__body b { font-weight: 500; color: var(--white); }
.light .era__body b { color: var(--ink); }
.era__lead { font-size: 1.25em; line-height: 1.4; color: var(--white) !important; }
.light .era__lead { color: var(--ink) !important; }
.era__quote { margin: 12px 0 0; padding: 22px 0 0; border-top: 2px solid var(--gold); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; color: var(--gold-hi); }
.era__milestones { margin-top: 8px; border-top: 2px solid var(--ink); font-family: var(--f-display); font-size: 16px; line-height: 1.4; }
.era__milestones li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-l); }
.era__milestones b { font-weight: 900; font-stretch: 70%; font-size: 22px; line-height: 1; color: var(--gold-lo) !important; }

.twenty12 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 88px); padding: clamp(28px, 4vw, 48px); background: var(--gold); color: var(--ink); }
.twenty12__year { font-weight: 900; font-stretch: 62%; font-size: clamp(96px, 13vw, 200px); line-height: 0.78; }
.twenty12__kicker { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.twenty12__text { font-family: var(--f-serif); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.35; max-width: 48ch; }

.alumni { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); border-top: 2px solid var(--ink); }
.alum { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0 16px; border-bottom: 1px solid var(--line-l); }
.alum__name { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(32px, 3.2vw, 46px); line-height: 0.92; }
.alum__honours { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; line-height: 1.5; color: var(--mute-l); }

.motto-line { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--gold-hi); margin-bottom: 18px; }

@media (max-width: 960px) {
  .era__grid { grid-template-columns: 1fr; gap: 28px; }
  .era__head { position: static; }
  .twenty12 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .alumni { grid-template-columns: 1fr; }
  .era-jump { grid-template-columns: 1fr 1fr; }
}

/* ---------- Gallery page ----------
   Albums: a graded cover (the house look), then category, date and count.
   Inside an album the photographs are in full colour: people come here to
   find themselves and their children, so the grade steps aside. */
.gallery__count { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hi); }
.gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.gallery__empty { font-family: var(--f-serif); font-size: 20px; color: var(--mute-l); }
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(20px, 2.4vw, 32px); }
.album__link { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.album__cover { aspect-ratio: 4 / 3; margin: 0 0 6px; }
.album__link:hover .album__cover img { transform: scale(1.04); filter: grayscale(0.1) contrast(1.05); }
.album__link:focus-visible { outline: 2px solid var(--gold-lo); outline-offset: 4px; }
.album__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-l); }
.album__meta b { color: var(--gold-lo); font-weight: 500; }
.album__name { font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: 26px; line-height: 0.98; }
.album__link:hover .album__name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.album-view__head { display: grid; gap: 14px; justify-items: start; margin: 22px 0 36px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.album-view__title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(44px, 6vw, 92px); line-height: 0.86; max-width: 18ch; }
.album-view__status { font-family: var(--f-mono); font-size: 12px; color: var(--gold-lo); min-height: 1em; }
.gallery-section .btn--line.btn--light { color: var(--ink); border-color: var(--ink); }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shot { aspect-ratio: 1; overflow: hidden; background: var(--line-l); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover img, .shot:focus-visible img { filter: none; }
@media (max-width: 960px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .albums { grid-template-columns: 1fr; } .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }

/* ---------- Hero title: one lockup ----------
   TYGERBERG in heavy condensed capitals, "Cricket Club." in serif italic
   tucked directly beneath, then the motto: the club's name reads as a single
   title, bottom-left, beside the next-match panel. */
.hero { grid-template-rows: 1fr; }
.hero__grid { align-self: end; padding-block: 40px clamp(40px, 7vh, 88px); }
.hero__name {
  display: block;
  font-family: var(--f-display); font-weight: 900; font-stretch: 62%;
  text-transform: uppercase; white-space: nowrap;
  font-size: clamp(84px, 11vw, 196px); /* ≈4.4em wide: fits beside the panel */
  line-height: 0.8; letter-spacing: -0.012em;
  margin-left: -0.035em;
  color: var(--white);
}
[data-wordmark] .ch { display: inline-block; font-stretch: 62%; }
[data-wordmark].is-animating .ch { animation: stretch-in 1.5s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 150ms); }
.hero__club { margin-top: 0.14em; font-size: clamp(40px, 4.6vw, 84px); }
@media (max-width: 960px) {
  .hero__name { font-size: 19vw; }
}
@media (max-width: 640px) {
  .hero { grid-template-rows: 1fr; }
  .hero__grid { padding-top: 32px; }
  .hero__name { font-size: 21vw; }
  .hero__club { font-size: 44px; }
  .hero__creases { display: none; }
}

/* Home: with no match live the scoreboard section is hidden, so the two light
   sections either side of it meet; drop the doubled spacing between them. */
.live[hidden] + .section.light, .live[hidden] + .section.news { padding-top: 0; }

/* =====================================================================
   PLAY ALONG (home) — fantasy cricket and the arcade, on an old-gold band
   ===================================================================== */
.play { background: var(--gold); color: var(--ink); }
.play .section-head__label { color: var(--ink); border-top-color: var(--ink); }
.play .section-head__note, .play .eyebrow { color: rgba(12, 11, 9, 0.8); }
.play .link-arrow { color: var(--ink); }
.play__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.fantasy, .arcade { padding: clamp(24px, 3vw, 44px); }
.fantasy { background: var(--ink); color: var(--white); }
.fantasy .eyebrow { color: var(--gold-hi); }
.fantasy .link-arrow { color: var(--gold-hi); }
.fantasy__title, .arcade__title {
  font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: 0.92;
  font-size: clamp(36px, 4vw, 60px); margin: 14px 0 18px;
}
.arcade__title { font-size: clamp(28px, 2.8vw, 40px); }
.fantasy > p, .arcade > p { max-width: 52ch; }
.fantasy > p { color: var(--mute-d); }
.fantasy__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; border-top: 1px solid var(--line-d); }
.fantasy__stats > div { padding: 16px 12px 0 0; }
.fantasy__stats dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-d); }
.fantasy__stats dd { margin: 6px 0 0; font-weight: 900; font-stretch: 70%; font-size: clamp(26px, 2.6vw, 38px); color: var(--gold-hi); line-height: 1; }
.fantasy__table { margin-top: 28px; }
.fantasy__label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-d); margin: 0 0 8px; }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-d); }
.lb li:first-child .lb__rank { color: var(--ink); background: var(--gold); text-align: center; }
.lb__rank { font-family: var(--f-mono); font-size: 12px; color: var(--mute-d); padding: 2px 0; }
.lb__team { font-weight: 700; }
.lb__pts { font-family: var(--f-mono); font-size: 14px; color: var(--gold-hi); }
.btn--ink { background: var(--ink); color: var(--white); }
.fantasy .btn--ink { background: var(--gold); color: var(--ink); }
.fantasy .btn--ink:hover { background: var(--gold-hi); }
.fantasy .btn--line { color: var(--white); }
.fantasy .btn--line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.arcade { border: 1px solid rgba(12, 11, 9, 0.35); display: flex; flex-direction: column; }
.arcade__list { list-style: none; margin: 22px 0 26px; padding: 0; border-top: 1px solid rgba(12, 11, 9, 0.35); }
.arcade__list a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid rgba(12, 11, 9, 0.35); color: inherit; text-decoration: none; transition: padding 0.25s var(--ease); }
.arcade__list a:hover { padding-left: 10px; }
.arcade__list b { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 24px; line-height: 1; }
.arcade__list b::after { content: " →"; font-weight: 400; }
.arcade__list span { font-size: 15px; }
.arcade .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) {
  .play__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .fantasy__stats { grid-template-columns: 1fr 1fr; }
  .fantasy__stats > div:last-child { grid-column: 1 / -1; }
}

/* ---------- Player spotlight (home, teams section) ---------- */
.spotlight {
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
  position: relative; z-index: 2;
}
.spotlight[hidden] { display: none; }
.spotlight__img { aspect-ratio: 4 / 5; margin: 0; background: var(--ink-2); display: grid; place-items: center; overflow: hidden; }
.spotlight__img img { width: 100%; height: 100%; object-fit: cover; }
.spotlight .section-head__label { display: inline-block; color: var(--gold-hi); }
.spotlight__name { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(40px, 5vw, 76px); line-height: 0.9; margin: 22px 0 10px; }
.spotlight__bio { font-family: var(--f-serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 56ch; margin: 20px 0; }
.spotlight .profile__facts { margin-bottom: 24px; }
@media (max-width: 640px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__img { max-width: 220px; }
}

/* ---------- Senior squad: role filter and player profiles ---------- */
.squad__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.squad-section .filter { color: var(--white); border-color: var(--line-d); }
.squad-section .filter:hover { border-color: var(--gold); }
.squad-section .filter[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.filter span { opacity: 0.6; margin-left: 4px; }
.player__open { all: unset; display: block; width: 100%; cursor: pointer; }
.player__open:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
.player__open .player__img img { transition: transform 0.5s var(--ease); }
.player__open:hover .player__img img { transform: scale(1.04); }
.player__open:hover .player__name { color: var(--gold-hi); }
.player__style { font-size: 13px; color: var(--mute-d); margin-top: 4px; }
.squad__add { margin-top: 48px; color: var(--mute-d); }
.squad__add .link-arrow { margin-left: 8px; color: var(--gold-hi); }

.profile__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 24px; margin: 20px 0 0; }
.profile__facts dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-d); }
.profile__facts dd { margin: 4px 0 0; font-weight: 600; }

.profile {
  width: min(860px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 1px solid var(--line-d); border-top: 4px solid var(--gold);
  background: var(--ink); color: var(--white);
}
.profile::backdrop { background: rgba(12, 11, 9, 0.82); backdrop-filter: blur(4px); }
.profile__inner { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px; position: relative; }
.profile__img { aspect-ratio: 4 / 5; margin: 0; background: var(--ink-2); display: grid; place-items: center; overflow: hidden; }
.profile__img img { width: 100%; height: 100%; object-fit: cover; }
.profile__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); margin: 0; }
.profile__name { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(36px, 4.4vw, 56px); line-height: 0.92; margin: 12px 0 8px; padding-right: 64px; }
.profile__bio { font-family: var(--f-serif); font-size: 19px; line-height: 1.5; margin: 24px 0 0; }
.profile__soon { color: var(--mute-d); margin: 24px 0 0; }
.profile__soon a { color: var(--gold-hi); }
.profile__close {
  position: absolute; top: 16px; right: 16px; background: none; border: 1px solid var(--line-d); color: var(--white);
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 10px; cursor: pointer;
}
.profile__close:hover { border-color: var(--gold); color: var(--gold-hi); }
@media (max-width: 640px) {
  .profile__inner { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .profile__img { max-width: 180px; }
}

/* ---------- Privacy policy ---------- */
.policy__updated { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--mute-d); margin-top: 16px; }
.policy__wrap { max-width: 760px; }
.policy h2 { font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: 22px; letter-spacing: 0.01em; margin: 48px 0 12px; padding-top: 14px; border-top: 2px solid var(--gold); display: inline-block; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 17px; line-height: 1.65; max-width: 68ch; }
.policy ul { padding-left: 20px; }
.policy li + li { margin-top: 8px; }
.policy a { color: var(--gold-lo); }
.join-form__privacy { font-size: 13px; color: var(--mute-d); margin-top: 14px; }
.light .join-form__privacy { color: var(--mute-l); }
.join-form__privacy a { color: inherit; }
.footer__label--gap { margin-top: 28px; }
.footer__base a { color: inherit; }
.fantasy__stats dd[data-play-stat="deadline"] { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; padding-top: 0.2em; }
.policy ul { list-style: disc; margin: 0 0 16px; } .policy li::marker { color: var(--gold-lo); }

/* ---------- Squad search and A–Z ---------- */
.squad__controls { display: grid; gap: 18px; margin-bottom: 36px; }
.squad__controls .squad__filters { margin-bottom: 0; }
.squad__search { position: relative; max-width: 420px; }
.squad__search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--gold-hi); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.squad__search input {
  width: 100%; font: inherit; font-size: 16px; color: var(--white);
  background: var(--ink-2); border: 1px solid var(--line-d); padding: 13px 14px 13px 44px;
}
.squad__search input::placeholder { color: var(--mute-d); }
.squad__search input:focus { outline: none; border-color: var(--gold); }
.squad__search input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; }
.alpha__btn {
  min-width: 34px; height: 34px; padding: 0 6px; cursor: pointer;
  font-family: var(--f-mono); font-size: 13px; color: var(--white);
  background: none; border: 1px solid var(--line-d); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.alpha__btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-hi); }
.alpha__btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.alpha__btn:disabled { opacity: 0.25; cursor: default; }
.squad__result { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--mute-d); margin: 0; min-height: 1em; }
.squad__result:empty { display: none; }
.spotlight__open { background: none; border: 0; padding: 0; cursor: pointer; color: var(--gold-hi); }
.spotlight--squad { margin: 0 0 clamp(48px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-d); }

/* =====================================================================
   PLAYER PROFILE FORM (/player-profile/)
   Form on the left in three steps, a live preview card pinned on the right.
   ===================================================================== */
.bio-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-hi); }
.bio-hero__meta span::before { content: "— "; color: var(--mute-d); }
.bio-section { padding-top: clamp(40px, 6vw, 80px); }
.bio-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.bio-form { display: grid; gap: clamp(40px, 5vw, 64px); position: relative; }
.bio-progress { position: sticky; top: calc(var(--header-h) + 6px); z-index: 5; height: 3px; background: var(--line-d); margin-bottom: -24px; }
.bio-progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform 0.7s var(--ease-swing); }
.bio-step { border: 0; margin: 0; padding: 0; display: grid; gap: 28px; }
.bio-step > legend {
  display: flex; align-items: baseline; gap: 16px; padding: 0; margin-bottom: 28px;
  font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 46px); line-height: 1;
}
.bio-step__no {
  display: inline-grid; place-items: center; width: 1.15em; height: 1.3em; font-size: 0.8em;
  background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 var(--gold-lo);
}
.bio-row { display: grid; grid-template-columns: 1fr 1fr 150px; gap: 24px; }
.field--group { border: 0; padding: 0; margin: 0; }
.field--group legend, .field__label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-d); padding: 0; margin-bottom: 8px; }
.field__hint { font-size: 14px; color: var(--mute-d); margin: 0; max-width: 60ch; }
.field select {
  appearance: none; background: transparent; color: inherit; font: inherit; font-size: 19px;
  border: 0; border-bottom: 1px solid rgba(246, 244, 239, 0.35); border-radius: 0; padding: 10px 28px 10px 0; width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-hi) 50%), linear-gradient(135deg, var(--gold-hi) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:focus { outline: none; border-bottom-color: var(--gold-hi); }
.field select option, .field select optgroup { background: var(--ink); color: var(--white); }
.field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #e0574f; }
.field input, .field textarea, .field select { color: var(--white); }

/* character counter: a thin bar that fills, turning gold once the bio is long enough */
.bio-count { display: flex; align-items: center; gap: 12px; }
.bio-count__bar { flex: 1; height: 2px; background: var(--line-d); overflow: hidden; }
.bio-count__bar i { display: block; height: 100%; background: var(--mute-d); transform-origin: left; transform: scaleX(0); transition: transform 0.3s var(--ease), background 0.3s; }
.bio-count.is-short .bio-count__bar i { background: #e0574f; }
.bio-count.is-ok .bio-count__bar i { background: var(--gold); }
.bio-count.is-near .bio-count__n { color: var(--gold-hi); }
.bio-count__n { font-family: var(--f-mono); font-size: 12px; color: var(--mute-d); min-width: 70px; text-align: right; }

/* photo drop zone */
.drop { display: grid; gap: 10px; }
.drop__zone {
  display: grid; place-items: center; min-height: 170px; padding: 20px; cursor: pointer; text-align: center;
  border: 1px dashed rgba(246, 244, 239, 0.35); position: relative; overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.drop__zone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(214, 181, 107, 0.16) 50%, transparent 70%); transform: translateX(-100%); }
.drop__zone:hover::after, .drop.is-over .drop__zone::after { animation: sheen 1.1s var(--ease); }
@keyframes sheen { to { transform: translateX(100%); } }
.drop__zone:hover, .drop.is-over .drop__zone { border-color: var(--gold); background: rgba(184, 146, 63, 0.06); }
.drop__text { display: grid; gap: 6px; font-size: 17px; }
.drop__text b { color: var(--gold-hi); }
.drop__text small { font-size: 13px; color: var(--mute-d); }
.drop__zone img { max-height: 260px; width: auto; object-fit: cover; }
.drop.has-photo .drop__zone { border-style: solid; border-color: var(--gold); }
.drop input:focus-visible + .drop__zone { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.drop__clear { justify-self: start; background: none; border: 1px solid var(--line-d); color: var(--white); padding: 8px 12px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.drop__clear:hover { border-color: var(--gold); color: var(--gold-hi); }

.bio-send { display: grid; gap: 18px; padding-top: 32px; border-top: 1px solid var(--line-d); }
.bio-send__note { font-size: 14px; color: var(--mute-d); margin: 0; }
.bio-send__note a { color: var(--gold-hi); }
.bio-send__btn { justify-self: start; position: relative; overflow: hidden; font-size: 15px; padding: 20px 34px 19px; }
.bio-send__btn:disabled { opacity: 0.7; cursor: progress; }
.is-ready .bio-send__btn { animation: ready-pulse 2.2s var(--ease) infinite; }
@keyframes ready-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 181, 107, 0.55); } 60% { box-shadow: 0 0 0 16px rgba(214, 181, 107, 0); } }
.is-sending .bio-send__btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: var(--ink); animation: sending 1s linear infinite; }
@keyframes sending { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.bio-form.is-shake { animation: shake 0.45s; }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }

/* live preview */
.bio-preview__sticky { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 24px; }
.bio-preview__label { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); }
.bio-preview__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(180, 35, 28, 0.6); animation: live-dot 1.6s infinite; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 10px rgba(180, 35, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 35, 28, 0); } }
.bio-card {
  background: var(--ink-2); border-top: 4px solid var(--gold); padding: 24px; display: grid; gap: 20px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); transform-style: preserve-3d; transition: transform 0.5s var(--ease);
}
.bio-card__img { aspect-ratio: 4 / 5; max-width: 220px; margin: 0; background: var(--ink-3); display: grid; place-items: center; overflow: hidden; position: relative; }
.bio-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: photo-in 0.8s var(--ease) both; }
@keyframes photo-in { from { clip-path: inset(100% 0 0 0); transform: scale(1.2); } to { clip-path: inset(0); transform: none; } }
.bio-card__kicker { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); margin: 0; }
.bio-card__name { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 52px); line-height: 0.9; margin: 8px 0 6px; overflow-wrap: anywhere; }
.bio-card.is-swap .bio-card__name { animation: name-swap 0.7s var(--ease) both; }
@keyframes name-swap { from { opacity: 0; transform: translateY(40%) skewY(6deg); filter: blur(6px); } }
.bio-card__nick { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--gold-hi); margin: 0 0 6px; }
.bio-card__bio { font-family: var(--f-serif); font-size: 18px; line-height: 1.5; margin: 14px 0 0; overflow-wrap: anywhere; }
.bio-card__bio.is-empty { color: var(--mute-d); font-style: italic; }
.bio-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bio-checklist li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute-d); transition: color 0.3s; }
.bio-checklist li::before { content: ""; width: 16px; height: 16px; border: 1px solid var(--line-d); flex: none; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-swing); }
.bio-checklist li.is-done { color: var(--white); }
.bio-checklist li.is-done::before { background: var(--gold); border-color: var(--gold); transform: rotate(45deg) scale(0.7); }
.bio-preview.is-sent .bio-card { animation: card-sent 1.1s var(--ease) both; }
@keyframes card-sent { 40% { transform: translateY(-10px) rotate(-2deg); } 100% { transform: none; box-shadow: 0 0 0 2px var(--gold), 0 40px 80px -40px rgba(0, 0, 0, 0.9); } }
.bio-preview.is-sent .bio-checklist { display: none; }

/* sent */
.bio-done { grid-column: 1; align-self: center; display: grid; gap: 22px; outline: none; }
.bio-done[hidden] { display: none; }
.bio-done__title { color: var(--pitch-hi); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(56px, 8vw, 120px); line-height: 0.88; margin: 0; animation: name-swap 0.9s var(--ease) 0.5s both; }
.is-done .bio-layout, .bio-layout.is-done { align-items: center; }

@media (max-width: 960px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-preview { order: -1; }
  .bio-preview__sticky { position: static; }
  .bio-card { grid-template-columns: 110px 1fr; align-items: start; padding: 18px; gap: 16px; }
  .bio-card__img { max-width: none; }
  .bio-card__name { font-size: 32px; }
  .bio-card__bio { font-size: 16px; }
  .bio-card .profile__facts { display: none; }
  .bio-checklist { grid-template-columns: 1fr 1fr; }
  .bio-done { grid-row: 1; }
}
@media (max-width: 640px) {
  .bio-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .is-ready .bio-send__btn, .bio-preview__dot, .bio-form.is-shake, .bio-card.is-swap .bio-card__name, .bio-card__img img, .bio-done__title, .bio-preview.is-sent .bio-card { animation: none; }
}

/* =====================================================================
   MOTION, TURNED UP
   Only for visitors who haven't asked for reduced motion.
   ===================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--gold); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* home ticker */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); position: relative; z-index: 2; }
.ticker[hidden] { display: none; }
.tk__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
.tk__track li { display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 16px 28px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; }
.tk__track li::after { content: ""; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); margin-left: 28px; }
.tk__tag { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: 0.12em; padding: 4px 7px; background: var(--ink); color: var(--gold-hi); }
.tk__tag--lost { background: var(--red); color: var(--white); }
.tk__tag--won { background: var(--white); color: var(--ink); }
.tk__motto { font-family: var(--f-serif); font-style: italic; text-transform: none !important; font-weight: 400 !important; font-size: 19px !important; }
.ticker.is-still { overflow-x: auto; }

@media (prefers-reduced-motion: no-preference) {
  /* headlines: each line rises from its mask with a skew that settles */
  [data-split] .line > span { transform: translateY(115%) skewY(9deg); transform-origin: 0 100%; transition: transform 1.25s var(--ease); transition-delay: calc(var(--l) * 110ms + 60ms); }
  [data-split].is-in .line > span { transform: none; }

  /* content rises further, and comes in a touch smaller */
  .js .reveal { transform: translateY(70px) scale(0.97); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
  .reveal.is-in { transform: none; }

  /* photographs wipe up into view and settle from a zoom */
  .js .reveal .ph { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease) calc(var(--d, 0ms) + 100ms); }
  .reveal.is-in .ph { clip-path: inset(0); }
  .reveal .ph img { scale: 1.22; transition: scale 1.8s var(--ease) calc(var(--d, 0ms) + 100ms); }
  .reveal.is-in .ph img { scale: 1; }

  /* section labels: the gold rule draws itself across */
  .section-head__label { border-top-color: transparent; background: linear-gradient(var(--gold), var(--gold)) left top / 0% 2px no-repeat; transition: background-size 1.1s var(--ease) 0.15s; }
  .section-head__label.is-in { background-size: 100% 2px; }
  .play .section-head__label { background-image: linear-gradient(var(--ink), var(--ink)); }

  /* hover tilt on cards, magnetic buttons */
  .player__open, .album__link, .spotlight__img, .poster__img { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease); }
  .is-tilting { transition-duration: 0.12s !important; }
  .bio-card.is-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .btn { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--ease-swing); }

  /* buttons: a gold sweep on hover */
  .btn--gold, .btn--ink { position: relative; overflow: hidden; isolation: isolate; }
  .btn--gold::after, .btn--ink::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-110%); }
  .btn--gold:hover::after, .btn--ink:hover::after { transform: translateX(110%); transition: transform 0.8s var(--ease); }
}

/* =====================================================================
   SCROLL SCENES
   .scene is tall; .scene__stage pins while you scroll through it.
   --p runs 0→1 (set by initScenes). Each piece takes its own window of the
   scroll:  --x: clamp(0, (var(--p) - start) / length, 1).
   Without .is-scene (reduced motion, narrow screens) everything sits at its
   finished state.
   ===================================================================== */
.scene { --p: 1; position: relative; }
.scene.is-scene { height: var(--scene-h, 260vh); }
.scene.is-scene > .scene__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---- 1. Opening: off the hero and into the gold ---- */
.scene--hero { --scene-h: 170vh; }
.scene--hero.is-scene .hero { min-height: 0; height: 100%; }
/* Tiger claw: four marks rake across (top right to bottom left, slightly staggered
   like a paw strike), tear open, flood the screen gold, then the gold clears
   upward into the ticker. Off the scene (phones, reduced motion) it never shows. */
.hero__curtain { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: none; }
.scene--hero.is-scene .hero__curtain { display: block; clip-path: inset(0 0 calc(var(--clear) * 100%) 0); }
.claw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.claw__cut { fill: var(--gold); }
.claw__gouge { fill: var(--ink); opacity: calc(0.85 - var(--open, 0) * 1.4); }  /* the dark cut edge fades as the marks tear open */
.claw__flood { fill: var(--gold); opacity: var(--flood); }
.claw__mark { transform-box: fill-box; transform-origin: center; }
.scene--hero.is-scene .claw__mark { scale: 1 calc(1 + var(--open) * 7); }
.scene--hero.is-scene .claw__mark--1 { clip-path: inset(0 0 0 calc((1 - var(--c1)) * 100%)); }
.scene--hero.is-scene .claw__mark--2 { clip-path: inset(0 0 0 calc((1 - var(--c2)) * 100%)); }
.scene--hero.is-scene .claw__mark--3 { clip-path: inset(0 0 0 calc((1 - var(--c3)) * 100%)); }
.scene--hero.is-scene .claw__mark--4 { clip-path: inset(0 0 0 calc((1 - var(--c4)) * 100%)); }
.scene--hero.is-scene {
  --lift: clamp(0, var(--p) / 0.55, 1);
  --c1: clamp(0, (var(--p) - 0.30) / 0.12, 1);    /* each claw rakes across */
  --c2: clamp(0, (var(--p) - 0.32) / 0.12, 1);
  --c3: clamp(0, (var(--p) - 0.34) / 0.12, 1);
  --c4: clamp(0, (var(--p) - 0.36) / 0.12, 1);
  --open: clamp(0, (var(--p) - 0.52) / 0.18, 1);  /* the marks tear open */
  --flood: clamp(0, (var(--p) - 0.60) / 0.12, 1); /* and the gold fills the screen */
  --clear: clamp(0, (var(--p) - 0.74) / 0.24, 1); /* then clears upward into the ticker */
}
.scene--hero.is-scene .hero__media { scale: calc(1 + var(--p) * 0.45); }
.scene--hero.is-scene .hero__shade { opacity: calc(1 + var(--lift) * 0.6); }
.scene--hero.is-scene .hero__name { letter-spacing: calc(-0.012em + var(--lift) * 0.32em); }
.scene--hero.is-scene .hero__lede { translate: 0 calc(var(--lift) * -26vh); opacity: calc(1 - var(--lift) * 0.9); }
.scene--hero.is-scene .hero__club { translate: calc(var(--lift) * 18vw) 0; }
.scene--hero.is-scene .hero__seventy { translate: calc(var(--lift) * -12vw) 0; opacity: calc(1 - var(--lift) * 1.6); }
.scene--hero.is-scene .next-match { opacity: calc(1 - var(--flood)); }
.scene--hero.is-scene .hero__creases { scale: calc(1 + var(--lift) * 0.8); opacity: calc(1 - var(--lift)); }
.scene--hero.is-scene .hero__rail { translate: 0 calc(var(--lift) * -40vh); }

/* ---- 2. The motto, one word at a time ---- */
/* A solid gold field: the club colour as a whole band, black type on it. */
.scene--motto { --scene-h: 160vh; background: var(--gold); color: var(--ink); }
.motto-scene {
  display: grid; place-content: center; justify-items: center; text-align: center;
  min-height: 100vh; min-height: 100svh; padding: var(--header-h) var(--gutter) 40px; background: var(--gold); color: var(--ink); position: relative;
}
.motto-scene ::selection { background: var(--ink); color: var(--gold-hi); }
.scene--motto.is-scene {
  --w1: clamp(0, (var(--p) - 0.04) / 0.2, 1);
  --w2: clamp(0, (var(--p) - 0.24) / 0.18, 1);
  --w3: clamp(0, (var(--p) - 0.42) / 0.2, 1);
  --en: clamp(0, (var(--p) - 0.64) / 0.12, 1);
  --out: clamp(0, (var(--p) - 0.86) / 0.14, 1);
}
.motto-scene__words { margin: 0; display: grid; line-height: 0.84; font-size: clamp(76px, 15.5vw, 270px); }
.mw { display: block; }
.mw--1 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; color: var(--ink); }
.mw--2 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 0.62em; color: var(--ink); line-height: 1.05; }
.mw--3 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; color: var(--ink); -webkit-text-stroke: 2px var(--ink); }
.motto-scene__en { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.6vw, 40px); margin: 32px 0 8px; }
.motto-scene__line { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(12, 11, 9, 0.8); margin: 0; }
.motto-scene__rule { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(1); opacity: 0.22; }
.scene--motto.is-scene .mw--1 { translate: calc((1 - var(--w1)) * -110vw) 0; transform: skewX(calc((1 - var(--w1)) * 18deg)); }
.scene--motto.is-scene .mw--2 { scale: calc(4 - var(--w2) * 3); opacity: var(--w2); filter: blur(calc((1 - var(--w2)) * 14px)); }
.scene--motto.is-scene .mw--3 { translate: calc((1 - var(--w3)) * 110vw) 0; transform: skewX(calc((1 - var(--w3)) * -18deg)); }
/* "verba." arrives as an outline and fills in black as the English lands */
.scene--motto.is-scene .mw--3 { -webkit-text-stroke-color: var(--ink); color: rgba(12, 11, 9, calc(var(--en))); }
.scene--motto.is-scene .motto-scene__en { opacity: var(--en); translate: 0 calc((1 - var(--en)) * 40px); }
.scene--motto.is-scene .motto-scene__line { opacity: var(--en); }
.scene--motto.is-scene .motto-scene__rule { transform: scaleX(var(--p)); }
.scene--motto.is-scene .motto-scene__words, .scene--motto.is-scene .motto-scene__en, .scene--motto.is-scene .motto-scene__line { scale: calc(1 - var(--out) * 0.12); opacity: calc(1 - var(--out) * 0.85); }
.scene--motto.is-scene .motto-scene__en { opacity: calc(var(--en) - var(--out) * 0.85); }
.scene--motto.is-scene .motto-scene__line { opacity: calc(var(--en) - var(--out) * 0.85); }

/* ---- 3. Seventy seasons, run by scrolling ---- */
.scene--seasons { --scene-h: 200vh; }
.scene--seasons.is-scene > .scene__stage { display: grid; align-content: center; padding-top: var(--header-h); }
.scene--seasons.is-scene .section-head { margin-bottom: clamp(24px, 4vh, 48px); }
.scene--seasons.is-scene .history__years { font-size: clamp(56px, 10vw, 160px); }
.scene--seasons.is-scene .seasons { margin-bottom: 0; }
.scene--seasons.is-scene .seasons__ticks { height: clamp(120px, 26vh, 260px); cursor: default; }
.scene--seasons.is-scene .tick { transform: scaleY(0.35); transition: background 0.25s, transform 0.5s var(--ease-swing); transition-delay: 0s; }
.scene--seasons.is-scene .tick.is-past { transform: scaleY(1); background: var(--gold); }
.scene--seasons.is-scene .tick--decade.is-past { background: var(--gold-hi); }
.scene--seasons.is-scene .tick.is-active { transform: scaleY(1.25); background: var(--white); }
.scene--seasons.is-scene .seasons__year { font-size: clamp(72px, 11vw, 170px); min-width: 4.6ch; }
.scene--seasons.is-scene .seasons__note { font-size: clamp(20px, 2vw, 30px); transition: color 0.3s; }
.scene--seasons .seasons.is-milestone .seasons__note { color: var(--white); }
.seasons__year.is-flip { animation: year-flip 0.35s var(--ease); }
@keyframes year-flip { from { opacity: 0.2; translate: 0 18%; } }
.seasons__bar { height: 3px; background: var(--line-d); margin-top: 18px; display: none; }
.scene--seasons.is-scene .seasons__bar { display: block; }
.seasons__bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.tick--milestone { position: relative; }
.tick--milestone::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 8px); width: 9px; height: 9px; margin-left: -4.5px; background: var(--gold); transform: rotate(45deg); }

@media (max-width: 640px) {
  .motto-scene__words { font-size: 23vw; }
  .mw--3 { -webkit-text-stroke-width: 1.5px; }
}

/* ---------- Touch: controls at least 44px where a finger is the pointer ---------- */
@media (pointer: coarse) {
  .alpha__btn { min-width: 44px; height: 44px; }
  .filter, .sb-switch__btn { min-height: 44px; }
  .brand { min-height: 44px; }
}

/* Live scoreboard showing a finished match: hide the in-play rows */
.is-final [data-sb-batter], .is-final [data-sb-bowler], .is-final .sb-over,
.is-final .sb-facts > div:has([data-sb="pship"]), .is-final .sb-facts > div:has([data-sb="lastw"]) { display: none; }

/* Home fixtures: the next match is the hero card; the weeks after it sit in two columns */
.fixture-list--home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 0; margin-bottom: 56px; }
.fixture-list--home .fixture-row:nth-child(-n+2) { border-top: 2px solid var(--ink); }
.fixture-list--home .empty { grid-column: 1 / -1; border-top: 2px solid var(--ink); padding: 18px 0; }
@media (max-width: 760px) {
  .fixture-list--home { grid-template-columns: 1fr; }
  .fixture-list--home .fixture-row:nth-child(2) { border-top: 0; }
}

/* ---------- Menu: four groups, with joining and registering pinned at the top ---------- */
.menu__nav { display: grid; gap: clamp(28px, 4vh, 44px); align-content: start; }
.menu__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.menu__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vh, 44px) clamp(28px, 4vw, 64px); }
.menu__label {
  font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-hi); border-top: 2px solid var(--gold); padding-top: 10px; margin-bottom: 4px;
}
.menu__arrow { font-family: var(--f-mono); font-size: 0.42em; font-weight: 400; color: var(--gold); align-self: center; }
.menu__list a[aria-current="page"]::after { white-space: nowrap; }
@media (max-width: 560px) {
  .menu__groups { gap: 26px 18px; }
  .menu__list a { font-size: 25px; padding: 4px 0; }
  .menu__list a[aria-current="page"]::after { content: none; }
  .menu__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 330px) { .menu__groups { grid-template-columns: 1fr; } }

/* Home on phones: fewer cards per section; the full lists are one tap away */
@media (max-width: 760px) {
  body[data-page="home"] .news__grid > :nth-child(n+4) { display: none; }
  body[data-page="home"] [data-results-strip] > :nth-child(n+3) { display: none; }
}

/* =====================================================================
   FIRST BALL — home scroll scene (js/modules/kickoff.js)
   The next match card hangs at the minute before the start; scrolling
   runs the minute out, flips the plates, cuts the card and parts it
   onto the photograph. Defaults are the opened end state (static).
   ===================================================================== */
.scene--kickoff { --scene-h: 150vh; --ko-min: 1; --ko-cut: 1; --ko-open: 1; --ko-rise: 1; --ko-meta: 1; background: var(--ink); color: var(--white); }
.kickoff { position: relative; min-height: 86vh; min-height: 86svh; overflow: hidden; background: var(--ink); isolation: isolate; }
.kickoff__photo { position: absolute; inset: 0; margin: 0; z-index: 0; }
.kickoff__photo img { object-position: 50% 30%; }
.scene--kickoff.is-scene .kickoff__photo { scale: calc(1.18 - var(--ko-open) * 0.18); }
.kickoff__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 11, 9, 0.2) 0%, rgba(12, 11, 9, 0) 35%, rgba(12, 11, 9, 0.88) 100%); }

/* the opened state */
.kickoff__end { position: absolute; left: 0; right: 0; bottom: clamp(36px, 7vh, 80px); z-index: 2; }
.kickoff__when { margin: 0 0 18px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); }
.kickoff__when .tag { margin-right: 10px; }
.kickoff__n { white-space: nowrap; }
.kickoff__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; font-size: clamp(15px, 1.3vw, 18px); color: var(--whites); }
.kickoff__list li { display: grid; grid-template-columns: 3.4em 1fr; column-gap: 12px; }
.kickoff__lt { font-family: var(--f-mono); color: var(--gold-hi); }
.kickoff__lv { display: inline-block; color: rgba(236, 232, 222, 0.7); }
.kickoff__title { margin: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.18em 0.28em; font-weight: 900; font-stretch: 62%; font-size: clamp(64px, 12vw, 200px); line-height: 0.84; text-transform: uppercase; }
.kickoff__final { font-size: 0.5em; margin-bottom: 0.08em; }
.kickoff__words { display: block; overflow: hidden; padding-top: 0.04em; }
.kickoff__words > span { display: block; }
.scene--kickoff.is-scene .kickoff__words > span { translate: 0 calc((1 - var(--ko-rise)) * 105%); }
.scene--kickoff.is-scene .kickoff__final { opacity: var(--ko-rise); translate: 0 calc((1 - var(--ko-rise)) * 30px); }
.scene--kickoff.is-scene .kickoff__when, .scene--kickoff.is-scene .kickoff__list { opacity: var(--ko-meta); translate: 0 calc((1 - var(--ko-meta)) * 16px); }

/* the card: one face shown twice, each copy clipped to its half */
.kickoff__card { display: none; position: absolute; inset: 0; z-index: 3; perspective: 1400px; pointer-events: none; }
.scene--kickoff.is-scene .kickoff__card { display: block; }
.kickoff__half { position: absolute; inset: 0; }
.kickoff__half--top { clip-path: inset(0 0 50% 0); transform-origin: 50% 50%; transform: translateY(calc(var(--ko-open) * -54%)) rotateX(calc(var(--ko-open) * 32deg)); }
.kickoff__half--bot { clip-path: inset(50% 0 0 0); transform-origin: 50% 50%; transform: translateY(calc(var(--ko-open) * 54%)) rotateX(calc(var(--ko-open) * -32deg)); }
.kickoff__face { position: absolute; inset: 0; display: grid; align-content: center; padding-top: var(--header-h); background: var(--ink); }
.kickoff__half--top .kickoff__face { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
.kickoff__eyebrow { margin: 0 0 14px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }
.kickoff__day { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.3em; font-weight: 900; font-stretch: 62%; font-size: clamp(64px, 11vw, 190px); line-height: 0.84; text-transform: uppercase; color: var(--white); }
.kickoff__day span { font-size: 0.42em; color: var(--gold-hi); }
/* the day's board: one row per match, hung in turn */
.kickoff__board { list-style: none; margin: clamp(20px, 3.5vh, 40px) 0 0; padding: 0; max-width: 980px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.kickoff__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 2vw, 28px); padding: clamp(8px, 1.3vh, 14px) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.kickoff__t { font-size: clamp(30px, min(3.6vw, calc(30vh / var(--rows, 4))), 52px); min-width: calc(3.3em); }
.kickoff__t .plate:nth-child(n+4):not(.plate--blank) { background: var(--gold); color: var(--ink); }
.kickoff__t .plate:nth-child(n+4):not(.plate--blank)::before { background: rgba(0, 0, 0, 0.55); }
.kickoff__m { font-weight: 800; font-stretch: 70%; font-size: clamp(20px, min(2.6vw, calc(24vh / var(--rows, 4))), 38px); line-height: 1; text-transform: uppercase; color: var(--white); }
.kickoff__m b { color: var(--gold-hi); font-weight: 800; }
.kickoff__ha { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-d); border: 1px solid currentColor; padding: 4px 8px; }
.kickoff__ha.is-home { color: var(--pitch-hi); }
.kickoff__dh { padding: clamp(10px, 1.6vh, 16px) 0 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.kickoff__list .kickoff__lh { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); }
.kickoff__list .kickoff__lh:first-child { margin-top: 0; }
.kickoff__more { margin: 12px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-d); }
.scene--kickoff.is-scene .kickoff__row .kickoff__m, .scene--kickoff.is-scene .kickoff__row .kickoff__ha { opacity: 0; translate: -18px 0; transition: opacity 0.35s, translate 0.5s var(--ease-swing); }
.scene--kickoff.is-scene .kickoff__row.is-on .kickoff__m, .scene--kickoff.is-scene .kickoff__row.is-on .kickoff__ha { opacity: 1; translate: 0 0; }
.kickoff__row .plate--blank { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
/* the gold cut across the middle, drawn just before the card parts */
.kickoff__cut { display: none; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; z-index: 4; background: var(--gold-hi); transform-origin: left; }
.scene--kickoff.is-scene .kickoff__cut { display: block; transform: scaleX(var(--ko-cut)); opacity: calc(1 - var(--ko-open) * 1.6); }
.scene--kickoff.is-scene > .scene__stage { min-height: 0; }
@media (max-width: 760px) {
  .scene--kickoff { --scene-h: 140vh; }
  .kickoff__title { font-size: clamp(56px, 17vw, 96px); }
  .kickoff__row { grid-template-columns: auto 1fr; }
  .kickoff__ha { display: none; }
  .kickoff__m { font-size: clamp(17px, 5vw, 24px); }
  .kickoff__t { font-size: clamp(26px, 8vw, 40px); }
}

/* =====================================================================
   MATCH-DAY STATE, LIVE UP TOP, AND THE CRITIQUE FIXES (2026-12-05)
   ===================================================================== */
/* Hero card: "In play today" and the live score line */
.next-match.is-inplay #next-match-label { color: var(--gold-hi); }
.next-match__state, .next-match__live { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-d); font-size: 15px; line-height: 1.45; }
.next-match__state[hidden], .next-match__live[hidden] { display: none; }
.next-match__state a, .next-match__live a { color: var(--gold-hi); text-underline-offset: 4px; }
.next-match__then { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-d); }
.next-match__live { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; }
.next-match__live b { grid-column: 2; font-weight: 900; font-stretch: 70%; font-size: 34px; line-height: 1; }
.next-match__live b small { font-family: var(--f-mono); font-weight: 400; font-size: 13px; color: var(--mute-d); }
.next-match__live a { grid-column: 3; grid-row: 1 / 3; align-self: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
body.is-live .next-match__state, body.is-live .next-match__count { display: none; }
/* while a match is live the scoreboard sits under the ticker; the board steps aside */
body.is-live .scene--kickoff { display: none; }

/* Board: started rows, readable end list as links */
.kickoff__st { display: inline-block; margin-left: 0.6em; font-family: var(--f-mono); font-style: normal; font-weight: 400; font-size: 12px; letter-spacing: 0.14em; color: var(--pitch-hi); vertical-align: middle; }
.kickoff__row.is-started .kickoff__t .plate:not(.plate--blank) { opacity: 0.55; }
.kickoff__list a { color: inherit; text-decoration: none; }
.kickoff__list a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Ticker: Pause / Play */
.tk__pause {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
  min-width: 72px; padding: 0 16px; border: 0; border-left: 1px solid var(--ink);
  background: var(--ink); color: var(--gold-hi); cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.tk__pause:hover { color: var(--white); }
.tk__pause:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; box-shadow: inset 0 0 0 3px var(--gold-hi); }

/* Phone/tablet header: one tap to fixtures and live, with a live dot */
.quick-nav { display: none; gap: 4px; margin-left: auto; }
.quick-nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--white);
}
.quick-nav a[aria-current="page"] { color: var(--gold-hi); }
.quick-nav__dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
body.is-live .quick-nav__dot { display: inline-block; }
@media (max-width: 1180px) { .quick-nav { display: flex; } .quick-nav + .header-cta { margin-left: 8px; } }
@media (max-width: 480px) {
  .quick-nav { gap: 0; }
  .quick-nav a { padding: 0 7px; letter-spacing: 0.08em; }
  /* the bars alone; the word stays as the button's name for screen readers */
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 0 12px; }
  .site-header__inner { gap: 6px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 18px; letter-spacing: 0.02em; }
}

/* Compact section heads for the data sections: the heading alone, smaller */
.section-head--compact { grid-template-columns: 1fr; grid-template-areas: "title" "note"; row-gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--compact .section-head__title { font-size: clamp(44px, 6vw, 92px); }

/* Spotlight bio: the player's own words at reading size */
.spotlight__bio { margin: 20px 0 6px; padding-left: 16px; border-left: 2px solid var(--gold); font-family: var(--f-serif); font-size: 18px; line-height: 1.55; max-width: 58ch; }
.spotlight__src { margin: 0 0 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--mute-d); }

/* Focus on the cricket-whites sections: a dark ring, not gold on cream */
.fixtures :focus-visible, .news :focus-visible, .events :focus-visible, .social :focus-visible, .light :focus-visible, .fx-page :focus-visible { outline-color: var(--ink); }

/* Footer: "to be added" readable on gold (8.6:1) */
.footer__social .tbc, .footer__contact .tbc { color: rgba(12, 11, 9, 0.85); }

/* Touch: 44px targets for the small text links */
@media (pointer: coarse) {
  .link-arrow, .scorecard__link, .site-footer nav a, .footer__social a, .footer__sponsors li a, .footer__more { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer nav a, .footer__social a { line-height: 1.3; }
  /* the path above page titles, email links, team jumps, the match-day list, choice chips, buttons */
  .crumbs a, .contact-details dd a[href], .footer__contact dd a[href], .team-jump a { display: inline-flex; align-items: center; min-height: 44px; }
  .team-jump a { border-bottom: 0; text-decoration: underline 2px var(--gold); text-underline-offset: 6px; }
  .footer__contact dl > div { align-items: center; }
  .footer__contact dt { padding-top: 0; }
  .kickoff__list a { display: block; padding-block: 10px; }
  .kickoff__list li { align-items: center; }
  .chips span { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .btn { min-height: 44px; }
}

/* Phones: small informative labels no smaller than 12px */
@media (max-width: 760px) {
  :root { --fs-label: 12px; }
  .next-match__count small, .next-match__meta dt, .fixture-row__ha, .fixture-lead__meta dt, .player__role, .scorecard__link, .tk__tag, .intro__skip { font-size: 12px; }
  .scene--motto:not(.is-scene) .motto-scene { min-height: 0; padding-block: 96px; }
}

/* Headings balance, paragraphs avoid orphans */
h1, h2, h3, .section-head__title { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }

/* Fixture rows lead with our side: "2nd XI v Opponent" */
.fixture-row__opp b { font-weight: 800; color: var(--gold-lo); }
.live-idle__list .fixture-row__opp b { color: var(--gold-hi); }
.fixture-row__opp em { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; font-size: 0.9em; }
.next-match__live { margin-top: 14px; }
body.is-live .next-match.has-next .next-match__teams::before { content: "Next start"; display: block; flex-basis: 100%; margin-bottom: 6px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-d); }
@media (max-width: 760px) { .kickoff__st { display: block; margin: 6px 0 0; } }

/* Form hint text on black: the browser's grey is 4.3:1, this is 6.9:1 */
.bio-form ::placeholder, .join-form ::placeholder { color: var(--mute-d); opacity: 1; }

/* =====================================================================
   INNER PAGE HEROES WITH A PHOTOGRAPH
   Three kinds of page opening, so the pages don't all start alike:
   - the plain title (history, committee, gallery, teams, youth, forms, policy)
   - .page-hero--photo: a club match photograph behind the title, fading
     into black at the foot (about, fixtures, events)
   - .page-hero--split: title on the left, a photograph beside it
     (contact, sponsors)
   Photos are the club's own senior match photographs (PHOTOS in config.js).
   ===================================================================== */
.page-hero--photo { min-height: min(86vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero--photo > .wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); }
.page-hero__media { position: absolute; inset: 0; z-index: 0; margin: 0;
  /* the photo fades out where the text sits, so small labels keep their contrast */
  --fade: linear-gradient(to top, rgba(0, 0, 0, 0.14) 0, rgba(0, 0, 0, 0.22) 50%, #000 88%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade); }
@media (max-width: 960px) {
  .page-hero__media { --fade: linear-gradient(to top, rgba(0, 0, 0, 0.14) 0, rgba(0, 0, 0, 0.2) 62%, #000 100%); }
}
.page-hero__media img { animation: hero-drift 18s var(--ease) both; }
.page-hero__media::after { opacity: 0.5; }
.page-hero--photo .page-intro { color: var(--white); text-shadow: 0 1px 18px rgba(12, 11, 9, 0.7); }
.page-hero--photo .crumbs { color: rgba(246, 244, 239, 0.8); }
.page-hero--photo :is(.crumbs, small, p) { text-shadow: 0 0 2px rgba(12, 11, 9, 0.9), 0 1px 14px rgba(12, 11, 9, 0.85); }

.page-hero--split .page-hero__grid { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.page-hero__text { display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero__photo { margin: 0; min-height: clamp(300px, 34vw, 480px); }
.page-hero__photo img { position: absolute; inset: 0; }  /* any photo, tall or wide, fills the frame without resizing it */
.page-hero--split .page-intro { margin-top: 28px; }

@media (max-width: 960px) {
  .page-hero--photo { min-height: 78svh; }
  .page-hero--split .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__photo { min-height: 0; aspect-ratio: 16 / 10; }
}