/* =======================================================================
 * Coaching Staff page — UHND.com (goldendome)
 *
 * Loaded on the /football/coaches/ + /football/coaches/{YYYY}/ route via
 * goldendome_enqueue_coaching_staff_css() in functions.php (priority 90),
 * gated on uhnd_is_staff_page(). Depends on goldendome-bundle only — the
 * page shell (.schedule-page, .schedule-page__container, .schedule-page__
 * header, .gold-rule, .deck, .schedule-page__empty) is the shared Schedule/
 * Roster chrome already in the bundle; this sheet only adds the unit-grouped
 * card grid.
 *
 * Surface model: a card grid grouped into units (Head Coach / Offense /
 * Defense / Special Teams). No headshots exist on coach_profile today, so
 * each card leads with a navy monogram of the coach's initials. The Head
 * Coach renders as a single wide "lead" card above the position-room grids.
 *
 * Colour comes from tokens; raw px are used for layout/spacing and #fff for
 * ink on the navy monogram — same convention as coach.css / player.css.
 *
 * Built 2026-06-04 with the coaching staff page.
 * ===================================================================== */

/* ===== Unit sections ================================================= */

.staff-unit {
	margin-top: 40px;
}
.staff-unit:first-of-type {
	margin-top: 28px;
}

.staff-unit__title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.staff-unit__count {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--ink-4);
}

/* ===== Card grid ===================================================== */

.staff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Lead grid (Head Coach) is a single full-width card. */
.staff-grid--lead {
	grid-template-columns: 1fr;
}

/* ===== Card ========================================================== */

.staff-card {
	list-style: none;
	background: var(--card-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	transition: box-shadow 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.staff-card__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
}

.staff-card:hover,
.staff-card:focus-within {
	border-color: var(--line-strong);
	box-shadow: 0 4px 14px oklch(0.2 0.02 70 / 0.10);
	transform: translateY(-1px);
}

/* Keyboard focus ring on the card via the inner link. */
.staff-card__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: var(--radius);
}

/* ── Monogram (initials, navy chip) ── */
.staff-card__monogram {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--nd-navy);
	color: #fff;
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* ── Text body ── */
.staff-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.staff-card__name {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
}
.staff-card__link:hover .staff-card__name {
	color: var(--accent);
}

.staff-card__role {
	font-family: var(--font-sans);
	font-size: 13px;
	line-height: 1.35;
	/* --ink-2 (not the muted --ink-3): the role is the card's key datum and
	 * 13px is normal-size text, so this keeps AA contrast comfortable on the
	 * white card while staying clearly secondary to the serif name. */
	color: var(--ink-2);
}

/* ===== Lead card (Head Coach) ======================================= */

.staff-card--lead {
	position: relative;
	border-top: 3px solid var(--gold);
}
.staff-card--lead .staff-card__link {
	padding: 22px;
	gap: 20px;
}
.staff-card--lead .staff-card__monogram {
	width: 64px;
	height: 64px;
	font-size: 24px;
}
.staff-card--lead .staff-card__name {
	font-size: 24px;
}
.staff-card--lead .staff-card__role {
	font-size: 14px;
}

/* ===== Mobile ======================================================== */

@media (max-width: 480px) {
	.staff-card__link {
		padding: 14px;
		gap: 12px;
	}
	.staff-card__monogram {
		width: 42px;
		height: 42px;
		font-size: 16px;
	}
	.staff-card__name {
		font-size: 17px;
	}
}

/* Respect reduced-motion: no hover lift / transition. */
@media (prefers-reduced-motion: reduce) {
	.staff-card {
		transition: none;
	}
	.staff-card:hover,
	.staff-card:focus-within {
		transform: none;
	}
}
