/*
 * BHF Campaign Modules: shared styles
 * Everything is scoped under .bhf-cm so the BB theme skin and child theme
 * (which style a.fl-button, h1-h6, body text) can't leak in or out.
 * Sizes are px/clamp on purpose: the BB skin sets body to 14px Inter.
 */

.bhf-cm {
	/* Brand palette (BHF brand guide) */
	--bhf-navy: #183f5b;        /* Core: Navy, R24 G63 B91 */
	--bhf-teal: #2c7480;        /* Primary: Dark Teal, R44 G116 B128 */
	--bhf-teal-light: #6fc1c1;  /* Secondary: Teal, R111 G193 B193 */
	--bhf-gold: #ffc749;        /* Secondary: Orange, R255 G199 B73 (site donate colour) */

	/* Derived only from the palette above */
	--bhf-navy-deep: var(--bhf-navy);
	--bhf-mint: #edf8f8;        /* Teal at 12% on white */
	--bhf-gold-hover: #e6ba3a;  /* Same gold hover as Ways to Give (hover:bg-[#e6ba3a]) */
	--bhf-gold-ink: var(--bhf-navy);
	--bhf-ink: var(--bhf-navy);
	--bhf-body: #46657c;        /* Navy at 80% on white, 5.9:1 on white */
	--bhf-line: rgba(24, 63, 91, 0.12);
	--bhf-on-dark: rgba(255, 255, 255, 0.84);

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

	/* Same family the rest of the site uses (theme + Ways to Give / Your Dollars at Work) */
	--bhf-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bhf-display: var(--bhf-sans);

	/* Same container as Ways to Give / Your Dollars at Work: max-w-7xl, px-4 sm:px-6 lg:px-8 */
	--bhf-container: 1280px;
	--bhf-gutter: 16px;
	--bhf-section-y: clamp(64px, 8vw, 96px);
	--bhf-radius: 16px;         /* rounded-2xl, as on Ways to Give cards */

	/* Matches the existing components (Tailwind defaults) */
	--bhf-ui: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--bhf-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	--bhf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

	position: relative;
	font-family: var(--bhf-sans);
	font-size: 17px;
	line-height: 1.65;
	letter-spacing: 0;
	color: var(--bhf-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

@media (min-width: 640px) { .bhf-cm { --bhf-gutter: 24px; } }
@media (min-width: 1024px) { .bhf-cm { --bhf-gutter: 32px; } }

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

/* ---------- Surfaces ---------- */
.bhf-cm.bhf-bg-white { background: #fff; }
.bhf-cm.bhf-bg-mint { background: var(--bhf-mint); }
.bhf-cm.bhf-bg-navy { background: var(--bhf-navy); color: var(--bhf-on-dark); }

.bhf-cm.bhf-section {
	padding-block: var(--bhf-section-y);
}

.bhf-cm .bhf-wrap {
	width: 100%;
	max-width: var(--bhf-container);
	margin-inline: auto;
	padding-inline: var(--bhf-gutter);
}

.bhf-cm .bhf-wrap--narrow { max-width: 820px; }

/* ---------- Type ---------- */
.bhf-cm h1,
.bhf-cm h2,
.bhf-cm h3 {
	font-family: var(--bhf-display);
	color: var(--bhf-navy);
	font-weight: 700;
	margin: 0;
	text-transform: none;
	font-optical-sizing: auto;
}

.bhf-cm h1 {
	font-size: clamp(36px, 4.4vw, 56px);
	line-height: 1.06;
	letter-spacing: -0.02em;
}

.bhf-cm h2 {
	font-size: clamp(30px, 3.8vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.bhf-cm h3 {
	font-size: clamp(21px, 2vw, 25px);
	line-height: 1.25;
	letter-spacing: 0;
}

.bhf-cm.bhf-bg-navy h1,
.bhf-cm.bhf-bg-navy h2,
.bhf-cm.bhf-bg-navy h3 { color: #fff; }

.bhf-cm .bhf-eyebrow {
	display: block;
	margin: 0 0 14px;
	font-family: var(--bhf-sans);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bhf-teal);
}

.bhf-cm.bhf-bg-navy .bhf-eyebrow { color: var(--bhf-teal-light); }

.bhf-cm p {
	margin: 0 0 1.1em;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.bhf-cm p:last-child { margin-bottom: 0; }

.bhf-cm .bhf-lead {
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.5;
	font-weight: 600;
	color: var(--bhf-ink);
}

.bhf-cm.bhf-bg-navy .bhf-lead { color: #fff; }

.bhf-cm .bhf-rich > * { margin: 0; }
.bhf-cm .bhf-rich > :not(:first-child) { margin-top: 1.1em; }
.bhf-cm .bhf-rich a { color: var(--bhf-teal); text-decoration: underline; text-underline-offset: 3px; }
.bhf-cm .bhf-rich strong { color: var(--bhf-ink); font-weight: 700; }
.bhf-cm.bhf-bg-navy .bhf-rich strong { color: #fff; }
.bhf-cm .bhf-rich ul { margin: 0; padding-left: 1.2em; }
.bhf-cm .bhf-rich li + li { margin-top: 0.4em; }

.bhf-cm .bhf-rich blockquote {
	margin: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--bhf-teal-light);
	font-family: var(--bhf-display);
	font-size: clamp(19px, 1.6vw, 22px);
	font-style: normal;
	line-height: 1.5;
	color: var(--bhf-navy);
	background: none;
}

.bhf-cm .bhf-rich blockquote p { margin: 0; }
.bhf-cm .bhf-rich li { margin: 0; }

/* ---------- Buttons ---------- */
.bhf-cm .bhf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.bhf-cm .bhf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--bhf-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: var(--bhf-shadow-sm);
	transition:
		transform 160ms var(--ease-out),
		background-color var(--bhf-ui),
		border-color var(--bhf-ui),
		opacity var(--bhf-ui);
}

.bhf-cm .bhf-btn:active { transform: scale(0.97); }

.bhf-cm .bhf-btn:focus-visible {
	outline: 3px solid var(--bhf-teal-light);
	outline-offset: 3px;
}

.bhf-cm .bhf-btn--donate {
	background: var(--bhf-gold);
	color: var(--bhf-gold-ink) !important;
}

.bhf-cm .bhf-btn--outline {
	background: transparent;
	border-color: rgba(24, 63, 91, 0.3);
	color: var(--bhf-navy) !important;
}

.bhf-cm.bhf-bg-navy .bhf-btn--outline,
.bhf-hero .bhf-btn--outline,
.bhf-cta .bhf-btn--outline,
.bhf-thermo__card .bhf-btn--outline {
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff !important;
}

.bhf-cm .bhf-btn svg { width: 18px; height: 18px; flex: none; }

@media (hover: hover) and (pointer: fine) {
	/* Gold: darker gold. Outline: faint navy wash. Same as Ways to Give. */
	.bhf-cm .bhf-btn--donate:hover { background: var(--bhf-gold-hover); }
	.bhf-cm .bhf-btn--outline:hover { border-color: rgba(24, 63, 91, 0.6); background: rgba(24, 63, 91, 0.05); }
	.bhf-cm.bhf-bg-navy .bhf-btn--outline:hover,
	.bhf-hero .bhf-btn--outline:hover,
	.bhf-cta .bhf-btn--outline:hover,
	.bhf-thermo__card .bhf-btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

	/* Card photos zoom slightly, as on Your Dollars at Work (group-hover:scale-105, 500ms) */
	.bhf-story--feature .bhf-media:hover img { transform: scale(1.05); }

	/* Cards lift their shadow, as on Ways to Give (shadow-sm -> hover:shadow-md) */
	.bhf-cm .bhf-stat:hover { box-shadow: var(--bhf-shadow-md); }

	/* Text links underline on hover */
	.bhf-cm .bhf-rich a:hover,
	.bhf-sponsor .bhf-sponsor__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- Media ---------- */
.bhf-cm .bhf-media {
	position: relative;
	overflow: hidden;
	border-radius: var(--bhf-radius);
	background: var(--bhf-mint);
}

.bhf-cm .bhf-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease-out);
}

/* Shown only when an image hasn't been chosen yet (editor + preview) */
.bhf-cm .bhf-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 260px;
	padding: 24px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--bhf-teal);
	background:
		repeating-linear-gradient(135deg, rgba(44, 116, 128, 0.06) 0 12px, transparent 12px 24px),
		var(--bhf-mint);
}

/* ---------- Scroll reveal ----------
 * Marketing page, visited occasionally: a single, once-only reveal.
 * Observer watches the un-transformed wrapper ([data-bhf-reveal]),
 * children animate in with a short stagger.
 */
.bhf-js .bhf-cm [data-bhf-reveal] > .bhf-r {
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 500ms var(--ease-out),
		transform 500ms var(--ease-out);
	transition-delay: calc(var(--bhf-i, 0) * 70ms);
}

.bhf-js .bhf-cm [data-bhf-reveal].is-visible > .bhf-r {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.bhf-js .bhf-cm [data-bhf-reveal] > .bhf-r {
		transform: none;
		transition: opacity 300ms ease;
		transition-delay: 0ms;
	}
	.bhf-cm .bhf-btn { transition: background-color 200ms ease, border-color 200ms ease; }
	.bhf-cm .bhf-btn:active { transform: none; }
	.bhf-cm .bhf-media img { transition: none; }
	.bhf-story--feature .bhf-media:hover img { transform: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.bhf-hero {
	background: var(--bhf-navy);
	color: var(--bhf-on-dark);
	overflow: hidden;
}

.bhf-hero .bhf-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: min(760px, 88vh);
}

.bhf-hero .bhf-hero__copy {
	align-self: center;
	/* Left edge lines up with the 1280px container; % is of this half-width column */
	padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 72px) clamp(56px, 7vw, 96px) max(var(--bhf-gutter), calc(100% - var(--bhf-container) / 2 + var(--bhf-gutter)));
}

.bhf-hero h1 { color: #fff; }

.bhf-hero h1 .bhf-accent {
	display: block;
	color: var(--bhf-teal-light);
}

.bhf-hero .bhf-lead { margin-top: 26px; color: #fff; }

.bhf-hero .bhf-rich { margin-top: 18px; max-width: 560px; }

.bhf-hero .bhf-hero__match {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	max-width: 560px;
	font-size: 15px;
	line-height: 1.55;
}

.bhf-hero .bhf-hero__match-badge {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--bhf-teal-light);
	color: var(--bhf-navy);
	font-family: var(--bhf-display);
	font-size: 20px;
	font-weight: 700;
}

.bhf-hero .bhf-hero__match strong { color: #fff; }

.bhf-hero .bhf-hero__media {
	position: relative;
	min-height: 420px;
}

.bhf-hero .bhf-hero__media img,
.bhf-hero .bhf-hero__media .bhf-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.bhf-hero .bhf-hero__media--left img { object-position: 25% 50%; }
.bhf-hero .bhf-hero__media--right img { object-position: 78% 50%; }

@media (max-width: 960px) {
	.bhf-hero .bhf-hero__grid { grid-template-columns: 1fr; min-height: 0; }
	.bhf-hero .bhf-hero__media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
	.bhf-hero .bhf-hero__copy { padding: 40px var(--bhf-gutter) 64px; }
}

/* =========================================================
   STORY  (feature + portrait variants)
   ========================================================= */
.bhf-story .bhf-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(36px, 6vw, 88px);
	align-items: center;
}

.bhf-story.bhf-story--media-right .bhf-story__media { order: 2; }

.bhf-story .bhf-story__media { position: relative; }

.bhf-story .bhf-media { aspect-ratio: 4 / 5; }

.bhf-story .bhf-story__quote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--bhf-display);
	font-size: clamp(26px, 2.8vw, 36px);
	font-weight: 700;
	font-style: normal;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--bhf-navy);
}

.bhf-story .bhf-story__quote::before {
	content: "\201C";
	display: block;
	height: 0.55em;
	font-size: 2.4em;
	line-height: 1;
	color: var(--bhf-teal-light);
}

.bhf-story .bhf-story__cite {
	display: block;
	margin-top: 14px;
	font-family: var(--bhf-sans);
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--bhf-teal);
}

