/**
 * Interior roll-out layer — Community lane E (SuperKids + Contact).
 *
 * Extends the homepage's ADR 0011 language to the two community/connect
 * interior pages. Reuses the sbc-home-* vocabulary wherever a component
 * already exists (shell, display, eyebrow, label, buttons, reveal/rise,
 * booking card, contact grid, community strip, visit map) and adds ONLY the
 * handful of genuinely new layouts under sbc-int-community-*.
 *
 * LOAD ORDER: this file must be enqueued AFTER home.css (the integrator wires
 * the enqueue chain once, at merge).
 *
 * Colours and type come from tokens.css / home.css brand tokens only — no raw
 * hex and no new tokens; on-ink/light hairlines use the --sbc-{on-ink-,}line
 * ramp. No-JS shows final content (sbc-home-rise auto-plays to opacity 1;
 * sbc-reveal ships its global noscript fallback) and every reused motion
 * primitive is covered by home.css's prefers-reduced-motion block.
 */

/* The page hero is the shared ADR-0011 helper (home.css §28, sbc-int-hero__*) —
   the earlier per-page hero override was superseded and its CSS removed. */

/* ---------- 1. shared body utilities ---------- */

/* Section display headline, editorial prose and action rows — the small gaps
   the per-page home-* wrappers don't already own. */
.sbc-int-community-heading {
	margin-top: 1.25rem;
}

.sbc-int-community-prose {
	margin-top: 1.5rem;
}

.sbc-int-community-prose p + p {
	margin-top: 1rem;
}

.sbc-int-community-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* ---------- 3. editorial split (SuperKids initiative) ---------- */

.sbc-int-community-split {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 64em) {
	.sbc-int-community-split {
		align-items: center;
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.sbc-int-community-split__main {
		grid-column: span 6;
	}

	.sbc-int-community-split__media {
		grid-column: span 6;
	}
}

/* Two portraits over one wide photo (the sample's camp / clinic trio). */
.sbc-int-community-sk-media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.sbc-int-community-sk-photo {
	background: var(--sbc-ink);
	overflow: hidden;
}

.sbc-int-community-sk-photo img {
	display: block;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.sbc-int-community-sk-photo--portrait {
	aspect-ratio: 3 / 4;
}

.sbc-int-community-sk-photo--wide {
	aspect-ratio: 16 / 9;
	grid-column: span 2;
}

.sbc-int-community-sk-photo--wide img {
	object-position: top;
}

/* ---------- 4. SuperKids red band (three-column) ---------- */

/* White copy on the brand red (mirrors .sbc-home-community): who it serves,
   the summer camp series, and how the community can help. */
.sbc-int-community-band {
	background: var(--sbc-red);
	color: var(--sbc-paper);
}

.sbc-int-community-band__grid {
	display: grid;
	gap: 0 3rem;
}

@media (min-width: 40em) {
	.sbc-int-community-band__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sbc-int-community-band__item {
	border-top: 1px solid var(--sbc-on-ink-line);
	padding-top: 1.25rem;
}

/* ---------- 5. Direct contacts — staff directory ---------- */

.sbc-int-community-staff {
	border-top: 1px solid var(--sbc-line-18);
}

.sbc-int-community-staff__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	border-bottom: 1px solid var(--sbc-line-18);
	padding-block: 1rem;
}

.sbc-int-community-staff__who {
	min-width: 0;
}

.sbc-int-community-staff__name {
	font-family: var(--sbc-font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--sbc-ink);
}

.sbc-int-community-staff__role {
	margin-top: 0.15rem;
	font-size: 0.8rem;
	color: var(--sbc-text-muted);
}

.sbc-int-community-staff__email {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--sbc-red);
	transition: color 0.25s ease;
}

.sbc-int-community-staff__email:hover {
	color: var(--sbc-ink);
}

.sbc-int-community-staff__email svg {
	flex-shrink: 0;
}

/* Phone + office-hours row under the directory. */
.sbc-int-community-staff__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin-top: 1.5rem;
}

/* ---------- 6. Complex map (Contact) ---------- */

/* Constrains the official complex map on its dark band while reusing
   .sbc-home-visit__map* (border, bar and meta are on-ink by design). */
.sbc-int-community-map {
	max-width: 46rem;
	margin-inline: auto;
}

.sbc-int-community-map .sbc-home-visit__map img {
	display: block;
	width: 100%;
	height: auto;
}