/*
 * Brain Balance brand layer.
 *
 * Portable layout CSS stays inside the first-party plugins. This stylesheet is
 * the theme-owned visual system: editorial type, colour rhythm, component
 * polish and progressive motion states shared by every public template.
 */

.bb-site {
	--bb-paper: #f7f3eb;
	--bb-paper-deep: #efe8dc;
	--bb-white: #fffdf9;
	--bb-ink: #193d3b;
	--bb-muted: #5b6b68;
	--bb-petrol: #316a66;
	--bb-petrol-dark: #285855;
	--bb-teal: #007c80;
	--bb-cream: #faf4ea;
	--bb-sage: #dfe9de;
	--bb-sun: #f2e9a8;
	--bb-blush: #ead6d2;
	--bb-plum: #51374f;
	--bb-line: rgb(25 61 59 / 14%);
	--bb-shadow: 0 1.75rem 5rem rgb(25 61 59 / 10%);
	--bb-shadow-soft: 0 1rem 3rem rgb(25 61 59 / 7%);
	--bb-radius-s: 1rem;
	--bb-radius-m: 1.75rem;
	--bb-radius-l: 2.75rem;
	--bb-editorial: "Iowan Old Style", Baskerville, "Times New Roman", serif;
	background:
		radial-gradient(circle at 2% 14%, rgb(223 233 222 / 58%), transparent 22rem),
		var(--bb-paper);
	color: var(--bb-ink);
}

.bb-site :where(h1, h2, h3, h4, h5, h6, .wp-block-post-title, p, li, dd, figcaption, a, button, label, summary, strong) {
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

.bb-site :where(h1, h2, h3, h4, h5, h6, .wp-block-post-title) {
	font-family: var(--bb-editorial);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1;
	text-wrap: balance;
}

/* One editorially selected word per primary title; no script or extra asset. */
.bb-site :where(h1, h2) .bb-title-accent {
	color: var(--bb-teal);
	font-weight: inherit;
}

.bb-site :where(h1, h2) .bb-title-accent--light {
	color: var(--bb-sun);
}

.bb-site :where(h1, .has-h-1-font-size) {
	line-height: 0.94;
}

.bb-site :where(p, li, dd, figcaption) {
	text-wrap: pretty;
}

.bb-site :where(.wp-block-button__link, .bb-core-button, .bb-core-search button, .bb-search button) {
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.bb-site :where(.wp-block-button__link, .bb-core-button, .bb-core-search button, .bb-search button):hover {
	transform: translateY(-2px);
	box-shadow: 0 0.85rem 2rem rgb(25 61 59 / 16%);
}

.bb-site .wp-block-button__link {
	display: inline-flex;
	min-height: 3.25rem;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.45rem;
	border: 1px solid var(--bb-petrol);
	border-radius: 999px;
	background: var(--bb-petrol);
	color: var(--bb-white);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.bb-site .is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--bb-petrol);
}

.bb-site .is-style-outline > .wp-block-button__link:hover {
	background: rgb(35 78 75 / 7%);
}

/* Header and navigation. */

.bb-site .bb-site-header {
	border-bottom-color: var(--bb-line);
	background: rgb(255 253 249 / 91%);
	box-shadow: 0 0.4rem 2rem rgb(25 61 59 / 4%);
	backdrop-filter: blur(16px);
}

.bb-site .bb-site-header__inner {
	min-height: 5.45rem;
}

.bb-site .bb-brand__logo {
	width: min(190px, 30vw);
}

.bb-site .bb-primary-navigation .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.4rem;
	color: var(--bb-ink);
}

@media (min-width: 901px) {
	.bb-site .bb-primary-navigation .wp-block-navigation__container:not(.wp-block-navigation__submenu-container) {
		column-gap: clamp(0.95rem, 1.35vw, 1.65rem);
		row-gap: 0.5rem;
	}
}