.bhf-story .bhf-story__cite small {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--bhf-body);
}

/* Quote floating over the photo (feature variant) */
.bhf-story .bhf-story__media .bhf-story__quote-card {
	position: absolute;
	right: clamp(-48px, -3vw, -16px);
	bottom: 28px;
	max-width: 78%;
	padding: 22px 24px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: blur(18px) saturate(170%);
	backdrop-filter: blur(18px) saturate(170%);
	box-shadow: 0 24px 48px -24px rgba(24, 63, 91, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.bhf-story.bhf-story--media-right .bhf-story__quote-card { right: auto; left: clamp(-48px, -3vw, -16px); }

.bhf-story .bhf-story__quote-card .bhf-story__quote { font-size: clamp(20px, 1.8vw, 24px); }

@media (prefers-reduced-transparency: reduce) {
	.bhf-story .bhf-story__media .bhf-story__quote-card {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

.bhf-story h2 + .bhf-rich,
.bhf-story h2 + .bhf-story__quote { margin-top: 24px; }
.bhf-story .bhf-story__quote + .bhf-rich,
.bhf-story .bhf-rich + .bhf-story__quote { margin-top: 28px; }

.bhf-story .bhf-story__quote--long {
	padding-left: 24px;
	border-left: 3px solid var(--bhf-teal-light);
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.55;
}

.bhf-story .bhf-story__quote--long::before { display: none; }

/* Portrait cards sit closer together, and their stat box is white on the tinted card */
.bhf-story.bhf-story--portrait.bhf-section { padding-block: clamp(48px, 6vw, 88px); }
.bhf-story.bhf-story--portrait .bhf-story__stat,
.bhf-cm.bhf-bg-white.bhf-story--portrait .bhf-story__stat { background: #fff; border-color: transparent; }

/* Stat callout (e.g. Hannu's fund) */
.bhf-story .bhf-story__stat {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 28px;
	padding: 20px 24px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--bhf-line);
}

.bhf-cm.bhf-bg-white .bhf-story__stat { background: var(--bhf-mint); border-color: transparent; }

.bhf-story .bhf-story__stat-value {
	font-family: var(--bhf-display);
	font-size: clamp(32px, 3.4vw, 42px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--bhf-teal);
	font-variant-numeric: tabular-nums;
}

.bhf-story .bhf-story__stat-label { font-size: 15px; font-weight: 600; color: var(--bhf-ink); }

/* Portrait variant: smaller round photo, centred card */
.bhf-story.bhf-story--portrait .bhf-story__grid {
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	padding: clamp(28px, 5vw, 56px);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 60px -40px rgba(24, 63, 91, 0.35);
}

.bhf-cm.bhf-bg-white.bhf-story--portrait .bhf-story__grid { background: var(--bhf-mint); box-shadow: none; }

.bhf-story.bhf-story--portrait .bhf-media {
	width: clamp(150px, 20vw, 240px);
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: 0 0 0 8px var(--bhf-mint);
}

.bhf-cm.bhf-bg-white.bhf-story--portrait .bhf-media { box-shadow: 0 0 0 8px #fff; }
.bhf-story.bhf-story--portrait .bhf-media .bhf-placeholder { min-height: 0; }
.bhf-story.bhf-story--portrait h2 { font-size: clamp(28px, 3vw, 38px); }
.bhf-story.bhf-story--portrait .bhf-story__subhead {
	margin-top: 10px;
	font-size: 17px;
	font-weight: 700;
	color: var(--bhf-teal);
}
.bhf-story.bhf-story--portrait h2 + .bhf-rich,
.bhf-story.bhf-story--portrait .bhf-story__subhead + .bhf-rich { margin-top: 16px; }

@media (max-width: 860px) {
	.bhf-story .bhf-story__grid { grid-template-columns: 1fr; }
	.bhf-story.bhf-story--media-right .bhf-story__media { order: 0; }
	.bhf-story .bhf-media { aspect-ratio: 4 / 3; }
	.bhf-story .bhf-story__media .bhf-story__quote-card {
		position: relative;
		inset: auto;
		max-width: none;
		margin: -56px 16px 0;
	}
	.bhf-story.bhf-story--portrait .bhf-story__grid { grid-template-columns: 1fr; text-align: left; }
}

/* =========================================================
   STATS
   ========================================================= */
.bhf-stats .bhf-stats__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: end;
}

.bhf-stats .bhf-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: clamp(40px, 5vw, 64px);
	padding: 0;
	list-style: none;
}

.bhf-stats .bhf-stat {
	box-shadow: var(--bhf-shadow-sm);
	transition: box-shadow var(--bhf-ui);
	display: grid;
	grid-template-rows: auto auto 1fr;
	align-content: start;
	margin: 0;
	padding: 28px 24px;
	border-radius: var(--bhf-radius);
	background: #fff;
	border: 1px solid var(--bhf-line);
}

/* Cards in a row share rows (number / rule / label), so the numbers sit on one
   baseline and every label starts at the same height. */
@supports (grid-template-rows: subgrid) {
	.bhf-stats .bhf-stat {
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 0;
	}
}

.bhf-cm.bhf-bg-white .bhf-stat { background: var(--bhf-mint); border-color: transparent; }
.bhf-cm.bhf-bg-navy .bhf-stat { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }

.bhf-stats .bhf-stat__value {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	align-self: end;
	gap: 2px 8px;
	font-family: var(--bhf-display);
	line-height: 1;
	color: var(--bhf-teal);
}

.bhf-stats .bhf-stat__number {
	font-size: clamp(36px, 3.4vw, 46px);
	font-weight: 700;
	letter-spacing: -0.03em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* "months" in "2–4 months": the number carries the weight, the unit reads as a label */
.bhf-stats .bhf-stat__unit {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.bhf-stats .bhf-stat__value + .bhf-stat__label { margin-top: 12px; }

.bhf-cm.bhf-bg-navy .bhf-stat__value { color: var(--bhf-teal-light); }

.bhf-stats .bhf-stat__label { grid-row: 3; font-size: 15px; line-height: 1.5; color: var(--bhf-body); }
.bhf-cm.bhf-bg-navy .bhf-stat__label { color: var(--bhf-on-dark); }

.bhf-cm .bhf-nowrap { white-space: nowrap; }

.bhf-stats .bhf-stats__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 72px);
	margin-top: clamp(40px, 5vw, 64px);
	align-items: start;
}

.bhf-stats .bhf-stats__head--solo { grid-template-columns: minmax(0, 760px); }
.bhf-stats .bhf-stats__body--solo { grid-template-columns: minmax(0, 760px); }

.bhf-stats .bhf-callout {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 28px;
	border-radius: var(--bhf-radius);
	background: var(--bhf-navy);
	color: var(--bhf-on-dark);
}

.bhf-stats .bhf-callout__value {
	flex: none;
	font-family: var(--bhf-display);
	font-size: clamp(40px, 4vw, 52px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--bhf-gold);
}

.bhf-stats .bhf-callout p { font-size: 16px; line-height: 1.6; }

@media (max-width: 960px) {
	.bhf-stats .bhf-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bhf-stats .bhf-stats__head,
	.bhf-stats .bhf-stats__body { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.bhf-stats .bhf-stats__grid { grid-template-columns: 1fr; }
	.bhf-stats .bhf-callout { flex-direction: column; }
}

/* =========================================================
   VIDEO FEATURE
   ========================================================= */
.bhf-video .bhf-video__head { max-width: 760px; }
.bhf-video .bhf-video__intro { max-width: 760px; margin-top: clamp(32px, 4vw, 48px); }

.bhf-video .bhf-video__frame {
	position: relative;
	margin-top: clamp(32px, 4vw, 48px);
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 24px;
	background: var(--bhf-navy-deep);
	box-shadow: 0 40px 80px -48px rgba(24, 63, 91, 0.6);
}

.bhf-video .bhf-video__frame iframe,
.bhf-video .bhf-video__frame video,
.bhf-video .bhf-video__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.bhf-video .bhf-video__pending {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	gap: 14px;
	justify-items: center;
	padding: 24px;
	text-align: center;
	color: #fff;
	background: rgba(24, 63, 91, 0.6);
}

.bhf-video .bhf-video__pending-icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.bhf-video .bhf-video__pending-icon svg { width: 26px; height: 26px; margin-left: 4px; }
.bhf-video .bhf-video__pending span { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }


/* Who CT helps: a row of short statements. Benefits: two columns with dot bullets. */
.bhf-video .bhf-video__moments { margin-top: clamp(40px, 5vw, 64px); }
.bhf-video .bhf-video__benefits { margin-top: clamp(40px, 5vw, 64px); }
.bhf-video .bhf-video__lead { max-width: 760px; font-size: 18px; }

.bhf-video .bhf-moments,
.bhf-video .bhf-benefits {
	display: grid;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.55;
}

.bhf-video .bhf-moments {
	grid-template-columns: repeat(var(--bhf-n, 4), minmax(0, 1fr));
	gap: 24px clamp(20px, 3vw, 40px);
}

.bhf-video .bhf-moments li { padding-top: 14px; border-top: 2px solid var(--bhf-teal-light); }

.bhf-video .bhf-benefits {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px clamp(32px, 5vw, 72px);
}

/* Small dot bullets, set on the first line of each item */
.bhf-video .bhf-benefits li { position: relative; padding-left: 22px; }

.bhf-video .bhf-benefits li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bhf-ink); /* same colour as the list text */
}

.bhf-video .bhf-video__note {
	margin-top: 24px;
	font-size: 16px;
	font-weight: 600;
	color: var(--bhf-ink);
}

@media (max-width: 860px) {
	.bhf-video .bhf-moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bhf-video .bhf-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.bhf-video .bhf-moments { grid-template-columns: 1fr; }
}

/* =========================================================
   HIGHLIGHTS CAROUSEL (one wide card at a time)
   ========================================================= */
.bhf-highlights .bhf-carousel__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	border-radius: var(--bhf-radius);
}

.bhf-highlights .bhf-carousel__track::-webkit-scrollbar { display: none; }
.bhf-highlights .bhf-carousel__track:focus-visible { outline: 3px solid var(--bhf-teal-light); outline-offset: 4px; }

.bhf-highlights .bhf-card {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always; /* a hard flick moves one card, never skips past one */
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	overflow: hidden;
	border-radius: var(--bhf-radius);
	background: #fff;
}

.bhf-cm.bhf-bg-white .bhf-card { background: var(--bhf-mint); }

/* Photo column: wide photos fill it, round portraits sit centred */
.bhf-highlights .bhf-card__photo { position: relative; min-height: 360px; }

.bhf-highlights .bhf-card__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bhf-highlights .bhf-card--round .bhf-card__photo {
	display: grid;
	place-items: center;
}

.bhf-highlights .bhf-card--round .bhf-card__photo img {
	position: static;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	box-shadow: 0 0 0 8px #fff; /* white ring, as on the original portrait cards */
}

.bhf-highlights .bhf-card__photo .bhf-placeholder { min-height: 0; height: 100%; }

.bhf-highlights .bhf-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 680px;
	padding: clamp(28px, 4vw, 56px);
}

