/*
 * Standard page — all three layouts (Narrative, Feature, Structured).
 * wcf-handover/design/reference/02-standard-page.html.
 */

/* ---- Narrative body -------------------------------------------------- */
.layout-narrative .prose > p:first-child { font-size: var(--fs-lede-lg); line-height: var(--lh-lede); }

/* ---- Intro + At a glance -------------------------------------------- */
.intro { align-items: flex-start; }
.intro__text { flex: 999 1 420px; max-width: 66ch; }
.prose--intro > p:first-child { font-size: var(--fs-lede-lg); line-height: var(--lh-lede); max-width: 62ch; }
.intro__glance { flex: 1 1 280px; }
.intro__glance h2 { margin-bottom: 18px; }

/* ---- Feature: alternating image + text blocks ------------------------ */
.feature-block { padding-top: 0; }
.surface-cream > .feature-block:first-child { padding-top: var(--section-pad-y); }
.feature-block__media { flex: 1 1 400px; overflow: hidden; border-radius: var(--radius-card); }
.feature-block__media img {
	display: block;
	width: 100%;
	height: 420px;
	object-fit: cover;
	border-radius: 0;
}
.feature-block__media figure,
.feature-block__media .wp-caption { margin: 0; width: auto !important; }
.feature-block__media p { margin: 0; }
.feature-block__media figcaption,
.feature-block__media .wp-caption-text { background: var(--cream); }
.feature-block__text { flex: 1 1 400px; }
.feature-block--text .feature-block__text { flex-basis: 100%; max-width: 66ch; }
.feature-block--flip .row { flex-direction: row-reverse; }
.feature-block__title {
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.08;
	margin-bottom: 20px;
}
.feature-block .prose { max-width: 52ch; }
.feature-block__btn { margin-top: 24px; }

/* Quote band between blocks. */
.quote-band blockquote { margin: 0; max-width: 22ch; padding: 0; border: 0; }
.quote-band blockquote p { margin: 0 0 26px; }
.quote-band blockquote p:last-child { margin-bottom: 0; }
.quote-band blockquote cite,
.quote-band blockquote footer {
	display: block;
	margin-top: 26px;
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	font-style: normal;
	letter-spacing: var(--track-meta);
	text-transform: uppercase;
	color: var(--crop);
}
/* Short attribution lines written as their own paragraph ("— Name"). */
.quote-band blockquote p:last-child:not(:first-child) {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	font-weight: 400;
	letter-spacing: var(--track-meta);
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--crop);
}

/* ---- Structured: numbered cards ------------------------------------- */
.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: var(--gutter);
	margin: 0;
	padding: 0;
	list-style: none;
}
.step {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-card);
	overflow: hidden;
}
.step__media img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.step__media figure, .step__media p, .step__media .wp-caption { margin: 0; width: auto !important; }
.step__media figcaption, .step__media .wp-caption-text { padding: 10px 20px 0; }
.step__body { display: flex; flex-direction: column; flex: 1; padding: var(--card-pad); }
.step__num {
	margin-bottom: 14px;
	font-family: var(--font-mono);
	font-size: var(--fs-meta-lg);
	color: var(--mute-light-2);
}
.step__title { font-size: var(--fs-h3); line-height: 1.15; margin-bottom: 12px; }
.step__text { font-size: var(--fs-small); line-height: var(--lh-lede); }
.step__text > p:first-child { font-size: var(--fs-small); line-height: var(--lh-lede); }
.step__text > * + * { margin-top: 14px; }
.step__more { margin-top: auto; padding-top: 22px; }

/* ---- Child pages ----------------------------------------------------- */
.children__title { font-size: var(--fs-h2); margin-bottom: 40px; }
.surface-cream + .children .section,
.surface-cream + .surface-cream .section { padding-top: 0; }

/* ---- ≤820px ---------------------------------------------------------- */
@media (max-width: 820px) {
	.feature-block--flip .row { flex-direction: column; }
	.feature-block .row { flex-direction: column; align-items: stretch; }
	.feature-block__media { flex-basis: auto; }
	.feature-block__media img { height: auto; max-height: 46vh; }
	.children__title { margin-bottom: 26px; }
}
