/* ==========================================================================
   Wadebridge Cricket Club — design system
   Source of truth: Build SPECIFICATION.md (v1.0)
   ========================================================================== */

/* ---------------- Tokens ---------------- */
:root {
	/* Brand — maroon */
	--maroon-950: #1a0a10;
	--maroon-900: #4A1622;
	--maroon-800: #5C1C2B;
	--maroon-700: #6E2436;
	--maroon-600: #8A2E45;
	--maroon-100: #efdde1;
	--maroon-50:  #f7eff1;

	/* Surfaces */
	--white:       #FAFAF7;
	--paper:       #F2EFE6;
	--ink:         #2A0E15;
	--ink-soft:    #5a3a44;
	--silver:      #C9CDD4;
	--silver-soft: #E6E4DB;

	/* Accents */
	--gold:       #C8A24B;
	--gold-soft:  #E0C684;
	--gold-deep:  #8E6F2A;
	--grass:      #3F6B3A;
	--live:       #E5384A;
	--win:        #2E7D4F;
	--loss:       #B43838;
	--draw:       #6B6B6B;

	/* Radii */
	--r-sm: 6px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-xl: 28px;
	--r-pill: 999px;

	/* Borders */
	--bd-light: 1px solid rgba(74,22,34,0.08);
	--bd-dark:  1px solid rgba(255,255,255,0.08);

	/* Shadows */
	--shadow-card: 0 2px 0 rgba(74,22,34,0.04), 0 18px 40px -22px rgba(74,22,34,0.25);
	--shadow-deep: 0 30px 60px -30px rgba(0,0,0,0.6);

	/* Container */
	--container: 1320px;

	/* Spacing (4px base) */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-7: 32px;
	--space-8: 40px;
	--space-9: 48px;
	--space-10: 56px;
	--space-12: 64px;
	--space-14: 80px;
	--space-16: 96px;
	--space-20: 140px;

	/* Type */
	--font-display: 'Bricolage Grotesque', 'Times New Roman', serif;
	--font-body:    'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------------- Reset + base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, picture, video, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--maroon-900); }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--maroon-900); }
:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 4px;
}
.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute;
	top: -100px; left: 16px;
	background: var(--maroon-900); color: var(--white);
	padding: 12px 18px; border-radius: var(--r-pill);
	z-index: 100;
	transition: top 200ms ease;
}
.skip-link:focus { top: 16px; }

/* ---------------- Layout ---------------- */
.wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--space-7);
	padding-right: var(--space-7);
}
@media (max-width: 720px) { .wrap { padding-left: var(--space-5); padding-right: var(--space-5); } }

.section {
	padding-top: var(--space-16);
	padding-bottom: var(--space-16);
	position: relative;
}
@media (max-width: 720px) {
	.section { padding-top: var(--space-12); padding-bottom: var(--space-12); }
}

.section-paper  { background: var(--paper); }
.section-white  { background: var(--white); }
.section-dark   { background: var(--maroon-900); color: var(--white); }
.section-deeper { background: var(--maroon-950); color: var(--white); }

.section-header {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: var(--space-7);
	margin-bottom: var(--space-10);
}
.section-header > div:first-child { max-width: 720px; }
.section-header .h2 { margin: var(--space-3) 0 var(--space-4); }
@media (max-width: 880px) {
	.section-header { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Typography ---------------- */
h1,h2,h3,h4 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: inherit;
	margin: 0 0 var(--space-4);
}
h1, .h1 { font-size: clamp(44px, 6vw, 96px); line-height: 1.02; letter-spacing: -0.035em; }
h2, .h2 { font-size: clamp(32px, 4vw, 64px); line-height: 1.05; }
h3, .h3 { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; }
h4, .h4 { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-soft); }
.section-dark .lede, .section-deeper .lede { color: rgba(255,255,255,0.78); }
.small { font-size: 14px; line-height: 1.5; }
.caption { font-size: 12px; line-height: 1.4; }