.bhf-highlights .bhf-card h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; }
.bhf-highlights .bhf-card .bhf-eyebrow + h3 { margin-top: 8px; }
.bhf-highlights .bhf-card h3 + .bhf-rich,
.bhf-highlights .bhf-card h3 + .bhf-card__quote { margin-top: 18px; }

.bhf-highlights .bhf-card__quote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.bhf-highlights .bhf-card__quote p { font-size: 18px; line-height: 1.6; }

.bhf-highlights .bhf-card__quote cite {
	display: block;
	margin-top: 16px;
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	color: var(--bhf-teal);
}

.bhf-highlights .bhf-card__quote cite small {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--bhf-body);
}

.bhf-highlights .bhf-card__foot { padding-top: 24px; }
.bhf-highlights .bhf-card__foot .bhf-actions { margin-top: 0; }
.bhf-highlights .bhf-card__stat + .bhf-actions { margin-top: 20px; }

.bhf-highlights .bhf-card__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }

.bhf-highlights .bhf-card__stat-value {
	font-family: var(--bhf-display);
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--bhf-teal);
	font-variant-numeric: tabular-nums;
}

.bhf-highlights .bhf-card__stat-label { font-size: 15px; font-weight: 600; color: var(--bhf-ink); }

/* Arrows */
.bhf-highlights .bhf-carousel__controls { display: flex; gap: 12px; margin-top: 20px; }

