:where(.is-background-white, .is-background-light-grey) {
	--section-label-color: var(--color-black);
	--section-label-accent: var(--color-red);
	--cta-background: var(--color-black);
	--cta-color: var(--color-white);
	--cta-hover-background: var(--color-red);
	--cta-hover-color: var(--color-white);
	--cta-border-color: transparent;
	--cta-focus-color: var(--color-black);
}

:where(body, .is-background-black) {
	--section-label-color: var(--color-white);
	--section-label-accent: var(--color-red);
	--cta-background: var(--color-super-black);
	--cta-color: var(--color-white);
	--cta-hover-background: var(--color-white);
	--cta-hover-color: var(--color-black);
	--cta-border-color: var(--color-white);
	--cta-focus-color: var(--color-white);
}

:where(.is-background-red) {
	--section-label-color: var(--color-white);
	--section-label-accent: var(--color-black);
	--cta-background: var(--color-white);
	--cta-color: var(--color-black);
	--cta-hover-background: var(--color-black);
	--cta-hover-color: var(--color-white);
	--cta-border-color: transparent;
	--cta-focus-color: var(--color-white);
}

h3.section-label,
.concertina-item__label {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	margin: 0;
	color: var(--section-label-color, inherit);
	font-family: var(--font-sans);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-normal);
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	overflow-wrap: anywhere;
}

/* Saved labels use an empty b; core headings and editor fields use a pseudo-element. */
h3.section-label > b:empty,
h3.section-label:not(:has(> b:empty))::before,
.concertina-item__label::before {
	content: '';
	display: inline-block;
	flex: 0 0 0.8rem;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background-color: var(--section-label-accent, var(--color-red));
}

h3.section-label > span {
	min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.prevail-section h3.section-label.is-section-label-revealed {
		animation: section-label-in 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	.prevail-section h3.section-label.is-section-label-revealed > b:empty,
	.prevail-section h3.section-label.is-section-label-revealed:not(:has(> b:empty))::before {
		animation: section-label-dot-in 450ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	.prevail-section h2.is-section-title-revealed {
		animation: section-title-in 750ms cubic-bezier(0.2, 0.8, 0.2, 1) 160ms both;
	}

	.prevail-section h3.section-label.is-section-label-revealed:focus-within,
	.prevail-section h2.is-section-title-revealed:focus-within {
		animation: none;
	}
}

@keyframes section-label-in {
	from {
		opacity: 0;
		transform: translateY(0.5rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes section-label-dot-in {
	from { transform: scale(0.35); }
	to { transform: scale(1); }
}

@keyframes section-title-in {
	from {
		opacity: 0;
		transform: translateY(0.85rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.prevail-cta {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	margin-top: var(--space-md);
	padding: 0.65rem 1.25rem;
	border: 1px solid var(--cta-border-color, transparent);
	border-radius: 999px;
	background: var(--cta-background, var(--color-black));
	color: var(--cta-color, var(--color-white));
	font-family: var(--font-sans);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-medium);
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-align: center;
	overflow-wrap: anywhere;
	transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

.prevail-cta:hover {
	background: var(--cta-hover-background, var(--color-red));
	color: var(--cta-hover-color, var(--color-white));
	text-decoration: none;
}

.prevail-cta:focus-visible {
	outline: 2px solid var(--cta-focus-color, var(--color-black));
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.prevail-cta {
		transition: none;
	}
}

.info-content p a {
	text-decoration: underline;
	font-weight: var(--font-weight-bold);
}

.content-post-header-author {
	margin-top: var(--space-sm);
	font-size: var(--font-size-md);
}

:is(
	.info-features__text,
	.info-text-columns__text,
	.box-section__box-description,
	.text-cta-intro__intro,
	.secondary-mission-section__intro,
	.blog-archive__description
),
p.short-info-section__copy,
p.page-hero-framed-section__teaser,
:is(
	.info-features__text,
	.info-text-columns__text,
	.box-section__box-description,
	.text-cta-intro__intro,
	.secondary-mission-section__intro,
	.two-column-flexible__content,
	.home-what-section__content,
	.blog-archive__description
) :is(p, li) {
	--teaser-copy-size: var(--font-size-teaser);
	--teaser-copy-leading: var(--line-height-teaser);
	font-size: var(--teaser-copy-size);
	line-height: var(--teaser-copy-leading);
}