/* Stokenchurch CC site styles (2027 redesign).
   Heritage header + blue panel (concept A) over a matchday scoreboard section (concept B). */
:root {
  --oxford: #002147;
  --oxford-2: #0b1d36;
  --night: #07162b;
  --cambridge: #8fb8de;
  --cerise: #de3163;
  --cerise-ink: #b81f52;
  --cerise-soft: #f27a9c;
  --ink: #0f2233;
  --muted: #4a6175;
  --line: #d9e2ec;
  --paper: #ffffff;
  --mist: #f4f7fa;
  --board: #0d0f12;
  --board-line: #2a3340;
  --digits: #ffd84a;
  --win: #1f8a4c;
  --loss: #c2264f;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--oxford); }
a:hover { color: var(--cerise-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--cerise); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.club-stripe { height: 8px; display: grid; grid-template-columns: 3fr 1fr 3fr 1fr 3fr; }
.club-stripe span:nth-child(1), .club-stripe span:nth-child(5) { background: var(--oxford); }
.club-stripe span:nth-child(2), .club-stripe span:nth-child(4) { background: var(--cerise); }
.club-stripe span:nth-child(3) { background: var(--cambridge); }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--oxford); }
.brand-crest { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; background: var(--paper); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 26px; }
.brand-sub { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.main-sponsor { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); }
.main-sponsor span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-align: right; line-height: 1.2; }
.main-sponsor img { height: 52px; width: auto; display: block; }