.bhf-highlights .bhf-carousel__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--bhf-line);
	border-radius: 50%;
	background: #fff;
	color: var(--bhf-navy);
	cursor: pointer;
	transition: transform 160ms var(--ease-out), opacity var(--bhf-ui), box-shadow var(--bhf-ui);
}

.bhf-highlights .bhf-carousel__btn svg { width: 20px; height: 20px; }
.bhf-highlights .bhf-carousel__btn:active { transform: scale(0.97); }
.bhf-highlights .bhf-carousel__btn:disabled { opacity: 0.35; cursor: default; }
.bhf-highlights .bhf-carousel__btn:focus-visible { outline: 3px solid var(--bhf-teal-light); outline-offset: 2px; }

/* Pause/play: a quiet third button, set a little apart from the arrows */
.bhf-highlights .bhf-carousel__play { margin-left: 8px; }
.bhf-highlights .bhf-carousel__play svg { width: 16px; height: 16px; }
.bhf-highlights .bhf-carousel__play .bhf-carousel__icon-play,
.bhf-highlights .bhf-carousel__play.is-paused .bhf-carousel__icon-pause { display: none; }
.bhf-highlights .bhf-carousel__play.is-paused .bhf-carousel__icon-play { display: block; }

@media (hover: hover) and (pointer: fine) {
	.bhf-highlights .bhf-carousel__btn:not(:disabled):hover { box-shadow: var(--bhf-shadow-md); }
}