@media (min-width: 901px) and (max-width: 1180px) {
	.bb-site .bb-primary-navigation .wp-block-navigation__container:not(.wp-block-navigation__submenu-container) {
		column-gap: clamp(0.75rem, 1.1vw, 1rem);
	}
}

@media (max-width: 1080px) {
	.bb-site .bb-header-cta {
		display: none;
	}
}

.bb-site .bb-primary-navigation .wp-block-navigation-item__content::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: currentcolor;
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 220ms ease;
}

.bb-site .bb-primary-navigation .wp-block-navigation-item__content:hover::after,
.bb-site .bb-primary-navigation .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
	transform-origin: left;
}

.bb-site .bb-header-cta .wp-block-button__link {
	min-height: 3rem;
	padding-inline: 1.35rem;
}

/* Shared editorial devices. */

.bb-site :where(.bb-eyebrow, .ab-eyebrow, .bb-core-eyebrow) {
	--bb-eyebrow-surface: var(--bb-sage);
	--bb-eyebrow-ink: var(--bb-petrol-dark);

	position: relative;
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	align-items: center;
	justify-content: center;
	margin: 0 0 1.25rem;
	padding: 0.55rem 0.9rem;
	border: 1px solid rgb(40 88 85 / 14%);
	border-radius: 999px;
	background: var(--bb-eyebrow-surface);
	color: var(--bb-eyebrow-ink) !important;
	font-family: Commissioner, system-ui, sans-serif;
	font-size: 0.73rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
}

.bb-site :where(.bb-eyebrow, .ab-eyebrow, .bb-core-eyebrow)::before {
	display: none;
}

.bb-site :where(.bb-section, .ab-section) {
	position: relative;
	isolation: isolate;
}

.bb-site :where(.bb-section-heading, .ab-section > h2, .ab-section > .wp-block-heading) {
	text-wrap: balance;
}

/* Homepage visual system. */

.bb-site .bb-main--front {
	background: var(--bb-paper);
}

.bb-site .bb-hero {
	position: relative;
	overflow: clip;
	padding-top: clamp(3.25rem, 5vw, 5.25rem);
	padding-bottom: clamp(3.25rem, 5.5vw, 5.75rem);
	background:
		radial-gradient(circle at 7% 20%, rgb(223 233 222 / 86%), transparent 25rem),
		radial-gradient(circle at 92% 22%, rgb(234 214 210 / 72%), transparent 19rem),
		linear-gradient(115deg, var(--bb-paper), var(--bb-cream));
}

.bb-site .bb-hero::after {
	position: absolute;
	top: clamp(4rem, 8vw, 7rem);
	right: clamp(1.25rem, 5vw, 5rem);
	z-index: -1;
	width: clamp(10rem, 18vw, 17rem);
	aspect-ratio: 1;
	border-radius: 50% 50% 38% 62%;
	background: var(--bb-blush);
	content: "";
	transform: rotate(13deg);
}

.bb-site .bb-hero__grid {
	gap: clamp(3rem, 7vw, 7rem);
}

.bb-site .bb-hero__copy h1 {
	max-width: 14ch;
	font-size: clamp(3.05rem, 4.25vw, 4.85rem);
	font-weight: 500;
	line-height: 1.02;
}

.bb-site .bb-hero__copy h1 em,
.bb-site .bb-section-heading h2 em {
	color: var(--bb-teal);
	font-weight: inherit;
}

.bb-site .bb-hero__visual,
.bb-site .bb-hero__image {
	position: relative;
}

.bb-site .bb-hero__image img {
	aspect-ratio: 1;
	border-radius: 6rem 2rem 6rem 2rem;
	box-shadow: var(--bb-shadow);
}

