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

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	overflow: visible;
	width: auto;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--teal);
	outline-offset: 3px;
}

.bb-skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	transform: translateY(-150%);
}

.bb-skip-link:focus {
	transform: translateY(0);
}

.bb-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--white) 96%, transparent);
	backdrop-filter: blur(12px);
}

.admin-bar .bb-site-header {
	top: 32px;
}

.bb-site-header__inner {
	min-height: 6rem;
	gap: clamp(1rem, 2vw, 2rem);
}

.bb-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
}

.bb-brand__logo {
	width: min(220px, 32vw);
	height: auto;
}

.bb-brand--footer .bb-brand__logo {
	width: 180px;
}

.bb-primary-navigation {
	flex: 1 1 auto;
}

.bb-primary-navigation .wp-block-navigation-item__content {
	text-decoration: none;
}

.bb-header-cta {
	flex: 0 0 auto;
}

.bb-main {
	min-height: 55vh;
}

.bb-main--front,
.bb-main--front > .wp-block-post-content {
	width: 100%;
	max-width: none;
}

.bb-main--front > .wp-block-post-content {
	padding-inline: 0;
}

/*
 * Builder pages use full-bleed section shells with constrained children.
 * Keep prose at the global 760px reading measure, but do not let the main or
 * post-content wrappers double the gutter or compress wide cards and media.
 */
.advantage-builder-page .bb-singular {
	padding-inline: 0;
}

.advantage-builder-page .bb-singular > .wp-block-post-content {
	width: 100%;
	max-width: none;
}

.bb-section,
.is-style-bb-section {
	padding-top: clamp(4rem, 8vw, 7.5rem);
	padding-bottom: clamp(4rem, 8vw, 7.5rem);
}

.bb-section > :first-child,
.is-style-bb-section > :first-child {
	margin-top: 0;
}

.bb-section > :last-child,
.is-style-bb-section > :last-child {
	margin-bottom: 0;
}

.bb-eyebrow {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0 0 1.25rem;
	padding: 0.4rem 0.75rem;
	border-radius: var(--wp--custom--brain-balance--radius--pill);
	background: var(--wp--preset--color--teal-dark);
	color: var(--wp--preset--color--white) !important;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.055em;
	line-height: 1.2;
	text-transform: uppercase;
}

.is-style-bb-card,
.bb-content-card {
	height: 100%;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 75%, transparent);
	border-radius: var(--wp--custom--brain-balance--radius--medium);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--soft);
}

.bb-content-grid {
	gap: clamp(1rem, 2vw, 1.5rem);
}

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

.bb-content-card .wp-block-post-featured-image img {
	border-radius: calc(var(--wp--custom--brain-balance--radius--medium) - 0.35rem);
	object-fit: cover;
}

.bb-hero {
	padding-top: clamp(3.5rem, 7vw, 7rem);
	padding-bottom: clamp(3.5rem, 7vw, 7rem);
}

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

.bb-hero__copy > * {
	margin-top: 0;
}

.bb-hero__copy h1 {
	max-width: 13ch;
}

.bb-hero__copy .has-lead-font-size {
	max-width: 60ch;
}

.bb-hero__image {
	margin: 0;
}

.bb-hero__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--wp--custom--brain-balance--radius--large);
	box-shadow: var(--wp--preset--shadow--soft);
	object-fit: cover;
}

.bb-hero__meta {
	margin-top: 1.25rem;
	font-weight: 600;
}

.bb-section-media {
	margin: 0;
}

.bb-section-media img {
	width: 100%;
	border-radius: var(--wp--custom--brain-balance--radius--large);
	box-shadow: var(--wp--preset--shadow--soft);
	object-fit: cover;
}

.bb-section-media--landscape img,
.bb-section-media--library img {
	aspect-ratio: 3 / 2;
}

.bb-section-media--abroad img {
	aspect-ratio: 4 / 3;
}

.bb-media-placeholder {
	min-height: clamp(22rem, 45vw, 36rem);
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--wp--custom--brain-balance--radius--large);
	background:
		linear-gradient(135deg, rgb(255 255 255 / 50%), transparent),
		var(--wp--preset--color--sand);
}

.bb-media-placeholder--landscape {
	min-height: clamp(18rem, 31vw, 25rem);
}

.bb-media-placeholder--wide {
	min-height: clamp(22rem, 38vw, 32rem);
}

