/*
 * HeroWithin-Launch — frontend stylesheet (DiscoverHeroWithin)
 * ------------------------------------------------------------------
 * A ground-up rewrite of the v0.1.7 cascade. Principles:
 *   - Mobile-first. Base rules are the phone layout; min-width queries add columns.
 *   - No !important stacks. Wide sections use a shared frame utility, not overrides.
 *   - Single source of truth for tokens: WordPress preset custom properties emitted
 *     from theme.json (--wp--preset--color--*, --font-size--*, --spacing--*).
 *   - Every interactive element keeps a visible keyboard focus state.
 *   - No horizontal overflow at any width.
 *
 * Section map:
 *   0. Local tokens + primitives      5. Home: Who Are You Becoming (Identity→Formation→Maturity)
 *   1. Site header / nav              6. Home: Four Ways to Keep Moving (doorways)
 *   2. Home: hero (split layout)      7. Home: Matrix invitation (three views)
 *   3. Home: Where Are You Today      8. Home: closing invitation
 *   4. Home: Trail Markers / seeker   9. Cards, buttons, scripture, footer, a11y, utilities
 *  10. SFP header                    11. SFP structured footer
 *  12. SFP components (HeroSection … CTAGroup)
 *
 * Sections 2–8 style the inherited six-door homepage markup that is still saved in the live
 * Home page content; keep them until that content is replaced with the SFP Home pattern.
 */

/* ============================================================
   0. LOCAL TOKENS + PRIMITIVES
   ============================================================ */
:root {
	/* Homepage frame: keeps discovery cards generously wide without fighting
	   WordPress's constrained content width via !important. */
	--es-page-gutter: clamp(1.25rem, 4vw, 4rem);
	--es-home-max: 1500px;
	--es-radius: 12px;
	--es-radius-sm: 8px;
	/* Translucent card surface per canon: Forge Black at 80% opacity. */
	--es-surface-translucent: rgba(23, 19, 16, 0.80);
	--es-hairline: rgba(247, 242, 231, 0.14);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	overflow-x: hidden; /* belt-and-braces against accidental horizontal scroll */
	background-color: var(--wp--preset--color--warm-white);
	color: var(--wp--preset--color--charcoal);
	font-family: var(--wp--preset--font-family--body);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

/* Wide homepage frame utility. Applied to full-bleed sections' inner wrapper. */
.es-frame {
	width: min(calc(100vw - (2 * var(--es-page-gutter))), var(--es-home-max));
	margin-inline: auto;
}

/* Eyebrow / label treatment (Inter Medium, tracked, uppercase). */
.es-eyebrow,
.es-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bronze);
	margin: 0 0 var(--wp--preset--spacing--20);
}

/* Section headings use Outfit (section role from the canon type ramp). */
.es-section__title {
	font-family: var(--wp--preset--font-family--section);
	font-weight: 500;
	line-height: 1.28;
}

/* ============================================================
   1. SITE HEADER / NAV  (desktop translation of the mobile NAV Bottom tokens)
   ============================================================ */
.es-site-header {
	background-color: var(--wp--preset--color--forge-black);
	color: var(--wp--preset--color--warm-white);
	border-bottom: 1px solid var(--es-hairline);
	position: sticky;
	top: 0;
	z-index: 50;
}

.es-site-header a {
	color: var(--wp--preset--color--warm-white);
	text-decoration: none;
}

.es-wordmark a {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--warm-white);
}

/* Active / hover nav item = Forged Gold, echoing the app's active-tab token. */
.es-primary-nav a:hover,
.es-primary-nav a:focus-visible,
.es-primary-nav .current-menu-item > a,
.es-primary-nav [aria-current] {
	color: var(--wp--preset--color--forged-gold);
}

/* ============================================================
   2. HOME — CINEMATIC HERO (split: image/men left, text right)
   ============================================================ */
.es-home-hero {
	position: relative;
	background-color: var(--wp--preset--color--forge-black);
	color: var(--wp--preset--color--warm-white);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

/* Reading scrim so white text stays readable over the scene, without hiding the men.
   On mobile the scrim covers the whole hero; on desktop it weights to the right. */
.es-home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(23,19,16,0.30) 0%, rgba(23,19,16,0.70) 100%);
	z-index: 0;
}