.gold-italic { color: var(--gold); font-style: italic; }
.section-white .gold-italic, .section-paper .gold-italic { color: var(--gold-deep); }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-deep);
	display: inline-flex; align-items: center; gap: 12px;
}
.section-dark .eyebrow, .section-deeper .eyebrow, .hero .eyebrow { color: var(--gold); }
.eyebrow::before {
	content: "";
	display: inline-block;
	width: 24px; height: 2px;
	background: currentColor;
	flex: 0 0 24px;
}

.tag {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	display: inline-flex; align-items: center;
	background: var(--silver-soft);
	color: var(--ink);
	padding: 5px 9px;
	border-radius: var(--r-sm);
}
.section-dark .tag, .section-deeper .tag { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.92); }
.tag-gold {
	background: rgba(200,162,75,0.12);
	color: var(--gold-deep);
}
.section-dark .tag-gold, .section-deeper .tag-gold {
	background: rgba(200,162,75,0.16);
	color: var(--gold-soft);
}
.tag-win  { background: rgba(46,125,79,0.14); color: var(--win); }
.tag-loss { background: rgba(180,56,56,0.14); color: var(--loss); }
.tag-draw { background: rgba(107,107,107,0.14); color: var(--draw); }
.tag-featured {
	background: rgba(200,162,75,0.16);
	color: var(--gold-deep);
	gap: 4px;
}
.tag-featured::before { content: "★"; font-size: 12px; }