.bb-site .bb-hero__proof {
	position: absolute;
	right: clamp(-1rem, -1vw, -0.25rem);
	bottom: clamp(1rem, 3vw, 2.25rem);
	min-width: min(15.5rem, 88%);
	padding: 1rem 1.15rem;
	border: 1px solid rgb(255 255 255 / 72%);
	border-radius: 1.35rem;
	background: rgb(255 253 249 / 91%);
	box-shadow: 0 1rem 2.75rem rgb(25 61 59 / 18%);
	backdrop-filter: blur(12px);
}

.bb-site .bb-hero__proof p {
	margin-block: 0;
}

.bb-site .bb-hero__proof p + p {
	margin-top: 0.2rem;
}

.bb-site .bb-hero__proof a {
	color: var(--bb-ink);
	font-weight: 700;
}

.bb-site .bb-hero__rating {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	color: #a66d00;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
}

.bb-site .bb-hero__rating strong {
	color: var(--bb-ink);
	font-family: var(--bb-editorial);
	font-size: 1.65rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.bb-site .bb-hero__meta {
	max-width: 42rem;
	color: var(--bb-muted);
	font-size: 0.92rem;
}

.bb-site .bb-stats {
	padding-block: clamp(1.5rem, 4vw, 3.5rem);
	border: 0;
	background: var(--bb-paper);
}

.bb-site .bb-stats__grid {
	overflow: hidden;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-l);
	background: linear-gradient(135deg, var(--bb-white), var(--bb-cream));
	box-shadow: var(--bb-shadow-soft);
}

.bb-site .bb-stat {
	position: relative;
	min-height: 9.5rem;
}

.bb-site .bb-stat + .bb-stat {
	border-color: var(--bb-line);
}

.bb-site .bb-stat__value {
	color: var(--bb-petrol);
	font-family: var(--bb-editorial);
	font-size: clamp(2.65rem, 4vw, 4.35rem);
	font-weight: 500;
}

.bb-site .bb-stat__label {
	margin-bottom: 0.35rem;
	color: var(--bb-muted);
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.bb-site .bb-directions {
	background:
		radial-gradient(circle at 92% 17%, rgb(223 233 222 / 56%), transparent 18rem),
		linear-gradient(180deg, var(--bb-paper), var(--bb-white) 52%, var(--bb-paper));
}

.bb-site .bb-card-grid > .wp-block-column:nth-child(3n + 1) .bb-direction-card {
	background: var(--bb-blush);
}

.bb-site .bb-card-grid > .wp-block-column:nth-child(3n + 2) .bb-direction-card {
	background: var(--bb-sun);
}

.bb-site .bb-card-grid > .wp-block-column:nth-child(3n) .bb-direction-card {
	background: var(--bb-sage);
}

.bb-site :where(.bb-direction-card, .bb-step, .bb-review-card) {
	position: relative;
	overflow: hidden;
	padding: clamp(1.7rem, 3vw, 2.5rem);
	border: 1px solid rgb(40 88 85 / 9%);
	border-radius: var(--bb-radius-m);
	box-shadow: 0 0.75rem 2.25rem rgb(25 61 59 / 7%);
	transition:
		transform 220ms ease,
		box-shadow 220ms ease;
}

.bb-site :where(.bb-direction-card, .bb-review-card):hover {
	transform: translateY(-6px);
	box-shadow: var(--bb-shadow-soft);
}

.bb-site .bb-direction-card h3 {
	font-size: clamp(2rem, 3vw, 3rem);
}

.bb-site .bb-card-audience {
	margin-bottom: 0.85rem;
	color: var(--bb-petrol-dark);
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	line-height: 1.45;
	text-transform: uppercase;
}

.bb-site .bb-card-number,
.bb-site .bb-step-number {
	border: 1px solid rgb(40 88 85 / 12%);
	background: rgb(255 253 249 / 66%);
	color: var(--bb-petrol) !important;
	font-family: var(--bb-editorial);
	font-size: 1.4rem;
}

.bb-site .bb-direction-card .bb-card-link a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.bb-site .bb-direction-card:has(.bb-card-link a:focus-visible) {
	outline: 3px solid var(--bb-teal);
	outline-offset: 4px;
}

.bb-site .bb-process {
	overflow: clip;
	padding-top: clamp(3.75rem, 6vw, 5.75rem);
	background:
		radial-gradient(circle at 90% 18%, rgb(234 214 210 / 75%), transparent 18rem),
		var(--bb-cream);
}

.bb-site .bb-process .bb-steps {
	position: relative;
	isolation: isolate;
}

.bb-site .bb-process .bb-steps::before {
	position: absolute;
	top: 4rem;
	right: 12%;
	left: 12%;
	z-index: -1;
	height: 1px;
	background: var(--bb-line);
	content: "";
}

.bb-site .bb-process .bb-step {
	min-height: 18rem;
	background: var(--bb-white);
}

.bb-site .bb-steps > .wp-block-column:nth-child(1) .bb-step { border-top: 4px solid var(--bb-blush); }
.bb-site .bb-steps > .wp-block-column:nth-child(2) .bb-step { border-top: 4px solid var(--bb-sun); }
.bb-site .bb-steps > .wp-block-column:nth-child(3) .bb-step { border-top: 4px solid var(--bb-sage); }

.bb-site .bb-step h3 {
	font-size: clamp(1.75rem, 2.5vw, 2.55rem);
}

.bb-site .bb-abroad {
	overflow: clip;
	background:
		radial-gradient(circle at 95% 5%, rgb(242 233 168 / 18%), transparent 22rem),
		var(--bb-petrol);
}

.bb-site .bb-abroad :where(h2, h3, p, a:not(.wp-block-button__link)) {
	color: var(--bb-white);
}

.bb-site .bb-abroad__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.15rem;
	margin: 1.5rem 0;
	padding: 0;
	color: var(--bb-white);
	font-weight: 700;
	list-style: none;
}

