/**
 * Redesign 2026-11 — category feed (category.php).
 *
 * Lead with photo, three cards, then a dated headline list; a sticky
 * "Top news" rail on the right.
 */

body.category .main > .container.nw-cat {
	padding-top: 36px;
	padding-bottom: 88px;
}

body.category .fixed-tg-row {
	display: none;
}

.nw-cat a {
	color: inherit;
	text-decoration: none;
}

/* --- Heading ------------------------------------------------------------ */

.nw-cat-head #breadcrumbs {
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--nw-muted);
}

.nw-cat-head #breadcrumbs a {
	color: var(--nw-muted);
}

.nw-cat-head h1 {
	margin: 0;
	font-size: clamp(32px, 4.6vw, 64px);
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--nw-ink);
}

.nw-cat-sub {
	max-width: 40em;
	margin-top: 16px;
	color: var(--nw-muted);
	font-size: 18px;
	line-height: 1.5;
}

.nw-cat-sub p {
	margin: 0;
}

/* --- Layout ------------------------------------------------------------- */

.nw-cat-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	column-gap: 72px;
	margin-top: 36px;
}

/* Lead */
.nw-cat-lead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

.nw-cat-lead .nw-title--lead {
	font-size: 28px;
	line-height: 1.2;
}

.nw-cat-lead .nw-meta {
	margin-bottom: 12px;
}

/* Cards */
.nw-cat-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 40px;
}

.nw-cat-cards .nw-cover {
	margin-bottom: 14px;
}

.nw-cat-cards .nw-meta {
	margin-bottom: 6px;
}

/* Rows */
.nw-cat-rows {
	margin-top: 40px;
}

.nw-cat-row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 24px;
	padding: 22px 0;
	border-top: 1px solid var(--nw-line);
}

.nw-cat-row time {
	padding-top: 4px;
	color: var(--nw-muted);
	font-size: 13px;
}

.nw-cat-row .nw-title {
	font-size: 20px;
}

.nw-cat-row .nw-lede {
	margin-top: 6px;
}

.nw-cat-more {
	display: block;
	width: max-content;
	margin: 40px auto 0;
}

.nw-cat-more[aria-busy] {
	opacity: 0.6;
	pointer-events: none;
}

/* Rail */
.nw-cat-rail-in {
	position: sticky;
	top: calc(var(--nw-bar-h) + 28px);
}

.nw-cat-rail-title {
	margin: 0 0 4px;
	font-size: 15px;
	color: var(--nw-ink);
}

.nw-cat-top {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nw-cat-top a {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--nw-line);
}

.nw-cat-top .nw-num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--nw-yellow);
	color: var(--nw-ink-fixed);
	font: 600 14px/1 var(--nw-font-display);
}

.nw-cat-top .nw-title {
	font-size: 15px;
}

@media (max-width: 992px) {
	body.category .main > .container.nw-cat {
		padding-top: 24px;
		padding-bottom: 56px;
	}

	.nw-cat-body {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 24px;
	}

	.nw-cat-lead,
	.nw-cat-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.nw-cat-lead .nw-title--lead {
		font-size: 22px;
	}

	.nw-cat-cards {
		gap: 28px;
		margin-top: 32px;
	}

	.nw-cat-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		padding: 18px 0;
	}

	.nw-cat-row .nw-title {
		font-size: 18px;
	}

	.nw-cat-rail {
		margin-top: 48px;
	}

	.nw-cat-rail-in {
		position: static;
	}
}