.es-home-hero__content {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	padding-block: clamp(3.5rem, 12vh, 8rem);
	align-content: end;
	min-height: min(82vh, 720px);
}

.es-home-hero .es-eyebrow {
	color: var(--wp--preset--color--forged-gold);
}

.es-home-hero h1 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--hero);
	line-height: 1.06;
	color: var(--wp--preset--color--warm-white);
	text-wrap: balance;
	margin: 0;
}

.es-home-hero p {
	font-size: var(--wp--preset--font-size--section);
	color: var(--wp--preset--color--cloud);
	max-width: 34ch;
}

@media (min-width: 60em) {
	.es-home-hero::after {
		background: linear-gradient(90deg, rgba(23,19,16,0) 0%, rgba(23,19,16,0) 34%, rgba(23,19,16,0.55) 62%, rgba(23,19,16,0.82) 100%);
	}
	.es-home-hero__content {
		/* Left column yields to the scene; right column holds the reading zone. */
		grid-template-columns: minmax(0, 1fr) minmax(30rem, 40rem);
		align-content: center;
	}
	.es-home-hero__text {
		grid-column: 2;
	}
	/* Phrasing stays intentional (Building Men. / Building Brothers. / Building Legacy.)
	   through fluid sizing + balance, not white-space: nowrap. */
	.es-home-hero h1 {
		font-size: clamp(2.75rem, 4.4vw, 4.25rem);
	}
}

/* ============================================================
   3. HOME — WHERE ARE YOU TODAY  (two balanced, equal-height cards)
   ============================================================ */
.es-orientation {
	padding-block: var(--wp--preset--spacing--70);
	background-color: var(--wp--preset--color--warm-white);
}

.es-orientation-paths {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	align-items: stretch;
}

@media (min-width: 48em) {
	.es-orientation-paths {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.es-path-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	min-height: clamp(18rem, 24vw, 22rem);
	padding: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--cloud);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--es-radius);
}

.es-path-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10);
}

.es-path-card__list li {
	font-family: var(--wp--preset--font-family--section);
	font-size: var(--wp--preset--font-size--body);
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background-color: var(--wp--preset--color--warm-white);
	border: 1px solid var(--wp--preset--color--mist);
}

/* ============================================================
   4. HOME — TRAIL MARKERS / SEEKER PATHWAY ("Not sure what you believe?")
   ============================================================ */
.es-seeker {
	padding-block: var(--wp--preset--spacing--70);
	background: var(--wp--preset--gradient--dawn-forge);
	color: var(--wp--preset--color--warm-white);
}

.es-seeker h2 {
	color: var(--wp--preset--color--warm-white);
}

.es-seeker p {
	color: var(--wp--preset--color--cloud);
	max-width: 60ch;
}

/* ============================================================
   5. HOME — WHO ARE YOU BECOMING  (Identity → Formation → Maturity)
   ============================================================ */
.es-becoming {
	padding-block: var(--wp--preset--spacing--70);
}

.es-becoming-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	align-items: stretch;
}

.es-becoming-steps__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--bronze);
	font-size: 1.75rem;
	line-height: 1;
}

/* Mobile: arrows point down between stacked cards. */
.es-becoming-steps__arrow::before {
	content: "\2193"; /* ↓ */
}

@media (min-width: 60em) {
	.es-becoming-steps {
		grid-template-columns: minmax(16rem, 1fr) auto minmax(16rem, 1fr) auto minmax(16rem, 1fr);
	}
	.es-becoming-steps__arrow::before {
		content: "\2192"; /* → */
	}
}

/* ============================================================
   6. HOME — FOUR WAYS TO KEEP MOVING  (Truth · Stories · Practice · Brotherhood)
   ============================================================ */
.es-doorways {
	padding-block: var(--wp--preset--spacing--70);
	background-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--warm-white);
}

.es-doorways h2 {
	color: var(--wp--preset--color--warm-white);
}

.es-doorway-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
}