.bb-site .bb-abroad__benefits li::before {
	margin-right: 0.4rem;
	color: var(--bb-sun);
	content: "✓";
}

.bb-site .bb-reviews {
	background: var(--bb-paper);
}

/* Advantage Builder pages: brand presentation remains theme-owned. */

.bb-site.advantage-builder-page .bb-singular {
	padding-block: 0;
}

.bb-site.advantage-builder-page .bb-singular > .wp-block-post-content {
	margin-top: 0;
	padding-inline: 0;
	font-size: inherit;
	line-height: inherit;
}

.bb-site .advantage-builder-canvas {
	background: var(--bb-paper);
}

.bb-site .ab-section {
	--ab-ink: var(--bb-ink);
	--ab-muted: var(--bb-muted);
	--ab-accent: var(--bb-petrol);
	--ab-surface: var(--bb-paper);
	--ab-line: var(--bb-line);
	--ab-white: var(--bb-white);
	--ab-radius: var(--bb-radius-m);
	overflow: clip;
	padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.bb-site .ab-hero,
.bb-site .ab-hero--compact {
	min-height: 0;
	padding-block: clamp(5rem, 9vw, 8rem);
	background:
		radial-gradient(circle at 8% 30%, rgb(223 233 222 / 88%), transparent 23rem),
		radial-gradient(circle at 92% 10%, rgb(234 214 210 / 76%), transparent 20rem),
		var(--bb-cream);
}

.bb-site .ab-hero h1 {
	max-width: 14ch;
	font-size: clamp(3.25rem, 5.5vw, 6rem);
	line-height: 0.93;
}

.bb-site .ab-hero > .has-lead-font-size,
.bb-site .ab-hero > p:not(.ab-eyebrow) {
	max-width: 62ch;
}

.bb-site .ab-section--tint {
	background: var(--bb-white);
}

.bb-site .ab-section--tint::before {
	position: absolute;
	top: 2.5rem;
	left: clamp(1rem, 5vw, 5rem);
	z-index: -1;
	width: clamp(8rem, 16vw, 15rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgb(223 233 222 / 68%);
	content: "";
	filter: blur(1px);
}

.bb-site .ab-card-grid {
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.bb-site .ab-card {
	min-height: 23rem;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	border: 0;
	border-radius: var(--bb-radius-m);
	box-shadow: none;
	transition:
		transform 220ms ease,
		box-shadow 220ms ease;
}

.bb-site .ab-card-grid > .wp-block-column:nth-child(3n + 1) .ab-card {
	background: var(--bb-cream);
}

.bb-site .ab-card-grid > .wp-block-column:nth-child(3n + 2) .ab-card {
	background: var(--bb-sun);
}

.bb-site .ab-card-grid > .wp-block-column:nth-child(3n) .ab-card {
	background: var(--bb-sage);
}

.bb-site .ab-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--bb-shadow-soft);
}

.bb-site .ab-card h3 {
	font-size: clamp(2rem, 3vw, 3rem);
}

.bb-site .ab-media-placeholder {
	border: 0;
	border-radius: var(--bb-radius-l);
	background:
		linear-gradient(145deg, rgb(255 253 249 / 55%), transparent),
		var(--bb-sage);
}

.bb-site .ab-steps {
	gap: clamp(1rem, 2vw, 1.5rem);
}

.bb-site .ab-steps .wp-block-column {
	min-height: 15rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 0;
	border-radius: var(--bb-radius-m);
	background: var(--bb-white);
}

.bb-site .ab-steps .wp-block-column h3 {
	font-size: clamp(1.65rem, 2.5vw, 2.35rem);
}

.bb-site .ab-cta {
	background:
		radial-gradient(circle at 88% 10%, rgb(242 233 168 / 15%), transparent 20rem),
		var(--bb-petrol);
	color: var(--bb-white);
}

.bb-site .ab-cta :where(h2, h3) {
	max-width: 15ch;
	font-size: clamp(2.75rem, 4.5vw, 5rem);
}

.bb-site .ab-cta .wp-block-button__link {
	border-color: var(--bb-white);
	background: var(--bb-white);
	color: var(--bb-petrol);
}

.bb-site .ab-testimonial {
	border-radius: var(--bb-radius-l);
	box-shadow: var(--bb-shadow-soft);
}

/* Archives, search and reusable content cards. */

.bb-site :where(.bb-blog-archive, .bb-library-archive, .bb-team-archive, .bb-program-archive) {
	position: relative;
	overflow: clip;
	padding-top: clamp(5rem, 8vw, 7rem);
	background:
		radial-gradient(circle at 88% 7%, rgb(234 214 210 / 72%), transparent 19rem),
		radial-gradient(circle at 4% 17%, rgb(223 233 222 / 72%), transparent 20rem),
		var(--bb-paper);
}

.bb-site :where(.bb-blog-archive, .bb-library-archive, .bb-team-archive, .bb-program-archive) > h1 {
	max-width: 14ch;
	margin-bottom: 0.45em;
}

.bb-site :where(.bb-blog-archive, .bb-library-archive, .bb-team-archive, .bb-program-archive) > .has-lead-font-size {
	max-width: 65ch;
}

.bb-site :where(.bb-blog-archive, .bb-library-archive, .bb-team-archive, .bb-program-archive) > .wp-block-query {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.bb-site .bb-content-grid {
	gap: clamp(1rem, 2.2vw, 1.75rem);
}

.bb-site .bb-content-card {
	min-height: 22rem;
	overflow: hidden;
	padding: clamp(1.5rem, 2.6vw, 2.1rem);
	border: 0;
	border-radius: var(--bb-radius-m);
	background: var(--bb-white);
	box-shadow: none;
	transition:
		transform 220ms ease,
		box-shadow 220ms ease;
}

.bb-site .bb-content-grid > li:nth-child(6n + 2) .bb-content-card,
.bb-site .bb-content-grid > li:nth-child(6n + 5) .bb-content-card {
	background: var(--bb-cream);
}

.bb-site .bb-content-grid > li:nth-child(6n + 3) .bb-content-card {
	background: var(--bb-sage);
}

.bb-site .bb-content-grid > li:nth-child(6n + 4) .bb-content-card {
	background: var(--bb-sun);
}

.bb-site .bb-content-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--bb-shadow-soft);
}

