:root {
  --navy: #14254F;
  --navy-deep: #0B1633;
  --gold: #F5C518;
  --ground: #F6F5F0;
  --card: #FFFFFF;
  --line: #E3E1D8;
  --line-soft: #ECEAE2;
  --ink: #1A1F2E;
  --muted: #5A6070;
  --on-navy-muted: #C9D1E6;
  --win-bg: #E3F1E6; --win-ink: #1E6B34;
  --loss-bg: #FBE7E5; --loss-ink: #A2291D;
  --neutral-bg: #ECEAE2; --neutral-ink: #4A4F5C;
  --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; }
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(--navy); }
a:hover { color: var(--navy-deep); }
: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(--navy); padding: 10px 14px; font-weight: 700; z-index: 10; }
.skip:focus { left: 10px; }

/* Header */
.site-header { background: var(--card); 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 (max-width: 860px) {
  .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(--navy); }
.btn-gold:hover { background: #FFD443; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; padding: 11px 18px; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* 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(--navy); 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(--navy); color: #fff; border-color: var(--navy); }

/* Video grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.vid { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.vid .thumb { aspect-ratio: 16 / 9; background: var(--navy) center / cover no-repeat; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.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: #3A4152; }

/* Join panel */
.join-panel { background: var(--gold); color: var(--navy); 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(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.sponsor.cta:hover { background: var(--navy-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: #FAFAF7; }
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(--navy); }
.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: #3A4152; }

/* 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 300px; 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 170px; 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; } }