/* two-up at medium, four-across only when there is genuinely enough width. */
@media (min-width: 40em) {
	.es-doorway-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.es-doorway-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.es-doorway-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--40);
	background-color: var(--es-surface-translucent);
	border: 1px solid var(--es-hairline);
	border-radius: var(--es-radius);
	height: 100%;
}

.es-doorway-card h3 {
	color: var(--wp--preset--color--forged-gold);
	margin: 0;
}

.es-doorway-card__examples {
	margin-top: auto;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--stone);
}

/* ============================================================
   7. HOME — MATRIX INVITATION  (three views, one desktop row)
   ============================================================ */
.es-matrix-invitation {
	padding-block: var(--wp--preset--spacing--70);
}

.es-matrix-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	align-items: stretch;
}

/* Owner preference: all three larger-map cards in a single desktop row. */
@media (min-width: 60em) {
	.es-matrix-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ============================================================
   8. HOME — CLOSING BROTHERHOOD INVITATION
   ============================================================ */
.es-closing {
	padding-block: var(--wp--preset--spacing--80);
	background: var(--wp--preset--gradient--dawn-forge);
	color: var(--wp--preset--color--warm-white);
	text-align: center;
}

.es-closing h2 {
	color: var(--wp--preset--color--warm-white);
}

.es-closing p {
	color: var(--wp--preset--color--cloud);
	max-width: 52ch;
	margin-inline: auto;
}

/* ============================================================
   9. SHARED — CARDS, BUTTONS, SCRIPTURE, FOOTER, A11Y, UTILITIES
   ============================================================ */

/* CARD Panel translation from the Figma component. */
.es-card {
	padding: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--warm-white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--es-radius);
	box-shadow: var(--wp--preset--shadow--sm);
}

/* Secondary button (outline) — BtnSecondary translation. */
.es-btn-secondary .wp-block-button__link,
.wp-block-button.is-style-es-secondary .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--forged-gold);
	border: 1px solid var(--wp--preset--color--forged-gold);
}

.es-btn-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-es-secondary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--forged-gold);
	color: var(--wp--preset--color--forge-black);
}

/* Scripture treatment — Outfit, generous line-height, subtle tracking (canon). */
.es-scripture,
.wp-block-quote.is-style-es-scripture {
	font-family: var(--wp--preset--font-family--section);
	font-size: var(--wp--preset--font-size--scripture);
	line-height: 1.58;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--warm-iron);
}

/* Footer */
.es-site-footer {
	background-color: var(--wp--preset--color--forge-black);
	color: var(--wp--preset--color--stone);
	padding-block: var(--wp--preset--spacing--70);
	border-top: 1px solid var(--es-hairline);
}

.es-site-footer a {
	color: var(--wp--preset--color--cloud);
	text-decoration: none;
}

.es-site-footer a:hover,
.es-site-footer a:focus-visible {
	color: var(--wp--preset--color--forged-gold);
	text-decoration: underline;
}

.es-site-footer h2,
.es-site-footer h3 {
	font-family: var(--wp--preset--font-family--section);
	font-size: var(--wp--preset--font-size--caption);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--soft-stone);
}

/* Accessibility — strong, visible keyboard focus everywhere. */
:where(a, button, input, select, textarea, .wp-block-button__link, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--forged-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Skip link */
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--forged-gold);
	color: var(--wp--preset--color--forge-black);
	border-radius: var(--es-radius-sm);
	font-weight: 600;
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Utilities */
.es-text-center { text-align: center; }
.es-measure { max-width: 42rem; margin-inline: auto; }

/* ============================================================
   10. SFP HEADER  (HeroWithin wordmark + initiative line, six-item nav, two persistent CTAs)
   ------------------------------------------------------------
   Phone/tablet (< 64em): wordmark | [Begin a Journey] | menu button. The secondary CTA lives
   inside the overlay menu, so the bar never becomes a crowded second row.
   Desktop (>= 64em): row 1 wordmark + both CTAs, row 2 the six nav items. DOM order
   (brand, CTAs, nav) matches visual order at every width, so keyboard focus order does too.
   Core navigation collapses at 600px by default; the rules below move that switch to 64em
   so the six items never squeeze between 600px and 1024px.
   ============================================================ */