.bb-site .bb-content-card .wp-block-post-featured-image {
	margin: -0.75rem -0.75rem 1.5rem;
}

.bb-site .bb-content-card .wp-block-post-featured-image img {
	border-radius: calc(var(--bb-radius-m) - 0.75rem);
}

.bb-site .bb-content-card .wp-block-post-title {
	font-size: clamp(1.7rem, 2.2vw, 2.35rem);
}

.bb-site .bb-content-card .wp-block-post-title a {
	color: var(--bb-ink);
	text-decoration: none;
}

.bb-site .bb-content-card .wp-block-post-terms {
	color: var(--bb-teal);
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bb-site :where(.bb-search, .bb-core-search) {
	max-width: 58rem;
	margin-top: 2.25rem;
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
	padding: 0.55rem;
	border: 1px solid var(--bb-line);
	border-radius: 1.25rem;
	background: var(--bb-white);
	box-shadow: 0 0.75rem 2.5rem rgb(25 61 59 / 6%);
}

.bb-site .bb-search input[type="search"],
.bb-site .bb-core .bb-core-search input,
.bb-site .bb-core .bb-core-search select {
	border: 0;
	background: transparent;
}

.bb-site .bb-search button,
.bb-site .bb-core-search button {
	border-radius: 0.85rem;
	background: var(--bb-petrol);
}

/* Portable Brain Balance Core shells. */

.bb-site .bb-core {
	--bb-core-ink: var(--bb-ink);
	--bb-core-teal: var(--bb-teal);
	--bb-core-teal-dark: var(--bb-petrol);
	--bb-core-sand: var(--bb-cream);
	--bb-core-surface: var(--bb-paper);
	--bb-core-line: var(--bb-line);
	--bb-core-white: var(--bb-white);
	overflow: clip;
	padding: clamp(4.5rem, 8vw, 7rem) 0;
	background:
		radial-gradient(circle at 88% 6%, rgb(234 214 210 / 62%), transparent 18rem),
		var(--bb-paper);
}

.bb-site .bb-core__container--narrow {
	width: min(100% - 2rem, 58rem);
}

.bb-site .bb-core h1 {
	max-width: 15ch;
	font-family: var(--bb-editorial);
	font-size: clamp(3rem, 5vw, 5.7rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 0.94;
}

.bb-site .bb-core-intro {
	max-width: 62rem;
}

.bb-site .bb-core-grid {
	gap: clamp(1rem, 2.2vw, 1.75rem);
}

.bb-site .bb-core-card {
	border: 0;
	border-radius: var(--bb-radius-m);
	box-shadow: none;
	transition:
		transform 220ms ease,
		box-shadow 220ms ease;
}

.bb-site .bb-core-grid > :nth-child(4n + 1) .bb-core-card {
	background: var(--bb-cream);
}

.bb-site .bb-core-grid > :nth-child(4n + 2) .bb-core-card {
	background: var(--bb-sage);
}

.bb-site .bb-core-grid > :nth-child(4n + 3) .bb-core-card {
	background: var(--bb-sun);
}

/* Yellow is an accent surface, never a light-text surface. */
.bb-site .bb-content-grid > li:nth-child(6n + 4) .bb-content-card,
.bb-site .bb-core-grid > :nth-child(4n + 3) .bb-core-card {
	color: var(--bb-ink);
}

.bb-site .bb-content-grid > li:nth-child(6n + 4) .bb-content-card :where(h2, h3, h4, p, li, a:not(.wp-block-button__link)),
.bb-site .bb-core-grid > :nth-child(4n + 3) .bb-core-card :where(h2, h3, h4, p, li, a:not(.bb-core-button)) {
	color: inherit;
}

.bb-site .bb-core-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--bb-shadow-soft);
}

