:root {
  /* Dark theme. --navy is the main text/heading colour; --brand is the blue used for filled
     buttons, tiles and panels. Print falls back to a light palette (see @media print at the end). */
  --navy: #F2F5FB;
  --navy-deep: #07102A;
  --brand: #24418F;
  --brand-deep: #1B3473;
  --panel: #0E1B3D;
  --on-gold: #0B1633;
  --gold: #F5C518;
  --ground: #0B1633;
  --card: #13234A;
  --surface-2: #182A55;
  --line: #273A6B;
  --line-soft: #1E2F5C;
  --ink: #E9EDF6;
  --muted: #AFBBD6;
  --on-navy-muted: #C9D1E6;
  --win-bg: #163D2A; --win-ink: #7EE2A1;
  --loss-bg: #4A1E22; --loss-ink: #FFA5A0;
  --neutral-bg: #22345F; --neutral-ink: #DCE3F2;
  --radius: 12px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--ground); }
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: 10px 14px; font-weight: 700; z-index: 10; }
.skip:focus { left: 10px; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; }
.brand-name span { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; min-height: 44px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.main-nav a { display: inline-block; padding: 10px 0; text-decoration: none; font-weight: 600; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.main-nav a.btn { padding: 10px 16px; }
@media (min-width: 1151px) and (max-width: 1320px) { .main-nav ul { gap: 4px 14px; } .main-nav a { font-size: 15px; } .brand-name b { font-size: 21px; } }

@media (max-width: 1150px) {
  .nav-toggle { display: inline-block; }
  .main-nav { flex-basis: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .main-nav a { display: block; padding: 12px 4px; border-top: 1px solid var(--line-soft); }
  .main-nav a.btn { margin-top: 10px; text-align: center; border-top: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 12px; }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 6px; padding: 13px 20px; min-height: 44px; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #FFD443; color: var(--on-gold); }
.btn-navy { background: var(--brand); color: #fff; }
.btn-navy:hover { background: var(--brand-deep); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; padding: 11px 18px; }
.btn-outline:hover { background: #fff; color: var(--on-gold); }

/* Sample banner */
.sample-banner { background: #FFF6D6; border-bottom: 1px solid #EBD98A; color: #5B4A00; font-size: 15px; }
.sample-banner .wrap { padding-top: 8px; padding-bottom: 8px; }

/* Hero */
.hero { background: var(--panel); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.hero-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { margin: 0; color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 64px); line-height: .98; text-transform: uppercase; }
.hero p.lede { margin: 0; font-size: 19px; color: var(--on-navy-muted); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-watch { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.watch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.watch-head .title { font-weight: 700; font-size: 17px; }
.watch-head .src { color: var(--on-navy-muted); font-size: 15px; margin-left: auto; }
.live-badge { background: #D92D20; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 3px 9px; border-radius: 4px; }
.replay-badge { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 3px 9px; border-radius: 4px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); border: 1px solid #2B3C6B; border-radius: 10px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--navy-deep) center / cover no-repeat; border: 0; color: var(--on-navy-muted); font: inherit; cursor: pointer; text-decoration: none; }
.video-poster::before { content: ""; position: absolute; inset: 0; background: rgba(11,22,51,.45); }
.video-poster > * { position: relative; }
.video-poster svg { width: 68px; height: 68px; }
.watch-note { margin: 0; color: var(--on-navy-muted); font-size: 14px; }
.watch-note a { color: var(--gold); }

/* Main layout */
main { display: block; }
.page-pad { padding-top: 44px; padding-bottom: 24px; }
.stack { display: flex; flex-direction: column; gap: 44px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row > * { flex: 1 1 420px; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
h2.sec { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; text-transform: uppercase; color: var(--navy); line-height: 1.1; }
h1.page-title { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 56px); text-transform: uppercase; color: var(--navy); line-height: 1; }
.page-intro { margin: 0; color: var(--muted); font-size: 18px; max-width: 720px; }
.section-head a, .more { font-weight: 600; font-size: 15px; }
.note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.empty { color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* Match lists */
.match { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.datebox { width: 58px; flex-shrink: 0; text-align: center; background: var(--ground); border-radius: 8px; padding: 6px 0; }
.datebox .m { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.datebox .d { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1; }
.match .body { flex: 1; min-width: 0; }
.match .who { font-weight: 700; }
.match .meta { color: var(--muted); font-size: 15px; }
.badge { width: 58px; flex-shrink: 0; text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .06em; padding: 8px 0; border-radius: 6px; }
.badge.W { background: var(--win-bg); color: var(--win-ink); }
.badge.L { background: var(--loss-bg); color: var(--loss-ink); }
.badge.D, .badge.T, .badge.A, .badge.N { background: var(--neutral-bg); color: var(--neutral-ink); }
.match .links { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; font-size: 14px; font-weight: 600; }
@media (max-width: 520px) {
  .match { flex-wrap: wrap; }
  .match .links { flex-direction: row; gap: 14px; flex-basis: 100%; padding-left: 74px; align-items: center; }
}

/* Filter tabs */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.filters button { font: inherit; font-weight: 600; font-size: 15px; background: var(--card); border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 44px; }
.filters button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Video grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.vid { color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--brand); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid .thumb { position: absolute; inset: 0; background: var(--brand) center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.vid a.t { color: inherit; text-decoration: none; }
.vid a.t:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.vid .thumb svg { width: 46px; height: 46px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.vid .t { font-weight: 700; }
.vid .m { color: var(--muted); font-size: 14px; margin-top: -4px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.news-item { display: flex; flex-direction: column; gap: 6px; }
.news-item time { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.news-item h3 { margin: 0; font-size: 20px; color: var(--navy); line-height: 1.25; }
.news-item p { margin: 0; color: var(--ink); }

/* Join panel */
.join-panel { background: var(--gold); color: var(--on-gold); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.join-panel h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; text-transform: uppercase; }
.join-panel p { margin: 0; }
.join-panel ul { margin: 0; padding-left: 20px; line-height: 1.7; }
.join-panel .btn { align-self: flex-start; }

/* Sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.sponsor { height: 84px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 12px; text-decoration: none; color: var(--muted); font-weight: 600; text-align: center; }
.sponsor img { max-height: 60px; width: auto; }
.sponsor.cta { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.sponsor.cta:hover { background: var(--brand-deep); color: #fff; }

/* Stats tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table.stats { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.stats caption { text-align: left; font-weight: 700; color: var(--navy); padding: 14px 16px 6px; font-size: 17px; }
table.stats th, table.stats td { padding: 10px 14px; text-align: right; border-top: 1px solid var(--line-soft); white-space: nowrap; }
table.stats th:first-child, table.stats td:first-child { text-align: left; }
table.stats thead th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
table.stats td.lead { font-weight: 700; color: var(--navy); }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.team-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.team-card:hover { border-color: var(--brand); }
.team-card .day { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.team-card h3 { margin: 0; font-family: var(--display); font-size: 28px; text-transform: uppercase; color: var(--navy); }
.team-card p { margin: 0; color: var(--ink); }

/* Prose pages */
.prose { max-width: 720px; }
.prose p { margin: 0 0 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts svg { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; color: var(--navy); }
.facts b { display: block; color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); margin-top: 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; padding-top: 40px; padding-bottom: 28px; }
.site-footer a { color: var(--on-navy-muted); }
.site-footer a:hover { color: #fff; }
.foot-brand { flex: 2 1 320px; display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.foot-brand strong { color: #fff; font-size: 17px; display: block; }
.foot-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.foot-col strong { color: #fff; }
.foot-base { border-top: 1px solid #22335F; font-size: 13px; }
.foot-base .wrap { padding-top: 14px; padding-bottom: 14px; gap: 6px 24px; }

/* Match-day live score button (shown by script on the day) */
.live-link { flex-shrink: 0; background: #D92D20; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; padding: 9px 12px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.live-link:hover { background: #B42318; color: #fff; }
.live-link[hidden] { display: none; }
@media (max-width: 520px) { .match .body { flex: 1 1 calc(100% - 74px); } .live-link { margin-left: 74px; } }

.season-pill { font-weight: 600; font-size: 15px; background: var(--card); border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: 9px 16px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.season-pill[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Stats explorer */
.sx { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 0; background: var(--brand); border-radius: 10px; padding: 4px; }
.sx-tabs button { flex: 1 1 0; min-width: 0; font: inherit; font-weight: 700; font-size: 16px; color: #C9D1E6; background: none; border: 0; border-radius: 7px; padding: 12px 8px; cursor: pointer; min-height: 44px; text-transform: uppercase; letter-spacing: .04em; }
.sx-tabs button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.sx-views { display: flex; gap: 8px; flex-wrap: wrap; }
.sx-views[hidden] { display: none; }
.sx-views button { font: inherit; font-weight: 600; font-size: 15px; background: var(--card); border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 44px; }
.sx-views button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.sx-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sx-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sx-filters label[hidden] { display: none; }
.sx-filters select, .sx-filters input { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 44px; background: var(--surface-2); width: 100%; }
.sx-search { grid-column: span 2; }
@media (max-width: 520px) { .sx-search { grid-column: 1 / -1; } .sx-tabs button { font-size: 13px; letter-spacing: 0; padding: 12px 4px; } }
.sx-summary { margin: 0; color: var(--muted); font-size: 15px; }
.sx-table { min-width: 640px; }
.sx-table th { padding: 0; }
.sx-sort { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: none; border: 0; padding: 12px 14px; width: 100%; text-align: inherit; cursor: pointer; white-space: nowrap; }
.sx-table th[aria-sort] .sx-sort { color: var(--navy); }
.sx-table th:first-child .sx-sort, .sx-table th:nth-child(2) .sx-sort { text-align: left; }
.sx-table td:nth-child(2) { text-align: left; }
.sx-table .sx-rank { color: var(--muted); width: 40px; text-align: left; padding: 10px 6px 10px 14px; }
.sx-player { font: inherit; font-weight: 600; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.sx-panel h2 { font-size: 28px; }

.officer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; }
.officer { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.officer img, .officer .initials { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.officer .initials { display: flex; align-items: center; justify-content: center; background: var(--brand); color: var(--gold); font-family: var(--display); font-size: 24px; font-weight: 700; }
.officer .who { display: flex; flex-direction: column; min-width: 0; }
.officer .role { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.officer b { color: var(--navy); font-size: 18px; }

table.league td:nth-child(2), table.league th:nth-child(2) { text-align: left; }
table.league tr.us td { background: rgba(245,197,24,.16); font-weight: 700; color: var(--navy); }

/* Records */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .rec-grid { grid-template-columns: 1fr; } }
.rec h2 { margin: 0 0 10px; font-family: var(--display); font-size: 26px; text-transform: uppercase; color: var(--navy); }
.rec ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rec li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr auto; column-gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.rec li::before { content: counter(r); color: var(--muted); font-size: 14px; grid-row: span 2; }
.rec li.empty { display: block; color: var(--muted); }
.rec li.empty::before { content: none; }
.rec li a { font-weight: 600; }
.rec li b { font-family: var(--display); font-size: 24px; color: var(--navy); text-align: right; }
.rec li span { grid-column: 2 / 4; color: var(--muted); font-size: 14px; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ms { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.ms-kind { align-self: flex-start; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; }
.ms b { color: var(--navy); font-size: 18px; }
.ms-ctx { color: var(--muted); font-size: 14px; }

/* Reach report */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.tl { font-size: 14px; color: var(--muted); font-weight: 600; }
.tv { font-size: 40px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.td { font-size: 14px; color: var(--muted); }
.ch { margin: 0 0 12px; font-size: 18px; color: var(--navy); }
.chart { width: 100%; height: auto; display: block; font-family: var(--body); }
.chart .hit { cursor: default; }
.chart .hit .dot { opacity: 0; }
.chart .hit.on .dot { opacity: 1; }
.chart .hit.on path { fill-opacity: .8; }
.tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.5em; gap: 10px; align-items: center; font-size: 15px; }
.hv { text-align: right; }
.hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb { height: 10px; background: var(--ground); border-radius: 0 4px 4px 0; }
.hb i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hv { font-variant-numeric: tabular-nums; color: var(--muted); }
.tip { position: absolute; background: var(--ink); color: var(--ground); font-size: 13px; padding: 6px 10px; border-radius: 6px; pointer-events: none; z-index: 20; white-space: nowrap; }
@media print {
  .site-header, .site-footer, .sample-banner, .no-print { display: none !important; }
  body { background: #fff; }
  .card { break-inside: avoid; }
}

/* Club photos (from the Photos tab of the Google Sheet) */
.hero.has-photo { background: linear-gradient(90deg, rgba(11,22,51,.82) 0%, rgba(11,22,51,.55) 38%, rgba(11,22,51,.18) 70%, rgba(11,22,51,.10) 100%), linear-gradient(0deg, rgba(11,22,51,.45) 0%, rgba(11,22,51,0) 40%), var(--hero-img) center 22% / cover no-repeat, var(--navy); }
.hero.has-photo .hero-copy { text-shadow: 0 2px 14px rgba(11,22,51,.65), 0 1px 3px rgba(11,22,51,.5); }
.hero.has-photo .hero-copy .btn { text-shadow: none; }
@media (max-width: 760px) { .hero.has-photo { background: linear-gradient(180deg, rgba(11,22,51,.45) 0%, rgba(11,22,51,.75) 60%, rgba(11,22,51,.9) 100%), var(--hero-img) center 30% / cover no-repeat, var(--navy); } }
.photo-banner { margin: 0; border-radius: 12px; overflow: hidden; background: var(--line); position: relative; }
.photo-banner img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.photo-banner figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 10px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(11,22,51,.75)); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery .photo-banner img { aspect-ratio: 4 / 3; }
@media (max-width: 640px) { .photo-banner img { aspect-ratio: 16 / 10; } }

/* Clickable result rows (open the scorecard) */
.match.has-card { position: relative; }
.match.has-card:hover { background: var(--line-soft); }
.match .row-link { color: inherit; text-decoration: none; }
.match .row-link::after { content: ""; position: absolute; inset: 0; }
.match .row-link:focus-visible { outline: none; }
.match.has-card:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.match .links a { position: relative; z-index: 1; }
.match .card-cue { color: var(--navy); }

/* Season picker on team pages */
.team-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.season-tag { font-size: .55em; color: var(--muted); white-space: nowrap; }
.season-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.season-pick label { font-weight: 700; color: var(--navy); }
.season-pick select { font: inherit; font-weight: 600; padding: 9px 36px 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--navy); min-height: 44px; cursor: pointer; }

/* Scorecards */
.sc-title { font-size: clamp(32px, 5vw, 48px); }
.sc-summary { display: flex; gap: 18px; align-items: flex-start; }
.sc-scores { flex: 1; min-width: 0; }
.sc-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 18px; color: var(--muted); }
.sc-line.ours { color: var(--ink); font-weight: 700; }
.sc-line b { font-family: var(--display); font-size: 26px; white-space: nowrap; }
.sc-line small { font-family: var(--body, inherit); font-size: 14px; font-weight: 400; color: var(--muted); }
.sc-result { margin: 8px 0 0; font-weight: 700; color: var(--navy); }
.sc-innings.ours { border-top: 4px solid var(--gold, #F5C518); }
.sc-total { font-family: var(--display); font-size: 24px; color: var(--navy); }
table.sc-bat td.name, table.sc-bowl td.name { font-weight: 600; }
table.sc-bat td.how { color: var(--muted); }
table.sc-bat th.how, table.sc-bat td.how { text-align: left; white-space: normal; }
table.sc-bat tr.notout td.name { color: var(--navy); }
table.sc-bat tr.sub td, table.sc-bat tr.tot td { border-top: 1px solid var(--line); }
table.sc-bat tr.tot td { font-weight: 700; }
.how-sm { display: none; }
.sc-extra { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.sc-extra b { color: var(--ink); }
@media (max-width: 640px) {
  table.sc-bat th.how, table.sc-bat td.how { display: none; }
  table.sc-bat, table.sc-bowl { min-width: 0; font-size: 14px; }
  table.sc-bat th, table.sc-bat td, table.sc-bowl th, table.sc-bowl td { padding: 8px 6px; }
  table.sc-bat th:first-child, table.sc-bat td:first-child, table.sc-bowl th:first-child, table.sc-bowl td:first-child { padding-left: 12px; white-space: normal; }
  table.sc-bat th:last-child, table.sc-bat td:last-child, table.sc-bowl th:last-child, table.sc-bowl td:last-child { padding-right: 12px; }
  .sc-line { font-size: 16px; }
  .how-sm { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
  .sc-summary { flex-direction: column; gap: 10px; }
}

/* Captain / contact card on team pages */
.team-contacts { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 12px); }
.team-contacts .officer { border-top: 0; padding: 0; }
.team-contacts .btn { margin-left: auto; }
.team-contacts .note { flex-basis: 100%; }
@media (max-width: 640px) { .team-contacts .btn { margin-left: 0; } }

/* Honours board: pavilion-board style */
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.honb { background: var(--brand); color: #fff; border-radius: var(--radius, 12px); padding: 22px 24px 18px; border: 3px solid var(--gold); box-shadow: inset 0 0 0 4px var(--brand), inset 0 0 0 5px rgba(245,197,24,.45); }
.honb h2 { margin: 0 0 6px; font-family: var(--display); font-size: 40px; color: var(--gold); text-align: center; letter-spacing: .04em; }
.honb h3 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--on-navy-muted); text-align: center; border-bottom: 1px solid rgba(245,197,24,.35); padding-bottom: 6px; }
.honb ul { list-style: none; margin: 0; padding: 0; }
.honb li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.honb li:last-child { border-bottom: 0; }
.honb li a { color: inherit; text-decoration: none; display: flex; justify-content: space-between; gap: 12px; }
.honb li a:hover .hb-name { text-decoration: underline; }
.honb li > .hb-name, .honb li > .hb-fig { display: inline-block; }
.hb-name { font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.hb-fig { font-family: var(--display); font-size: 24px; color: var(--gold); white-space: nowrap; }
.hb-ctx { display: block; font-size: 13px; color: var(--on-navy-muted); }
.hb-near-h { margin: 18px 0 8px; font-size: 15px; color: var(--navy); }
.hb-near { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hb-near b { color: var(--navy); }
.hb-near span { color: var(--muted); font-size: 14px; }

/* Sponsorship */
.sp-why { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .sp-why { grid-template-columns: 1fr; } }
.sp-ticks { list-style: none; margin: 0; padding: 0; }
.sp-ticks li { position: relative; padding: 5px 0 5px 28px; }
.sp-ticks li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 12px; height: 7px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.sp-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-num { background: var(--brand); color: #fff; border-radius: 10px; padding: 14px 16px; }
.sp-num b { display: block; font-family: var(--display); font-size: 38px; line-height: 1; color: var(--gold); }
.sp-num span { font-size: 14px; color: var(--on-navy-muted); }
.sp-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sp-pack { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 12px); padding: 20px 22px; }
.sp-pack.lead { border: 2px solid var(--gold); }
.sp-pack h3 { margin: 0; font-family: var(--display); font-size: 28px; text-transform: uppercase; color: var(--navy); }
.sp-price { margin: 4px 0 8px; }
.sp-price b { font-family: var(--display); font-size: 30px; color: var(--navy); }
.sp-price span { color: var(--muted); font-size: 14px; }
.sp-sum { margin: 0 0 10px; font-weight: 600; }
.sp-pack ul { margin: 0; padding-left: 18px; color: var(--ink); }
.sp-pack li { margin: 4px 0; }
/* Printable pack */
.pack-cover { display: flex; align-items: center; gap: 28px; background: var(--brand); color: #fff; border-radius: var(--radius, 12px); padding: 32px; margin-bottom: 24px; }
.pack-cover h1 { margin: 4px 0; font-family: var(--display); font-size: clamp(34px, 5vw, 52px); text-transform: uppercase; line-height: 1; }
.pack-cover p { margin: 0; color: var(--on-navy-muted); }
.pack-cover .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pack-cover img { background: #fff; border-radius: 50%; flex-shrink: 0; }
.pack-sec { margin: 0 0 28px; }
.pack-sec h2 { font-family: var(--display); font-size: 30px; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; border-bottom: 3px solid var(--gold); padding-bottom: 6px; }
.pack-sec .sp-numbers { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 14px; }
.pack-small { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .pack-cover { flex-direction: column; text-align: center; } }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  .site-header, .site-footer, .sample-banner, .no-print, .skip-link { display: none !important; }
  .pack-doc { padding: 0 !important; max-width: none !important; }
  .pack-cover, .sp-num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sp-pack, .pack-contact { break-inside: avoid; }
  .pack-doc { font-size: 10pt; line-height: 1.4; }
  .pack-cover { padding: 14px 20px; margin-bottom: 12px; gap: 18px; }
  .pack-cover img { width: 70px; height: 70px; }
  .pack-cover h1 { font-size: 26pt; }
  .pack-sec { margin-bottom: 12px; }
  .pack-sec h2 { font-size: 15pt; margin-bottom: 6px; padding-bottom: 3px; }
  .pack-sec .sp-numbers { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
  .sp-num { padding: 6px 10px; }
  .sp-num b { font-size: 20pt; }
  .sp-num span { font-size: 8pt; }
  .sp-ticks li { padding: 1px 0 1px 22px; }
  .sp-ticks li::before { top: 6px; }
  .sp-packages { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sp-pack { padding: 10px 12px; }
  .sp-pack h3 { font-size: 13pt; }
  .sp-price { margin: 2px 0 4px; }
  .sp-price b { font-size: 15pt; }
  .sp-price span, .sp-sum, .sp-pack li { font-size: 8.5pt; }
  .sp-sum { margin-bottom: 4px; }
  .sp-pack li { margin: 2px 0; }
  .pack-small { font-size: 8.5pt; margin: 6px 0 0; }
  .pack-packages { break-before: page; }
  a { color: inherit; text-decoration: none; }
}

.match-sponsor { font-size: 14px; color: var(--muted); margin-top: 2px; }
.match-sponsor a { position: relative; z-index: 1; }
.sc-sponsor { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.sc-sponsor span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.sc-sponsor img { max-width: 160px; max-height: 64px; }

/* Team sheet builder */
.ts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
@media (max-width: 900px) { .ts { grid-template-columns: 1fr; } }
.ts-form, .ts-preview { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ts-preview { position: sticky; top: 16px; }
@media (max-width: 900px) { .ts-preview { position: static; } }
.ts-step h2 { margin: 0 0 12px; font-family: var(--display); font-size: 26px; text-transform: uppercase; color: var(--navy); }
.ts-label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin: 12px 0 4px; }
.ts input, .ts select, .ts textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); min-height: 44px; }
.ts-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ts-teams { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-teams button, .ts-chip { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--navy); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.ts-teams button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.ts-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; max-height: 190px; overflow: auto; }
.ts-chip { font-size: 14px; padding: 6px 12px; min-height: 36px; }
.ts-chip:hover { background: var(--line-soft); }
.ts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ts-list li { display: flex; align-items: center; gap: 6px; }
.ts-n { width: 34px; flex-shrink: 0; text-align: right; font-family: var(--display); font-size: 20px; color: var(--navy); }
.ts-list input { flex: 1; min-width: 0; }
.ts-tag, .ts-move { font: inherit; font-weight: 700; font-size: 13px; min-width: 40px; min-height: 40px; border: 1px solid var(--line); background: var(--card); color: var(--navy); border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.ts-tag[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); }
.ts-move { min-width: 34px; color: var(--muted); }
@media (max-width: 420px) { .ts-move { display: none; } }
.ts-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.ts-opts label { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ts-opts input[type=checkbox] { width: 20px; min-height: 20px; height: 20px; }
.ts-opts select { width: auto; }
.ts-actions-small, .ts-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ts canvas { width: 100%; height: auto; border-radius: 8px; display: block; }
.ts textarea { min-height: 0; margin-bottom: 10px; font-size: 15px; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1px solid var(--navy); }

/* What's on */
.ev-list { margin-top: 8px; }
.ev-month { margin-top: 26px; }
.ev-month h2 { margin-bottom: 6px; }
.ev .datebox .m { text-transform: uppercase; }
.ev-tag { flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral-ink); }
.ev-fixture { background: var(--brand); color: #fff; }
.ev-training { background: rgba(126,226,161,.16); color: #9BE7B4; }
.ev-social { background: rgba(245,170,80,.16); color: #FFC680; }
.ev-juniors { background: rgba(120,170,240,.18); color: #A9C8F5; }

.ev-regular { margin-top: 20px; }
.ev-reg { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.ev-reg div { display: flex; flex-direction: column; }
.ev-reg b { color: var(--navy); font-size: 18px; }
.ev-reg span:not(.ev-tag) { color: var(--muted); }
.ev-reg .ev-tag { margin-top: 3px; min-width: 84px; text-align: center; }

/* Get involved */
.vol-why { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
.vol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.vol-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 12px); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.vol-card h3 { margin: 0; font-family: var(--display); font-size: 26px; text-transform: uppercase; color: var(--navy); }
.vol-card p { margin: 0; }
.vol-remit { font-weight: 600; }
.vol-card ul { margin: 0; padding-left: 18px; }
.vol-time, .vol-needs { font-size: 15px; }
.vol-lead { color: var(--muted); font-size: 14px; margin-top: auto !important; }
.vol-card .btn { align-self: flex-start; }
.vol-other { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.vol-other li { background: var(--line-soft); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--navy); }

/* Juniors */
.jn-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .jn-layout { grid-template-columns: 1fr; } }
.jn-main, .jn-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.jn-sec h2 { margin-bottom: 8px; }
.jn-sec ul { margin: 0 0 8px; padding-left: 20px; }
.jn-sec li { margin: 4px 0; }
.jn-sec p { margin: 6px 0 0; }
.jn-pending { display: inline-block; background: var(--line-soft); color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.jn-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* What's On: month calendar */
.cal { margin-top: 18px; }
.cal-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal.js .cal-bar { display: flex; }
.cal.js .cal-name { display: none; }
.cal-title, .cal-name { margin: 0; font-family: var(--display); font-size: 34px; text-transform: uppercase; color: var(--navy); }
.cal-name { margin: 26px 0 10px; }
.cal-nav { font: inherit; font-size: 28px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--navy); cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.cal-dow { padding: 8px 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 6px; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n+1) { border-left: 0; }
.cal-day.out { background: var(--surface-2); }
.cal-day.past .cal-num { color: var(--muted); }
.cal-num { font-weight: 700; color: var(--navy); font-size: 15px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.cal-day.today .cal-num { background: var(--gold); border-radius: 50%; }
.cal-ev { display: block; font-size: 12.5px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--neutral-bg); color: var(--neutral-ink); }
.cal-ev b { font-weight: 700; }
a.cal-ev:hover { filter: brightness(.95); text-decoration: underline; }
.cal-ev.ev-fixture { background: var(--brand); color: #fff; }
.cal-ev.ev-training { background: rgba(126,226,161,.16); color: #9BE7B4; }
.cal-ev.ev-social { background: rgba(245,170,80,.16); color: #FFC680; }
.cal-ev.ev-juniors { background: rgba(120,170,240,.18); color: #A9C8F5; }
.cal-agenda { display: none; margin-top: 12px; }
@media (max-width: 760px) {
  .cal-day { min-height: 58px; padding: 3px; gap: 3px; }
  .cal-dow { padding: 6px 2px; text-align: center; font-size: 11px; }
  .cal-num { width: 24px; height: 24px; font-size: 13px; }
  .cal-ev { font-size: 0; height: 6px; padding: 0; border-radius: 3px; }
  .cal-agenda { display: block; }
  .cal-title { font-size: 26px; }
  .cal-ev.ev-training { background: #5cb46a; }
  .cal-ev.ev-social { background: #e8a33a; }
  .cal-ev.ev-juniors { background: #5b95d6; }
}

/* Ground & match day */
.gr-hero { border-top: 4px solid var(--gold); }
.gr-safety { border: 2px solid #d64536; }
.gr-999 { margin: 0 0 10px; font-family: var(--display); font-size: 34px; color: #FF8A80; line-height: 1; }
.gr-venue { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.gr-venue:first-of-type { border-top: 0; padding-top: 0; }

.jn-help { border: 2px solid var(--gold); background: rgba(245,197,24,.07); }

/* Team page header: team photo fades into the page background */
.team-band { padding: 40px 0 8px; }
.team-band.has-photo { padding: 48px 0 40px; margin-bottom: 8px; position: relative; overflow: hidden; background: var(--ground); }
/* The team photo sits on the right and fades into the page, so a group shot isn't blown up to full width. */
.team-band.has-photo::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: min(62%, 980px);
  background: var(--team-img) center var(--team-pos, 50%) / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect; opacity: .55; }
.team-band.has-photo > .wrap { position: relative; }
.team-band.has-photo .page-intro { max-width: 560px; }
.team-band.has-photo .team-contacts { background: rgba(19,35,74,.92); backdrop-filter: blur(4px); }
.team-body { padding-top: 16px; }
@media (max-width: 760px) {
  .team-band.has-photo::before { left: 0; width: auto; bottom: auto; aspect-ratio: 4 / 3; background-position: center top;
    -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
    opacity: .4; }
}

/* Player profiles */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.plink { color: inherit; text-decoration: underline; text-decoration-color: rgba(20,37,79,.3); text-underline-offset: 3px; }
.plink:hover { text-decoration-color: var(--gold); }
.pp-head { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.pp-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid var(--card); box-shadow: 0 2px 10px rgba(11,22,51,.12); }
.pp-initials { display: flex; align-items: center; justify-content: center; background: var(--brand); color: var(--gold); font-family: var(--display); font-size: 44px; font-weight: 700; }
.pp-sub { margin: 4px 0 0; color: var(--muted); font-size: 17px; }
.pp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pp-tile { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.pp-tile span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-navy-muted); font-weight: 700; }
.pp-tile b { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--gold); }
.pp-tile small { font-size: 14px; color: var(--on-navy-muted); }
.pp-total td { font-weight: 700; border-top: 2px solid var(--line); }
.pp-best { list-style: none; margin: 0; padding: 0; }
.pp-best li { border-top: 1px solid var(--line-soft); }
.pp-best li:first-child { border-top: 0; }
.pp-best li > a, .pp-best li > b { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; color: inherit; text-decoration: none; }
.pp-best li > a:hover b { color: var(--gold); }
.pp-best b { font-family: var(--display); font-size: 28px; color: var(--navy); min-width: 64px; }
.pp-best span { color: var(--muted); font-size: 15px; }
.pp-season { border-top: 1px solid var(--line-soft); }
.pp-season:first-of-type { border-top: 0; }
.pp-season summary { cursor: pointer; padding: 10px 0; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); }
.pp-log td:nth-child(2) { white-space: normal; min-width: 200px; }
.pp-res { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; background: var(--neutral-bg); color: var(--neutral-ink); }
.pp-res.pp-W { background: var(--win-bg); color: var(--win-ink); }
.pp-res.pp-L { background: var(--loss-bg); color: var(--loss-ink); }
.pl-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.pl-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.pl-list a:hover { background: var(--ground); }
.pl-list img, .pl-list .initials { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pl-list .initials { display: flex; align-items: center; justify-content: center; background: var(--brand); color: var(--gold); font-family: var(--display); font-size: 18px; font-weight: 700; }
.pl-list b { display: block; color: var(--navy); }
.pl-list small { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .pp-tiles { grid-template-columns: repeat(2, 1fr); }
  .pp-head { gap: 16px; }
  .pp-photo { width: 88px; height: 88px; }
  .pp-initials { font-size: 32px; }
  .pp-tile b { font-size: 36px; }
}
.pp-log td:nth-child(2), .pp-log th:nth-child(2), .pp-career td:nth-child(2), .pp-career th:nth-child(2) { text-align: left; }
.pl-search { display: block; width: 100%; max-width: 380px; padding: 10px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-top: 6px; }
.pl-search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
/* What's On: the whole photo at the right of the header, faded in from the left */
.team-band.ev-band.has-photo { position: relative; overflow: hidden; background: var(--ground); min-height: 300px; }
.team-band.ev-band.has-photo::before { content: ""; position: absolute; top: 0; right: max(0px, calc((100vw - 1280px) / 2)); bottom: 0; width: 380px;
  background: var(--team-img) center bottom / cover no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(0deg, transparent 0%, #000 10%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(0deg, transparent 0%, #000 10%);
  mask-composite: intersect; }
.team-band.ev-band.has-photo > .wrap { position: relative; padding-right: 400px; }
@media (max-width: 900px) {
  .team-band.ev-band.has-photo { min-height: 0; padding-bottom: 250px; }
  .team-band.ev-band.has-photo::before { top: auto; height: 240px; right: 16px; width: 272px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%), linear-gradient(0deg, transparent 0%, #000 12%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 25%), linear-gradient(0deg, transparent 0%, #000 12%); }
  .team-band.ev-band.has-photo > .wrap { padding-right: 16px; }
}

/* Join page: links for current players */
.mb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.mb-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); }
.mb-grid b { font-family: var(--display); font-size: 22px; color: var(--navy); text-transform: uppercase; }
.mb-grid p { margin: 0; color: var(--muted); }
.mb-grid .btn { margin-top: auto; }

/* Homepage: club shop and payment links */
.home-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.hl { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--radius); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.hl:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(11,22,51,.15); }
.hl b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.hl small { display: block; font-size: 15px; margin-top: 3px; }
.hl-go { font-size: 34px; line-height: 1; font-weight: 700; }
.hl-shop { background: var(--brand); color: #fff; }
.hl-shop small { color: var(--on-navy-muted); }
.hl-shop .hl-go { color: var(--gold); }
.hl-pay { background: var(--gold); color: var(--on-gold); }
.hl-pay small { color: var(--on-gold); opacity: .8; }

/* Dark theme: sponsor logos sit on white tiles so logos made for light backgrounds stay readable. */
.sponsor:not(.cta) { background: #fff; border-color: #fff; color: #5A6070; }
.sp-logo, .sponsor-logo { background: #fff; border-radius: 8px; padding: 8px; }

/* Print (e.g. the sponsorship pack): back to a light, ink-friendly palette. */
@media print {
  :root { --navy: #14254F; --brand: #14254F; --brand-deep: #0B1633; --panel: #14254F; --ground: #fff; --card: #fff;
    --surface-2: #FAFAF7; --line: #E3E1D8; --line-soft: #ECEAE2; --ink: #1A1F2E; --muted: #5A6070; }
  a { color: #14254F; }
}
/* Gold panels: text inside switches back to dark navy. */
.join-panel, .hl-pay, .ms-kind { --navy: #0B1633; --ink: #0B1633; --muted: #3D3A2A; }
.join-panel a:not(.btn) { color: #0B1633; }
/* Dark theme details */
html { background: var(--navy-deep); }
.main-nav a:not(.btn) { color: var(--navy); }
.main-nav a:not(.btn):hover { color: var(--gold); }
.vid .thumb { background-color: var(--panel); }
input, select, textarea { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
input::placeholder, textarea::placeholder { color: #8090B5; }
.nav-toggle { color: var(--navy); }
/* Policy pages */
.policy { max-width: 780px; }
.policy h2 { font-family: var(--display); font-size: 28px; text-transform: uppercase; color: var(--navy); margin: 28px 0 10px; }
.policy ul { margin: 0 0 16px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }
@media print { .policy .btn, .site-header, .site-footer, .sample-banner { display: none !important; } }

@media (max-width: 640px) { .site-footer .wrap { gap: 24px 20px; } .foot-col { flex: 1 1 40%; } .foot-brand { flex-basis: 100%; } }

.faq-item { border-top: 1px solid var(--line, rgba(255,255,255,.12)); }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 700; color: var(--navy); list-style: none; position: relative; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--gold, #F5C518); }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 16px; line-height: 1.55; }
.faq-a a { color: var(--navy); font-weight: 700; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 14px; }
.pc-grid figure { margin: 0; text-align: center; }
.pc-grid img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); background: var(--panel); }
.pc-grid figcaption { font-size: 14px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.pc-grid small { display: block; font-weight: 400; color: var(--muted, #AFBBD6); font-size: 12px; }
.mc-table td { vertical-align: top; }
.mc-table small { color: var(--muted, #AFBBD6); }
.mc-id { font-variant-numeric: tabular-nums; color: var(--muted, #AFBBD6); font-size: 13px; }
.mc-jr { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: var(--surface-2, #1E2F5C); }
.pl-id { color: var(--muted, #AFBBD6); font-weight: 400; font-size: 12px; margin-left: 4px; }

.rec-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .rec-layout { grid-template-columns: 1fr; } }
.ms-six { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 480px) { .ms-six { grid-template-columns: 1fr !important; } }
.rec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.rec-head h2 { margin: 0; }
.rec-pick { font: inherit; font-size: 15px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--ground); color: var(--navy); max-width: 100%; }

.hb-more { margin-top: 18px; }
.hb-more summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 10px 0; }
.hb-more[open] summary { margin-bottom: 12px; }
.pl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pl-head a { font-size: 14px; font-weight: 600; }

/* Fixtures & results: one control bar, then the list grouped by date (fixtures) or month (results). */
.fr-bar { margin-top: 18px; padding: 18px 20px; }
.fr-tabs { display: inline-flex; background: var(--ground); border-radius: 999px; padding: 4px; gap: 4px; }
.fr-tabs button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 9px 18px; cursor: pointer; min-height: 40px; }
.fr-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.fr-n { font-weight: 600; font-size: 13px; opacity: .75; margin-left: 2px; }
.fr-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.fr-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); flex: 1 1 160px; max-width: 240px; }
.fr-field select { font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 42px; }
.fr-field[hidden] { display: none; }
.fr-summary { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.fr-panel { margin-top: 16px; padding-top: 6px; }
.fr-group + .fr-group { margin-top: 10px; }
.fr-head { font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 14px 0 4px; }
.fr-row { display: grid; grid-template-columns: 92px 104px 1fr auto; align-items: center; gap: 14px; padding: 11px 8px; margin: 0 -8px;
  border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; border-radius: 8px; }
.fr-panel[data-fr-panel="fixtures"] .fr-row { grid-template-columns: 104px 1fr auto; }
a.fr-row:hover { background: var(--ground); }
.fr-row[hidden], .fr-group[hidden] { display: none; }
.fr-date { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.fr-team { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); background: var(--ground);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-main { display: flex; flex-direction: column; min-width: 0; }
.fr-who { font-weight: 700; }
.fr-ha { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; margin-left: 4px; vertical-align: 2px; }
.fr-vid { color: var(--gold); font-size: 12px; margin-left: 4px; }
.fr-meta { color: var(--muted); font-size: 14px; }
.fr-row .badge { width: 54px; padding: 6px 0; font-size: 13px; }
@media (max-width: 640px) {
  .fr-bar { padding: 14px; }
  .fr-field { max-width: none; flex-basis: 120px; }
  .fr-res { grid-template-columns: 1fr auto; grid-template-areas: "date badge" "main badge"; gap: 2px 12px; }
  .fr-res .fr-date { grid-area: date; }
  .fr-res .fr-team { display: none; }
  .fr-res .fr-main { grid-area: main; }
  .fr-res .badge { grid-area: badge; }
  .fr-panel[data-fr-panel="fixtures"] .fr-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .fr-panel[data-fr-panel="fixtures"] .fr-team { justify-self: start; grid-column: 1 / -1; }
  .fr-res .fr-date::after { content: " · " attr(data-team-name); }
}
