/**
 * Section stack shared by every Flexible Content layout.
 *
 * Each layout adds its own file in assets/css/sections/, loaded only on pages
 * that use it (inc/sections.php).
 *
 * Figma: sections sit 164px apart on desktop, and the last one 164px above the
 * footer (desktop/insights/article detail 1598:48297). Mobile spacing is
 * provisional until a mobile page frame is measured.
 */

:root {
	--section-gap: 4rem;
}

@media (min-width: 64rem) {
	:root {
		--section-gap: 10.25rem; /* 164 */
	}
}

.sections {
	padding-block: 2rem var(--section-gap); /* 32 below the nav bar */
}

.sections > * + * {
	margin-top: var(--section-gap);
}

/* Title fallback for a page whose sections start without a hero. */
.sections__title {
	font: var(--type-header-l);
	color: var(--color-text-dark);
}

@media (min-width: 64rem) {
	.sections__title {
		font: var(--type-header-xl);
	}
}

/* The title sits 24px above whatever follows it (article column gap). */
.sections__header + * {
	margin-top: 1.5rem;
}

/* Editor content between the hero (or title) and the sections. */
.page-body .entry-content > :first-child {
	margin-top: 0;
}
