/* =======================================================================
 * Coach profile CPT — UHND.com (goldendome)
 *
 * 2026-05-22 port: replaces the legacy Jannah-rendered coach single
 * (`.player_bio` background-image div + `.base_bio_info` ul + Jannah
 * archive list below). New surface adopts the Player CPT's Stadium
 * Scoreboard primitive — `docs/decisions.md` 2026-05-22 entry "Coach
 * profile adopts the player-board scoreboard pattern."
 *
 * Loaded on is_singular('coach_profile') via goldendome_enqueue_coach_css()
 * in functions.php at priority 90. Depends on goldendome-tokens and
 * goldendome-cpt-rough (which still ships .cpt-layout module-zone
 * geometry).
 *
 * Class structure mirrors player.css with two differences:
 *   1. `.coach-board__role-glyph` is text (e.g., "HC", "OC", "TE") sized
 *      to occupy the same scoreboard register as the player's `#13`.
 *   2. No tab strip below the band — coach has no sub-views; body+rail
 *      sits directly below.
 *
 * Body modules (coach-bio, coach-hc-record, coach-prior-stops,
 * coach-awards, coach-staff-history, coach-coverage) reuse the canonical
 * `.section-head` primitive (style.css) and `.data-table` primitive
 * (cpt-rough.css) for headings + tables.
 * ===================================================================== */

/* Drop the inherited .page max-width + padding so the scoreboard breaks
 * full-viewport-width. Inner constraints reassert at .coach-board__inner,
 * .coach-board__tiles, and .cpt-layout. Mirrors .page--player. */
.page--coach {
	max-width: none;
	padding: 0;
	margin: 0;
}

/* Breadcrumbs sit above the band on light page bg — re-establish the page
 * inset for the breadcrumb container. */
.page--coach > .breadcrumbs {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 12px var(--page-pad) 0;
}

/* ===== Stadium Scoreboard band ====================================== */

.coach-board {
	background: var(--nd-navy);
	color: #fff;
	overflow: hidden;
	position: relative;
}
.coach-board::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(80% 60% at 50% 100%, color-mix(in srgb, var(--nd-gold) 8%, transparent), transparent 70%);
	pointer-events: none;
}

.coach-board__inner {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0 var(--page-pad);
	position: relative;
}

/* ── Marquee: role glyph + name ──────────────────────────────────────── */
.coach-board__marquee {
	padding: 30px 0 28px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	align-items: end;
}
.coach-board__marquee--no-glyph {
	/* When no role abbreviation resolves, the name-block stands alone. */
	grid-template-columns: 1fr;
}

/* Role abbreviation glyph — analog to .player-board__num. Variable width
 * (HC = 2 chars, S&C = 3 chars, AHC = 3 chars). letter-spacing slightly
 * looser than the jersey number's tight tracking so multi-character codes
 * read as a single word, not a digit run. */
.coach-board__role-glyph {
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: clamp(48px, 6.5vw, 72px);
	line-height: 0.85;
	color: var(--nd-gold);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.coach-board__name-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.coach-board__role {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--video-band-ink-2);
}
.coach-board__role-text {
	/* Inherits the .coach-board__role typographic register (uppercase, mono,
	 * tracked). Kept as a discrete span so the chip + role can flex-align
	 * cleanly without one absorbing the other's tracking. */
}

/* Status chip — outlined, on-dark. Gold ink + gold hairline for ACTIVE
 * (semantic accent without competing with the gold role-glyph for fill
 * attention); muted ink + locked on-dark hairline for FORMER. Mirrors the
 * `.schedule-filters__chip` outlined-chip pattern, retoned to on-dark.
 * Size + tracking step down from the role-text register so the chip
 * reads as subordinate metadata, not a peer label. */