.bb-site .bb-core-card__media img {
	border-radius: 0;
}

.bb-site .bb-core-card h2 {
	font-family: var(--bb-editorial);
	font-size: clamp(1.75rem, 2.5vw, 2.5rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1;
}

.bb-site .bb-core-entry__header {
	position: relative;
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--bb-line);
}

.bb-site .bb-core-entry__header::after {
	position: absolute;
	right: 0;
	bottom: -1.4rem;
	width: 5rem;
	height: 2.8rem;
	border-radius: 50%;
	background: var(--bb-sun);
	content: "";
	opacity: 0.72;
}

.bb-site .bb-core-lead {
	color: var(--bb-muted);
	font-size: clamp(1.12rem, 1.5vw, 1.32rem);
}

.bb-site .bb-core-byline {
	padding: 1.25rem;
	border-radius: var(--bb-radius-s);
	background: rgb(255 253 249 / 66%);
}

.bb-site .bb-core-entry__image img,
.bb-site .bb-core-profile__media img {
	border-radius: var(--bb-radius-l);
	box-shadow: var(--bb-shadow-soft);
}

.bb-site .bb-core-entry__content {
	font-size: clamp(1.04rem, 1vw, 1.12rem);
	line-height: 1.86;
}

.bb-site .bb-core-entry__content :where(h2, h3) {
	color: var(--bb-ink);
}

