/**
 * Service Card Grid pattern styling for nordnatur.tech.
 *
 * CSS BUDGET EXCEPTION (CLAUDE.md rule 14).
 * Pattern-scoped CSS for off-scale layout values that theme.json + block
 * styles can't express: 3 × 1fr CSS grid (WP layout-grid `columnCount: 3`
 * paints `repeat(3, minmax(0, 1fr))` with no automatic mobile stacking),
 * 900px wireframe breakpoint (off-scale vs WP defaults), and the
 * single-use muted-eyebrow palette override (E-d2-3 — wireframe `.card
 * .eyebrow` switches eyebrow palette from the A1 default coral to muted
 * leaf chip; tool-card and case-tile inherit the default coral, so the
 * muted variant is single-use to service-card and stays pattern-scoped
 * per the polish-pass plan's "don't pre-generalize" rule).
 *
 * Conditionally enqueued via post_content sniff for the
 * `ntech-service-card-grid` className — zero payload on pages without
 * the pattern. Logged in ntech-core CHANGELOG 0.7.0.
 *
 * All values resolve through theme.json custom properties. Source of
 * truth for the design lives at styling/elements/service-card-grid.html.
 *
 * Atom: service-card-grid — D2 of the 2026-04-30 atom-first polish pass.
 */

.ntech-service-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem; /* 24px — wireframe `.grid-3 { gap: 24px }`; coincidentally = spacing-50, but kept literal per D1 precedent */
}

@media (max-width: 899px) {
	.ntech-service-card-grid {
		grid-template-columns: 1fr;
	}
}

/* Muted eyebrow palette inside service cards (E-d2-3).
 * Wireframe `.card .eyebrow` overrides bg/color from the A1 default
 * coral chip to base bg + contrast-2 text. Leaf radius preserved
 * (only bg + color change). Specificity 0,2,1 beats the upstream
 * `p.is-style-tnk-eyebrow` rule (0,1,1) — promote to
 * `is-style-tnk-eyebrow-muted` upstream when a second consumer asks. */
.ntech-service-card-grid p.is-style-tnk-eyebrow {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast-2);
}