.nav-row { border-top: 1px solid #eef2f6; }
.nav-toggle { display: none; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-block: 6px; font-weight: 600; font-size: 16px; }
.main-nav > a, .main-nav summary { display: block; padding: 8px 10px; text-decoration: none; color: var(--oxford); cursor: pointer; border-radius: 3px; }
.main-nav summary { list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav summary::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.main-nav > a:hover, .main-nav summary:hover, .main-nav details[open] > summary { background: var(--mist); color: var(--cerise-ink); }
.main-nav details { position: relative; }
.main-nav details ul { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: calc(100% + 4px); min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 33, 71, .12); }
.main-nav details li a { display: block; padding: 8px 16px; text-decoration: none; font-weight: 400; }
.main-nav details li a:hover { background: var(--mist); }
.main-nav .nav-login { margin-left: auto; color: var(--cerise-ink); }

@media (max-width: 760px) {
  .brand-name { font-size: 21px; }
  .main-sponsor img { height: 40px; }
  .nav-toggle { display: flex; align-items: center; gap: 8px; margin-block: 8px; background: var(--oxford); color: #fff; border: 0; border-radius: 3px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
  .main-nav { display: none; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .main-nav.is-open { display: flex; }
  .main-nav details ul { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--cambridge); border-radius: 0; margin-left: 10px; }
  .main-nav .nav-login { margin-left: 0; }
}

/* ---------- Blue hero panel ---------- */
.hero { background: var(--oxford); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { margin: 0; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--cambridge); }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; text-wrap: balance; }
.hero h1 em { color: var(--cerise-soft); }
.hero-lede { margin: 0; max-width: 52ch; font-size: 19px; color: #d4e3f1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 2px; }
.btn-cerise { background: var(--cerise); color: #fff; }
.btn-cerise:hover { background: var(--cerise-ink); color: #fff; }
.btn-outline { border: 1.5px solid var(--cambridge); color: #fff; padding: 12.5px 22.5px; font-weight: 600; }
.btn-outline:hover { background: rgba(143, 184, 222, .15); color: #fff; }
.hero-media { flex: 1 1 380px; min-width: 0; aspect-ratio: 4 / 3; max-width: 100%; border: 6px solid #fff; background: repeating-linear-gradient(90deg, #1f6b3a 0 60px, #237841 60px 120px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .pitch { width: 18%; height: 62%; background: #c9b98a; opacity: .85; }

/* ---------- News strip ---------- */
.news-strip { background: #fff4f7; border-bottom: 1px solid #f5c6d4; }
.news-strip .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; padding-block: 14px; }
.news-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cerise-ink); }
.news-items { display: flex; flex-direction: column; gap: 2px; font-weight: 600; min-width: 0; }

/* ---------- Sponsor banner ---------- */
.sponsors { background: var(--mist); border-bottom: 1px solid var(--line); }
.sponsors .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.sponsors-intro { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sponsors-intro h2 { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sponsors-intro p { margin: 0; font-size: 15px; color: var(--muted); }
.sponsor-grid { flex: 3 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sponsor-card, .sponsor-slot, .sponsor-cta { min-height: 84px; border-radius: 6px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.sponsor-card { background: #fff; border: 1px solid var(--line); }
.sponsor-card:hover { border-color: var(--oxford); }
.sponsor-card img { max-height: 56px; width: auto; }
.sponsor-slot { border: 1.5px dashed #9db4c9; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.sponsor-cta { background: var(--cerise); color: #fff; text-decoration: none; flex-direction: column; gap: 2px; }
.sponsor-cta:hover { background: var(--cerise-ink); color: #fff; }
.sponsor-cta strong { font-weight: 700; }
.sponsor-cta span { font-size: 13px; color: #ffe3ec; }

/* ---------- Matchday (dark) ---------- */
.matchday { background: var(--night); color: #e6eef7; }
.matchday a, .stats a { color: #ff8fb0; }
.matchday a:hover, .stats a:hover { color: #fff; }
.matchday > .wrap { padding-block: 56px; display: flex; flex-direction: column; gap: 28px; }
.matchday-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.matchday-head h2 { margin: 0; font-family: var(--font-cond); font-weight: 800; font-size: clamp(44px, 6vw, 64px); line-height: .95; text-transform: uppercase; color: #fff; }
.lbl { font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--cambridge); }
.lbl-pink { color: #ff8fb0; }
.lbl-grey { color: #9aa6b4; }
.team-pills { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-cond); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.team-pills a { text-decoration: none; color: #e6eef7; border: 1px solid #2a3f5c; border-radius: 4px; padding: 9px 15px; }
.team-pills a:hover { border-color: var(--cambridge); color: #fff; }
.team-pills a[aria-current="page"] { background: var(--cambridge); color: var(--night); border-color: var(--cambridge); }

.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.board { background: var(--board); border: 1px solid var(--board-line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.board-next { background: var(--oxford); border-color: #3d5a80; }
.board-season { background: var(--oxford-2); border-color: #1a2f4d; }
.board-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.score { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; }
.score-team { font-family: var(--font-cond); font-weight: 700; font-size: 26px; text-transform: uppercase; color: #9aa6b4; overflow-wrap: anywhere; }
.score-team.us { color: #fff; }
.digits { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--digits); letter-spacing: .04em; }
.score .digits { font-size: 34px; }
.score .digits.them { color: #9aa6b4; }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--board-line); padding-top: 12px; font-size: 15px; }
.board-next .board-foot { border-top-color: #3d5a80; color: #c7d6e6; }
.result-chip { color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: #4b5563; }
.result-chip.won { background: var(--win); }
.result-chip.lost { background: var(--loss); }
.result-chip.drawn, .result-chip.tied { background: #8a6d00; }
.next-title { font-family: var(--font-cond); font-weight: 800; font-size: 38px; line-height: 1; text-transform: uppercase; color: #fff; }
.next-copy { margin: 0; color: #c7d6e6; font-size: 16px; }

.season-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.season-head .score-team { color: #fff; font-size: 24px; }
.season-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.season-figures div { display: flex; flex-direction: column; }
.season-figures .digits { font-size: 32px; }
.season-figures .lbl { font-size: 12px; }
.form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.form .lbl { font-size: 12px; margin-right: 6px; }
.form-chip { width: 30px; height: 30px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-cond); font-weight: 800; font-size: 16px; background: var(--board-line); color: #9aa6b4; }
.form-chip.won { background: var(--win); color: #fff; }
.form-chip.lost { background: var(--loss); color: #fff; }
.form-chip.drawn, .form-chip.tied { background: #8a6d00; color: #fff; }

/* ---------- Stats ---------- */
.stats { background: var(--oxford-2); color: #e6eef7; border-top: 1px solid #1a2f4d; }
.stats .wrap { padding-block: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.stats-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stats-col h2 { margin: 0; font-family: var(--font-cond); font-weight: 800; font-size: 32px; text-transform: uppercase; color: #fff; }
.leader-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.leader-row { display: flex; justify-content: space-between; gap: 8px; }
.leader-row small { color: #9aa6b4; font-size: 14px; }
.bar { height: 8px; background: #1a2a40; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; background: var(--cambridge); }
.bar.wkts span { background: #ff5c8a; }
.record-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.record-links a { text-decoration: none; color: #e6eef7; padding: 16px; gap: 4px; }
.record-links a:hover { border-color: var(--cambridge); color: #fff; }
.record-links .lbl { color: var(--digits); }
.record-links span:last-child { font-size: 14px; }

/* ---------- Events ---------- */
.events { background: var(--paper); }
.events .wrap { padding-block: 48px; display: flex; flex-direction: column; gap: 16px; }
.events h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 36px; color: var(--oxford); }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.event-list li { border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.event-when { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--cerise-ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--oxford); color: #d4e3f1; border-top: 3px solid var(--cerise); }
.site-footer .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; font-size: 15px; }
.site-footer .footer-name { font-family: var(--font-display); font-size: 22px; color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cerise-soft); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Inner page header band ---------- */
.page-head { background: var(--oxford); color: #fff; }
.page-head .wrap { padding-block: 40px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 420px; }
.page-head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #d4e3f1; font-size: 16px; }
.page-head .meta a { color: #fff; }
.page-head .meta a:hover { color: var(--cerise-soft); }
.tally { display: flex; gap: 8px; flex-wrap: wrap; }
.tally span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.tally b { font-family: var(--font-mono); font-size: 26px; font-weight: 500; color: var(--digits); line-height: 1.2; }
.tally small { font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cambridge); }
.season-form { display: flex; align-items: center; gap: 8px; color: #d4e3f1; font-size: 15px; }
.season-form select { font: inherit; padding: 6px 10px; border-radius: 3px; border: 1px solid var(--cambridge); background: #fff; color: var(--ink); }
.season-form button { font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 3px; border: 1px solid var(--cambridge); background: transparent; color: #fff; cursor: pointer; }
.js .season-form button { display: none; }

.tabs-bar { border-bottom: 1px solid var(--line); background: var(--mist); }
.tabs-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 12px; }
.tabs-bar a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 3px; border: 1px solid var(--line); background: #fff; color: var(--oxford); }
.tabs-bar a:hover { border-color: var(--oxford); }
.tabs-bar a[aria-current="page"] { background: var(--oxford); border-color: var(--oxford); color: #fff; }

/* ---------- Fixture list ---------- */
.fixtures .wrap { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 32px; }
.fx-month h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--oxford); border-bottom: 2px solid var(--oxford); padding-bottom: 6px; }
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px 190px 110px; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fx-row.is-next { background: #fff4f7; box-shadow: -16px 0 0 #fff4f7, 16px 0 0 #fff4f7; }
.fx-date { font-variant-numeric: tabular-nums; color: var(--muted); }
.fx-oppo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.fx-oppo strong { font-weight: 600; }
.fx-venue { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--oxford); color: var(--oxford); }
.fx-venue.home { background: var(--oxford); color: #fff; }
.fx-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: var(--cerise); color: #fff; }
.fx-tag.cup { background: #8a6d00; }
.fx-weather { width: 100%; font-size: 13px; color: var(--muted); }
.fx-score { font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.fx-score b { font-weight: 500; color: var(--oxford); }
.fx-score span { color: var(--muted); }
.fx-result { font-weight: 700; font-size: 15px; }
.fx-result.won { color: var(--win); }
.fx-result.lost { color: var(--loss); }
.fx-result.drawn, .fx-result.tied { color: #8a6d00; }
.fx-result.off, .fx-result.pending { color: var(--muted); font-weight: 600; }
.fx-action { text-align: right; font-weight: 600; font-size: 15px; }
.fx-head { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.empty-state { border: 1.5px dashed #9db4c9; border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.empty-state h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--oxford); }
.empty-state p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .fx-head { display: none; }
  .fx-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date action" "oppo oppo" "score result"; }
  .fx-date { grid-area: date; font-size: 14px; }
  .fx-oppo { grid-area: oppo; }
  .fx-score { grid-area: score; }
  .fx-result { grid-area: result; text-align: right; }
  .fx-action { grid-area: action; }
}

/* ---------- Scorecard ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cambridge); text-decoration: none; font-weight: 600; font-size: 15px; }
.back-link:hover { color: #fff; }
.sc-scores { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; background: var(--board); border: 1px solid var(--board-line); border-radius: 6px; padding: 16px 20px; min-width: min(100%, 360px); }
.sc-scores .score-team { font-size: 24px; }
.sc-scores .digits { font-size: 30px; }
.sc-scores small { grid-column: 1 / -1; font-size: 13px; color: #9aa6b4; margin-top: -2px; }
.sc-result { margin-top: 6px; grid-column: 1 / -1; justify-self: start; }
.scorecard .wrap { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 40px; }
.innings { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.innings-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--oxford); padding-bottom: 8px; }
.innings-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--oxford); }
.innings-head .total { font-family: var(--font-mono); font-size: 18px; color: var(--oxford); }
.table-scroll { overflow-x: auto; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sc-table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sc-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.sc-table .n { text-align: right; font-variant-numeric: tabular-nums; width: 64px; }
.sc-table th.n { text-align: right; }
.sc-table .pos { width: 32px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-table .how { color: var(--muted); }
.sc-table a { text-decoration: none; font-weight: 600; }
.sc-table a:hover { text-decoration: underline; }
.sc-table .role { font-size: 13px; color: var(--muted); font-weight: 400; }
.sc-table .milestone { font-weight: 700; color: var(--cerise-ink); }
.sc-table tfoot td { border-bottom: 0; }
.sc-table tr.total-row td { font-weight: 700; border-top: 2px solid var(--oxford); }
.sc-note { margin: 0; color: var(--muted); font-size: 15px; }
.sc-note b { color: var(--ink); font-weight: 600; }
.fow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fow li { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; display: flex; flex-direction: column; min-width: 72px; }
.fow b { font-family: var(--font-mono); font-weight: 500; color: var(--oxford); font-size: 16px; }
.fow span { font-size: 13px; color: var(--muted); }
.fow li.unbroken { border-style: dashed; }
.sc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sc-facts div { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.sc-facts dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) {
  .sc-table { font-size: 15px; }
  .sc-table td, .sc-table th { padding: 8px 6px; }
  .sc-table .n { width: 44px; }
  .sc-table .hide-sm { display: none; }
  .sc-table .how-inline { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
}
@media (min-width: 601px) { .sc-table .how-inline { display: none; } }

/* ---------- Averages ---------- */
.filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: #d4e3f1; font-size: 15px; }
.filter-form label { display: inline-flex; align-items: center; gap: 8px; }
.filter-form select { font: inherit; padding: 6px 10px; border-radius: 3px; border: 1px solid var(--cambridge); background: #fff; color: var(--ink); }
.filter-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--cerise); }
.filter-form button { font: inherit; font-weight: 600; padding: 6px 14px; border-radius: 3px; border: 1px solid var(--cambridge); background: transparent; color: #fff; cursor: pointer; }
.js .filter-form button { display: none; }
.tabs-bar .tab-extra { margin-left: auto; }
.tabs-bar .tab-extra ~ .tab-extra { margin-left: 0; }
.stats-tables .wrap { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 40px; }
.sortable th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sortable th button:focus-visible { outline: 3px solid var(--cerise); outline-offset: 2px; }
.sortable th button::after { content: ""; width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--line); transform: translateY(2px); }
.sortable th[aria-sort="descending"] button::after { border-top-color: var(--oxford); }
.sortable th[aria-sort="ascending"] button::after { border-top-color: transparent; border-bottom-color: var(--oxford); transform: translateY(-2px); }
.sortable th[aria-sort] { color: var(--oxford); }
.sc-table .player-cell { white-space: nowrap; }
.sc-table tbody tr:hover td { background: var(--mist); }
.sc-table td.n, .sc-table th.n { width: auto; padding-left: 6px; padding-right: 10px; }
.sc-table .dim { color: #9aa6b4; }
@media (max-width: 600px) { .tabs-bar .tab-extra { margin-left: 0; } }
.sortable .player-cell, .sortable thead th:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; }
.sortable tbody tr:hover .player-cell { background: var(--mist); }
@media (max-width: 600px) {
  .sortable .player-cell { white-space: normal; min-width: 120px; max-width: 140px; box-shadow: 1px 0 0 var(--line); }
}

/* ---------- Player records ---------- */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-form input[type="search"] { font: inherit; padding: 9px 12px; border-radius: 3px; border: 1px solid var(--cambridge); min-width: 0; width: 260px; max-width: 100%; color: var(--ink); background: #fff; }
.search-form button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 3px; border: 0; background: var(--cerise); color: #fff; cursor: pointer; }
.search-form button:hover { background: var(--cerise-ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile .tile-num { font-family: var(--font-mono); font-size: 30px; color: var(--oxford); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile .tile-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile .tile-sub { font-size: 14px; color: var(--muted); }
.tile a { text-decoration: none; }
.tile a:hover { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 15px; }
.hbars .track { height: 10px; background: var(--mist); border-radius: 5px; overflow: hidden; }
.hbars .track span { display: block; height: 100%; background: var(--oxford); border-radius: 5px; }
.hbars.cerise .track span { background: var(--cerise); }
.hbars .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hbars small { color: var(--muted); font-weight: 400; }
.cell-bar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cell-bar i { display: block; height: 6px; border-radius: 3px; background: var(--cambridge); }
.cell-bar.w i { background: #f3a3bb; }
.name-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; }
.name-grid li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.name-grid a { text-decoration: none; font-weight: 600; }
.name-grid a:hover { text-decoration: underline; }
.name-grid span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .hbars li { grid-template-columns: 96px minmax(0, 1fr) 40px; } }

/* ---------- Top 10s ---------- */
.top-key { display: flex; align-items: center; gap: 8px; margin: 0; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(40px, 1fr) 56px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.top-list li:first-child .val, .top-list li:first-child .who a { color: var(--cerise-ink); }
.top-list .rank { font-family: var(--font-mono); color: var(--muted); font-size: 14px; text-align: right; }
.top-list .who { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.top-list .who a { font-weight: 600; text-decoration: none; }
.top-list .who a:hover { text-decoration: underline; }
.top-list .who small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.top-list .track { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.top-list .track span { display: block; height: 100%; background: var(--oxford); border-radius: 4px; }
.top-list .val { font-family: var(--font-mono); font-size: 18px; text-align: right; color: var(--oxford); font-variant-numeric: tabular-nums; }
.cur-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cerise); flex: none; }
@media (max-width: 420px) { .top-grid { grid-template-columns: minmax(0, 1fr); } .top-list li { grid-template-columns: 28px minmax(0, 1fr) 56px; } .top-list .track { display: none; } }

/* ---------- Club records ---------- */
.rec-nav { background: var(--mist); border-bottom: 1px solid var(--line); }
.rec-nav .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-block: 16px; }
.rec-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rec-label { width: 100%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rec-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 3px; border: 1px solid var(--line); background: #fff; color: var(--oxford); }
.rec-nav a:hover { border-color: var(--oxford); }
.rec-nav a[aria-current="page"] { background: var(--oxford); border-color: var(--oxford); color: #fff; }
.rec-scope a[aria-current="page"] { background: var(--cerise); border-color: var(--cerise); }
.rec-table .rank { color: var(--muted); font-family: var(--font-mono); font-size: 14px; width: 3em; }
.rec-table td.big { font-family: var(--font-mono); font-size: 17px; color: var(--oxford); font-weight: 600; }
.rec-table tbody tr:first-child td.big { color: var(--cerise-ink); }
@media (max-width: 600px) { .rec-nav .wrap { gap: 12px; } .rec-nav a { font-size: 14px; padding: 5px 10px; } }

/* ---------- Season best ---------- */
.tile-link { text-decoration: none; color: inherit; transition: border-color .15s; }
.tile-link:hover { border-color: var(--oxford); }
.innings[id] { scroll-margin-top: 16px; }

/* ---------- Results archive ---------- */
.page-head-main .tally { margin-top: 6px; }
.arc-seasons { list-style: none; margin: 0; padding: 0; }
.arc-seasons li { display: grid; grid-template-columns: 64px 88px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.arc-year { font-family: var(--font-display); font-size: 22px; color: var(--oxford); }
.arc-total { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.arc-teams { display: flex; flex-wrap: wrap; gap: 6px; }
.arc-teams a { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px; padding: 5px 10px; border-radius: 3px; border: 1px solid var(--line); background: #fff; color: var(--oxford); }
.arc-teams a:hover { border-color: var(--oxford); }
.arc-teams small { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .arc-seasons li { grid-template-columns: 56px minmax(0, 1fr); } .arc-total { grid-column: 2; grid-row: 1; } .arc-teams { grid-column: 1 / -1; } }

/* ---------- Honours ---------- */
.hn-seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.hn-card { border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; min-width: 0; }
.hn-card h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--oxford); border-bottom: 2px solid var(--oxford); padding-bottom: 6px; }
.hn-card h3 { margin: 20px 0 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hn-list, .hn-roll { margin: 0; display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 16px; }
.hn-roll { grid-template-columns: 4em minmax(0, 1fr); }
.hn-list dt { font-size: 14px; color: var(--muted); padding-top: 2px; }
.hn-roll dt { font-family: var(--font-mono); font-size: 14px; color: var(--muted); padding-top: 2px; }
.hn-list dd, .hn-roll dd { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hn-winner { display: flex; flex-direction: column; }
.hn-winner a { font-weight: 600; text-decoration: none; }
.hn-winner a:hover { text-decoration: underline; }
.hn-winner small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.hn-junior { font-size: 15px; }
.hn-junior th[scope="row"] { text-align: left; font-family: var(--font-mono); font-weight: 500; color: var(--oxford); }
.hn-top .who small { white-space: normal; }
@media (max-width: 600px) { .hn-list { grid-template-columns: minmax(0, 1fr); gap: 2px; } .hn-list dd { margin-bottom: 10px; } .hn-card { padding: 16px; } }

/* ---------- Junior matches ---------- */
.jm-note { margin: 0; padding: 12px 16px; border-left: 3px solid var(--cerise); background: var(--mist); }
.jm-team { scroll-margin-top: 16px; }
.jm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-bottom: 2px solid var(--oxford); margin-bottom: 4px; }
.jm-head h2 { border-bottom: 0; margin: 0; }
.jm-contact { font-size: 15px; color: var(--muted); padding-bottom: 6px; overflow-wrap: anywhere; }

/* ---------- Contact ---------- */
.ct-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.ct-topic { border: 1px solid var(--line); border-top: 4px solid var(--oxford); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 16px; }
.ct-topic:target { border-top-color: var(--cerise); box-shadow: 0 0 0 2px var(--cerise); }
.ct-topic h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--oxford); }
.ct-topic p { margin: 0; font-size: 15px; color: var(--muted); }
.ct-topic .ct-who { color: var(--ink); font-weight: 600; margin-top: auto; padding-top: 6px; }
.ct-btn { align-self: flex-start; text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 3px; background: var(--cerise); color: #fff; }
.ct-btn:hover { background: var(--cerise-ink); }
.ct-people { list-style: none; margin: 0; padding: 0; }
.ct-people li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ct-role { grid-column: 1 / -1; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ct-name { font-weight: 600; }
.ct-reach { display: flex; flex-direction: column; overflow-wrap: anywhere; font-size: 15px; }
@media (max-width: 600px) { .ct-people li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Junior information ---------- */
.ji-hero .wrap { padding-block: 48px; }
.ji-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ji-btn-ghost { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 3px; border: 1px solid var(--cambridge); color: #fff; }
.ji-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.ji-sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.ji-session { border: 1px solid var(--line); border-top: 4px solid var(--cerise); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ji-session h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--oxford); }
.ji-session p { margin: 0; }
.ji-session .ct-btn { margin-top: auto; }
.ji-ages { font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--cerise-ink); }
.ji-when { font-weight: 600; color: var(--oxford); }
.ji-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ji-points b { color: var(--oxford); }
.ji-p { margin: 0 0 16px; }
.ji-photo { margin: 0; }
.ji-photo img { width: 100%; height: auto; border-radius: 6px; display: block; }
.ji-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.ji-docs { list-style: none; margin: 0; padding: 0; }
.ji-docs li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.ji-docs a { font-weight: 600; text-decoration: none; }
.ji-docs a:hover { text-decoration: underline; }

/* ---------- Junior registration ---------- */
.jr-wrap { max-width: 900px; }
.jr-intro { margin: 0 0 20px; color: var(--muted); }
.jr-opt, .jr-hint { font-weight: 400; font-size: 14px; color: var(--muted); }
.jr-opt { text-transform: lowercase; }
.jr-notice { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--cerise); background: #fdf0f4; font-weight: 600; }
.jr-form { display: flex; flex-direction: column; gap: 24px; }
.jr-section { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); min-width: 0; }
.jr-section > legend { padding: 0 8px; font-family: var(--font-display); font-size: 24px; color: var(--oxford); }
.jr-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%; background: var(--oxford); color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700; vertical-align: 4px; }
.jr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.jr-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.jr-field > label, .jr-choice > legend { font-weight: 600; padding: 0; }
.jr-field input[type=text], .jr-field input[type=email], .jr-field input[type=tel], .jr-field input[type=date], .jr-field select, .jr-field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid #9fb1c2; border-radius: 3px; background: #fff; color: var(--ink); }
.jr-field textarea { resize: vertical; }
.jr-field input:focus, .jr-field select:focus, .jr-field textarea:focus { outline: 3px solid var(--cambridge); outline-offset: 0; border-color: var(--oxford); }
.jr-options { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 4px; }
.jr-options label, .jr-checks label, .jr-field > .jr-agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.jr-options input, .jr-checks input, .jr-agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--oxford); }
.jr-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.jr-section > .jr-choice + .jr-field, .jr-section > .jr-field + .jr-choice { margin-top: 16px; }
.jr-help { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.has-error input[type=text], .has-error input[type=email], .has-error input[type=tel], .has-error input[type=date], .has-error select, .has-error textarea { border-color: var(--loss); border-width: 2px; }
.jr-error { color: var(--loss); font-size: 15px; font-weight: 600; }
.jr-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jr-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.jr-submit .ct-btn { border: 0; font: inherit; font-weight: 700; font-size: 17px; padding: 12px 24px; cursor: pointer; }
.jr-submit .jr-help { margin: 0; }
.jr-done { padding: 28px; border: 1px solid var(--line); border-top: 6px solid var(--win); border-radius: 4px; }
.jr-done h2 { margin: 0 0 12px; line-height: 1.15; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--oxford); }
.jr-link { align-self: center; font-weight: 600; }
@media (max-width: 640px) {
  .jr-grid { grid-template-columns: minmax(0, 1fr); }
  .jr-section { padding: 16px 12px; }
}

/* ---------- Find us ---------- */
.fd-steps { margin: 0; padding: 0; list-style: none; counter-reset: fd; display: flex; flex-direction: column; gap: 14px; }
.fd-steps li { counter-increment: fd; position: relative; padding-left: 44px; min-height: 30px; }
.fd-steps li::before { content: counter(fd); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--oxford); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.fd-park { padding: 14px 16px; background: var(--mist); border-left: 4px solid var(--cerise); }
.fd-park h3 { margin: 0 0 4px; font-size: 17px; }
.fd-park p { margin: 0; }
.fd-address { font-style: normal; font-size: 19px; line-height: 1.5; }
.fd-note { margin: 0; color: var(--muted); }
.fd-maps { display: flex; flex-wrap: wrap; gap: 10px; }
.fd-ghost { color: var(--oxford); border-color: var(--oxford); }
.fd-aerial { max-width: 600px; margin: 40px auto 0; }
.fd-ghost:hover { background: var(--mist); color: var(--oxford); }

/* ---------- Adult registration ---------- */
.ar-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.jr-field > .ar-types .ar-type, .ar-type { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 14px; border: 1px solid #9fb1c2; border-radius: 4px; cursor: pointer; font-weight: 400; }
.ar-type input { grid-row: 1 / span 3; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--oxford); }
.ar-type-name { font-weight: 600; line-height: 1.3; }
.ar-type-fee { font-family: var(--font-display); font-size: 24px; color: var(--oxford); }
.ar-type-note { font-size: 14px; color: var(--muted); }
.ar-type:hover { border-color: var(--oxford); }
.ar-type:has(input:checked) { border-color: var(--oxford); box-shadow: inset 0 0 0 1px var(--oxford); background: var(--mist); }
.has-error .ar-type { border-color: var(--loss); }
.jr-submit .ct-btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) { .jr-grid > div:empty { display: none; } }

/* ---------- Monthly Draw ---------- */
.dr-tiles { margin-bottom: 40px; }
.dr-super { border-color: var(--cerise); background: #fdf0f4; }
.dr-super .tile-num { color: var(--cerise-ink); }
.dr-winners { margin-top: 40px; max-width: 760px; }
.dr-filter { margin: 0; color: var(--muted); }
.dr-filter button { color: var(--oxford); border-color: var(--oxford); }
.dr-filter select { border-color: #9fb1c2; }
.sc-table.dr-table tbody th { font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; }
.dr-super-row { background: #fdf0f4; }
.dr-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--cerise); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }

/* ---------- About and History ---------- */
.ab-facts { margin-bottom: 40px; }
.ab-facts .tile-num { font-size: 26px; }
.ab-colours { display: flex; gap: 6px; padding: 8px 0 4px; }
.ab-colours span { width: 34px; height: 24px; border-radius: 3px; }
.prose p { margin: 0; max-width: 65ch; }
.prose { gap: 16px; }
.innings > .ji-photo + .ji-photo { margin-top: 4px; }
.hs-wrap { max-width: 860px; }
.hs-section { margin: 0 0 20px; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--oxford); }
.hs-section:not(:first-child) { margin-top: 48px; }
.hs-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.hs-timeline::before { content: ""; position: absolute; left: 86px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.hs-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 32px; padding-bottom: 28px; position: relative; }
.hs-item::before { content: ""; position: absolute; left: 80px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--cerise); border: 3px solid var(--paper); box-sizing: border-box; }
.hs-year { font-family: var(--font-cond); font-weight: 800; font-size: 22px; color: var(--oxford); text-align: right; line-height: 1.3; }
.hs-body h3 { margin: 0 0 4px; font-size: 19px; color: var(--oxford); }
.hs-body p { margin: 0; }
.hs-photo { margin-top: 12px; max-width: 480px; }
.hs-future { margin-top: 20px; }
@media (max-width: 600px) {
  .hs-timeline::before { left: 6px; }
  .hs-item { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 28px; }
  .hs-item::before { left: 0; }
  .hs-year { text-align: left; }
}

/* ---------- Membership ---------- */
.jn-routes { margin-bottom: 40px; }
.sc-table.jn-fees tbody th { font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; }
.jn-fees thead:not(:first-child) th { padding-top: 24px; }
.jn-fees th.n { white-space: nowrap; }
.jn-note { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }

/* ---------- Events ---------- */
.ev-wrap { max-width: 860px; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 6px; background: var(--oxford); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.1; }
.ev-date b { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 0; }
.ev-body h2 { margin: 0; font-size: 19px; color: var(--oxford); }
.ev-when { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 600px) { .ev-item { grid-template-columns: 56px minmax(0, 1fr); } .ev-date { width: 56px; height: 56px; } .ev-ask { grid-column: 2; justify-self: start; } }

/* ---------- Gallery ---------- */
.gl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.gl-item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.gl-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; background: var(--mist); transition: transform .15s; }
.gl-item:hover img { transform: scale(1.02); }
.gl-cap { font-size: 15px; color: var(--muted); }
.gl-item:hover .gl-cap { color: var(--oxford); }
.gl-viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); width: 100%; }
.gl-viewer::backdrop { background: rgba(7, 22, 43, .88); }
.gl-viewer figure { margin: 0; }
.gl-viewer img { display: block; width: 100%; max-height: 75vh; object-fit: contain; }
.gl-viewer figcaption { color: #fff; padding: 10px 0 0; }
.gl-controls { display: flex; align-items: center; gap: 12px; padding-top: 10px; color: #d4e3f1; }
.gl-controls button { font: inherit; font-size: 20px; min-width: 44px; height: 40px; border-radius: 3px; border: 1px solid var(--cambridge); background: transparent; color: #fff; cursor: pointer; }
.gl-controls .gl-close { margin-left: auto; font-size: 15px; font-weight: 600; padding: 0 14px; }

/* ---------- Junior coaching and membership ---------- */
.jc-times { margin-bottom: 40px; }
.tile .jc-time { font-family: var(--font-display); font-size: 26px; }
.jc-docs { margin-top: 40px; }
.jm-steps { max-width: 760px; margin-bottom: 40px; }

/* ---------- Book the nets ---------- */
.nb-dates { margin-bottom: 24px; }
.nb-dates a { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.nb-free { font-size: 12px; font-weight: 400; opacity: .8; }
.nb-form { max-width: 900px; }
.nb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.jr-field > .nb-slots .nb-slot, .nb-slot { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 10px 12px; border: 1px solid #9fb1c2; border-radius: 4px; cursor: pointer; font-weight: 600; }
.nb-slot input { grid-row: 1 / span 2; width: 20px; height: 20px; margin: 0; accent-color: var(--oxford); }
.nb-state { grid-column: 2; font-size: 14px; font-weight: 400; color: var(--win); }
.nb-slot:has(input:checked) { border-color: var(--oxford); box-shadow: inset 0 0 0 1px var(--oxford); background: var(--mist); }
.nb-slot.is-taken { cursor: default; background: var(--mist); border-color: var(--line); color: var(--muted); padding-left: 42px; }
.nb-slot.is-taken span { grid-column: 1 / -1; }
.nb-slot.is-taken .nb-state { color: var(--muted); }
.nb-help { margin: 12px 0 0; }
.nb-done { margin-bottom: 24px; }

/* ---------- Members' login ---------- */
.lg-form { max-width: 420px; }
.lg-form .jr-section { display: flex; flex-direction: column; gap: 16px; }
.lg-form .jr-section > legend { font-size: 22px; }
.lg-form input[type=password] { width: 100%; font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid #9fb1c2; border-radius: 3px; }
.lg-form .ct-btn { width: 100%; }

/* ---------- Season totals and all-rounders ---------- */
.tt-lower { margin-top: 40px; }
.tt-cap { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.tt-cap.cap-orange { background: #f28c28; }
.tt-cap.cap-purple { background: #7a3fb0; }
.sc-table tfoot th, .sc-table tfoot td { border-top: 2px solid var(--oxford); padding: 8px 10px; }
.sc-table tfoot th { text-align: left; font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); }
.ar-podium { margin-bottom: 32px; }
.ar-rules { margin-top: 24px; max-width: 760px; }

/* ---------- Constitution ---------- */
.cn-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.cn-toc { position: sticky; top: 16px; }
.cn-toc .innings-head h2 { font-size: 24px; }
.cn-toc ol { margin: 12px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.cn-toc li { margin: 4px 0; }
.cn-toc a { color: var(--oxford); }
.cn-body { max-width: 760px; }
.cn-section { scroll-margin-top: 16px; margin-bottom: 36px; }
.cn-section h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--oxford); font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--oxford); }
.cn-sec { color: var(--cerise); margin-right: 4px; }
.cn-clause { margin: 0 0 12px; }
.cn-num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 6px; }
.cn-body ul { margin: 0 0 14px; padding-left: 24px; }
.cn-body ul ul { margin: 6px 0; }
.cn-body li { margin: 4px 0; }
@media (max-width: 860px) {
  .cn-wrap { grid-template-columns: 1fr; gap: 24px; }
  .cn-toc { position: static; }
  .cn-toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 480px) { .cn-toc ol { columns: 1; } }

/* ---------- Darts fixtures ---------- */
.dt-res { display: inline-block; min-width: 76px; padding: 1px 8px; border-radius: 3px; font-size: 13px; font-weight: 700; text-align: center; }
.dt-won { background: #e3f3e8; color: #1d6b37; }
.dt-lost { background: #fbe4ea; color: #a3163f; }
.dt-cancelled { background: #eef2f6; color: var(--muted); }

/* ---------- Player season pop-ups (icons on averages, totals, all-rounders) ---------- */
.ps-icons { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: -3px; white-space: nowrap; }
.ps-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; color: var(--muted); }
.ps-btn:hover, .ps-btn:focus-visible { color: var(--cerise); background: #f4f7fa; }
.ps-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ps-btn svg rect[width="2.5"] { fill: currentColor; stroke: none; }
.ps-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 33, 71, .35); color: var(--ink); background: var(--paper); }
.ps-dialog::backdrop { background: rgba(0, 33, 71, .55); }
.ps-dialog[open] { display: flex; flex-direction: column; }
.ps-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--cambridge); color: var(--oxford); border-bottom: 3px solid var(--oxford); }
.ps-dialog-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.ps-close { all: unset; cursor: pointer; color: var(--oxford); font-size: 30px; line-height: 1; padding: 0 6px; border-radius: 4px; }
.ps-close:hover { background: rgba(0, 33, 71, .12); }
.ps-close:focus-visible { outline: 3px solid var(--cerise); }
.ps-dialog-body { padding: 16px 20px 20px; overflow: auto; }
.ps-loading { color: var(--muted); }
.ps-table { font-size: 15px; }
.ps-table td, .ps-table th { padding: 7px 8px; white-space: nowrap; }
.ps-more { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0 0; font-size: 15px; }
.ps-chart { margin: 0 0 24px; }
.ps-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--oxford); padding-bottom: 6px; margin-bottom: 8px; }
.ps-chart-title { font-family: var(--font-display); font-size: 22px; color: var(--oxford); }
.ps-key { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.ps-key-bar { display: inline-block; width: 10px; height: 12px; background: var(--oxford); border-radius: 2px; }
.ps-key-line { display: inline-block; width: 16px; height: 3px; background: var(--cerise); margin-left: 10px; border-radius: 2px; }
.ps-chart svg { display: block; width: 100%; height: auto; }
.ps-grid { stroke: var(--line); stroke-width: 1; }
.ps-base { stroke: var(--oxford); stroke-width: 1.5; }
.ps-axis { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
.ps-axis-line { fill: var(--cerise); }
.ps-bar { fill: var(--oxford); }
.ps-hit { fill: transparent; }
.ps-bar-g:hover .ps-bar { fill: #2a4f7e; }
.ps-line { fill: none; stroke: var(--cerise); stroke-width: 2.5; stroke-linejoin: round; }
.ps-dot { fill: var(--paper); stroke: var(--cerise); stroke-width: 2; }
.ps-chart-x { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) {
  .ps-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .ps-dialog-body { padding: 12px; }
  .ps-dialog-head h2 { font-size: 20px; }
}

/* Homepage aerial photo: credit over the corner where the Google Earth logo sits. */
.hero-media { position: relative; }
.hero-credit { position: absolute; right: 0; bottom: 0; padding: 3px 8px; background: rgba(0, 33, 71, .78); color: #fff; font-size: 12px; line-height: 1.3; }

/* ---------- Sponsor the club ---------- */

.sp-head { margin-bottom: 18px; max-width: 760px; scroll-margin-top: 16px; }
.sp-head h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 32px; color: var(--oxford); }
.sp-head p { margin: 0; color: var(--muted); }
.sp-options { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .sp-options { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sp-options { grid-template-columns: repeat(4, 1fr); } }
.sp-option { scroll-margin-top: 16px; }
.sp-option h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--oxford); }
.sp-option .sp-link { margin-top: auto; padding-top: 6px; font-weight: 700; }
.sp-photo { width: calc(100% + 44px); max-width: none; margin: -22px -22px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px 2px 0 0; }
.sp-cta { padding: 28px; border-radius: 6px; background: var(--oxford); color: #fff; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.sp-cta h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.sp-cta p { margin: 0; max-width: 56ch; color: #d4e3f1; }
.sp-cta-who { display: flex; flex-direction: column; gap: 8px; }
.sp-cta .ct-who { color: #fff; font-weight: 600; }
.sp-cta .sp-email { font-size: 14px; color: var(--cambridge); overflow-wrap: anywhere; }
.sp-current .sponsor-grid { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ct-btn.ct-btn-ghost { background: transparent; color: var(--oxford); border: 1px solid var(--oxford); padding: 7px 13px; }
.ct-btn.ct-btn-ghost:hover { background: var(--mist); }

/* Homepage: pavilion photo in place of the big heading. */
.hero-pav { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 551; object-fit: cover; border: 6px solid #fff; }