.score-num {
	font-family: var(--font-mono);
	font-weight: 600;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

/* ---------------- Buttons ---------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: -0.005em;
	padding: 14px 22px;
	border-radius: var(--r-pill);
	border: 1px solid transparent;
	text-decoration: none;
	transition: transform 250ms ease, background-color 250ms ease, color 250ms ease, border-color 250ms ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline-offset: 4px; }
.btn-gold        { background: var(--gold); color: var(--maroon-900); }
.btn-gold:hover  { background: var(--gold-soft); color: var(--maroon-900); }
.btn-navy        { background: var(--maroon-900); color: var(--white); }
.btn-navy:hover  { background: var(--maroon-700); color: var(--white); }
.btn-ghost-dark  { background: transparent; color: var(--ink); border-color: rgba(74,22,34,0.18); }
.btn-ghost-dark:hover  { background: rgba(74,22,34,0.04); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-live {
	background: var(--live);
	color: #fff;
	padding-left: 18px;
}
.btn-live:hover { background: #c92e3f; color: #fff; }
.btn-live .pulse-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }

/* ---------------- Header / Nav ---------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 40;
	height: 80px;
	display: flex; align-items: center;
	transition: background-color 350ms ease, backdrop-filter 350ms ease, border-color 350ms ease;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.has-bg {
	background: rgba(74,22,34,0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%;
}
.brand {
	display: flex; align-items: center; gap: 14px;
	color: var(--white);
}
.brand-logo {
	width: 44px; height: 44px;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--white);
	flex: 0 0 44px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: -0.01em;
}
.brand-sub {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
}

.nav-primary {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; align-items: center; gap: var(--space-7);
}
.nav-primary a {
	color: rgba(255,255,255,0.86);
	font-weight: 500;
	font-size: 15px;
	transition: color 200ms ease;
}
.nav-primary a:hover, .nav-primary .current-menu-item a { color: var(--gold); }

.nav-right {
	display: flex; align-items: center; gap: var(--space-3);
}

.nav-toggle {
	display: none;
	background: transparent; border: 0;
	color: var(--white);
	padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
	.nav-primary { gap: var(--space-5); }
	.nav-primary a { font-size: 14px; }
}
@media (max-width: 880px) {
	.nav-primary { display: none; }
	.nav-toggle { display: inline-flex; }
	.nav-right .btn-ghost-light { display: none; }
	.nav-right .btn-gold { display: none; }
}

/* Mobile menu drawer */
.mobile-drawer {
	position: fixed;
	top: 80px; left: 0; right: 0; bottom: 0;
	background: var(--maroon-950);
	color: var(--white);
	padding: var(--space-7);
	display: none;
	z-index: 39;
	overflow-y: auto;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.mobile-drawer a {
	display: block;
	padding: var(--space-3) 0;
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 600;
	border-bottom: var(--bd-dark);
	color: var(--white);
}
.mobile-drawer a:hover { color: var(--gold); }

/* ---------------- Hero ---------------- */
.hero {
	position: relative;
	min-height: 100vh;
	background: var(--maroon-900);
	color: var(--white);
	overflow: hidden;
	display: flex;
	align-items: center;
	padding-top: 120px;
	padding-bottom: var(--space-16);
}
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(60% 80% at 12% 10%, rgba(200,162,75,0.18), transparent 60%),
		radial-gradient(50% 70% at 110% 110%, rgba(229,56,74,0.22), transparent 60%),
		radial-gradient(80% 100% at 90% 0%, rgba(110,36,54,0.7), transparent 70%);
	pointer-events: none;
}
.hero-bg {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.45;
	mix-blend-mode: luminosity;
}
.hero-bg::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(26,10,16,0.4) 0%, rgba(74,22,34,0.85) 70%, var(--maroon-900) 100%);
}
.ball-trail {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.12;
	pointer-events: none;
}
.hero-content {
	position: relative;
	max-width: 920px;
	z-index: 2;
}
.hero-h1 {
	margin-top: var(--space-6);
	margin-bottom: var(--space-7);
}
.hero-lede {
	max-width: 580px;
	font-size: 19px;
	color: rgba(255,255,255,0.84);
	margin-bottom: var(--space-8);
}
.cta-cluster {
	display: flex; flex-wrap: wrap;
	gap: var(--space-3);
}
.hero-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0,1fr));
	gap: var(--space-7);
	margin-top: var(--space-14);
	border-top: var(--bd-dark);
	padding-top: var(--space-7);
}
.hero-stat .score-num {
	display: block;
	color: var(--gold);
	font-size: 36px;
	line-height: 1;
	margin-bottom: var(--space-2);
}
.hero-stat .label {
	font-size: 14px;
	color: var(--white);
	font-weight: 500;
	margin-bottom: 2px;
}
.hero-stat .sub {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--silver);
}
@media (max-width: 880px) {
	.hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}
@media (max-width: 720px) {
	.hero { min-height: 80vh; padding-top: 110px; padding-bottom: var(--space-12); }
	.hero-stats { margin-top: var(--space-9); }
	.hero-stat .score-num { font-size: 28px; }
}

/* Matchday strip */
.matchday-strip {
	position: relative;
	margin-top: var(--space-9);
	border-top: var(--bd-dark);
	border-bottom: var(--bd-dark);
	background: rgba(0,0,0,0.18);
}
.matchday-strip .wrap {
	display: flex;
	align-items: center;
	gap: var(--space-7);
	padding-top: var(--space-4);
	padding-bottom: var(--space-4);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.84);
	white-space: nowrap;
	overflow-x: auto;
}
.matchday-strip .pulse-dot { background: var(--live); }