.sfp-header .sfp-header__bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	padding-block: var(--wp--preset--spacing--20);
}

.sfp-header .sfp-header__bar > * {
	margin: 0;
}

.sfp-brand {
	flex: 1 1 auto;
	min-width: 0;
	gap: 0.125rem;
}

.sfp-brand.sfp-brand {
	align-items: stretch;
}

.sfp-brand > p {
	margin: 0;
	min-width: 0;
	max-width: 100%;
}

.sfp-brand__wordmark {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
	line-height: 1.1;
	letter-spacing: 0.01em;
}

.sfp-header .sfp-brand__wordmark a {
	color: var(--wp--preset--color--warm-white);
	text-decoration: none;
}

.sfp-header .sfp-brand__wordmark a:hover {
	color: var(--wp--preset--color--forged-gold);
}

.sfp-brand__tagline {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.3;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--stone);
}

.sfp-header .sfp-header__ctas {
	order: 1;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--20);
}

.sfp-header .sfp-primary-nav {
	order: 2;
	flex: 0 0 auto;
}

.sfp-btn-compact .wp-block-button__link {
	padding: 0.6rem 0.9rem;
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.2;
	white-space: nowrap;
}

/* Secondary header CTA: shown in the bar from 64em; in the overlay menu below that. */
.sfp-header .sfp-header__secondary {
	display: none;
}

.sfp-header .wp-block-navigation__responsive-container:not(.is-menu-open) .sfp-nav-cta {
	display: none;
}

/* Overlay menu (open state) — large, thumb-friendly targets. */
.sfp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: var(--wp--preset--spacing--30);
	padding-top: var(--wp--preset--spacing--60);
}

.sfp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--section);
	padding-block: 0.35rem;
}

.sfp-header .is-menu-open .sfp-nav-cta .wp-block-navigation-item__content {
	margin-top: var(--wp--preset--spacing--30);
	padding: 0.75rem 1.1rem;
	border: 1px solid var(--wp--preset--color--forged-gold);
	border-radius: var(--es-radius-sm);
	color: var(--wp--preset--color--forged-gold);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
}

.sfp-header .wp-block-navigation__responsive-container-open,
.sfp-header .wp-block-navigation__responsive-container-close {
	min-width: 2.75rem;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--warm-white);
}

@media (max-width: 63.99em) {
	.sfp-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.sfp-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.sfp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
	}
}

@media (max-width: 22.5em) {
	/* 320–360px phones: tighten the bar so it stays one compact row. */
	.sfp-header .sfp-header__bar {
		gap: var(--wp--preset--spacing--10);
	}
	.sfp-btn-compact .wp-block-button__link {
		padding: 0.55rem 0.7rem;
	}
	.sfp-brand__tagline {
		letter-spacing: 0;
	}
}

@media (min-width: 64em) {
	.sfp-header .sfp-header__bar {
		flex-wrap: wrap;
		row-gap: 0;
		padding-block: var(--wp--preset--spacing--30) 0;
	}
	.sfp-header .sfp-header__secondary {
		display: block;
	}
	.sfp-btn-compact .wp-block-button__link {
		padding: 0.65rem 1.1rem;
		font-size: var(--wp--preset--font-size--caption);
		font-weight: 600;
	}
	.sfp-header .sfp-primary-nav {
		order: 3;
		flex: 1 0 100%;
		margin-top: var(--wp--preset--spacing--20);
		padding-block: var(--wp--preset--spacing--20);
		border-top: 1px solid var(--es-hairline);
	}
}

.sfp-header .sfp-primary-nav .wp-block-navigation-item__content {
	padding-block: 0.4rem;
}

/* ============================================================
   11. SFP STRUCTURED FOOTER  (four link columns + legal row)
   ============================================================ */
.sfp-footer .sfp-footer__brand > * {
	margin-block: 0 var(--wp--preset--spacing--10);
}

.sfp-footer .sfp-footer__org a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--section);
	color: var(--wp--preset--color--warm-white);
}