.coach-board__status {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: var(--radius-chip);
	line-height: 1;
	background: transparent;
}
.coach-board__status--active {
	/* Green: data-utility accent per Phase 3e (decisions.md 2026-05-16 "green
	 * deployment re-introduced … with data-utility role added"). Active-staff
	 * status is exactly that — a state-of-being data point — and the rest of
	 * the band uses gold sparingly (gold role-glyph, gold Career-tile value)
	 * so keeping the chip off the gold ramp avoids three different gold
	 * weights competing in the same band.
	 *
	 * Outline-with-subtle-fill: full-strength border + ~18% green wash + a
	 * lightened green ink (the medium-lightness `--nd-green` reads muddy on
	 * the navy band; mixing toward white brings it forward without crossing
	 * into "fill" territory). */
	color: color-mix(in srgb, var(--nd-green) 45%, #fff);
	background: color-mix(in srgb, var(--nd-green) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--nd-green) 80%, #fff);
}
.coach-board__status--former {
	color: var(--video-band-ink-3);
	border: 1px solid var(--video-band-line);
}
.coach-board__name {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: clamp(40px, 6vw, 78px);
	line-height: 0.92;
	letter-spacing: -0.025em;
	color: #fff;
	margin: 0;
	text-wrap: balance;
}

/* ── Scoreboard tile strip ─────────────────────────────────────────── */
.coach-board__tiles-band {
	border-top: 1px solid var(--video-band-line);
	background: rgba(0, 0, 0, 0.15); /* Dark underlay — same as player-board. */
}
.coach-board__tiles {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0 var(--page-pad);
}
.coach-board__tiles[data-tile-count="6"] { grid-template-columns: repeat(6, 1fr); }
.coach-board__tiles[data-tile-count="5"] { grid-template-columns: repeat(5, 1fr); }
.coach-board__tiles[data-tile-count="4"] { grid-template-columns: repeat(4, 1fr); }
.coach-board__tiles[data-tile-count="3"] { grid-template-columns: repeat(3, 1fr); }
.coach-board__tiles[data-tile-count="2"] { grid-template-columns: repeat(2, 1fr); }
.coach-board__tiles[data-tile-count="1"] { grid-template-columns: 1fr; }

.coach-tile {
	padding: 16px 18px;
	border-left: 1px solid var(--video-band-line);
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.coach-tile:first-child {
	border-left: 0;
	padding-left: 0;
}
.coach-tile:last-child {
	padding-right: 0;
}
.coach-tile__label {
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--video-band-ink-4);
}
.coach-tile__val {
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	line-height: 1.1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.coach-tile__val--text {
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
}
.coach-tile--gold .coach-tile__val {
	color: var(--nd-gold);
}

/* ===== Body+rail wrap (constrain max-width back to page) ============ */

.page--coach .cpt-layout {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 36px var(--page-pad) 56px;
}

/* ===== Body modules ================================================= */

/* Vertical rhythm between body modules. Matches the `.cpt-module`
 * convention (margin-block: 12px) used sitewide on CPT pages, scaled
 * up slightly here because the coach modules use the canonical
 * `.section-head` primitive (which has its own bottom hairline) and
 * benefit from a hair more breathing room than the dashed-border
 * `.cpt-module` register. First module collapses against the layout's
 * top padding. */
.cpt-content > section {
	margin-top: 20px;
}
.cpt-content > section:first-child {
	margin-top: 0;
}

/* ── Bio narrative — leans on .article-body register ─────────────── */
.coach-bio .article-body p {
	font-family: var(--font-serif);
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 1em;
}
.coach-bio .article-body p:last-child {
	margin-bottom: 0;
}

/* ── HC record table — uses .data-table primitive; overrides only ─ */
.coach-hc-record__table th[scope="row"],
.coach-hc-elsewhere__table td:nth-child(2),
.coach-prior-stops__table th[scope="row"] {
	font-family: var(--font-mono);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.coach-hc-record__table .num,
.coach-hc-elsewhere__table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* ── Awards list — plain disc-bulleted serif list ─────────────────── *
 * Note: Jannah's base.css ships `* { list-style: none }` at L225 which
 * matches every <li> directly at specificity 0 and overrides inherited
 * list-style from the parent <ul>. Setting list-style on `.coach-awards__list li`
 * (specificity 0,1,1) directly is required to win the cascade. Goes
 * away when Phase 5 lands goldendome-base.css and base.css is deleted. */
.coach-awards__list {
	margin: 0;
	padding-left: 1.25em;
}
.coach-awards__list li {
	list-style: disc;
	font-family: var(--font-serif);
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 4px;
}
.coach-awards__list li::marker {
	color: var(--ink-3);
}

/* ── Coverage river — reuses .related-card primitive ─────────────── */
.coach-coverage .news-river {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

/* ── Wikipedia attribution (single page-level line, schedule pattern) ── */
.coach-board__attribution {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--ink-3);
	margin: 32px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.coach-board__attribution a {
	color: var(--ink-2);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.coach-board__attribution a:hover {
	color: var(--nd-navy);
}

/* ===== Mobile (≤900px / ≤760px / ≤520px) ============================ */

@media (max-width: 900px) {
	.page--coach .cpt-layout--rail {
		grid-template-columns: minmax(0, 1fr);
	}
	.coach-board__tiles,
	.coach-board__tiles[data-tile-count="7"],
	.coach-board__tiles[data-tile-count="6"],
	.coach-board__tiles[data-tile-count="5"] {
		grid-template-columns: repeat(4, 1fr);
	}
	.coach-tile:nth-child(5),
	.coach-tile:nth-child(6),
	.coach-tile:nth-child(7) {
		border-top: 1px solid var(--video-band-line);
	}
}

@media (max-width: 760px) {
	.coach-board__marquee {
		padding: 24px 0 22px;
		gap: 18px;
	}
	.coach-board__tiles,
	.coach-board__tiles[data-tile-count="7"],
	.coach-board__tiles[data-tile-count="6"],
	.coach-board__tiles[data-tile-count="5"],
	.coach-board__tiles[data-tile-count="4"] {
		grid-template-columns: repeat(3, 1fr);
	}
	.coach-tile {
		padding: 14px 14px;
	}
	.coach-tile__val {
		font-size: 16px;
	}
}

@media (max-width: 520px) {
	.coach-board__tiles,
	.coach-board__tiles[data-tile-count="7"],
	.coach-board__tiles[data-tile-count="6"],
	.coach-board__tiles[data-tile-count="5"],
	.coach-board__tiles[data-tile-count="4"],
	.coach-board__tiles[data-tile-count="3"] {
		grid-template-columns: repeat(2, 1fr);
	}
	.coach-board__role-glyph {
		font-size: clamp(40px, 12vw, 56px);
	}
	.coach-board__name {
		font-size: clamp(32px, 10vw, 44px);
	}
}
