/**
 * Numbered Features (inc/blocks-layout/numbered-features.php) — a
 * full-bleed color band: Text (WYSIWYG), a full-width divider line, then
 * an evenly-spaced row of numbered Items (3–8). The outer block is
 * edge-to-edge; .nf-inner is the 75rem/2rem-padding "active" area shared
 * with Image + Text, Cards X-Up (Text), and Cards Image + Text.
 *
 * Background Color (.nf-bg-black/gold/white) drives text + divider color
 * too — Black and Gold both use white text/line, White uses black
 * text/line (confirmed in chat).
 *
 * Column count for .nf-items is dynamic per block via the --nf-count
 * custom property set inline from PHP (item count, 3–8) — not a fixed
 * enum of grid classes, since "evenly spaced" here just means N equal
 * columns for whatever N actually is.
 */

.numbered-features-block {
	width: 100%;
}

.nf-bg-black {
	background: #000000;
	color: #ffffff;
}

.nf-bg-gold {
	background: var(--goldHex);
	color: #000000;
}

.nf-bg-white {
	background: #ffffff;
	color: #000000;
}

.nf-inner {
	max-width: 75rem;
	margin: 0 auto;
	padding: 4rem 2rem;
}

.nf-text {
	font-family: var(--font-primary);
	font-weight: var(--font-weight-light);
	font-style: normal;
	font-size: 1.5rem;
	line-height: 1.5;
}

.nf-text p {
	margin: 0 0 1em;
}

.nf-text p:last-child {
	margin-bottom: 0;
}

.nf-divider {
	width: 100%;
	height: 1px;
	background: currentColor;
	margin: 2.5rem 0;
	opacity: 0.4;
}

.nf-items {
	display: grid;
	grid-template-columns: repeat(var(--nf-count, 1), 1fr);
	gap: 1.875rem;
}

.nf-item {
	font-family: var(--font-primary);
	font-weight: var(--font-weight-light);
	font-style: normal;
	font-size: 1rem;
	line-height: 1.4;
}

.nf-item-number {
	font-weight: var(--font-weight-bold);
}

@media (max-width: 899.98px) {
	.nf-items {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}