.sfp-footer .sfp-footer__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	margin-block: var(--wp--preset--spacing--60);
}

.sfp-footer .sfp-footer__columns > * {
	margin: 0;
}

@media (min-width: 36em) {
	.sfp-footer .sfp-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.sfp-footer .sfp-footer__columns {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.sfp-footer h2 {
	margin: 0 0 var(--wp--preset--spacing--30);
}

.sfp-footer .es-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--10);
}

.sfp-footer .es-footer-links a {
	display: inline-block;
	padding-block: 0.25rem;
}

.sfp-footer .sfp-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--es-hairline);
}

.sfp-footer .sfp-footer__bottom > * {
	margin: 0;
}

.sfp-footer .sfp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
}

/* ============================================================
   12. SFP COMPONENTS  (HeroSection, SectionIntro, AudienceOnRampCards, FeaturedContent,
       FormationFlow, ExperienceFeature, GuidedChoiceGrid, ContentCardGrid, PilotOffer,
       ResourceList, ParticipationPathGrid, CTAGroup, page hero)
   ------------------------------------------------------------
   Mobile-first. Colours, type and spacing come only from theme.json presets; scrims are
   mixed from preset colours with color-mix() rather than hand-rolled rgba values.
   ============================================================ */

/* --- Section rhythm + surfaces ----------------------------------------- */
.sfp-section {
	padding-block: var(--wp--preset--spacing--80);
}

.sfp-section__inner > * {
	margin-block: 0;
}

.sfp-section__inner > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.sfp-section--dark :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--warm-white);
}

.sfp-section--dark p {
	color: var(--wp--preset--color--cloud);
}

.sfp-section--dark .es-eyebrow {
	color: var(--wp--preset--color--forged-gold);
}

.sfp-section--dark a:where(:not(.wp-block-button__link)) {
	color: var(--wp--preset--color--forged-gold);
}

/* Secondary (outline) button on light surfaces: forged-gold text is too faint on cream,
   so light sections use a forge-black outline instead. Dark surfaces keep the gold outline. */
.sfp-section:not(.sfp-section--dark) .is-style-es-secondary .wp-block-button__link,
.sfp-page-light .is-style-es-secondary .wp-block-button__link {
	color: var(--wp--preset--color--forge-black);
	border-color: var(--wp--preset--color--forge-black);
}

.sfp-section:not(.sfp-section--dark) .is-style-es-secondary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--forge-black);
	color: var(--wp--preset--color--warm-white);
}

.sfp-cta-row {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-buttons.sfp-cta-row > .wp-block-button {
	margin: 0;
}

/* Clearly labelled placeholder copy (pending owner-approved text). */
.sfp-placeholder {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1px dashed var(--wp--preset--color--bronze);
	border-radius: var(--es-radius-sm);
	font-style: italic;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--warm-iron);
	max-width: 60ch;
}

.sfp-section--dark .sfp-placeholder,
.sfp-hero .sfp-placeholder,
.sfp-page-hero .sfp-placeholder {
	color: var(--wp--preset--color--mist);
}

/* --- SectionIntro ------------------------------------------------------- */
.sfp-section-intro {
	max-width: 48rem;
}

.sfp-section-intro > * {
	margin-block: 0;
}

.sfp-section-intro > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.sfp-section-intro h2,
.sfp-section-intro h3 {
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.sfp-section-intro p:not(.es-eyebrow):not(.sfp-placeholder),
.sfp-lede {
	font-size: var(--wp--preset--font-size--section);
	line-height: 1.45;
	color: var(--wp--preset--color--warm-iron);
}

.sfp-section--dark .sfp-section-intro p:not(.es-eyebrow):not(.sfp-placeholder) {
	color: var(--wp--preset--color--cloud);
}

.sfp-section-intro--center {
	margin-inline: auto;
	text-align: center;
}

.sfp-section-intro--center .sfp-placeholder,
.sfp-section-intro--center .wp-block-buttons {
	margin-inline: auto;
	justify-content: center;
}

.sfp-subhead {
	font-family: var(--wp--preset--font-family--section);
	font-size: var(--wp--preset--font-size--section);
}

/* No block-gap strip between the header and the page's first band. */
.wp-site-blocks > .es-main {
	margin-block-start: 0;
}

/* --- HeroSection + page hero ------------------------------------------ */
.sfp-hero,
.sfp-page-hero {
	position: relative;
	isolation: isolate;
	background-size: cover;
	background-position: center;
}

/* Reading scrim over an editor-set background image. Colours mixed from theme presets. */
.sfp-hero::before,
.sfp-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--wp--preset--color--forge-black) 35%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--forge-black) 80%, transparent) 100%
	);
}