/* ---------------- Live Match Centre ---------------- */
.live-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: var(--space-5);
}
.scorecard {
	position: relative;
	background: linear-gradient(160deg, var(--maroon-800) 0%, var(--maroon-900) 50%, var(--maroon-950) 100%);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: var(--r-lg);
	padding: var(--space-6);
	color: var(--white);
	overflow: hidden;
	transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease, border-color 350ms ease;
}
.scorecard::before {
	content: "";
	position: absolute; top: -40%; right: -30%;
	width: 360px; height: 360px;
	background: radial-gradient(closest-side, rgba(200,162,75,0.18), transparent 70%);
	pointer-events: none;
}
.scorecard:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card);
	border-color: rgba(200,162,75,0.3);
}
.scorecard-top {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
	position: relative;
}
.scorecard-top .tags { display: inline-flex; gap: var(--space-2); }
.scorecard-matchup {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: var(--space-3);
}
.scorecard-score {
	display: flex; align-items: baseline; gap: var(--space-3);
	margin-bottom: var(--space-4);
}
.scorecard-score .runs {
	font-family: var(--font-mono);
	font-size: 56px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--white);
}
.scorecard-score .overs {
	font-family: var(--font-mono);
	font-size: 22px;
	font-weight: 600;
	color: var(--gold);
}
.scorecard-status {
	font-size: 14px;
	color: rgba(255,255,255,0.82);
	margin-bottom: var(--space-4);
}
.scorecard-status .target { color: var(--gold); font-family: var(--font-mono); }
.mini-scorecard {
	border-top: var(--bd-dark);
	padding-top: var(--space-3);
}
.mini-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: var(--space-3);
	padding: 8px 0;
	border-bottom: var(--bd-dark);
	font-size: 13px;
}
.mini-row:last-child { border-bottom: 0; }
.mini-row .name { color: rgba(255,255,255,0.94); }
.mini-row .figs {
	font-family: var(--font-mono);
	color: var(--gold-soft);
}
.mini-row.striker .name::after { content: "*"; color: var(--gold); margin-left: 4px; }
.last-over {
	display: flex; gap: 6px;
	margin: var(--space-4) 0;
}
.last-over .ball {
	width: 22px; height: 22px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--font-mono);
	font-size: 11px; font-weight: 600;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.86);
	border: 1px solid rgba(255,255,255,0.06);
}
.last-over .ball.b-4 { background: rgba(200,162,75,0.2); color: var(--gold-soft); border-color: rgba(200,162,75,0.5); }
.last-over .ball.b-6 { background: rgba(200,162,75,0.4); color: var(--maroon-900); border-color: var(--gold); }
.last-over .ball.b-w { background: rgba(229,56,74,0.3); color: #fff; border-color: var(--live); }
.last-over .ball.b-d { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); }
.scorecard-footer {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--space-3);
	padding-top: var(--space-3);
	border-top: var(--bd-dark);
	font-size: 13px;
	color: rgba(255,255,255,0.72);
}
.scorecard-footer a {
	color: var(--gold-soft);
	font-weight: 500;
	display: inline-flex; align-items: center; gap: 4px;
}
.scorecard-footer a:hover { color: var(--gold); }

/* Live commentary ticker */
.live-ticker {
	margin-top: var(--space-6);
	padding: var(--space-4) var(--space-5);
	background: rgba(255,255,255,0.04);
	border-radius: var(--r-md);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: rgba(255,255,255,0.84);
	display: flex; align-items: center; gap: var(--space-4);
	overflow: hidden;
}
.live-ticker .pulse-dot { background: var(--live); flex: 0 0 8px; }
.live-ticker .ticker-track {
	white-space: nowrap;
	overflow: hidden;
	flex: 1;
}

/* Live badge / pulse */
.badge-live {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--live);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 5px 9px;
	border-radius: var(--r-sm);
}
.pulse-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #fff;
	display: inline-block;
	animation: pulseDot 1.6s infinite ease;
}
@keyframes pulseDot {
	0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
	70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
	100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) {
	.pulse-dot { animation: none; }
}