@media (prefers-reduced-motion: reduce) {
	.bhf-highlights .bhf-carousel__track { scroll-behavior: auto; }
	.bhf-highlights .bhf-carousel__btn { transition: opacity var(--bhf-ui); }
	.bhf-highlights .bhf-carousel__btn:active { transform: none; }
}

@media (max-width: 860px) {
	.bhf-highlights .bhf-card { grid-template-columns: 1fr; align-content: start; }
	.bhf-highlights .bhf-card__photo { min-height: 0; aspect-ratio: 16 / 10; }
	.bhf-highlights .bhf-card--round .bhf-card__photo { aspect-ratio: auto; padding: 32px 0; }
	.bhf-highlights .bhf-card--round .bhf-card__photo img { width: 180px; height: 180px; }
}

/* =========================================================
   THERMOMETER
   ========================================================= */
.bhf-thermo { scroll-margin-top: 96px; }

.bhf-thermo .bhf-thermo__card {
	position: relative;
	overflow: hidden;
	padding: clamp(32px, 5vw, 64px);
	border-radius: 24px;
	background: var(--bhf-navy);
	color: var(--bhf-on-dark);
	box-shadow: 0 40px 80px -50px rgba(24, 63, 91, 0.7);
}

.bhf-cm.bhf-bg-navy .bhf-thermo__card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.bhf-thermo .bhf-thermo__card h2 { color: #fff; }
.bhf-thermo .bhf-thermo__card .bhf-eyebrow { color: var(--bhf-teal-light); }

.bhf-thermo .bhf-thermo__top {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: end;
}

.bhf-thermo .bhf-thermo__intro { font-size: 17px; }

.bhf-thermo .bhf-thermo__figures {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 18px;
	margin-top: clamp(36px, 5vw, 56px);
}

.bhf-thermo .bhf-thermo__raised {
	font-family: var(--bhf-display);
	font-size: clamp(48px, 7vw, 88px);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.bhf-thermo .bhf-thermo__of {
	font-size: 18px;
	font-weight: 600;
	color: var(--bhf-on-dark);
}

.bhf-thermo .bhf-thermo__of strong { color: #fff; }

.bhf-thermo .bhf-thermo__pct {
	margin-left: auto;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(111, 193, 193, 0.16);
	color: var(--bhf-teal-light);
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* The bar: track + fill. Fill animates with transform: scaleX so it stays on the compositor. */
.bhf-thermo .bhf-thermo__bar {
	position: relative;
	margin-top: 22px;
}

.bhf-thermo .bhf-thermo__track {
	position: relative;
	height: 22px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.bhf-thermo .bhf-thermo__fill {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--bhf-teal-light);
	transform-origin: left center;
	transform: scaleX(var(--bhf-pct, 0));
}

.bhf-js .bhf-thermo [data-bhf-reveal]:not(.is-visible) .bhf-thermo__fill { transform: scaleX(0); }

.bhf-js .bhf-thermo [data-bhf-reveal].is-visible .bhf-thermo__fill {
	transition: transform 1600ms var(--ease-out) 200ms;
}

/* Milestone ticks */
.bhf-thermo .bhf-thermo__ticks {
	position: relative;
	height: 44px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
	font-variant-numeric: tabular-nums;
}

.bhf-thermo .bhf-thermo__ticks li {
	position: absolute;
	top: 12px;
	transform: translateX(-50%);
	white-space: nowrap;
}

.bhf-thermo .bhf-thermo__ticks li::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 1px;
	height: 8px;
	background: rgba(255, 255, 255, 0.3);
}

.bhf-thermo .bhf-thermo__ticks li:first-child { transform: none; }
.bhf-thermo .bhf-thermo__ticks li:first-child::before { left: 0; }
.bhf-thermo .bhf-thermo__ticks li:last-child { transform: translateX(-100%); }
.bhf-thermo .bhf-thermo__ticks li:last-child::before { left: auto; right: 0; }
.bhf-thermo .bhf-thermo__ticks li.is-passed { color: var(--bhf-teal-light); }

.bhf-thermo .bhf-thermo__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.bhf-thermo .bhf-thermo__foot--solo { grid-template-columns: auto; justify-content: start; }

.bhf-thermo .bhf-thermo__match {
	display: flex;
	gap: 16px;
	align-items: center;
	font-size: 16px;
	line-height: 1.5;
}

.bhf-thermo .bhf-thermo__match strong { color: #fff; }

.bhf-thermo .bhf-thermo__match-badge {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--bhf-teal-light);
	color: var(--bhf-navy);
	font-family: var(--bhf-display);
	font-size: 18px;
	font-weight: 700;
}

.bhf-thermo .bhf-thermo__updated {
	margin-top: 14px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.bhf-thermo .bhf-actions { margin-top: 0; }

@media (max-width: 860px) {
	.bhf-thermo .bhf-thermo__top,
	.bhf-thermo .bhf-thermo__foot { grid-template-columns: 1fr; }
	.bhf-thermo .bhf-thermo__pct { margin-left: 0; }
	.bhf-thermo .bhf-thermo__ticks li:not(:first-child):not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bhf-js .bhf-thermo [data-bhf-reveal]:not(.is-visible) .bhf-thermo__fill,
	.bhf-js .bhf-thermo [data-bhf-reveal].is-visible .bhf-thermo__fill {
		transform: scaleX(var(--bhf-pct, 0));
		transition: none;
	}
}

/* =========================================================
   SPONSOR / MATCH
   ========================================================= */
.bhf-sponsor .bhf-sponsor__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
}

.bhf-sponsor .bhf-sponsor__about {
	padding: clamp(28px, 4vw, 48px);
	border-radius: 24px;
	background: var(--bhf-mint);
}

.bhf-cm.bhf-bg-mint .bhf-sponsor__about { background: #fff; }

.bhf-sponsor .bhf-sponsor__logo {
	display: block;
	width: auto;
	max-width: 240px;
	max-height: 64px;
	margin-bottom: 28px;
}

.bhf-sponsor .bhf-sponsor__logo-ph {
	display: inline-block;
	margin-bottom: 28px;
	padding: 14px 20px;
	border-radius: 12px;
	border: 1px dashed rgba(44, 116, 128, 0.4);
	font-size: 13px;
	font-weight: 600;
	color: var(--bhf-teal);
}

.bhf-sponsor .bhf-sponsor__about h3 { margin-bottom: 16px; }
.bhf-sponsor .bhf-sponsor__about .bhf-rich { font-size: 16px; }

.bhf-sponsor .bhf-sponsor__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin-top: 22px;
	font-size: 15px;
	font-weight: 600;
}

.bhf-sponsor .bhf-sponsor__contact a { color: var(--bhf-teal); text-decoration: none; }

.bhf-sponsor .bhf-sponsor__match {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(28px, 4vw, 48px);
	border-radius: 24px;
	background: var(--bhf-teal);
	color: var(--bhf-on-dark);
}

.bhf-sponsor .bhf-sponsor__match h2 { font-size: clamp(28px, 3vw, 38px); }
.bhf-sponsor .bhf-sponsor__match .bhf-rich { margin-top: 16px; font-size: 17px; }
.bhf-sponsor .bhf-sponsor__match .bhf-rich strong { color: #fff; }

.bhf-sponsor .bhf-sponsor__match .bhf-actions { margin-top: 0; position: relative; z-index: 1; }

@media (max-width: 860px) {
	.bhf-sponsor .bhf-sponsor__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CLOSING CTA
   ========================================================= */
.bhf-cta {
	position: relative;
	overflow: hidden;
	background: var(--bhf-navy-deep);
	color: var(--bhf-on-dark);
	isolation: isolate;
}

.bhf-cta .bhf-cta__bg,
.bhf-cta .bhf-cta__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.bhf-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(24, 63, 91, 0.82);
}

.bhf-cta .bhf-cta__inner {
	max-width: 640px;
	padding-block: clamp(80px, 11vw, 150px);
}

.bhf-cta .bhf-eyebrow { color: var(--bhf-teal-light); }
.bhf-cta h2 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); }
.bhf-cta .bhf-rich { margin-top: 22px; font-size: 18px; }
.bhf-cta .bhf-cta__kicker { margin-top: 18px; font-weight: 700; color: #fff; }

@media (max-width: 760px) {
	.bhf-cta::before { background: rgba(24, 63, 91, 0.86); }
}

/* Builder-only note shown in place of a hidden section */
.bhf-hidden-note {
	margin: 0;
	padding: 20px var(--bhf-gutter);
	border: 1px dashed rgba(24, 63, 91, 0.3);
	font: 500 14px/1.4 Inter, sans-serif;
	color: var(--bhf-ink);
	text-align: center;
}

/* =========================================================
   THEME GUARD
   The site's "they" plugin forces h1-h6 and p/ul/ol to
   Inter 800 #20364b with !important. These rules win back
   type and colour for the modules only, driven by variables
   so each context sets its colours in one place.
   ========================================================= */
.bhf-cm {
	--bhf-h: var(--bhf-navy);
	--bhf-p: var(--bhf-body);
	--bhf-pf: var(--bhf-sans);
	--bhf-pw: 400;
}

.bhf-cm.bhf-bg-navy,
.bhf-hero,
.bhf-thermo .bhf-thermo__card,
.bhf-cta,
.bhf-stats .bhf-callout {
	--bhf-h: #fff;
	--bhf-p: var(--bhf-on-dark);
}

.bhf-sponsor .bhf-sponsor__match { --bhf-h: #fff; --bhf-p: var(--bhf-on-dark); }

.bhf-cm .bhf-eyebrow { --bhf-p: var(--bhf-teal); --bhf-pw: 700; }
.bhf-cm.bhf-bg-navy .bhf-eyebrow,
.bhf-hero .bhf-eyebrow,
.bhf-thermo__card .bhf-eyebrow,
.bhf-cta .bhf-eyebrow { --bhf-p: var(--bhf-teal-light); }

.bhf-cm .bhf-lead { --bhf-p: var(--bhf-ink); --bhf-pw: 600; }
.bhf-cm.bhf-bg-navy .bhf-lead,
.bhf-hero .bhf-lead { --bhf-p: #fff; }

.bhf-cm blockquote { --bhf-pf: var(--bhf-display); --bhf-p: var(--bhf-navy); --bhf-pw: 600; }
/* Long quotes read better upright in the body face */
.bhf-story .bhf-story__quote--long { --bhf-pf: var(--bhf-sans); --bhf-p: var(--bhf-ink); --bhf-pw: 500; font-style: normal; font-size: 18px; }
.bhf-story .bhf-story__subhead { --bhf-p: var(--bhf-teal); --bhf-pw: 700; }
.bhf-video .bhf-video__note { --bhf-p: var(--bhf-ink); --bhf-pw: 600; }
.bhf-video .bhf-video__lead { --bhf-p: var(--bhf-ink); --bhf-pw: 600; }
.bhf-highlights .bhf-card__quote { --bhf-pf: var(--bhf-sans); --bhf-p: var(--bhf-ink); --bhf-pw: 500; }
.bhf-video .bhf-moments,
.bhf-video .bhf-benefits { --bhf-p: var(--bhf-ink); }
.bhf-thermo .bhf-thermo__ticks { --bhf-p: rgba(255, 255, 255, 0.6); --bhf-pw: 600; }
.bhf-thermo .bhf-thermo__updated { --bhf-p: rgba(255, 255, 255, 0.55); }
.bhf-sponsor .bhf-sponsor__contact { --bhf-pw: 600; }
.bhf-cta .bhf-cta__kicker { --bhf-p: #fff; --bhf-pw: 700; }

.bhf-cm h1,
.bhf-cm h2,
.bhf-cm h3 {
	font-family: var(--bhf-display) !important;
	font-weight: 700 !important;
	color: var(--bhf-h) !important;
	text-shadow: none !important;
}

.bhf-cm p,
.bhf-cm ul,
.bhf-cm ol {
	font-family: var(--bhf-pf) !important;
	font-weight: var(--bhf-pw) !important;
	color: var(--bhf-p) !important;
}

/* The parent theme's Bootstrap adds an em dash before <small> in quotes */
.bhf-cm blockquote small::before { content: none !important; }

/* Beaver Builder wraps modules in 20px margins and rows in padding; these
   modules are full-bleed sections, so remove both around them only. */
.fl-builder-content .fl-module[class*="fl-module-bhf-"],
.fl-builder-content .fl-module[class*="fl-module-bhf-"] > .fl-module-content {
	margin: 0 !important;
}

.fl-row:has(.fl-module[class*="fl-module-bhf-"]) > .fl-row-content-wrap { padding: 0 !important; }
.fl-row:has(.fl-module[class*="fl-module-bhf-"]) .fl-row-content { max-width: none !important; }
.fl-col:has(> .fl-col-content > .fl-module[class*="fl-module-bhf-"]) > .fl-col-content { padding: 0 !important; margin: 0 !important; }