/* Home hero: tall photo band, copy overlaid. On phones the copy sits at the bottom over a
   darker scrim; from tablet up it moves to the right half, away from the men and the fire. */
.sfp-hero {
	display: flex;
	align-items: flex-end;
	min-height: clamp(34rem, 82vh, 52rem);
	padding-block: clamp(2.5rem, 8vh, 6rem);
}

.sfp-hero > .sfp-hero__inner {
	width: 100%;
}

.sfp-hero::before {
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--wp--preset--color--forge-black) 20%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--forge-black) 55%, transparent) 45%,
		color-mix(in srgb, var(--wp--preset--color--forge-black) 90%, transparent) 100%
	);
}

@media (min-width: 48em) {
	.sfp-hero {
		align-items: center;
	}

	.sfp-hero > .sfp-hero__inner {
		display: flex;
		justify-content: flex-end;
	}

	.sfp-hero__text {
		width: min(100%, 38rem);
	}

	.sfp-hero::before {
		background:
			linear-gradient(
				90deg,
				transparent 0%,
				transparent 32%,
				color-mix(in srgb, var(--wp--preset--color--forge-black) 55%, transparent) 58%,
				color-mix(in srgb, var(--wp--preset--color--forge-black) 82%, transparent) 100%
			),
			linear-gradient(
				180deg,
				color-mix(in srgb, var(--wp--preset--color--forge-black) 25%, transparent) 0%,
				transparent 30%,
				color-mix(in srgb, var(--wp--preset--color--forge-black) 35%, transparent) 100%
			);
	}
}

.sfp-hero__text {
	max-width: 46rem;
}

.sfp-hero__text > * {
	margin-block: 0;
}

.sfp-hero__text > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.sfp-hero h1 {
	font-size: var(--wp--preset--font-size--hero);
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--warm-white);
	text-wrap: balance;
}

.sfp-hero__lede {
	max-width: 40ch;
	line-height: 1.5;
	color: var(--wp--preset--color--cloud);
}

.sfp-hero .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--50);
}

.sfp-page-hero {
	padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--70);
}

.sfp-page-hero__inner > * {
	margin-block: 0;
	max-width: 46rem;
}

.sfp-page-hero__inner > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.sfp-page-hero__title {
	color: var(--wp--preset--color--warm-white);
	line-height: 1.08;
	text-wrap: balance;
}

.sfp-page-hero__lede {
	color: var(--wp--preset--color--cloud);
}

/* --- Grids (shared by every card component) ------------------------------- */
.sfp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
	align-items: stretch;
}

.sfp-grid > * {
	margin-block: 0;
}

@media (min-width: 40em) {
	.sfp-grid--2,
	.sfp-grid--3,
	.sfp-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 60em) {
	.sfp-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.sfp-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* --- Cards (restrained border, no heavy shadow) ----------------------------- */
.sfp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--warm-white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--es-radius);
	transition: border-color 160ms ease, transform 160ms ease;
}

.sfp-card > * {
	margin-block: 0;
}

.sfp-card > .wp-block-buttons {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

.sfp-section--dark .sfp-card {
	background-color: color-mix(in srgb, var(--wp--preset--color--forge-black) 70%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--warm-white) 16%, transparent);
}

.sfp-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--section);
	font-size: var(--wp--preset--font-size--section);
	font-weight: 600;
	line-height: 1.25;
}

/* Whole-card link: the title link stretches over the card (one tab stop, descriptive text). */
.sfp-card--link .sfp-card__title a {
	color: inherit;
	text-decoration: none;
}

