/* =========================================================
   Scout – Numbered Cards Widget
   ========================================================= */

/* ── Grid ───────────────────────────────────────────────── */

.scout-nc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
}

/* ── Card ───────────────────────────────────────────────── */

.scout-nc-card {
	position: relative;
	padding: 32px 28px;
	background-color: #1a2333;
	border-radius: 4px;
	box-sizing: border-box;
	height: auto;
	min-height: 0;
	/* Visible by default — JS adds .will-animate to opt into the hidden
	   starting state only when the scroll animation is about to run. */
}

/* JS sets this class on the grid before observing, hiding cards ready to animate */
.scout-nc-grid.will-animate .scout-nc-card {
	opacity: 0;
	transform: translateY(var(--scout-nc-fade-dist, 30px));
}

.scout-nc-grid.will-animate .scout-nc-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── SVG border overlay ─────────────────────────────────── */

.scout-nc-border-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
	border-radius: inherit;
}

.scout-nc-border-path {
	/* d, stroke-dasharray, and stroke-dashoffset are set exclusively
	   via inline style by JS — never declare them here. */
}

/* ── Number ─────────────────────────────────────────────── */

.scout-nc-number {
	font-size: clamp(1.75rem, 4vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.2);
	margin-bottom: 20px;
	font-variant-numeric: tabular-nums;
}

/* ── Heading ────────────────────────────────────────────── */

.scout-nc-heading {
	font-size: clamp(0.8rem, 1vw, 0.95rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
	margin-bottom: 16px;
	line-height: 1.3;
}

/* ── Body ───────────────────────────────────────────────── */

.scout-nc-body {
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.65);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1024px) {
	.scout-nc-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.scout-nc-card {
		padding: 28px 24px;
	}
}

@media (max-width: 640px) {
	.scout-nc-grid {
		grid-template-columns: 1fr;
	}

	.scout-nc-card {
		padding: 24px 20px;
	}

	.scout-nc-number {
		font-size: 1.75rem;
		margin-bottom: 14px;
	}
}
