/* =======================================================================
 * Category / tag archive — UHND.com (goldendome)
 *
 * Locked spec: docs/templates/category-archive.md + design-system.md §18.
 * Loaded on is_category() || is_tag() via goldendome_enqueue_category_css()
 * in functions.php at priority 90.
 *
 * Layout shape:
 *   <main class="page page--category">
 *     <section class="category-band">…</section>      ← full-width navy band
 *     <div class="layout">
 *       <div class="body-col">
 *         <div class="category-hero">…</div>          ← page 1 only
 *         <div class="category-features">…</div>      ← page 1 only
 *         <div class="category-river">…</div>         ← always
 *         <nav class="pagination-row">…</nav>
 *       </div>
 *       <aside class="rail">…</aside>
 *     </div>
 *   </main>
 * ===================================================================== */

/* Drop the inherited .page max-width + padding so the navy band can break
 * full-viewport-width. Width management moves to .category-band__inner
 * and .layout, each of which constrains itself to var(--page-max). */
.page--category,
.page--tag {
	max-width: none;
	padding: 0;
	margin: 0;
}

/* ===== Navy band ===================================================== */

.category-band {
	background: var(--bg-video-band);
	color: var(--video-band-ink);
	padding: 36px 0 24px;
}

.category-band__inner {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0 var(--page-pad);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Eyebrow — mono micro-label above the H1, surfaces parent term on
 * subcategory pages and literal "Tag" on tag archives. Suppressed on
 * top-level category pages. */
.category-band__eyebrow {
	font-family: var(--font-mono);
	font-size: var(--type-micro-size);
	letter-spacing: var(--type-micro-tracking);
	text-transform: uppercase;
	color: var(--video-band-ink-3);
	margin: 0;
}

.category-band__title {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.1;
	color: var(--video-band-ink);
	margin: 0;
}

/* Pills row — subcategory navigation. Active state = brighter white fill
 * with navy ink (no gold per §5.6). Suppressed entirely when the helper
 * returns an empty term array (leaf categories with no children/siblings,
 * and all tag archives). */
.category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.category-pills__pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--video-band-ink-2);
	background: transparent;
	border: 1px solid var(--video-band-line-strong);
	border-radius: var(--radius-pill);
	text-decoration: none;
	min-height: 32px;
	transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.category-pills__pill:hover {
	background: var(--video-band-line);
	color: var(--video-band-ink);
	border-color: var(--video-band-ink-3);
}
.category-pills__pill.is-active {
	background: var(--video-band-ink);
	color: var(--nd-navy);
	border-color: var(--video-band-ink);
}

/* ===== Body+rail wrap ============================================== */

.page--category .layout,
.page--tag .layout {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 32px var(--page-pad) 56px;
}

@media (max-width: 900px) {
	.page--category .layout,
	.page--tag .layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ===== Hero card =================================================== */

.category-hero {
	margin: 0 0 28px;
}

.hero-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	text-decoration: none;
	color: inherit;
}

.hero-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--bg-muted);
	border-radius: var(--radius-media);
	overflow: hidden;
}
.hero-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* .hero-card__kicker eyebrow → canonical .micro-label--lg --micro --gold (2026-06-06). */

.hero-card__title {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--nd-navy);
	margin: 0;
}

.hero-card__deck {
	font-family: var(--font-serif);
	font-size: 1.0625rem;
	font-style: italic;
	line-height: 1.45;
	color: var(--text-muted);
	margin: 0;
}

.hero-card__meta {
	font-family: var(--font-sans);
	font-size: var(--type-meta-size);
	color: var(--ink-3);
}

.hero-card:hover .hero-card__title {
	color: var(--accent-hover);
}

/* ===== Feature row ================================================== */

.category-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line-soft);
}

@media (max-width: 720px) {
	.category-features {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

/* .feature-card primitive — moved to assets/css/cards.css 2026-05-22
 * as Phase 3b of the CSS rebuild. The base rules used to live here
 * AND in homepage.css verbatim; both consumers now inherit from the
 * sitewide cards.css. Surface-specific overrides (horizontal grid,
 * dense padding) stay scoped under .hero-region__features etc. */

/* ===== Tertiary river ============================================== */

.category-river {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	padding-top: 28px;
	border-top: 1px solid var(--line-soft);
}

@media (max-width: 1100px) {
	.category-river { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.category-river { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 400px) {
	.category-river { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* `.category-river .related-card .title` tertiary-register override
 * moved to assets/css/cards.css 2026-05-22 as Phase 3b — combined
 * selector with `.news-river .related-card .title` (homepage). Both
 * surfaces inherit the sans/15px tertiary register per DS §6.2 from
 * the sitewide cards.css. */

/* `.pagination-row` + `.pagination-list` primitives moved to style.css
 * (sitewide) 2026-05-22 with Phase 4c — utility pages (search / author /
 * archive) need the same pagination chrome, so the rules promote to a
 * canonical shared primitive. Surface-specific tuning still scopes
 * under each surface if needed (e.g. .page--utility .pagination-row
 * margin-top adjustment). */

/* ===== Mobile band + pills (≤760px) ================================ */

@media (max-width: 760px) {
	.category-band {
		padding: 24px 0 18px;
	}
	.category-band__title {
		font-size: clamp(1.75rem, 6vw, 2.25rem);
	}

	/* Pills switch from wrap to horizontal scroll-snap on phones to
	 * avoid a tall band. Pattern mirrors the video template's mobile
	 * CPT row + related-videos strip (style.css ≤760px block). */
	.category-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin: 6px calc(var(--page-pad) * -1) 0;
		padding: 0 var(--page-pad) 4px;
		scrollbar-width: none;
	}
	.category-pills::-webkit-scrollbar { display: none; }
	.category-pills__pill {
		flex: 0 0 auto;
		scroll-snap-align: start;
		min-height: 44px;
		padding: 10px 16px;
	}
}

/* ===== Empty state ================================================= */

.archive-empty {
	font-family: var(--font-serif);
	font-size: 1.125rem;
	color: var(--text-muted);
	padding: 48px 0;
	text-align: center;
}

/* ===== Players index + per-position sections ======================= */

/* Section-page back-link, in the navy band under the H1. */
.category-band__deck {
	font-family: var(--font-sans);
	font-size: var(--type-meta-size);
	margin: 0;
}
.category-band__deck a {
	color: var(--video-band-ink-2);
	text-decoration: none;
}
.category-band__deck a:hover {
	color: var(--video-band-ink);
}

/* Index: one block per position group (Offense / Defense / Special). */
.players-group + .players-group {
	margin-top: 40px;
}

/* Index: one position's top-N table + "View all" link. */
.players-section {
	margin-top: 24px;
}
.players-section__title {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--nd-navy);
	margin: 0 0 10px;
}
.players-section__title a {
	color: inherit;
	text-decoration: none;
}
.players-section__title a:hover {
	color: var(--accent-hover);
}
.players-section__more {
	font-family: var(--font-sans);
	font-size: var(--type-meta-size);
	margin: 10px 0 0;
}
.players-section__more a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}
.players-section__more a:hover {
	text-decoration: underline;
}