/* No-data / pre-match scorecard variants */
.scorecard.is-pre .scorecard-score,
.scorecard.is-no-data .scorecard-score { display: none; }
.scorecard.is-pre .scorecard-status,
.scorecard.is-no-data .scorecard-status { color: var(--gold-soft); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.scorecard.is-pre .last-over,
.scorecard.is-pre .mini-scorecard,
.scorecard.is-no-data .mini-scorecard,
.scorecard.is-no-data .last-over { display: none; }

/* ---------------- Fixtures & Results ---------------- */
.tabs {
	display: inline-flex;
	gap: 4px;
	background: var(--silver-soft);
	padding: 4px;
	border-radius: var(--r-pill);
}
.tabs button {
	background: transparent;
	border: 0;
	padding: 8px 18px;
	border-radius: var(--r-pill);
	font: 500 14px/1 var(--font-body);
	color: var(--ink);
	transition: background 200ms ease, color 200ms ease;
}
.tabs button.is-active { background: var(--maroon-900); color: var(--white); }
.section-dark .tabs { background: rgba(255,255,255,0.06); }
.section-dark .tabs button { color: rgba(255,255,255,0.84); }
.section-dark .tabs button.is-active { background: var(--white); color: var(--maroon-900); }

.filter-chips {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin: var(--space-5) 0;
}
.filter-chips button {
	background: transparent;
	border: 1px solid rgba(74,22,34,0.18);
	padding: 8px 14px;
	border-radius: var(--r-pill);
	font: 500 13px/1 var(--font-body);
	color: var(--ink);
	transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.filter-chips button.is-active {
	background: var(--maroon-900); color: var(--white); border-color: var(--maroon-900);
}
.filter-chips button:hover { border-color: var(--maroon-900); }

.table-card {
	background: var(--white);
	border: var(--bd-light);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.section-dark .table-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

.fixture-row, .result-row {
	display: grid;
	grid-template-columns: 90px 1fr 1.5fr 80px 120px 130px;
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-4) var(--space-5);
	border-bottom: var(--bd-light);
	transition: background 200ms ease;
}
.fixture-row:last-child, .result-row:last-child { border-bottom: 0; }
.fixture-row:hover, .result-row:hover { background: rgba(74,22,34,0.02); }
.result-row { grid-template-columns: 90px 1fr 1.5fr 1fr 1fr 120px; }

.date-block { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.date-block .day {
	font-family: var(--font-mono);
	font-size: 32px;
	font-weight: 600;
	color: var(--maroon-900);
	letter-spacing: -0.02em;
}
.date-block .month {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-top: 4px;
}
.date-block .weekday {
	font-size: 11px;
	text-transform: uppercase;
	color: var(--ink-soft);
	letter-spacing: 0.1em;
	margin-top: 4px;
}
.section-dark .date-block .day { color: var(--white); }
.section-dark .date-block .weekday { color: rgba(255,255,255,0.6); }

.match-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.match-meta { font-size: 12px; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.section-dark .match-meta { color: rgba(255,255,255,0.6); }

.ha-marker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.match-time { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.section-dark .match-time { color: rgba(255,255,255,0.84); }

@media (max-width: 880px) {
	.fixture-row { grid-template-columns: 70px 1fr 90px; }
	.fixture-row .ha-marker, .fixture-row .match-time { display: none; }
	.fixture-row .match-meta::before { content: attr(data-time); margin-right: 8px; color: var(--maroon-900); }
	.result-row { grid-template-columns: 70px 1fr 100px; }
	.result-row .ha-marker, .result-row .player-of-match { display: none; }
}

/* ---------------- YouTube Live block ---------------- */
.yt-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--space-7);
}
@media (max-width: 880px) { .yt-grid { grid-template-columns: 1fr; } }

.yt-player {
	position: relative;
	aspect-ratio: 16/9;
	background: var(--maroon-950);
	border-radius: var(--r-lg);
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-card);
}
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-player .yt-placeholder {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
}
.yt-player .yt-placeholder::after {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(60% 80% at 50% 50%, rgba(74,22,34,0.2) 0%, rgba(26,10,16,0.7) 100%);
}
.yt-overlay {
	position: relative;
	z-index: 2;
	display: flex; flex-direction: column; align-items: center;
	gap: var(--space-3);
	color: #fff;
	text-align: center;
	padding: var(--space-7);
}
.yt-play-btn {
	width: 88px; height: 88px;
	border-radius: 50%;
	background: var(--live);
	border: 0;
	color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 18px 40px -8px rgba(229,56,74,0.7);
	cursor: pointer;
	transition: transform 250ms ease;
}
.yt-play-btn:hover { transform: scale(1.05); }
.yt-play-btn svg { width: 32px; height: 32px; transform: translateX(2px); }

.yt-meta-top {
	position: absolute; top: 16px; left: 16px;
	display: flex; gap: 8px; z-index: 2;
}
.yt-viewers {
	background: rgba(0,0,0,0.45);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	padding: 5px 9px;
	border-radius: var(--r-sm);
}
.yt-title {
	position: absolute; bottom: 16px; left: 20px; right: 20px;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.2;
	z-index: 2;
	text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.yt-side { display: flex; flex-direction: column; gap: var(--space-4); }
.yt-side h4 { margin-bottom: var(--space-3); }
.yt-replay {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: var(--space-3);
	background: var(--white);
	border: var(--bd-light);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: transform 300ms ease, box-shadow 300ms ease;
}
.yt-replay:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.yt-replay .thumb {
	aspect-ratio: 16/9;
	background-size: cover; background-position: center;
}
.yt-replay .body { padding: var(--space-3) var(--space-4) var(--space-3) 0; }
.yt-replay .body h5 {
	font-family: var(--font-display);
	font-size: 15px; line-height: 1.25;
	margin: 0 0 4px;
	font-weight: 600;
}
.yt-replay .body time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------------- About ---------------- */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-14);
	align-items: center;
}
@media (max-width: 880px) {
	.about-grid { grid-template-columns: 1fr; gap: var(--space-9); }
}
.about-image {
	aspect-ratio: 4/5;
	background-size: cover; background-position: center;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-card);
}
.about-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: var(--space-5);
	margin-top: var(--space-7);
	border-top: var(--bd-light);
	padding-top: var(--space-6);
}
.about-stats .score-num {
	display: block;
	color: var(--maroon-900);
	font-size: 32px;
	margin-bottom: 4px;
}
.about-stats .label { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ---------------- Teams ---------------- */
.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-5);
}
.team-card {
	background: var(--white);
	border: var(--bd-light);
	border-radius: var(--r-lg);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.team-card .image {
	aspect-ratio: 4/3;
	background-size: cover; background-position: center;
	position: relative;
}
.team-card .image .tag-featured {
	position: absolute; top: 14px; left: 14px;
}
.team-card .body {
	padding: 22px;
	display: flex; flex-direction: column; gap: var(--space-2);
	flex: 1;
}
.team-card h3 { margin: 4px 0; font-size: 24px; }
.team-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.team-card .more {
	margin-top: auto;
	padding-top: var(--space-3);
	font-family: var(--font-mono);
	font-size: 12px; font-weight: 600;
	letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--gold-deep);
}
.team-card .more::after { content: " →"; }

