/*
 * ASEO Locations hub (/services-locations/) — official brand kit only:
 * Primary #37B776, Deep Green #1D7151, Accent #2C211B,
 * Darkest Green #194035, plus the sanctioned derived tints --paper #FAFAF7
 * and --brand-accent-light #E4F6EC. No off-kit colours.
 *
 * Light background with dark ink here, unlike the footer: this is body
 * content, and the footer's dark treatment exists only because a global
 * Elementor rule was winning the cascade against light-ink links there.
 */
.aseo-loc-hub {
	--aseo-loc-primary: #37B776;
	--aseo-loc-primary-hover: #1D7151;
	--aseo-loc-ink: #2C211B;
	--aseo-loc-ink-soft: #194035;
	--aseo-loc-paper: #FAFAF7;
	--aseo-loc-tint: #E4F6EC;
	background: var(--aseo-loc-paper);
	color: var(--aseo-loc-ink);
	padding: 56px 40px 72px;
}

.aseo-loc-hub__inner {
	max-width: 1240px;
	margin: 0 auto;
}

.aseo-loc-hub__head {
	max-width: 68ch;
	margin-bottom: 48px;
}

/*
 * Doubled-up scoping (.aseo-loc-hub .aseo-loc-hub__title, and likewise below
 * for __country-name and __cross h2) beats Elementor's global kit CSS
 * (.elementor-kit-5 h1/h2), which ties on specificity with a single-class
 * selector and is enqueued after this stylesheet, so cascade order let it
 * silently win: h1 rendered 45px instead of the ~28-42px clamp, h2 35px
 * instead of 22px. Confirmed live 2026-08-19 (same bug found and fixed on
 * the Roles hub the same day — see roles-hub.css for the full writeup).
 */
.aseo-loc-hub .aseo-loc-hub__title {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	margin: 0 0 16px;
	color: var(--aseo-loc-ink);
}

.aseo-loc-hub__intro {
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 12px;
	color: var(--aseo-loc-ink-soft);
}

.aseo-loc-hub__count {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--aseo-loc-primary-hover);
	margin: 0;
}

.aseo-loc-hub__country + .aseo-loc-hub__country {
	margin-top: 48px;
}

.aseo-loc-hub .aseo-loc-hub__country-name {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--aseo-loc-tint);
	color: var(--aseo-loc-ink);
}

.aseo-loc-hub__country-count {
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--aseo-loc-tint);
	color: var(--aseo-loc-primary-hover);
}

/* auto-fill rather than auto-fit: with 51 US entries the last row should keep
   the column rhythm instead of stretching two survivors across the full width */
.aseo-loc-hub__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 4px 24px;
}

.aseo-loc-hub__item {
	margin: 0;
}

/* Multi-role state: each place becomes a heading with its role pages beneath,
   so the columns need more breathing room than a one-line link list. Kicks in
   automatically the first time a second role has location pages. */
.aseo-loc-hub__grid--stacked {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px 24px;
}

.aseo-loc-hub__place {
	display: block;
	padding: 0 12px 4px;
	font-weight: 700;
	color: var(--aseo-loc-ink);
}

.aseo-loc-hub__roles {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aseo-loc-hub .aseo-loc-hub__roles a {
	display: block;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 14px;
	text-decoration: none;
	color: var(--aseo-loc-ink-soft);
}

.aseo-loc-hub .aseo-loc-hub__roles a:hover,
.aseo-loc-hub .aseo-loc-hub__roles a:focus-visible {
	background: var(--aseo-loc-tint);
	color: var(--aseo-loc-primary-hover);
}

.aseo-loc-hub .aseo-loc-hub__item a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--aseo-loc-ink);
	transition: background-color .12s ease, color .12s ease;
}

.aseo-loc-hub .aseo-loc-hub__item a:hover,
.aseo-loc-hub .aseo-loc-hub__item a:focus-visible {
	background: var(--aseo-loc-tint);
	color: var(--aseo-loc-primary-hover);
}

/* The unmapped bucket is a bug surface, not a design element — it is tinted so
   it cannot be mistaken for a real country grouping. */
.aseo-loc-hub__country--unmapped .aseo-loc-hub__country-name {
	border-bottom-color: var(--aseo-loc-primary);
}

.aseo-loc-hub__cross {
	margin-top: 56px;
	padding: 28px 32px;
	border-radius: 10px;
	background: var(--aseo-loc-tint);
}

.aseo-loc-hub .aseo-loc-hub__cross h2 {
	font-size: 20px;
	margin: 0 0 8px;
	color: var(--aseo-loc-ink);
}

.aseo-loc-hub__cross p {
	margin: 0;
	line-height: 1.6;
	color: var(--aseo-loc-ink-soft);
}

.aseo-loc-hub .aseo-loc-hub__cross a {
	color: var(--aseo-loc-primary-hover);
	font-weight: 700;
}

.aseo-loc-hub__empty {
	color: var(--aseo-loc-ink-soft);
}

@media (max-width: 560px) {
	.aseo-loc-hub { padding: 40px 20px 56px; }
	.aseo-loc-hub__grid { grid-template-columns: 1fr; }
	.aseo-loc-hub__cross { padding: 22px 20px; }
}