.bb-media-placeholder--dark {
	border-color: rgb(255 255 255 / 28%);
	background:
		linear-gradient(135deg, rgb(255 255 255 / 12%), transparent),
		color-mix(in srgb, var(--wp--preset--color--teal-deep) 78%, #000);
}

.bb-stats {
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.bb-stats__grid {
	margin: 0;
}

.bb-stat {
	display: flex;
	min-height: 10rem;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 1.5rem;
	text-align: center;
}

.bb-stat + .bb-stat {
	border-left: 1px solid var(--wp--preset--color--line);
}

.bb-stat__value,
.bb-stat p {
	margin: 0;
}

.bb-stat__value {
	color: var(--wp--preset--color--teal-dark);
	font-size: var(--wp--preset--font-size--h2);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.bb-section-heading {
	max-width: 840px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.bb-card-grid,
.bb-steps,
.bb-review-grid,
.bb-final-actions__grid,
.bb-split {
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.bb-direction-card,
.bb-step,
.bb-review-card {
	display: flex;
	height: 100%;
	flex-direction: column;
}

.bb-card-number,
.bb-step-number {
	display: grid;
	width: 2.7rem;
	height: 2.7rem;
	place-items: center;
	margin: 0 0 1.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white) !important;
	font-size: 0.8rem;
	font-weight: 600;
}

.bb-card-link {
	margin-top: auto;
	padding-top: 1rem;
	font-weight: 600;
}

.bb-inline-cta {
	margin-top: clamp(1.5rem, 4vw, 3rem);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--wp--custom--brain-balance--radius--medium);
}

.bb-inline-cta h3,
.bb-inline-cta p {
	margin-top: 0;
	margin-bottom: 0.45rem;
}

.bb-process,
.bb-reviews {
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, var(--wp--preset--color--white));
}

.bb-process .bb-steps {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.bb-process > .wp-block-buttons {
	margin-top: 2rem;
}

.bb-abroad p,
.bb-abroad h2,
.bb-action-card--newsletter p,
.bb-action-card--newsletter h2 {
	color: inherit;
}

.bb-eyebrow--light {
	border: 1px solid rgb(255 255 255 / 34%);
	background: rgb(255 255 255 / 8%);
}

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

.bb-google-score {
	text-align: center;
}

.bb-google-score h3,
.bb-google-score p {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.bb-google-label {
	font-weight: 600;
}

.bb-stars {
	color: #d89136 !important;
	font-size: 1.1rem;
	letter-spacing: 0.15em;
}

.bb-review-card .wp-block-quote {
	margin: 1.25rem 0;
	padding: 0;
	border: 0;
}

.bb-review-card .wp-block-quote p {
	color: var(--wp--preset--color--ink);
	font-size: 1.05rem;
}

.bb-action-card {
	display: flex;
	height: 100%;
	min-height: 32rem;
	justify-content: center;
	flex-direction: column;
	padding: clamp(2rem, 5vw, 4rem);
	border-radius: var(--wp--custom--brain-balance--radius--large);
}

.bb-action-card--newsletter a:not(.wp-block-button__link) {
	color: inherit;
}

.bb-singular > .wp-block-post-title,
.bb-singular > .wp-block-post-date,
.bb-singular > .wp-block-post-terms {
	width: min(100%, var(--wp--custom--brain-balance--content-narrow));
}

.bb-library-search {
	margin-top: 2rem;
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.bb-search {
	display: grid;
	max-width: 54rem;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.75rem;
	margin-top: 2rem;
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.bb-search label {
	display: block;
}

.bb-search input[type="search"] {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.7rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
}

.bb-search button {
	min-height: 3.25rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--wp--preset--color--teal-dark);
	border-radius: 0.7rem;
	background: var(--wp--preset--color--teal-dark);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.bb-library-disclaimer {
	margin-top: clamp(3rem, 6vw, 5rem);
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: var(--wp--custom--brain-balance--radius--medium);
}

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

.bb-empty-state {
	text-align: center;
}

.bb-empty-state .wp-block-search,
.bb-empty-state .wp-block-buttons {
	justify-content: center;
	margin-top: 2rem;
}

.bb-site-footer {
	padding-top: clamp(2.75rem, 5vw, 4rem);
	padding-bottom: 1.5rem;
}

.bb-site-footer a {
	color: inherit;
}

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

.bb-site-footer h2 {
	margin-bottom: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bb-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-footer-links li + li {
	margin-top: 0.55rem;
}

.bb-site-footer__legal {
	gap: 1rem 2rem;
}

.bb-site-footer__legal p {
	margin: 0;
}

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

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

@media (max-width: 900px) {
	.admin-bar .bb-site-header {
		top: 46px;
	}

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

	.bb-primary-navigation {
		flex: 0 0 auto;
	}

	.bb-hero__grid {
		flex-direction: column;
	}

	.bb-hero__grid > .wp-block-column {
		flex-basis: 100% !important;
	}

	.bb-hero__copy h1 {
		max-width: 16ch;
	}

	.bb-media-placeholder {
		min-height: min(78vw, 32rem);
	}

	.bb-stat + .bb-stat {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--line);
	}
}

@media (max-width: 600px) {
	.admin-bar .bb-site-header {
		top: 0;
	}

	.bb-brand__logo {
		width: min(145px, 42vw);
	}

	.bb-section,
	.is-style-bb-section {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}

	.bb-hero {
		padding-top: 2.75rem;
		padding-bottom: 3.5rem;
	}

	.bb-hero__copy .wp-block-buttons,
	.bb-hero__copy .wp-block-button,
	.bb-hero__copy .wp-block-button__link {
		width: 100%;
	}

	.bb-hero__copy .wp-block-button__link {
		text-align: center;
	}

	.bb-site-footer__legal {
		align-items: flex-start;
		flex-direction: column;
	}

	.bb-action-card {
		min-height: 0;
	}

	.bb-search {
		grid-template-columns: 1fr;
	}

	.bb-search button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.bb-site-header,
	.bb-site-footer,
	.bb-skip-link {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
