/*
 * E17 The Flydoo Method (WO-62, FD-216), as drawn in Method.png (desktop 1440, mobile 390). Owned by
 * the method lane.
 *
 * Loads with core/group on every page (functions.php), so every rule here is scoped under
 * .fd-page--method, the class on each section group of this page. No hex: colours come from
 * theme.json tokens. Phone first; min-width queries at the token breakpoints only. Rules that
 * another page group needs go in sections.css through the integrator, not here.
 */

/* Section rhythm: 88 px above and below at every width (Method.png, both artboards). */
.fd-page--method.fd-page {
	padding-block: 5.5rem;
}

.fd-page--method :is(h1, h2, h3) {
	margin-block: 0;
}

.fd-page--method h2.wp-block-heading,
.fd-page--method .fd-section-intro__heading {
	font-size: 2.5rem !important;
	line-height: 1.1;
	letter-spacing: -0.0215em;
}

/* 1 Hero */
.fd-page--method.fd-method-hero {
	padding-block: 4.875rem 4.9375rem;
}

.fd-page--method.fd-method-hero .is-style-eyebrow {
	margin: 0;
	color: var(--wp--preset--color--cta-primary);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.fd-page--method.fd-method-hero h1 {
	max-width: 56rem;
	margin: 1.25rem auto 0 max(0px, calc((100% - 75rem) / 2)) !important;
	font-size: 3.5rem !important;
	line-height: 1.0536;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
}

.fd-page--method.fd-method-hero .fd-method-lead {
	max-width: 46rem;
	margin: 1.375rem auto 0 max(0px, calc((100% - 75rem) / 2)) !important;
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 78%, transparent);
	font-size: 1.1875rem !important;
	line-height: 1.5789;
}

/* The two hero calls to action, as on the other pages (U16). */
.fd-page--method.fd-method-hero .fd-method-hero__actions {
	gap: 0.75rem;
	margin: 2rem auto 0 max(0px, calc((100% - 75rem) / 2)) !important;
}

/* 2 Phases: 73 px above; the rows carry their own padding. */
.fd-page--method.fd-method-phases-section {
	padding-block: 4.5625rem 5.5rem;
}

/* 2 Phases: the drawn chip ground; the last row (the return to Map) in ochre and cream. */
.fd-page--method .fd-method-phases--rows .fd-method-phases__get {
	background: var(--wp--preset--color--surface-sunken);
}

.fd-page--method .fd-method-phases--rows .fd-method-phases__item:last-child::before {
	color: var(--wp--preset--color--method-ochre);
}

.fd-page--method .fd-method-phases--rows .fd-method-phases__item:last-child .fd-method-phases__get {
	background: var(--wp--preset--color--method-cream);
}

/* 3 Outcomes: the five answers, as on Home. */
.fd-page--method .fd-method-outcomes__list {
	gap: 0.75rem;
}

.fd-page--method .fd-method-outcomes__card {
	padding: 1.125rem;
	border: 0;
	border-radius: var(--wp--custom--radius--md, 14px);
	background: var(--wp--preset--color--surface-raised);
}

.fd-page--method .fd-method-outcomes__kind {
	margin-bottom: 0.5rem;
}

.fd-page--method .fd-method-outcomes__title {
	font-size: var(--wp--preset--font-size--nav, 0.9375rem);
	line-height: 1.3;
}

.fd-page--method .fd-method-outcomes__text {
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	line-height: 1.3;
}

.fd-page--method .fd-method-outcomes .fd-section-intro {
	margin-bottom: 1.5rem;
}

/* 4 How we run a project: four bordered cards. */
.fd-page--method.fd-method-run .fd-card-grid {
	margin-top: 1.5rem;
}

.fd-page--method.fd-method-run .fd-card-grid__list {
	gap: 0.875rem;
}

.fd-page--method.fd-method-run .fd-card {
	gap: 0.5rem;
	padding: 1.3125rem 1.375rem;
	border: 1px solid var(--wp--preset--color--line-default);
	border-radius: var(--wp--custom--radius--lg, 16px);
	background: var(--wp--preset--color--surface-raised);
}

.fd-page--method.fd-method-run .fd-card__title {
	font-size: 0.96875rem;
	font-weight: 600;
	line-height: 1.3;
}

.fd-page--method.fd-method-run .fd-card__body {
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* 5 FAQ: a 900 px column; every answer shows at every width, with a triangle marker. */
.fd-page--method.fd-method-faq {
	padding-block: 4.875rem 5rem;
}

.fd-page--method.fd-method-faq h2.wp-block-heading,
.fd-page--method.fd-method-faq .fd-section-intro__heading {
	font-size: 2.25rem !important;
	line-height: 1.0833;
	letter-spacing: -0.025em;
}

.fd-page--method.fd-method-faq .fd-faq {
	max-width: 56.25rem;
	margin-inline: auto;
}

/* 6 Close band: centred. */
.fd-page--method.fd-method-close {
	padding-block: 4.9375rem 4.9375rem;
	text-align: center;
}

.fd-page--method.fd-method-close h2.wp-block-heading {
	font-size: 2.59rem !important;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.fd-page--method.fd-method-close p {
	max-width: 46rem;
	margin: 1rem auto 0;
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 78%, transparent);
	font-size: 1.125rem !important;
	line-height: 1.5;
}

.fd-page--method.fd-method-close .wp-block-buttons {
	justify-content: center;
	margin-top: 1.1875rem;
}

.fd-page--method.fd-method-close .wp-block-button__link {
	padding: 0.875rem 1.75rem;
}

/* At 1440 the drawn role text is a 184 px measure ("relationships / and accountability."; QA audit 1, Method 2). */
@media (min-width: 1024px) {
	.fd-page--method .fd-method-outcomes__text {
		max-width: 11.5rem;
	}
}