.sfp-card--link .sfp-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.sfp-card--link .sfp-card__title::after {
	content: "\2192";
	content: "\2192" / "";
	display: inline-block;
	margin-inline-start: 0.4em;
	color: var(--wp--preset--color--bronze);
	transition: transform 160ms ease;
}

.sfp-section--dark .sfp-card--link .sfp-card__title::after {
	color: var(--wp--preset--color--forged-gold);
}

.sfp-card--link:hover {
	border-color: var(--wp--preset--color--bronze);
}

.sfp-card--link:hover .sfp-card__title::after {
	transform: translateX(0.25em);
}

@supports selector(:has(*)) {
	.sfp-card--link:has(a:focus-visible) {
		outline: 3px solid var(--wp--preset--color--forged-gold);
		outline-offset: 3px;
	}
	.sfp-card--link .sfp-card__title a:focus-visible {
		outline: none;
	}
}

.sfp-card--feature {
	padding: var(--wp--preset--spacing--50);
	border-top: 3px solid var(--wp--preset--color--forged-gold);
	box-shadow: var(--wp--preset--shadow--sm);
}

/* --- AudienceOnRampCards ------------------------------------------------ */
.sfp-onramps .sfp-card {
	padding-block: var(--wp--preset--spacing--50);
	border-top: 3px solid var(--wp--preset--color--forged-gold);
}

.sfp-onramps .sfp-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading);
}

.sfp-card__motivation {
	font-family: var(--wp--preset--font-family--section);
	color: var(--wp--preset--color--warm-iron);
}

/* --- FeaturedContent (The Weight of Being the Strong One) ---------------------- */
.sfp-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--60);
}

.sfp-feature > * {
	margin-block: 0;
}

.sfp-feature__main > *,
.sfp-feature__paths > * {
	margin-block: 0;
}

.sfp-feature__main > * + *,
.sfp-feature__paths > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.sfp-feature__title {
	line-height: 1.1;
	text-wrap: balance;
}

.sfp-feature__paths-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sfp-feature .sfp-paths {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--20);
}

.sfp-feature .sfp-paths .sfp-card {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

@media (min-width: 64em) {
	.sfp-feature {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: center;
		gap: var(--wp--preset--spacing--70);
	}
	.sfp-feature__title {
		font-size: clamp(2.5rem, 3.4vw, 3.25rem);
	}
}

/* --- FormationFlow (Teach → Experience → Belong → Go Deeper → Lead → Multiply) -------
   Stacked on phones, 2 / 3 columns on tablets, one horizontal row of six on desktop.
   Text never shrinks; the grid reflows instead. */
.sfp-flow__summary {
	font-family: var(--wp--preset--font-family--section);
	letter-spacing: 0.02em;
}

.sfp-flow {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--30);
}

.sfp-flow > * {
	margin-block: 0;
}

.sfp-flow__step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--cloud);
	border-top: 3px solid var(--wp--preset--color--forged-gold);
	border-radius: 0 0 var(--es-radius-sm) var(--es-radius-sm);
}

.sfp-section--dark .sfp-flow__step,
.has-cloud-background-color .sfp-flow__step {
	background-color: var(--wp--preset--color--warm-white);
}

.sfp-flow__step > * {
	margin: 0;
}

.sfp-flow__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--bronze);
}

.sfp-flow__title {
	font-family: var(--wp--preset--font-family--section);
	font-size: var(--wp--preset--font-size--section);
	font-weight: 600;
}

@media (min-width: 40em) {
	.sfp-flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 56em) {
	.sfp-flow {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* One horizontal row of six only when each step is wide enough for its title at full size. */
@media (min-width: 86em) {
	.sfp-flow {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--40);
	}
	.sfp-flow__step {
		padding-inline: var(--wp--preset--spacing--30);
	}
	.sfp-flow__step:not(:last-child)::after {
		content: "\2192";
		content: "\2192" / "";
		position: absolute;
		top: var(--wp--preset--spacing--40);
		right: calc(-1 * var(--wp--preset--spacing--40));
		width: var(--wp--preset--spacing--40);
		text-align: center;
		font-size: var(--wp--preset--font-size--section);
		color: var(--wp--preset--color--bronze);
	}
}

/* --- ExperienceFeature (Moab) --------------------------------------------- */
.sfp-experience {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	background: var(--wp--preset--gradient--dawn-forge);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--forged-gold) 35%, transparent);
	border-radius: var(--es-radius);
	box-shadow: var(--wp--preset--shadow--md);
}

