/*
 * Chennai Home Guide — Builder and Locality archives (/builders/,
 * /localities/).
 *
 * Both are a real "directory listing" of the same shape — a heading
 * and a card grid, no filters — so they share one small pattern file
 * rather than two near-empty ones. Card shell/grid sizing comes from
 * components/card.css; the Locality card's own content (title, real
 * nearby-place summary) is the exact component already built for the
 * homepage (Slice 2), reused unchanged. This file only has what's
 * genuinely specific to these two pages: heading spacing and the
 * Builder card's meta line + compact stat color. See CLAUDE.md, "CSS
 * Architecture."
 */

.chg-builder-archive > h1,
.chg-locality-archive > h1 {
	margin-top: var(--wp--preset--spacing--lg);
	margin-bottom: var(--wp--preset--spacing--md);
}

.chg-builder-card__meta {
	margin: 0 0 var(--wp--preset--spacing--sm);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Unset headquarters: the binding uses emptyOk, so the line collapses
 * instead of reading "Not available" on every card. */
.chg-builder-card__meta:empty {
	display: none;
}

.chg-builder-card .chg-stat-grid {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--xs);
}

.chg-builder-card .chg-stat__number {
	color: var(--wp--preset--color--accent);
}

.chg-builder-card .chg-stat__label {
	color: var(--wp--preset--color--muted);
}

/* Builder with no public Projects: BuilderProjectAvailability swaps the
 * zero stat row for this note. Sits where the stats would, at the
 * card's foot, so cards in a row stay aligned. */
.chg-builder-card .chg-builder-stats-empty {
	margin: auto 0 0;
	padding-top: var(--wp--preset--spacing--xs);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
