/* =============================================================
   WBA PLAYHQ — Fixtures & Ladders
   White-dominant, Montserrat, red #C1272D single accent.
   Hero + anchor nav + buttons follow the HEADER/HERO CONSISTENCY
   RULE (copied from page-wheelchair-hoops.css spec, red accent).
   ============================================================= */

.phq-page {
	--phq-accent: var(--wba-red, #C1272D);
	--phq-dark: var(--wba-dark, #1A1A1A);
	--phq-border: var(--wba-border, #E6E6E2);
	--phq-muted: var(--wba-muted, #888888);
	--phq-cream: var(--wba-cream, #F8F8F6);
	background: #fff;
	color: var(--phq-dark);
}

/* ---------------- Eyebrows ---------------- */
.phq-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--phq-muted);
	margin-bottom: 14px;
}
.phq-eyebrow .wba-icon,
.phq-eyebrow svg { width: 14px; height: 14px; }
.phq-eyebrow--light { color: rgba(255, 255, 255, 0.65); }

/* =============================================================
   HERO — 58vh / min 480px, flex-centred, 105deg gradient +
   radial accent glow at 78% 50% (consistency rule)
   ============================================================= */
.phq-hero {
	position: relative;
	height: 58vh;
	min-height: 480px;
	display: flex;
	align-items: center;
	background: var(--phq-dark) url('../img/playhq-hero.jpg') center/cover no-repeat;
}
.phq-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 78% 50%, rgba(193, 39, 45, 0.34), transparent 58%),
		linear-gradient(105deg, rgba(26, 26, 26, 0.92) 0%, rgba(26, 26, 26, 0.72) 48%, rgba(26, 26, 26, 0.40) 100%);
}
.phq-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--gutter-d, 48px);
}
.phq-hero__pill {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
	padding: 9px 18px;
	border: 1px solid rgba(193, 39, 45, 0.55);
	background: rgba(193, 39, 45, 0.16);
	border-radius: 100px;
	margin-bottom: 22px;
}
.phq-hero__title {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 0 0 18px;
	text-transform: lowercase;
}
.phq-hero__title span { font-weight: 300; }
.phq-hero__title em { font-style: normal; color: var(--phq-accent); }
.phq-hero__lede {
	max-width: 600px;
	margin: 0 0 36px;
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}
.phq-hero__lede em { font-style: italic; }
.phq-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================================
   BUTTONS — exact .ah-btn spec
   ============================================================= */
.phq-btn {
	display: inline-block;
	padding: 15px 28px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: lowercase;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
	cursor: pointer;
	border: 1px solid transparent;
}
.phq-btn--primary { background: var(--phq-accent); color: #fff; }
.phq-btn--primary:hover { background: var(--phq-dark); color: #fff; transform: translateY(-2px); }
.phq-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.phq-btn--ghost:hover { background: #fff; color: var(--phq-dark); transform: translateY(-2px); }
.phq-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.phq-btn--ghost-light:hover { border-color: #fff; transform: translateY(-2px); color: #fff; }

/* =============================================================
   STICKY ANCHOR NAV — 3px red top border, lowercase links,
   scaleX underline-grow, filled CTA pill pushed right
   ============================================================= */
.phq-anchor {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
	border-top: 3px solid var(--phq-accent);
	border-bottom: 1px solid var(--phq-border);
}
.phq-anchor__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--gutter-d, 48px);
	display: flex;
	align-items: center;
	gap: 28px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.phq-anchor__inner > a {
	position: relative;
	padding: 18px 2px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: lowercase;
	color: var(--phq-dark);
	text-decoration: none;
	white-space: nowrap;
}
.phq-anchor__inner > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	height: 2px;
	background: var(--phq-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.phq-anchor__inner > a:hover::after { transform: scaleX(1); }
.phq-anchor__cta {
	margin-left: auto;
	background: var(--phq-accent);
	color: #fff !important;
	border-radius: 4px;
	padding: 10px 20px !important;
	margin-top: 8px;
	margin-bottom: 8px;
}
.phq-anchor__cta::after { display: none; }
.phq-anchor__cta:hover { background: var(--phq-dark); }

/* =============================================================
   CONTROLS — junior/senior toggle + grade select
   ============================================================= */
.phq-controls { padding: 64px 0 8px; }
.phq-controls__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--gutter-d, 48px);
}
.phq-controls__title,
.phq-section__title {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 26px;
}
.phq-controls__title em,
.phq-section__title em,
.phq-dark__title em { font-style: italic; font-weight: 300; }
.phq-controls__tools {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}
.phq-toggle {
	display: inline-flex;
	border: 1px solid var(--phq-border);
	border-radius: 4px;
	overflow: hidden;
}
.phq-toggle__btn {
	appearance: none;
	background: #fff;
	border: 0;
	padding: 13px 26px;
	font-family: inherit;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: lowercase;
	color: var(--phq-dark);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.phq-toggle__btn + .phq-toggle__btn { border-left: 1px solid var(--phq-border); }
.phq-toggle__btn.is-active { background: var(--phq-dark); color: #fff; }
.phq-toggle__btn:not(.is-active):hover { background: var(--phq-cream); }
.phq-select select {
	appearance: none;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--phq-dark);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231A1A1A'/%3E%3C/svg%3E") no-repeat right 16px center;
	border: 1px solid var(--phq-border);
	border-radius: 4px;
	padding: 13px 42px 13px 16px;
	min-width: 260px;
	cursor: pointer;
}
.phq-select select:focus-visible { outline: 2px solid var(--phq-accent); outline-offset: 2px; }
.phq-updated {
	margin: 18px 0 0;
	font-size: 0.72rem;
	font-style: italic;
	color: var(--phq-muted);
}

/* =============================================================
   SECTIONS
   ============================================================= */
.phq-section { padding: 72px 0 88px; }
.phq-section--alt { background: var(--phq-cream); }
.phq-section__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--gutter-d, 48px);
}
.phq-empty {
	border: 1px dashed var(--phq-border);
	border-radius: 14px;
	padding: 28px;
	color: var(--phq-muted);
	font-size: 0.92rem;
	line-height: 1.6;
	max-width: 640px;
}
.phq-fallback__copy {
	max-width: 620px;
	font-size: 1rem;
	line-height: 1.7;
}
.phq-fallback__copy em { font-style: italic; }

/* ---------------- Day groups + game cards ---------------- */
.phq-days { display: grid; gap: 30px; }
.phq-day__label {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--phq-muted);
	margin: 0 0 12px;
}
.phq-day__label strong { color: var(--phq-dark); font-size: 0.8rem; letter-spacing: 0.12em; }
.phq-day__games { display: grid; gap: 12px; }