/* ---------------- Sponsors ---------------- */
.sponsors-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: linear-gradient(135deg, rgba(200,162,75,0.16), rgba(200,162,75,0.04));
	border: 1px solid rgba(200,162,75,0.4);
	border-radius: var(--r-lg);
	overflow: hidden;
	margin-bottom: var(--space-7);
}
@media (max-width: 880px) { .sponsors-featured { grid-template-columns: 1fr; } }
.sponsors-featured .body { padding: 40px; }
.sponsors-featured .image {
	background-size: cover; background-position: center;
	min-height: 320px;
}
.sponsors-featured h3 { color: var(--white); margin-bottom: var(--space-3); }
.sponsors-featured p { color: rgba(255,255,255,0.86); }
.sponsors-featured blockquote {
	margin: var(--space-5) 0 0;
	padding-left: var(--space-4);
	border-left: 2px solid var(--gold);
	font-family: var(--font-display);
	font-size: 19px;
	line-height: 1.4;
	font-style: italic;
	color: var(--white);
}

.sponsors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0;
	border: var(--bd-dark);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.sponsors-grid .cell {
	padding: 32px 20px;
	display: flex; align-items: center; justify-content: center;
	border-right: var(--bd-dark);
	border-bottom: var(--bd-dark);
	transition: background 200ms ease;
	min-height: 120px;
}
.sponsors-grid .cell:hover { background: rgba(255,255,255,0.04); }
.sponsors-grid .cell img {
	max-width: 140px;
	max-height: 60px;
	filter: grayscale(1) brightness(2);
	opacity: 0.7;
	transition: filter 250ms ease, opacity 250ms ease;
}
.sponsors-grid .cell:hover img { filter: none; opacity: 1; }
.sponsors-grid .cell .placeholder {
	font-family: var(--font-display);
	font-size: 14px;
	color: rgba(255,255,255,0.5);
	font-weight: 600;
	letter-spacing: 0.06em;
}