.sfp-experience > * {
	margin-block: 0;
}

.sfp-experience > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.sfp-experience :where(h2, h3, h4) {
	color: var(--wp--preset--color--warm-white);
}

.sfp-experience p {
	color: var(--wp--preset--color--cloud);
}

.sfp-experience .es-eyebrow {
	color: var(--wp--preset--color--forged-gold);
}

.sfp-experience__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

.sfp-experience__tagline {
	font-family: var(--wp--preset--font-family--section);
}

@media (min-width: 48em) {
	.sfp-experience {
		padding: var(--wp--preset--spacing--70);
	}
}

/* --- GuidedChoiceGrid --------------------------------------------------- */
.sfp-choices .sfp-choice {
	margin: 0;
}

.sfp-choice > a,
.sfp-choice--pending {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	min-height: 4rem;
	height: 100%;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--warm-white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--es-radius-sm);
	font-family: var(--wp--preset--font-family--section);
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--forge-black);
	text-decoration: none;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.sfp-choice > a::after {
	content: "\2192";
	content: "\2192" / "";
	flex: none;
	color: var(--wp--preset--color--bronze);
}

.sfp-choice > a:hover {
	border-color: var(--wp--preset--color--bronze);
	background-color: var(--wp--preset--color--cloud);
	color: var(--wp--preset--color--forge-black);
}

.has-cloud-background-color .sfp-choice > a,
.has-cloud-background-color .sfp-choice--pending {
	border-color: var(--wp--preset--color--stone);
}

.sfp-choice--pending {
	border-style: dashed;
	color: var(--wp--preset--color--warm-iron);
}

.sfp-choice__sub {
	display: block;
	margin-top: 0.15rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-iron);
}

.sfp-section--dark .sfp-choice > a {
	background-color: color-mix(in srgb, var(--wp--preset--color--forge-black) 70%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--warm-white) 16%, transparent);
	color: var(--wp--preset--color--warm-white);
}

/* --- PilotOffer + ResourceList ------------------------------------------- */
.sfp-pilot > *,
.sfp-resources > * {
	margin-block: 0;
}

.sfp-pilot > * + *,
.sfp-resources > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.sfp-checklist,
.sfp-resource-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--10);
}

.sfp-checklist li,
.sfp-resource-list li {
	position: relative;
	padding-inline-start: 1.6rem;
}

.sfp-checklist li::before {
	content: "\2713";
	content: "\2713" / "";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--forest-green);
	font-weight: 700;
}

.sfp-resource-list li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.6em;
	width: 0.45rem;
	height: 0.45rem;
	background-color: var(--wp--preset--color--bronze);
	border-radius: 1px;
}

.sfp-steps {
	margin: 0;
	padding-inline-start: 1.5rem;
	display: grid;
	gap: var(--wp--preset--spacing--10);
}

.sfp-steps li::marker {
	font-weight: 700;
	color: var(--wp--preset--color--bronze);
}

/* --- CTAGroup ---------------------------------------------------------- */
.sfp-cta-group {
	text-align: center;
	max-width: 48rem;
	margin-inline: auto;
}

.sfp-cta-group > * {
	margin-block: 0;
}

.sfp-cta-group > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.sfp-cta-group .wp-block-buttons,
.sfp-about-close .wp-block-buttons {
	justify-content: center;
}

.sfp-cta-group__title {
	text-wrap: balance;
}

/* --- Long words / headings never force horizontal scroll ---------------------- */
.sfp-section :where(h1, h2, h3, h4),
.sfp-hero h1,
.sfp-page-hero h1 {
	overflow-wrap: break-word;
}