.phq-game {
	display: grid;
	grid-template-columns: 92px 1fr auto;
	gap: 18px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--phq-border);
	border-radius: 14px;
	padding: 18px 22px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phq-game:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(26, 26, 26, 0.07);
}
.phq-game__time { line-height: 1.25; }
.phq-game__time strong { display: block; font-size: 1.02rem; font-weight: 800; }
.phq-game__time span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--phq-muted); }
.phq-game__teams { font-size: 0.94rem; font-weight: 600; line-height: 1.45; }
.phq-game__teams .phq-v { font-weight: 300; font-style: italic; color: var(--phq-muted); padding: 0 6px; }
.phq-game__meta { text-align: right; font-size: 0.72rem; color: var(--phq-muted); line-height: 1.5; }
.phq-game__meta strong { display: block; color: var(--phq-dark); font-size: 0.76rem; letter-spacing: 0.06em; }

/* Result variant — score replaces time column */
.phq-game--result .phq-game__time strong { color: var(--phq-accent); }
.phq-game__winner { font-weight: 800; }

/* =============================================================
   LADDER — mobile-first table
   ============================================================= */
.phq-ladder-wrap { border: 1px solid var(--phq-border); border-radius: 14px; overflow: hidden; }
.phq-ladder { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.phq-ladder thead th {
	background: var(--phq-cream);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--phq-muted);
	text-align: center;
	padding: 14px 10px;
	border-bottom: 1px solid var(--phq-border);
}
.phq-ladder thead th.phq-ladder__team { text-align: left; }
.phq-ladder td {
	padding: 13px 10px;
	text-align: center;
	border-bottom: 1px solid var(--phq-border);
	font-variant-numeric: tabular-nums;
}
.phq-ladder tbody tr:last-child td { border-bottom: 0; }
.phq-ladder td.phq-ladder__team { text-align: left; font-weight: 600; }
.phq-ladder td.phq-ladder__pos { font-weight: 800; width: 52px; }
.phq-ladder td.phq-ladder__pts { font-weight: 800; }
.phq-ladder tbody tr:first-child td.phq-ladder__pos { color: var(--phq-accent); }
.phq-ladder tbody tr:hover { background: var(--phq-cream); }

/* =============================================================
   DARK CLOSING PANEL — the page's single dark moment
   ============================================================= */
.phq-dark { background: var(--phq-dark); color: #fff; padding: 88px 0; }
.phq-dark__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--gutter-d, 48px);
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 48px;
	align-items: center;
}
.phq-dark__title {
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	font-weight: 800;
	margin: 0 0 16px;
}
.phq-dark__copy p { color: rgba(255, 255, 255, 0.72); line-height: 1.7; margin: 0; max-width: 520px; }
.phq-dark__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
	.phq-hero__inner,
	.phq-anchor__inner,
	.phq-controls__inner,
	.phq-section__inner,
	.phq-dark__inner { padding-left: var(--gutter-m, 22px); padding-right: var(--gutter-m, 22px); }
	.phq-dark__inner { grid-template-columns: 1fr; }
	.phq-dark__actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
	.phq-hero { min-height: 440px; }
	.phq-hero__ctas { flex-direction: column; }
	.phq-hero__ctas .phq-btn { width: 100%; text-align: center; }
	.phq-anchor__cta { margin-left: 0; }
	.phq-controls { padding-top: 48px; }
	.phq-section { padding: 48px 0 56px; }
	.phq-select select { min-width: 0; width: 100%; }
	.phq-controls__tools { align-items: stretch; }
	.phq-select { flex: 1 1 100%; }

	.phq-game {
		grid-template-columns: 72px 1fr;
		padding: 16px;
	}
	.phq-game__meta { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; flex-wrap: wrap; }
	.phq-game__meta strong { display: inline; }

	/* Ladder collapses to essentials: Pos, Team, P, W, L, Pts */
	.phq-hide-m { display: none; }
	.phq-ladder { font-size: 0.8rem; }
	.phq-ladder thead th, .phq-ladder td { padding: 11px 7px; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
	.phq-btn,
	.phq-game,
	.phq-anchor__inner > a::after,
	.phq-toggle__btn { transition: none !important; }
	.phq-game:hover, .phq-btn:hover { transform: none !important; }
}