.bb-site .bb-core-entry__content h2 {
	font-size: clamp(2.1rem, 3.2vw, 3rem);
}

.bb-site .bb-core-entry__content h3 {
	font-size: clamp(1.65rem, 2.5vw, 2.15rem);
}

.bb-site .bb-core-notice,
.bb-site .bb-core-empty {
	position: relative;
	overflow: hidden;
	border: 0;
	border-radius: var(--bb-radius-l);
	background: var(--bb-sage);
}

.bb-site .bb-core-notice h2 {
	font-family: var(--bb-editorial);
	font-size: clamp(2rem, 3vw, 3rem);
	font-weight: 500;
}

.bb-site .bb-core-button {
	border-radius: 999px;
	background: var(--bb-petrol);
}

.bb-site .bb-core-profile {
	gap: clamp(2.5rem, 6vw, 6rem);
}

/* Native singular, error and utility templates. */

.bb-site:not(.advantage-builder-page) .bb-singular {
	padding-top: clamp(4.5rem, 8vw, 7rem);
}

.bb-site .bb-singular > .wp-block-post-title {
	max-width: 14ch;
}

.bb-site .bb-singular > .wp-block-post-featured-image img {
	border-radius: var(--bb-radius-l);
	box-shadow: var(--bb-shadow-soft);
}

.bb-site .bb-singular > .wp-block-post-content {
	font-size: 1.06rem;
	line-height: 1.82;
}

.bb-site .bb-library-disclaimer {
	border-radius: var(--bb-radius-l);
	background: var(--bb-sage) !important;
}

.bb-site .bb-team-profile .bb-profile-grid {
	align-items: center;
}

.bb-site .bb-team-profile .wp-block-post-featured-image img {
	border-radius: 7rem 2rem 7rem 2rem;
	box-shadow: var(--bb-shadow);
}

.bb-site .bb-empty-state {
	position: relative;
	overflow: hidden;
}

.bb-site .bb-empty-state > h1 {
	max-width: 14ch;
	margin-inline: auto;
}

/* Footer. */

.bb-site .bb-site-footer {
	padding-top: clamp(2.25rem, 4vw, 3.5rem);
	border-top: 1px solid rgb(25 61 59 / 14%);
	background: var(--bb-sage) !important;
	color: var(--bb-ink) !important;
}