/* ---------------- News ---------------- */
.news-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--space-5);
}
@media (max-width: 1080px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
	display: flex; flex-direction: column;
	background: var(--white);
	border: var(--bd-light);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.news-card.is-hero { grid-row: span 2; }
.news-card .image {
	background-size: cover; background-position: center;
	aspect-ratio: 4/3;
}
.news-card.is-hero .image { aspect-ratio: 16/10; }
.news-card .body { padding: 22px; display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.news-card.is-hero .body { padding: 28px; }
.news-card h3 {
	font-size: 20px;
	margin: 4px 0;
}
.news-card.is-hero h3 { font-size: 30px; }
.news-card .meta {
	display: flex; align-items: center; gap: var(--space-3);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.news-card .more {
	margin-top: auto;
	color: var(--gold-deep);
	font-family: var(--font-mono);
	font-size: 12px; font-weight: 600;
	letter-spacing: 0.12em; text-transform: uppercase;
}
.news-card .more::after { content: " →"; }
.news-card p { color: var(--ink-soft); }

/* ---------------- Membership / Pathways ---------------- */
.pathways-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-5);
}
.pathway-card {
	background: var(--white);
	border: var(--bd-light);
	border-radius: var(--r-lg);
	padding: 28px;
	display: flex; flex-direction: column; gap: var(--space-3);
	transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease, border-color 350ms ease;
}
.pathway-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card);
	border-color: rgba(74,22,34,0.2);
}
.pathway-card .glyph {
	width: 52px; height: 52px;
	border-radius: var(--r-md);
	background: rgba(200,162,75,0.16);
	color: var(--gold-deep);
	display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: var(--space-2);
}
.pathway-card .glyph svg { width: 26px; height: 26px; }
.pathway-card h3 { font-size: 22px; margin: 0; }
.pathway-card p { color: var(--ink-soft); margin: 0; }
.pathway-card .more {
	margin-top: auto;
	padding-top: var(--space-3);
	color: var(--maroon-900);
	font-weight: 500;
}

/* ---------------- Final CTA ---------------- */
.final-cta {
	background: var(--maroon-900);
	color: var(--white);
	padding-top: var(--space-20);
	padding-bottom: var(--space-20);
	position: relative;
	overflow: hidden;
	text-align: center;
}
.final-cta::before {
	content: "WCC";
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(220px, 32vw, 480px);
	line-height: 1;
	color: rgba(255,255,255,0.04);
	letter-spacing: -0.04em;
	pointer-events: none;
}
.final-cta .wrap { position: relative; z-index: 1; max-width: 1000px; }
.final-cta h2 { margin: var(--space-3) auto var(--space-5); }
.final-cta .lede { max-width: 720px; margin: 0 auto var(--space-7); }
.final-cta .cta-cluster { justify-content: center; }
@media (max-width: 720px) {
	.final-cta { padding-top: var(--space-16); padding-bottom: var(--space-16); }
}

