/*
 * HCFB Campaign Engine — base styles. Deliberately framework-free.
 * Legibility and layout must never depend on color alone (see the
 * over-goal text label alongside the thermometer fill) and every
 * transition is disabled under prefers-reduced-motion.
 */

.hcfb-campaign-engine {
	--hcfb-ce-navy: var(--wp--preset--color--hcfb-navy, #262760);
	--hcfb-ce-orange: var(--wp--preset--color--hcfb-orange, #f78d22);
	--hcfb-ce-green: var(--wp--preset--color--hcfb-green, #a2c13d);
	--hcfb-ce-cream: var(--wp--preset--color--hcfb-cream, #faf5ec);
	--hcfb-ce-surface: var(--wp--preset--color--hcfb-surface, #fff);
	--hcfb-ce-text: var(--wp--preset--color--hcfb-text, #1d1e24);
	--hcfb-ce-muted: var(--wp--preset--color--hcfb-text-muted, #5a5a66);
	--hcfb-ce-border: var(--wp--preset--color--hcfb-border, #d8d3c6);
	max-width: 720px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--hcfb-ce-text);
}

.hcfb-campaign-engine *,
.hcfb-campaign-engine *::before,
.hcfb-campaign-engine *::after {
	box-sizing: border-box;
}

.hcfb-ce-campaign-header {
	margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.hcfb-ce-campaign-header h2 {
	margin: 0;
	color: var(--hcfb-ce-navy);
	font-size: clamp(1.75rem, 1.35rem + 2vw, 3rem);
	line-height: 1.08;
}

.hcfb-ce-campaign-kicker {
	margin: 0 0 0.35rem;
	color: var(--hcfb-ce-navy);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hcfb-campaign-engine--mtmm {
	max-width: 980px;
	padding: clamp(1rem, 3vw, 2.5rem);
	border: 1px solid var(--hcfb-ce-border);
	border-radius: 1rem;
	background:
		linear-gradient(135deg, rgba(247, 141, 34, 0.09), transparent 42%),
		var(--hcfb-ce-surface);
	box-shadow: 0 0.75rem 2.5rem rgba(38, 39, 96, 0.09);
}

.hcfb-campaign-engine--notice {
	padding: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* Visually hidden but still announced by assistive tech — used for the
   polite live-region that reports only real, meaningful changes from
   browser polling (never re-announced on every poll tick). */
.hcfb-ce-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Thermometer */

.hcfb-ce-thermometer {
	margin: 1rem 0 1.75rem;
}

.hcfb-ce-thermometer--unavailable {
	padding: 1rem;
	border: 1px dashed #999;
	border-radius: 4px;
}

.hcfb-ce-thermometer__track {
	position: relative;
	width: 100%;
	height: clamp(1.4rem, 2.5vw, 2rem);
	background: #e7e5df;
	border: 2px solid var(--hcfb-ce-navy);
	border-radius: 999px;
	overflow: hidden;
}

.hcfb-ce-thermometer__fill {
	height: 100%;
	background: linear-gradient(90deg, var(--hcfb-ce-green), #c6da7d);
	transition: width 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hcfb-ce-thermometer__goal-marker {
	position: absolute;
	top: -0.35rem;
	right: 0.35rem;
	bottom: -0.35rem;
	width: 3px;
	border-radius: 2px;
	background: var(--hcfb-ce-navy);
}

.hcfb-ce-thermometer__goal-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.35rem;
	color: var(--hcfb-ce-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.hcfb-ce-thermometer__goal-marker-label {
	text-align: right;
}

.hcfb-ce-thermometer__metrics {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(0.75rem, 2vw, 1.5rem);
	margin-bottom: 1.25rem;
}

.hcfb-ce-thermometer__impact,
.hcfb-ce-thermometer__secondary {
	min-width: 0;
	margin: 0;
	padding: clamp(0.8rem, 2vw, 1.25rem);
	border-radius: 0.75rem;
	background: var(--hcfb-ce-cream);
}

.hcfb-ce-thermometer__impact strong,
.hcfb-ce-thermometer__secondary strong {
	display: block;
	color: var(--hcfb-ce-navy);
	font-size: clamp(1.45rem, 1rem + 2.6vw, 3.2rem);
	font-weight: 800;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.hcfb-ce-thermometer__secondary strong {
	font-size: clamp(1.2rem, 0.95rem + 1.6vw, 2.25rem);
}

.hcfb-ce-thermometer__unit {
	font-size: 0.48em;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.hcfb-ce-thermometer__metric-label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--hcfb-ce-muted);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
	.hcfb-ce-thermometer__fill {
		transition: none;
	}
}

/* Canonical public campaign hub. This is intentionally separate from the
   legacy shortcode and broadcast selectors above. */
.hcfb-ce-hub-main {
	--hcfb-ce-navy: var(--wp--preset--color--hcfb-navy, #262760);
	--hcfb-ce-orange: var(--wp--preset--color--hcfb-orange, #f78d22);
	--hcfb-ce-green: var(--wp--preset--color--hcfb-green, #a2c13d);
	--hcfb-ce-cream: var(--wp--preset--color--hcfb-cream, #faf5ec);
	--hcfb-ce-surface: #fff;
	--hcfb-ce-text: #1d1e24;
	--hcfb-ce-muted: #5a5a66;
	--hcfb-ce-border: #d8d3c6;
	color: var(--hcfb-ce-text);
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hcfb-ce-hub,
.hcfb-ce-hub *,
.hcfb-ce-hub *::before,
.hcfb-ce-hub *::after { box-sizing: border-box; }

.hcfb-ce-hub { overflow: clip; }

.hcfb-ce-hub__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
	min-height: min(46rem, 72vh);
	background: var(--hcfb-ce-navy);
	color: #fff;
}

.hcfb-ce-hub__hero--plain { grid-template-columns: minmax(0, 1fr); min-height: auto; }
.hcfb-ce-hub__hero-media { min-width: 0; min-height: 24rem; order: 2; }
.hcfb-ce-hub__hero-image { display: block; width: 100%; height: 100%; min-height: 24rem; object-fit: cover; }
.hcfb-ce-hub__hero-content { align-self: center; max-width: 48rem; padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 6vw, 6rem); }
.hcfb-ce-hub__hero--plain .hcfb-ce-hub__hero-content { width: min(100%, 82rem); margin-inline: auto; text-align: center; }
.hcfb-ce-hub__eyebrow,
.hcfb-ce-hub__section-kicker,
.hcfb-ce-hub__card-type { margin: 0 0 0.55rem; color: var(--hcfb-ce-orange); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hcfb-ce-hub__section-kicker,
.hcfb-ce-hub__card-type { color: var(--hcfb-ce-navy); }
.hcfb-ce-hub__hero h1 { max-width: 14ch; margin: 0; color: #fff; font-size: clamp(2.65rem, 2rem + 3.2vw, 5.7rem); line-height: 0.98; overflow-wrap: anywhere; }
.hcfb-ce-hub__hero--plain h1 { margin-inline: auto; }
.hcfb-ce-hub__intro { max-width: 42rem; margin-top: 1.35rem; font-size: clamp(1.08rem, 0.95rem + 0.55vw, 1.35rem); line-height: 1.6; }
.hcfb-ce-hub__intro > :first-child { margin-top: 0; }
.hcfb-ce-hub__intro > :last-child { margin-bottom: 0; }
.hcfb-ce-hub__hero--plain .hcfb-ce-hub__intro { margin-inline: auto; }
.hcfb-ce-hub__donate { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; margin-top: 1.8rem; padding: 0.85rem 1.65rem; border: 2px solid var(--hcfb-ce-orange); border-radius: 999px; background: var(--hcfb-ce-orange); color: var(--hcfb-ce-navy); font-weight: 800; text-decoration: none; }
.hcfb-ce-hub__donate:hover { background: #fff; border-color: #fff; color: var(--hcfb-ce-navy); }
.hcfb-ce-hub__start { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; margin: 1.8rem 0 0 0.75rem; padding: 0.85rem 1.65rem; border: 2px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font-weight: 800; text-decoration: none; }
.hcfb-ce-hub__start:hover { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 640px) { .hcfb-ce-hub__start { margin-left: 0; } }
.hcfb-ce-hub__secondary-action { margin: 1.1rem 0 0; font-size: 1rem; }
.hcfb-ce-hub__secondary-action a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.hcfb-ce-hub a:focus-visible { outline: 4px solid var(--hcfb-ce-orange); outline-offset: 4px; }

.hcfb-ce-hub__progress,
.hcfb-ce-hub__story,
.hcfb-ce-hub__section,
.hcfb-ce-hub__coverage { width: min(calc(100% - 2.5rem), 76rem); margin-inline: auto; }
.hcfb-ce-hub__progress { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: center; margin-block: clamp(3rem, 7vw, 6.5rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.25rem; background: var(--hcfb-ce-cream); }
.hcfb-ce-hub__progress h2,
.hcfb-ce-hub__story h2,
.hcfb-ce-hub__section-heading h2 { margin: 0; color: var(--hcfb-ce-navy); font-size: clamp(2rem, 1.55rem + 1.6vw, 3.35rem); line-height: 1.08; overflow-wrap: anywhere; }
.hcfb-ce-hub__impact { margin: 1rem 0 0; color: var(--hcfb-ce-navy); font-size: 1.1rem; }
.hcfb-ce-hub__impact strong { font-size: clamp(1.8rem, 1.3rem + 1.7vw, 3rem); }
.hcfb-ce-hub__bar,
.hcfb-ce-hub__card-bar { height: 0.9rem; overflow: hidden; border-radius: 999px; background: #dedbd2; }
.hcfb-ce-hub__bar span,
.hcfb-ce-hub__card-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hcfb-ce-green), #c6da7d); }
.hcfb-ce-hub__progress-detail > p { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.65rem 0 0; }
.hcfb-ce-hub__over-goal { padding: 0.1rem 0.5rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.82rem; font-weight: 800; }
.hcfb-ce-hub__unavailable { margin: 0; padding: 1rem; border: 2px dashed var(--hcfb-ce-border); border-radius: 0.75rem; }
.hcfb-ce-hub__metric-details { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; }
.hcfb-ce-hub__metric-details div { min-width: 12rem; }
.hcfb-ce-hub__metric-details dt { color: var(--hcfb-ce-muted); font-size: 0.85rem; font-weight: 700; }
.hcfb-ce-hub__metric-details dd { margin: 0.2rem 0 0; color: var(--hcfb-ce-navy); font-size: 1.25rem; font-weight: 800; }
.hcfb-ce-hub__stale { grid-column: 1 / -1; margin: 0; padding: 0.8rem 1rem; border-left: 0.3rem solid var(--hcfb-ce-orange); background: #fff; }

.hcfb-ce-hub__story { max-width: 54rem; margin-block: clamp(3rem, 7vw, 6rem); }
.hcfb-ce-hub__story-content { margin-top: 1.5rem; font-size: 1.08rem; line-height: 1.75; }
.hcfb-ce-hub__story-content img { max-width: 100%; height: auto; }
.hcfb-ce-hub__coverage { margin-block: 2rem 0; padding: 0.8rem 1rem; border: 1px solid var(--hcfb-ce-border); border-radius: 0.75rem; color: var(--hcfb-ce-muted); font-size: 0.92rem; }
.hcfb-ce-hub__coverage span { color: var(--hcfb-ce-green); }
.hcfb-ce-hub__section { margin-block: clamp(3.5rem, 7vw, 6.5rem); }
.hcfb-ce-hub__section-heading { max-width: 48rem; margin-bottom: 1.75rem; }
.hcfb-ce-hub__card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hcfb-ce-hub__card { min-width: 0; padding: 1.35rem; border: 1px solid var(--hcfb-ce-border); border-radius: 1rem; background: #fff; box-shadow: 0 0.45rem 1.4rem rgba(38,39,96,0.07); }
.hcfb-ce-hub__card-image { width: calc(100% + 2.7rem); max-width: none; height: 12rem; margin: -1.35rem -1.35rem 1.2rem; border-radius: 1rem 1rem 0 0; object-fit: cover; }
.hcfb-ce-hub__card h3 { margin: 0; color: var(--hcfb-ce-navy); font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.hcfb-ce-hub__card-total { margin: 1rem 0 0.65rem; color: var(--hcfb-ce-navy); font-size: 1.4rem; font-weight: 800; }
.hcfb-ce-hub__card-total span { color: var(--hcfb-ce-muted); font-size: 0.75em; font-weight: 600; }
.hcfb-ce-hub__card-progress,
.hcfb-ce-hub__card-meta { color: var(--hcfb-ce-muted); font-size: 0.86rem; }
.hcfb-ce-hub__entity-link { display: inline-block; min-height: 2.75rem; margin-top: 0.5rem; color: var(--hcfb-ce-navy); font-weight: 800; text-underline-offset: 0.18em; }
.hcfb-ce-hub__empty { padding: 1.2rem; border: 2px dashed var(--hcfb-ce-border); border-radius: 0.85rem; }

.hcfb-ce-hub__leaderboards { padding-block: clamp(2rem, 5vw, 4rem); border-block: 1px solid var(--hcfb-ce-border); }
.hcfb-ce-hub__leaderboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.hcfb-ce-hub__leaderboard h3 { color: var(--hcfb-ce-navy); }
.hcfb-ce-hub__leaderboard ol { margin: 0; padding: 0; list-style: none; counter-reset: leaders; }
.hcfb-ce-hub__leaderboard li { counter-increment: leaders; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.65rem; align-items: baseline; padding: 0.8rem 0; border-bottom: 1px solid var(--hcfb-ce-border); }
.hcfb-ce-hub__leaderboard li::before { content: counter(leaders); color: var(--hcfb-ce-orange); font-weight: 800; }
.hcfb-ce-hub__leaderboard li span { overflow-wrap: anywhere; }

.hcfb-ce-hub__support-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hcfb-ce-hub__support-list li { min-width: 0; padding: 1.25rem; border-radius: 0.9rem; background: var(--hcfb-ce-cream); }
.hcfb-ce-hub__support-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--hcfb-ce-navy); }
.hcfb-ce-hub__support-list blockquote { margin: 0.9rem 0; padding-left: 0.9rem; border-left: 0.25rem solid var(--hcfb-ce-orange); overflow-wrap: anywhere; }
.hcfb-ce-hub__support-meta { margin: 0.8rem 0 0; color: var(--hcfb-ce-muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.hcfb-ce-hub__closing-cta { padding: clamp(3rem, 8vw, 6rem) 1.25rem; background: var(--hcfb-ce-navy); color: #fff; text-align: center; }
.hcfb-ce-hub__closing-cta h2 { margin: 0; color: #fff; font-size: clamp(2rem, 1.5rem + 2vw, 3.6rem); }

.hcfb-ce-route-not-found { width: min(calc(100% - 2.5rem), 60rem); min-height: 50vh; margin: 4rem auto; }

/* Supporter connection pages (Phase 7D-2): consent, connected status, notices. */
.hcfb-ce-supporter { width: min(calc(100% - 2.5rem), 44rem); min-height: 50vh; margin: clamp(2.5rem, 6vw, 5rem) auto; color: var(--hcfb-ce-text); font-size: 1.0625rem; line-height: 1.6; }
.hcfb-ce-supporter h1 { margin: 0 0 1.25rem; color: var(--hcfb-ce-navy); font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); line-height: 1.1; overflow-wrap: anywhere; }
.hcfb-ce-supporter p { margin: 0 0 1rem; }
.hcfb-ce-supporter__back { font-weight: 700; }
.hcfb-ce-supporter a { color: var(--hcfb-ce-navy); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.hcfb-ce-supporter__notice { margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; border-left: 0.35rem solid var(--hcfb-ce-green); border-radius: 0.5rem; background: var(--hcfb-ce-cream); font-weight: 600; }
.hcfb-ce-supporter__notice--alert { border-left-color: var(--hcfb-ce-orange); }
.hcfb-ce-supporter__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: 2rem 0 1.5rem; }
.hcfb-ce-supporter__primary,
.hcfb-ce-supporter__secondary-button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; padding: 0.85rem 1.65rem; border: 2px solid var(--hcfb-ce-orange); border-radius: 999px; background: var(--hcfb-ce-orange); color: var(--hcfb-ce-navy); font: inherit; font-weight: 800; cursor: pointer; }
.hcfb-ce-supporter__secondary-button { border-color: var(--hcfb-ce-navy); background: transparent; }
.hcfb-ce-supporter__primary:hover { border-color: var(--hcfb-ce-navy); }
.hcfb-ce-supporter__secondary-button:hover { background: var(--hcfb-ce-cream); }
.hcfb-ce-supporter__secondary { font-weight: 700; }
.hcfb-ce-supporter a:focus-visible,
.hcfb-ce-supporter button:focus-visible { outline: 4px solid var(--hcfb-ce-orange); outline-offset: 4px; }
.hcfb-ce-supporter__fine-print { color: var(--hcfb-ce-muted); font-size: 0.95rem; }
.hcfb-ce-supporter h2 { margin: 2.25rem 0 0.75rem; color: var(--hcfb-ce-navy); font-size: 1.5rem; line-height: 1.2; }
.hcfb-ce-supporter__group-heading { margin: 1.75rem 0 0.5rem; color: var(--hcfb-ce-navy); font-size: 1.15rem; }
.hcfb-ce-supporter__list { display: grid; gap: 0.75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.hcfb-ce-supporter__card { display: grid; gap: 0.3rem; padding: 1rem 1.1rem; border: 1px solid var(--hcfb-ce-border); border-radius: 0.75rem; background: #fff; }
.hcfb-ce-supporter__option-title { font-weight: 800; color: var(--hcfb-ce-navy); overflow-wrap: anywhere; }
.hcfb-ce-supporter__card-details,
.hcfb-ce-supporter__option-details { margin: 0; color: var(--hcfb-ce-muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.hcfb-ce-supporter__choose fieldset { display: grid; gap: 0.75rem; margin: 0; padding: 0; border: 0; }
.hcfb-ce-supporter__choose legend { margin-bottom: 0.75rem; padding: 0; font-weight: 700; }
.hcfb-ce-supporter__option { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; align-items: start; padding: 1rem 1.1rem; border: 2px solid var(--hcfb-ce-border); border-radius: 0.75rem; background: #fff; }
.hcfb-ce-supporter__option input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--hcfb-ce-navy); }
.hcfb-ce-supporter__option label { cursor: pointer; }
.hcfb-ce-supporter__option .hcfb-ce-supporter__option-details { grid-column: 2; }
/* Selected state: a thicker navy border plus the native checked radio — never color alone. */
.hcfb-ce-supporter__option:has(input:checked) { border-color: var(--hcfb-ce-navy); box-shadow: inset 0 0 0 2px var(--hcfb-ce-navy); }
.hcfb-ce-supporter__option input:focus-visible { outline: 4px solid var(--hcfb-ce-orange); outline-offset: 3px; }
.hcfb-ce-supporter__notice:focus { outline: 3px solid var(--hcfb-ce-navy); outline-offset: 3px; }
/* Start a Fundraiser (Phase 7D-4) */
.hcfb-ce-supporter__form { display: grid; gap: 1.35rem; margin-top: 1.5rem; }
.hcfb-ce-supporter__field { display: grid; gap: 0.35rem; }
.hcfb-ce-supporter__field label { font-weight: 700; color: var(--hcfb-ce-navy); }
.hcfb-ce-supporter__hint { margin: 0; color: var(--hcfb-ce-muted); font-size: 0.95rem; }
.hcfb-ce-supporter__field input,
.hcfb-ce-supporter__field textarea,
.hcfb-ce-share input { width: 100%; box-sizing: border-box; min-height: 3rem; padding: 0.65rem 0.8rem; border: 2px solid #6b6b78; border-radius: 0.5rem; background: #fff; color: var(--hcfb-ce-text); font: inherit; }
.hcfb-ce-supporter__field input:focus-visible,
.hcfb-ce-supporter__field textarea:focus-visible,
.hcfb-ce-share input:focus-visible { outline: 4px solid var(--hcfb-ce-orange); outline-offset: 2px; }
/* Errors: icon-free text label "Error:" plus a thicker border — not color alone. */
.hcfb-ce-supporter__field--error input,
.hcfb-ce-supporter__field--error textarea { border-width: 3px; border-color: #b3261e; }
.hcfb-ce-supporter__error { margin: 0; color: #8c1d18; font-weight: 700; }
.hcfb-ce-supporter__notice ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.hcfb-ce-supporter__summary { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 0.5rem 1.25rem; margin: 1rem 0 1.5rem; }
.hcfb-ce-supporter__summary dt { font-weight: 700; color: var(--hcfb-ce-navy); }
.hcfb-ce-supporter__summary dd { margin: 0; overflow-wrap: anywhere; }
.hcfb-ce-supporter__result h2 { margin: 0; font-size: 1.4rem; }
.hcfb-ce-share { display: grid; gap: 0.5rem; }
.hcfb-ce-share > label { font-weight: 700; color: var(--hcfb-ce-navy); }
.hcfb-ce-share__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hcfb-ce-share__row input { flex: 1 1 16rem; }
.hcfb-ce-share__status { min-height: 1.5em; margin: 0; font-weight: 700; }
.hcfb-ce-share__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.hcfb-ce-supporter button[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 560px) { .hcfb-ce-supporter__summary { grid-template-columns: 1fr; } .hcfb-ce-supporter__summary dd { margin-bottom: 0.5rem; } }
@media (forced-colors: active) {
	.hcfb-ce-supporter__primary,
	.hcfb-ce-supporter__secondary-button { border-color: ButtonText; }
	.hcfb-ce-supporter__notice { border: 1px solid CanvasText; }
}

@media (max-width: 1024px) {
	.hcfb-ce-hub__hero { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr); min-height: 38rem; }
	.hcfb-ce-hub__card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.hcfb-ce-hub__hero { grid-template-columns: 1fr; min-height: 0; }
	.hcfb-ce-hub__hero-media { min-height: 18rem; order: 0; }
	.hcfb-ce-hub__hero-image { min-height: 18rem; max-height: 28rem; }
	.hcfb-ce-hub__hero-content { padding-block: 3rem; }
	.hcfb-ce-hub__progress { grid-template-columns: 1fr; }
	.hcfb-ce-hub__metric-details { grid-column: auto; }
	.hcfb-ce-hub__stale { grid-column: auto; }
	.hcfb-ce-hub__leaderboard-grid,
	.hcfb-ce-hub__support-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.hcfb-ce-hub__progress,
	.hcfb-ce-hub__story,
	.hcfb-ce-hub__section,
	.hcfb-ce-hub__coverage { width: min(calc(100% - 1.5rem), 76rem); }
	.hcfb-ce-hub__hero-content { padding-inline: 1.1rem; }
	.hcfb-ce-hub__hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
	.hcfb-ce-hub__card-grid { grid-template-columns: 1fr; }
	.hcfb-ce-hub__leaderboard li { grid-template-columns: 1.5rem minmax(0, 1fr); }
	.hcfb-ce-hub__leaderboard li strong { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.hcfb-ce-hub *, .hcfb-ce-hub *::before, .hcfb-ce-hub *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.hcfb-ce-thermometer__text {
	margin: 0.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
}

.hcfb-ce-thermometer__over-goal {
	font-weight: bold;
	color: var(--hcfb-ce-navy);
}

.hcfb-ce-thermometer--goal-exceeded .hcfb-ce-thermometer__track {
	box-shadow: 0 0 0 4px rgba(162, 193, 61, 0.28);
}

/* Latest-activity treatment. In standard mode it appears only after a
   genuinely new polled gift; broadcast mode also shows the server-rendered
   newest gift so the display remains useful without JavaScript. */
.hcfb-ce-gift-activity {
	margin: 1.25rem 0;
	padding: 0.9rem 1rem;
	border-left: 0.35rem solid var(--hcfb-ce-orange);
	border-radius: 0.45rem;
	background: var(--hcfb-ce-cream);
}

.hcfb-ce-gift-activity[hidden] {
	display: none;
}

.hcfb-ce-gift-activity__label,
.hcfb-ce-gift-activity__message {
	margin: 0;
}

.hcfb-ce-gift-activity__label {
	color: var(--hcfb-ce-navy);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hcfb-ce-gift-activity__message {
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
	font-weight: 700;
}

.hcfb-ce-gift-activity--new {
	animation: hcfb-ce-new-gift 1.1s ease-out;
}

@keyframes hcfb-ce-new-gift {
	0% { transform: translateY(0.45rem); outline: 4px solid rgba(247, 141, 34, 0.35); }
	100% { transform: translateY(0); outline: 0 solid transparent; }
}

/* Gift wall */

.hcfb-ce-gift-wall {
	margin-top: 1.5rem;
}

.hcfb-ce-gift-wall__context {
	margin: 0 0 0.75rem;
	color: var(--hcfb-ce-muted);
	font-size: 0.875rem;
}

.hcfb-ce-gift-wall--empty {
	padding: 1rem;
	border: 1px dashed #999;
	border-radius: 4px;
}

.hcfb-ce-gift-wall__section {
	margin-bottom: 1.5rem;
}

.hcfb-ce-gift-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hcfb-ce-gift-card {
	padding: 0.75rem;
	border: 1px solid var(--hcfb-ce-border);
	border-radius: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	align-items: baseline;
}

.hcfb-ce-gift-card:focus-within {
	outline: 3px solid var(--hcfb-ce-navy);
	outline-offset: 2px;
}

.hcfb-ce-gift-card__amount {
	font-weight: bold;
}

.hcfb-ce-gift-card__badge {
	font-size: 0.8em;
	padding: 0.1rem 0.4rem;
	border: 1px solid #999;
	border-radius: 999px;
}

.hcfb-ce-gift-card__time {
	color: #555;
	font-size: 0.85em;
}

.hcfb-ce-gift-card__comment {
	flex-basis: 100%;
	margin: 0.25rem 0 0;
}

/* JS-enhanced tabs (progressive; both sections remain in the DOM and
   fully readable without JavaScript — see assets/js/campaign-engine.js) */

.hcfb-ce-gift-wall[data-hcfb-ce-tabs-active] .hcfb-ce-gift-wall__section[hidden] {
	display: none;
}

.hcfb-ce-tablist {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.hcfb-ce-tablist button {
	padding: 0.4rem 0.9rem;
	border: 2px solid var(--hcfb-ce-navy);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}

.hcfb-ce-tablist button[aria-selected="true"] {
	background: var(--hcfb-ce-navy);
	color: #fff;
	border-color: var(--hcfb-ce-navy);
}

.hcfb-ce-tablist button:focus-visible {
	outline: 3px solid var(--hcfb-ce-orange);
	outline-offset: 3px;
}

/* Broadcast is a presentation option over the same shortcode and snapshot.
   The JS-added body class supports older selectors; :has() makes the layout
   settle correctly before JS runs in current browsers. */
body.hcfb-ce-broadcast-active .hcfb-site-header,
body.hcfb-ce-broadcast-active .hcfb-site-footer,
body.hcfb-ce-broadcast-active .hcfb-breadcrumbs,
body.hcfb-ce-broadcast-active #wpadminbar,
body:has(.hcfb-campaign-engine--broadcast) .hcfb-site-header,
body:has(.hcfb-campaign-engine--broadcast) .hcfb-site-footer,
body:has(.hcfb-campaign-engine--broadcast) .hcfb-breadcrumbs,
body:has(.hcfb-campaign-engine--broadcast) #wpadminbar {
	display: none;
}

body.hcfb-ce-broadcast-active,
body:has(.hcfb-campaign-engine--broadcast) {
	background: var(--wp--preset--color--hcfb-navy, #262760);
}

body.hcfb-ce-broadcast-active #hcfb-primary-content,
body.hcfb-ce-broadcast-active .wp-block-post-content,
body:has(.hcfb-campaign-engine--broadcast) #hcfb-primary-content,
body:has(.hcfb-campaign-engine--broadcast) .wp-block-post-content {
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding: 0;
}

body.hcfb-ce-broadcast-active #hcfb-primary-content > .wp-block-post-title,
body:has(.hcfb-campaign-engine--broadcast) #hcfb-primary-content > .wp-block-post-title {
	display: none;
}

.hcfb-campaign-engine--broadcast {
	width: min(100%, 1440px);
	max-width: 1440px;
	min-height: 100vh;
	padding: clamp(1.25rem, 4vw, 4rem);
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.hcfb-campaign-engine--broadcast .hcfb-ce-campaign-header h2 {
	font-size: clamp(2.2rem, 4vw, 5rem);
}

.hcfb-campaign-engine--broadcast .hcfb-ce-thermometer__impact strong {
	font-size: clamp(3rem, 7vw, 8rem);
}

.hcfb-campaign-engine--broadcast .hcfb-ce-thermometer__secondary strong {
	font-size: clamp(2rem, 4vw, 4.5rem);
}

.hcfb-campaign-engine--broadcast .hcfb-ce-gift-wall {
	display: none;
}

.hcfb-campaign-engine--broadcast .hcfb-ce-gift-activity {
	margin-top: clamp(1.5rem, 4vh, 3rem);
	padding: clamp(1rem, 2vw, 2rem);
}

.hcfb-ce-staff-preview {
	margin: 0;
	background: #f0f0f1;
}

.hcfb-ce-staff-preview main {
	padding: clamp(1rem, 3vw, 2rem);
}

.hcfb-ce-preview-notice {
	padding: 0.75rem 1rem;
	color: #1d2327;
	background: #fff;
	border-bottom: 4px solid #2271b1;
}

.hcfb-ce-preview-notice a {
	margin-left: 0.5rem;
}

@media (max-width: 480px) {
	.hcfb-campaign-engine {
		font-size: 0.95rem;
	}

	.hcfb-ce-gift-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.hcfb-ce-thermometer__metrics {
		grid-template-columns: 1fr;
	}

	.hcfb-campaign-engine--mtmm {
		padding: 1rem;
		border-radius: 0.65rem;
	}

	.hcfb-ce-thermometer__goal-row {
		align-items: flex-end;
		font-size: 0.75rem;
	}
}

@media (min-width: 1100px) {
	.hcfb-campaign-engine--broadcast .hcfb-ce-thermometer__metrics {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hcfb-ce-gift-activity--new {
		animation: none;
	}
}
/* Create Team (Phase 7D-5A): captain selector and next steps. Radios are not full-width text inputs. */
.hcfb-ce-supporter__captains { margin: 0; padding: 0; border: 0; min-width: 0; }
.hcfb-ce-supporter__captains legend { padding: 0; font-weight: 700; color: var(--hcfb-ce-navy); }
.hcfb-ce-supporter__choice { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 0.6rem; padding: 0.85rem 1rem; border: 2px solid var(--hcfb-ce-border); border-radius: 0.75rem; background: #fff; }
.hcfb-ce-supporter__choice:has(input:checked) { border-color: var(--hcfb-ce-navy); box-shadow: inset 0 0 0 2px var(--hcfb-ce-navy); }
.hcfb-ce-supporter__field .hcfb-ce-supporter__choice input { width: 1.35rem; min-height: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; padding: 0; flex: 0 0 auto; }
.hcfb-ce-supporter__choice input:focus-visible { outline: 4px solid var(--hcfb-ce-orange); outline-offset: 3px; }
.hcfb-ce-supporter__choice label { min-width: 0; overflow-wrap: anywhere; font-weight: 400; color: var(--hcfb-ce-text); }
.hcfb-ce-supporter__choice label strong { color: var(--hcfb-ce-navy); }
.hcfb-ce-supporter__choice-meta { display: block; color: var(--hcfb-ce-muted); font-size: 0.95rem; }
.hcfb-ce-supporter__field--error .hcfb-ce-supporter__choice { border-color: #b3261e; }
.hcfb-ce-supporter__next-steps { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.25rem 0; padding: 0; list-style: none; }