.bb-site .bb-site-footer__grid {
	gap: clamp(2rem, 5vw, 5rem);
}

.bb-site .bb-social-links .wp-social-link {
	transition: transform 180ms ease;
}

.bb-site .bb-social-links .wp-social-link:hover {
	transform: translateY(-3px);
}

/* Lightweight progressive motion. Content is visible when JS is unavailable. */

html.bb-motion-ready .bb-motion-item {
	opacity: 0;
	clip-path: inset(0 0 14% 0 round 1.25rem);
	transform: translateY(2rem);
	transition:
		opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--bb-motion-delay, 0ms),
		clip-path 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--bb-motion-delay, 0ms),
		transform 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--bb-motion-delay, 0ms);
}

html.bb-motion-ready .bb-motion-item.bb-motion-card {
	clip-path: inset(4% 0 12% 0 round var(--bb-radius-m));
	transform: translateY(2.5rem) scale(0.975);
}

html.bb-motion-ready .bb-motion-item.is-visible {
	opacity: 1;
	clip-path: inset(0 0 0 0 round 0);
	transform: translateY(0) scale(1);
}

@media (max-width: 900px) {
	.bb-site .bb-brand__logo {
		width: min(160px, 36vw);
	}

	.bb-site .bb-hero__copy h1,
	.bb-site .ab-hero h1,
	.bb-site .bb-core h1 {
		max-width: 13ch;
	}

	.bb-site .bb-hero__image img {
		aspect-ratio: 4 / 3;
		border-radius: 4rem 1.5rem 4rem 1.5rem;
	}

	.bb-site .bb-core-profile {
		grid-template-columns: 1fr;
	}

	.bb-site .bb-core-profile__media {
		max-width: 34rem;
	}
}

@media (max-width: 781px) {
	.bb-site .ab-section,
	.bb-site .bb-section {
		padding-block: clamp(3.75rem, 12vw, 5rem);
	}

	.bb-site .ab-hero,
	.bb-site .ab-hero--compact {
		padding-block: clamp(4rem, 14vw, 6rem);
	}

	.bb-site .ab-card,
	.bb-site .ab-steps .wp-block-column,
	.bb-site .bb-content-card {
		min-height: 0;
	}

	.bb-site :where(.bb-search, .bb-core-search) {
		padding: 0.45rem;
	}

	.bb-site .bb-process .bb-steps::before {
		display: none;
	}
}

@media (max-width: 600px) {
	.bb-site .bb-site-header__inner {
		min-height: 4.6rem;
	}

	.bb-site .bb-brand__logo {
		width: min(140px, 40vw);
	}

	.bb-site .bb-hero__copy h1,
	.bb-site .ab-hero h1,
	.bb-site .bb-core h1 {
		font-size: clamp(2.9rem, 14.5vw, 4.6rem);
	}

	.bb-site .bb-hero::after {
		opacity: 0.55;
	}

	.bb-site .bb-hero__proof {
		right: 0.85rem;
		bottom: 0.85rem;
	}

	.bb-site .bb-stats__grid {
		border-radius: var(--bb-radius-m);
	}

	.bb-site :where(.bb-direction-card, .bb-step, .bb-review-card, .ab-card, .ab-steps .wp-block-column, .bb-content-card, .bb-core-card) {
		border-radius: 1.5rem;
	}

	.bb-site :where(.bb-blog-archive, .bb-library-archive, .bb-team-archive, .bb-program-archive) {
		padding-top: 4rem;
	}

	.bb-site .bb-core {
		padding-top: 4rem;
	}

	.bb-site .bb-core-byline {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.bb-motion-ready .bb-motion-item {
		opacity: 1;
		clip-path: none;
		transform: none;
		transition: none;
	}

	.bb-site :where(.bb-direction-card, .bb-review-card, .ab-card, .bb-content-card, .bb-core-card, .wp-block-button__link) {
		transition: none;
	}
}
