/**
 * CPT content-section spacing + tint helpers (reusable, KD-theme-portable).
 *
 * The card grids ([blg_team], [blg_stories], …) zero their own block margins so
 * WP's layout engine can't inject stray spacing. That also cancels the section
 * rhythm, so a grid otherwise kisses its heading above and the footer below.
 * These helpers restore deliberate spacing without re-enabling WP's injection.
 *
 *   .kd-cpt-section   A group wrapping a heading + a grid/shortcode. The heading
 *                     gets a fixed gap down to the grid.
 *   .kd-section-header + .kd-*-grid   Same gap when the heading group and grid are
 *                     flat siblings (the Meet the Team assembly).
 *   .kd-section--end  The last content section before the footer — the rhythm owl
 *                     only adds TOP margins, so the final section needs an explicit
 *                     bottom gap or it kisses the footer.
 *   .kd-band--tint    Soft lavender band for emphasis. Lavender is a desaturated
 *                     tint of the brand purple, so it reads as calm brand colour
 *                     and lets the purple accents/headings pop (analogous harmony).
 *
 * Prefix: --blg-* / .kd-* only. Auto-enqueued by inc/enqueue.php (patterns/*.css).
 */

/* Heading → grid gap, nested form: heading is a child of the section group. */
.kd-cpt-section > .wp-block-heading {
	margin-block-end: var(
		--blg-space-lg
	); /* 40px down to the grid / featured block */
}

/* A CPT section heading is a display title — give it the same size as the
   .kd-section-header titles on other pages (whose size rule is scoped under a
   .kd-section-header ancestor that these headings don't have). */
.kd-cpt-section > .kd-section-header__title {
	font-size: clamp(2rem, 4vw, 3.125rem) !important; /* 32 → 50px */
	line-height: var(--blg-lh-tight);
}

/* Heading → grid gap, flat-sibling form: section-header group immediately
   followed by the grid (the grid otherwise sits at ~0 from its own zeroed margin). */
.kd-section-header + .kd-team-grid,
.kd-section-header + .kd-story-grid {
	margin-block-start: var(--blg-space-lg) !important; /* 40px */
}

/* Last content section before the footer — restore a rhythm-sized bottom gap. */
.kd-section--end {
	margin-block-end: var(
		--blg-section-gap
	) !important; /* 120 / 96 / 64 stepped */
}

/* Soft brand-tint band (lavender). Full-bleed alignfull group carries it. */
.kd-band--tint {
	background-color: var(--blg-color-tint);
}

.kd-band--tint.kd-section {
	padding-block: var(--blg-band-pad-y); /* 56 → 88px internal breathing room */
}

/* Contributor columns (Meet the Team "Other Contributors"): a two-list credits
   block. Left to the full content width the two lists fling to the page edges
   with a wide empty middle, reading as off-centre against the rest of the page.
   Cap the pair and centre it so it sits as a tidy, balanced block. */
.kd-contributors {
	max-width: var(
		--blg-measure-card
	); /* ~784px card group — Figma 93:5818, centred under the heading */
	margin-inline: auto;
}

/* Figma shows plain left-aligned name lists (no bullets), two centred columns. */
.kd-contributors ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kd-contributors li {
	margin-block: 0.25rem;
}