/* ---------------- Footer ---------------- */
.site-footer {
	background: var(--maroon-950);
	color: rgba(255,255,255,0.78);
	padding-top: var(--space-12);
	padding-bottom: var(--space-7);
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
	gap: var(--space-9);
}
@media (max-width: 880px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}
.footer-brand .brand { color: #fff; margin-bottom: var(--space-4); }
.footer-grid h5 {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--gold);
	margin-bottom: var(--space-4);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.78); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: var(--space-4);
	margin-top: var(--space-9);
	padding-top: var(--space-5);
	border-top: var(--bd-dark);
	font-size: 13px;
	color: rgba(255,255,255,0.5);
}
.footer-bottom .socials {
	display: flex; gap: 10px;
}
.footer-bottom .socials a {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	display: inline-flex; align-items: center; justify-content: center;
}
.footer-bottom .socials a:hover { background: rgba(200,162,75,0.16); color: var(--gold); }
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ---------------- Mobile sticky bar ---------------- */
.mobile-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: var(--maroon-900);
	color: #fff;
	padding: 10px 8px;
	display: none;
	z-index: 40;
	border-top: var(--bd-dark);
	box-shadow: 0 -8px 20px -8px rgba(0,0,0,0.4);
}
.mobile-bar nav {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}
.mobile-bar a {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 6px 4px;
	color: #fff;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.mobile-bar svg { width: 18px; height: 18px; }
.mobile-bar a.live { color: var(--live); }
.mobile-bar a.live svg { color: var(--live); }
@media (max-width: 720px) {
	.mobile-bar { display: block; }
	body { padding-bottom: 80px; }
}

/* ---------------- Generic content pages ---------------- */
.page-hero {
	background: var(--maroon-900);
	color: var(--white);
	padding: 140px 0 80px;
	position: relative;
	overflow: hidden;
}
.page-hero::before {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(60% 80% at 12% 10%, rgba(200,162,75,0.16), transparent 60%);
	pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 920px; }
.page-hero .lede { color: rgba(255,255,255,0.84); margin-top: var(--space-4); max-width: 640px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-9); }
.prose h3 { margin-top: var(--space-7); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose blockquote {
	border-left: 3px solid var(--gold);
	padding: var(--space-2) var(--space-5);
	font-family: var(--font-display);
	font-size: 22px;
	font-style: italic;
	color: var(--maroon-900);
}
.prose img { border-radius: var(--r-lg); margin: var(--space-6) 0; }

/* Form fields */
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
}
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
	width: 100%;
	border: 1px solid rgba(74,22,34,0.18);
	background: var(--white);
	border-radius: var(--r-md);
	padding: 12px 14px;
	font: 400 15px var(--font-body);
	color: var(--ink);
	transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
	outline: 0;
	border-color: var(--maroon-900);
	box-shadow: 0 0 0 4px rgba(74,22,34,0.08);
}
.field-consent { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }

/* Gallery layout */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-4);
}
.gallery-grid a {
	display: block;
	aspect-ratio: 4/3;
	background-size: cover; background-position: center;
	border-radius: var(--r-md);
	overflow: hidden;
	transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease;
}
.gallery-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* Misc helpers */
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.section-dark .muted, .section-deeper .muted { color: rgba(255,255,255,0.6); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.gap-3 { gap: var(--space-3); }
.gap-5 { gap: var(--space-5); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hide-on-mobile { display: initial; }
@media (max-width: 720px) { .hide-on-mobile { display: none !important; } }
.hide-on-desktop { display: none; }
@media (max-width: 720px) { .hide-on-desktop { display: initial; } }

/* Mobile DOM reorder per spec: Live Match Centre first after compressed hero */
@media (max-width: 720px) {
	.lmc-mobile-first { order: -1; }
}
