/*
 * Body Nova — Gutenberg master templates.
 *
 * Styles core blocks (via the "BN …" block styles) and the Body Nova blocks
 * so pages built in the editor match the hand-built RECOMP-X landing. Loaded
 * on "Body Nova — Block Page" pages and inside the editor canvas.
 * Depends on main.css (tokens, buttons, header/footer) and accents.css.
 */

/* ---------- Tokens bridge ---------- */

.bn-landing,
.editor-styles-wrapper {
	--wp--preset--color--accent: var(--bn-red);
	--wp--preset--color--accent-hot: var(--bn-red-hot);
	--wp--preset--color--accent-1: var(--bn-red);
	--wp--preset--color--accent-3: var(--bn-red-hot);
	--bn-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--bn-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
	--bn-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--bn-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.editor-styles-wrapper {
	background: var(--bn-void);
	color: var(--bn-text);
	font-family: var(--bn-font-body);
	line-height: 1.65;
}

/* ---------- Page frame ---------- */

.bn-main {
	padding-top: calc(var(--bn-header-h) + var(--bn-admin) + clamp(32px, 5vw, 64px));
}

.bn-main:has(.bn-content > .is-style-bn-hero:first-child),
.bn-main:has(.bn-content > .alignfull:first-child) {
	padding-top: 0;
}

.bn-content > .alignfull:first-child:not(.wp-block-cover) {
	padding-top: calc(var(--bn-header-h) + var(--bn-admin) + var(--bn-section-y) * 0.6);
}

.bn-content > .alignfull,
.editor-styles-wrapper .is-root-container > .alignfull {
	margin-block: 0;
}

.bn-content > :last-child:not(.alignfull) {
	margin-bottom: var(--bn-section-y);
}

.bn-content :where(.wp-block-paragraph, .wp-block-list, .wp-block-details, .wp-block-table, .wp-block-quote) a:not(.wp-element-button) {
	color: var(--bn-red-hot);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bn-content strong,
.editor-styles-wrapper strong {
	color: var(--bn-white);
	font-weight: 650;
}

.bn-block-hint {
	padding: 16px 18px;
	border: 1px dashed var(--bn-line-2);
	font-size: 14px;
	color: var(--bn-muted);
}

/* ---------- Sections ---------- */

.wp-block-group.is-style-bn-section,
.wp-block-group.is-style-bn-section-alt {
	position: relative;
	padding-block: var(--bn-section-y);
}

.wp-block-group.is-style-bn-section-alt {
	background: var(--bn-ink);
	border-block: 1px solid var(--bn-line);
}

.wp-block-group.is-style-bn-section-alt + .wp-block-group.is-style-bn-section-alt {
	border-top: 0;
}

.wp-block-group.is-style-bn-section.has-background,
.wp-block-group.is-style-bn-section-alt.has-background {
	padding-block: var(--bn-section-y);
}

/* Section heading: label + title left, lead right (desktop). */
.wp-block-group.is-style-bn-head {
	display: grid;
	gap: 22px;
	margin-bottom: clamp(40px, 5vw, 80px);
}

.wp-block-group.is-style-bn-head > * {
	margin: 0 !important;
	max-width: none;
}

.wp-block-group.is-style-bn-head .is-style-bn-label {
	margin-bottom: 18px !important;
}

@media (min-width: 1024px) {
	.wp-block-group.is-style-bn-head:has(> :nth-child(2)) {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		align-items: end;
		gap: 64px;
	}
}

.wp-block-group.is-style-bn-head.has-text-align-center,
.wp-block-group.is-style-bn-head.is-center {
	justify-items: center;
	text-align: center;
}

/* ---------- Typography styles ---------- */

.is-style-bn-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--bn-font-display);
	font-size: 12.5px !important;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bn-text);
}

.is-style-bn-label::before {
	content: "//";
	flex: none;
	font-weight: 800;
	letter-spacing: 0;
	color: var(--bn-red-hot);
}

.is-style-bn-label.has-text-align-center {
	justify-content: center;
}

.is-style-bn-lead {
	max-width: 52ch;
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.6;
	color: var(--bn-text);
}

.is-style-bn-fine {
	font-size: 13px;
	line-height: 1.55;
	color: var(--bn-muted);
}

.wp-block-heading.is-style-bn-display {
	margin: 0;
	font-family: var(--bn-font-display);
	font-stretch: 112.5%;
	font-size: clamp(46px, 11vw, 148px);
	font-weight: 900;
	line-height: 0.86;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	color: var(--bn-white);
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	.wp-block-heading.is-style-bn-display {
		font-stretch: 125%;
		font-size: clamp(56px, 8.4vw, 148px);
		overflow-wrap: normal;
	}
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
	.wp-block-heading.is-style-bn-display {
		background: var(--bn-chrome);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}

	.is-style-bn-display mark,
	.is-style-bn-title mark {
		background: var(--bn-chrome-red) !important;
		-webkit-background-clip: text !important;
		background-clip: text !important;
		-webkit-text-fill-color: transparent;
		color: var(--bn-red-hot);
	}
}

.is-style-bn-display mark,
.is-style-bn-title mark {
	padding: 0;
	color: var(--bn-red-hot);
}

.is-style-bn-display sup,
.is-style-bn-title sup {
	margin-left: 0.04em;
	font-size: 0.24em;
	font-weight: 700;
	vertical-align: 2.4em;
	-webkit-text-fill-color: var(--bn-muted);
	color: var(--bn-muted);
}

.is-style-bn-title sup {
	vertical-align: 1.2em;
	font-size: 0.34em;
}

.wp-block-heading.is-style-bn-title {
	margin: 0;
	max-width: 100%;
	font-family: var(--bn-font-display);
	font-stretch: 112.5%;
	font-size: clamp(30px, 7.4vw, 76px);
	font-weight: 800;
	line-height: 0.96;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--bn-white);
}

@media (min-width: 768px) {
	.wp-block-heading.is-style-bn-title {
		font-stretch: 125%;
		font-size: clamp(34px, 5.4vw, 76px);
	}
}

.wp-block-heading.is-style-bn-outline {
	margin: 0;
	font-family: var(--bn-font-display);
	font-stretch: 112%;
	font-size: clamp(20px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: rgba(245, 245, 246, 0.34);
	-webkit-text-fill-color: rgba(5, 5, 5, 0.72);
	-webkit-text-stroke: 1px rgba(245, 245, 246, 0.6);
}

.wp-block-heading.is-style-bn-kicker {
	font-family: var(--bn-font-display);
	font-stretch: 110%;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--bn-red-hot);
}

/* Headings inside content get the display face and tight rhythm. */
.bn-content .wp-block-heading:not([class*="is-style-"]),
.editor-styles-wrapper .wp-block-heading:not([class*="is-style-"]) {
	font-family: var(--bn-font-display);
	font-stretch: 112%;
	line-height: 1.08;
}

/* ---------- Quote ---------- */

.wp-block-quote.is-style-bn-quote {
	position: relative;
	margin-inline: 0;
	padding: 6px 0 6px clamp(22px, 3vw, 36px);
	border: 0;
	border-left: 3px solid var(--bn-red);
}

.wp-block-quote.is-style-bn-quote p {
	margin: 0;
	font-family: var(--bn-font-display);
	font-stretch: 105%;
	font-size: clamp(19px, 2.1vw, 28px);
	font-style: italic;
	font-weight: 600;
	line-height: 1.32;
	color: var(--bn-white);
}

.wp-block-quote.is-style-bn-quote cite {
	display: block;
	margin-top: 14px;
	font-family: var(--bn-font-display);
	font-size: 11.5px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bn-muted);
}

.wp-block-quote.is-style-bn-quote.has-text-align-center {
	padding: 0;
	border: 0;
}

.wp-block-quote.is-style-bn-quote.has-text-align-center::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: 0 auto 26px;
	background: var(--bn-red);
}

/* ---------- Buttons ---------- */

.bn-landing .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
	--bn-btn-bg: var(--bn-red);
	--bn-btn-glint: rgba(var(--bn-flash-tint, 255, 255, 255), 0.55);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 clamp(18px, 4vw, 28px);
	border: 0;
	border-radius: 0;
	background: linear-gradient(105deg, var(--bn-btn-bg) 40%, var(--bn-btn-glint) 50%, var(--bn-btn-bg) 60%) 100% 0 / 260% 100% no-repeat, var(--bn-btn-bg);
	clip-path: polygon(var(--bn-cut) 0, 100% 0, 100% calc(100% - var(--bn-cut)), calc(100% - var(--bn-cut)) 100%, 0 100%, 0 var(--bn-cut));
	font-family: var(--bn-font-display);
	font-stretch: 112%;
	font-size: clamp(11.5px, 3.1vw, 13.5px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.1em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	color: #fff;
	transition: background-position 0.8s var(--bn-ease);
}

.bn-landing .wp-block-button__link::before,
.editor-styles-wrapper .wp-block-button__link::before {
	content: "";
	order: 2;
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--bn-arrow) center / contain no-repeat;
	mask: var(--bn-arrow) center / contain no-repeat;
	transition: transform 0.45s var(--bn-ease);
}

.bn-landing .wp-block-button__link:hover,
.bn-landing .wp-block-button__link:focus-visible {
	background-position: 0 0;
	color: #fff;
}

.bn-landing .wp-block-button__link:hover::before {
	transform: translateX(4px);
}

.bn-landing .wp-block-button.is-style-outline > .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline > .wp-block-button__link {
	--bn-btn-bg: rgba(255, 255, 255, 0.03);
	--bn-btn-glint: rgba(255, 255, 255, 0.12);
	border: 0;
	color: #fff;
}

.bn-landing .wp-block-button.is-style-outline > .wp-block-button__link::after,
.editor-styles-wrapper .wp-block-button.is-style-outline > .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.3);
	clip-path: polygon(evenodd, var(--bn-cut) 0, 100% 0, 100% calc(100% - var(--bn-cut)), calc(100% - var(--bn-cut)) 100%, 0 100%, 0 var(--bn-cut), var(--bn-cut) 0, calc(var(--bn-cut) + 0.5px) 1px, 1px calc(var(--bn-cut) + 0.5px), 1px calc(100% - 1px), calc(100% - var(--bn-cut) - 0.5px) calc(100% - 1px), calc(100% - 1px) calc(100% - var(--bn-cut) - 0.5px), calc(100% - 1px) 1px, calc(var(--bn-cut) + 0.5px) 1px);
	transition: background-color 0.3s;
	pointer-events: none;
}

.bn-landing .wp-block-button.is-style-outline > .wp-block-button__link::before {
	display: none;
}

.bn-landing .wp-block-button.is-style-outline > .wp-block-button__link:hover::after {
	background: rgba(255, 255, 255, 0.75);
}

.wp-block-buttons {
	gap: 12px;
}

/* ---------- Lists ---------- */

.wp-block-list.is-style-bn-checks,
.wp-block-list.is-style-bn-crosses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-bn-checks > li,
.is-style-bn-crosses > li {
	position: relative;
	margin: 0;
	padding: 16px 18px 16px 54px;
	background: linear-gradient(180deg, var(--bn-panel), rgba(17, 17, 19, 0.6));
	border: 1px solid var(--bn-line);
	font-size: 15px;
	line-height: 1.55;
	transition: border-color 0.35s;
}

.is-style-bn-checks > li:hover {
	border-color: rgba(var(--bn-red-hot-rgb), 0.38);
}

.is-style-bn-checks > li::before,
.is-style-bn-crosses > li::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 16px;
	width: 24px;
	height: 24px;
	background: rgba(var(--bn-red-rgb), 0.14);
	border: 1px solid rgba(var(--bn-red-hot-rgb), 0.5);
}

.is-style-bn-checks > li::after,
.is-style-bn-crosses > li::after {
	content: "";
	position: absolute;
	top: 21px;
	left: 21px;
	width: 14px;
	height: 14px;
	background: var(--bn-red-hot);
	-webkit-mask: var(--bn-check) center / contain no-repeat;
	mask: var(--bn-check) center / contain no-repeat;
}

.is-style-bn-crosses > li {
	color: var(--bn-muted);
}

.is-style-bn-crosses > li::before {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--bn-line-2);
}

.is-style-bn-crosses > li::after {
	background: var(--bn-muted);
	-webkit-mask-image: var(--bn-cross);
	mask-image: var(--bn-cross);
}

.wp-block-list.is-style-bn-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bn-step;
}

.is-style-bn-steps > li {
	position: relative;
	margin: 0;
	padding: clamp(22px, 2.6vw, 32px);
	padding-top: clamp(78px, 8vw, 104px);
	overflow: hidden;
	background: linear-gradient(180deg, var(--bn-panel), var(--bn-ink));
	border: 1px solid var(--bn-line);
	font-size: 15px;
	line-height: 1.6;
	counter-increment: bn-step;
	transition: border-color 0.4s;
}

.is-style-bn-steps > li::before {
	content: counter(bn-step, decimal-leading-zero);
	position: absolute;
	top: clamp(18px, 2vw, 26px);
	left: clamp(22px, 2.6vw, 32px);
	font-family: var(--bn-font-display);
	font-stretch: 125%;
	font-size: clamp(46px, 5vw, 64px);
	font-weight: 900;
	line-height: 0.85;
	color: transparent;
	-webkit-text-stroke: 1px rgba(var(--bn-red-hot-rgb), 0.7);
}

.is-style-bn-steps > li::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--bn-red);
	transform: scaleX(0.18);
	transform-origin: 0 50%;
	transition: transform 0.7s var(--bn-ease);
}

.is-style-bn-steps > li:hover {
	border-color: rgba(var(--bn-red-hot-rgb), 0.36);
}

.is-style-bn-steps > li:hover::after,
.is-style-bn-steps > li.is-flash::after {
	transform: scaleX(1);
}

.is-style-bn-steps > li strong:first-child {
	display: block;
	margin-bottom: 8px;
	font-family: var(--bn-font-display);
	font-stretch: 112%;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.wp-block-list.is-style-bn-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-bn-chips > li {
	padding: 8px 12px;
	border: 1px solid var(--bn-line-2);
	background: rgba(255, 255, 255, 0.025);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--bn-white);
}

/* Marquee tape: the list stays for screen readers; main.js builds the moving tape. */
.editor-styles-wrapper .wp-block-list.is-style-bn-tape {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	padding: 18px 24px;
	list-style: none;
	background: var(--bn-red);
	font-family: var(--bn-font-display);
	font-weight: 800;
	text-transform: uppercase;
	color: #fff;
}

.bn-content .is-style-bn-tape:not(.bn-sr) {
	display: none;
}

.bn-tape.bn-tape--block {
	position: relative;
	top: auto;
	left: auto;
	width: 110vw;
	max-width: none !important;
	height: clamp(46px, 4.8vw, 70px);
	margin-inline: calc(50% - 55vw) !important;
	background: var(--bn-red);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
	transform: rotate(-2deg);
}

.bn-content > .bn-tape--block {
	margin-block: clamp(28px, 4vw, 48px);
}

/* ---------- Cards ---------- */

.wp-block-group.is-style-bn-card,
.wp-block-group.is-style-bn-card-accent {
	position: relative;
	padding: clamp(24px, 3vw, 38px);
	overflow: hidden;
	background: linear-gradient(180deg, var(--bn-panel), var(--bn-ink));
	border: 1px solid var(--bn-line);
	transition: border-color 0.4s;
}

.wp-block-group.is-style-bn-card::before,
.wp-block-group.is-style-bn-card-accent::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--bn-red);
	transform: scaleX(0.22);
	transform-origin: 0 50%;
	transition: transform 0.8s var(--bn-ease);
}

.wp-block-group.is-style-bn-card:hover,
.wp-block-group.is-style-bn-card-accent:hover {
	border-color: rgba(var(--bn-red-hot-rgb), 0.4);
}

.wp-block-group.is-style-bn-card:hover::before,
.wp-block-group.is-style-bn-card.is-flash::before,
.wp-block-group.is-style-bn-card-accent::before {
	transform: scaleX(1);
}

.wp-block-group.is-style-bn-card-accent {
	background: radial-gradient(90% 80% at 0% 0%, rgba(var(--bn-red-rgb), 0.18), transparent 62%), var(--bn-panel);
	border-color: rgba(var(--bn-red-rgb), 0.38);
}

.is-style-bn-card > :first-child,
.is-style-bn-card-accent > :first-child {
	margin-top: 0;
}

.is-style-bn-card :where(h3, h4),
.is-style-bn-card-accent :where(h3, h4) {
	margin: 0 0 10px;
	font-family: var(--bn-font-display);
	font-stretch: 112%;
	font-size: clamp(19px, 1.9vw, 24px);
	font-weight: 800;
	line-height: 1.12;
	text-transform: uppercase;
	color: var(--bn-white);
}

.is-style-bn-card p,
.is-style-bn-card-accent p {
	font-size: 15px;
	line-height: 1.6;
}

.is-style-bn-card .is-style-bn-kicker,
.is-style-bn-card-accent .is-style-bn-kicker {
	margin-bottom: 14px;
}

/* Card grids built with the core Grid layout get even rows. */
.wp-block-group.is-layout-grid > .is-style-bn-card,
.wp-block-group.is-layout-grid > .is-style-bn-card-accent {
	height: 100%;
}

/* ---------- Columns ---------- */

.wp-block-columns.is-style-bn-split {
	gap: clamp(32px, 6vw, 88px);
}

/* ---------- Images ---------- */

.wp-block-image.is-style-bn-frame {
	position: relative;
	margin-block: 0;
}

.wp-block-image.is-style-bn-frame img {
	width: 100%;
	clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.wp-block-image.is-style-bn-frame::before,
.wp-block-image.is-style-bn-frame::after {
	content: "";
	position: absolute;
	z-index: 1;
	width: 34px;
	height: 34px;
	pointer-events: none;
}

.wp-block-image.is-style-bn-frame::before {
	top: -8px;
	right: -8px;
	border-top: 2px solid var(--bn-red);
	border-right: 2px solid var(--bn-red);
}

.wp-block-image.is-style-bn-frame::after {
	bottom: -8px;
	left: -8px;
	border-bottom: 2px solid var(--bn-red);
	border-left: 2px solid var(--bn-red);
}

.wp-block-image.is-style-bn-frame figcaption,
.wp-block-image figcaption {
	margin-top: 16px;
	font-family: var(--bn-font-display);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bn-muted);
}

/* ---------- Hero cover ---------- */

.wp-block-cover.is-style-bn-hero {
	position: relative;
	align-items: center;
	min-height: max(600px, min(86vh, 100vw / 2.2)) !important;
	padding: calc(var(--bn-header-h) + var(--bn-admin) + 48px) 0 clamp(56px, 7vw, 96px);
	overflow: hidden;
	background: var(--bn-void);
}

.wp-block-cover.is-style-bn-hero .wp-block-cover__image-background {
	filter: saturate(0.9) contrast(1.05);
}

.wp-block-cover.is-style-bn-hero .wp-block-cover__background {
	z-index: 1;
	opacity: 1 !important;
	background: linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.84) 30%, rgba(5, 5, 5, 0.2) 62%, rgba(5, 5, 5, 0) 78%), linear-gradient(0deg, var(--bn-void) 0%, rgba(5, 5, 5, 0) 26%) !important;
}

.wp-block-cover.is-style-bn-hero.is-position-center-right .wp-block-cover__background,
.wp-block-cover.is-style-bn-hero.is-position-top-right .wp-block-cover__background,
.wp-block-cover.is-style-bn-hero.is-position-bottom-right .wp-block-cover__background {
	background: linear-gradient(270deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.84) 30%, rgba(5, 5, 5, 0.2) 62%, rgba(5, 5, 5, 0) 78%), linear-gradient(0deg, var(--bn-void) 0%, rgba(5, 5, 5, 0) 26%) !important;
}

.wp-block-cover.is-style-bn-hero.is-position-center-center .wp-block-cover__background,
.wp-block-cover.is-style-bn-hero.is-position-top-center .wp-block-cover__background {
	background: radial-gradient(70% 80% at 50% 50%, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.45)), linear-gradient(0deg, var(--bn-void) 0%, rgba(5, 5, 5, 0) 30%) !important;
}

.wp-block-cover.is-style-bn-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
	pointer-events: none;
}

.wp-block-cover.is-style-bn-hero .wp-block-cover__inner-container {
	z-index: 2;
	width: 100%;
	max-width: calc(var(--bn-max) + var(--bn-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--bn-gutter);
	color: var(--bn-text);
}

.wp-block-cover.is-style-bn-hero .wp-block-cover__inner-container > * {
	max-width: min(640px, 100%);
	margin-left: 0 !important;
	margin-right: auto !important;
}

.wp-block-cover.is-style-bn-hero.is-position-center-right .wp-block-cover__inner-container > *,
.wp-block-cover.is-style-bn-hero.is-position-top-right .wp-block-cover__inner-container > *,
.wp-block-cover.is-style-bn-hero.is-position-bottom-right .wp-block-cover__inner-container > * {
	margin-left: auto !important;
	margin-right: 0 !important;
}

.wp-block-cover.is-style-bn-hero.is-position-center-center .wp-block-cover__inner-container > * {
	margin-inline: auto !important;
	text-align: center;
}

.wp-block-cover.is-style-bn-hero .wp-block-cover__inner-container > .is-style-bn-display {
	max-width: none;
}

.wp-block-cover.is-style-bn-hero .is-style-bn-display {
	font-size: clamp(44px, 10.5vw, 112px);
}

@media (min-width: 768px) {
	.wp-block-cover.is-style-bn-hero .is-style-bn-display {
		font-size: clamp(56px, 7.2vw, 120px);
	}
}

.wp-block-cover.is-style-bn-hero .is-style-bn-lead {
	color: var(--bn-text);
}

.bn-hero-sub {
	font-family: var(--bn-font-display);
	font-stretch: 110%;
	font-size: clamp(18px, 2vw, 26px) !important;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bn-white) !important;
}

/* Phones: the photo fills the whole hero (same as the brand landings); the
   copy sits at the bottom over a dark fade so the subject stays visible above it. */
@media (max-width: 781px) {
	.wp-block-cover.is-style-bn-hero {
		align-items: flex-end;
		min-height: max(640px, 100svh) !important;
		padding: calc(var(--bn-header-h) + var(--bn-admin) + 32px) 0 40px;
	}

	.wp-block-cover.is-style-bn-hero .wp-block-cover__background,
	.wp-block-cover.is-style-bn-hero.is-position-center-right .wp-block-cover__background,
	.wp-block-cover.is-style-bn-hero.is-position-top-right .wp-block-cover__background,
	.wp-block-cover.is-style-bn-hero.is-position-bottom-right .wp-block-cover__background,
	.wp-block-cover.is-style-bn-hero.is-position-center-center .wp-block-cover__background,
	.wp-block-cover.is-style-bn-hero.is-position-top-center .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.35) 30%, rgba(5, 5, 5, 0.86) 58%, var(--bn-void) 100%) !important;
	}

	.wp-block-cover.is-style-bn-hero::after {
		display: none;
	}

	.wp-block-cover.is-style-bn-hero .wp-block-cover__inner-container > *,
	.wp-block-cover.is-style-bn-hero.is-position-center-right .wp-block-cover__inner-container > *,
	.wp-block-cover.is-style-bn-hero.is-position-top-right .wp-block-cover__inner-container > *,
	.wp-block-cover.is-style-bn-hero.is-position-bottom-right .wp-block-cover__inner-container > * {
		margin-inline: 0 !important;
		max-width: 100%;
	}

	.wp-block-cover.is-style-bn-hero.is-position-center-center .wp-block-cover__inner-container > * {
		text-align: left;
	}
}

/* ---------- Banner band (closing CTA) ---------- */

.wp-block-cover.is-style-bn-band {
	position: relative;
	min-height: clamp(460px, 48vw, 640px) !important;
	padding: clamp(80px, 10vw, 150px) var(--bn-gutter);
	overflow: hidden;
	text-align: center;
}

.wp-block-cover.is-style-bn-band .wp-block-cover__background {
	opacity: 1 !important;
	background: radial-gradient(closest-side at 50% 50%, rgba(var(--bn-red-rgb), 0.22), transparent 72%), linear-gradient(180deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.6) 45%, rgba(5, 5, 5, 0.94)) !important;
}

.wp-block-cover.is-style-bn-band .wp-block-cover__image-background {
	filter: saturate(0.72) contrast(1.08) brightness(0.75);
}

.wp-block-cover.is-style-bn-band .wp-block-cover__inner-container {
	z-index: 2;
	width: 100%;
	max-width: 980px;
}

.wp-block-cover.is-style-bn-band .wp-block-cover__inner-container > * {
	margin-inline: auto;
}

/* ---------- Details (FAQ) ---------- */

.wp-block-details {
	margin: 0;
	border-bottom: 1px solid var(--bn-line-2);
}

.wp-block-details + .wp-block-details {
	margin-top: 0 !important;
}

.wp-block-details:first-of-type {
	border-top: 1px solid var(--bn-line-2);
}

.wp-block-details summary {
	position: relative;
	padding: 22px 48px 22px 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--bn-font-display);
	font-stretch: 110%;
	font-size: clamp(16px, 1.6vw, 19px);
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--bn-white);
	transition: color 0.25s;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 4px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background: var(--bn-red-hot);
	-webkit-mask: var(--bn-plus) center / contain no-repeat;
	mask: var(--bn-plus) center / contain no-repeat;
	transition: transform 0.4s var(--bn-ease);
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details summary:hover {
	color: var(--bn-red-hot);
}

.wp-block-details > :not(summary) {
	margin: 0 0 22px;
	max-width: 70ch;
}

/* ---------- Table ---------- */

.bn-content .wp-block-table,
.editor-styles-wrapper .wp-block-table {
	margin: 0;
	overflow-x: auto;
}

.bn-content .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.bn-content .wp-block-table :where(th, td),
.editor-styles-wrapper .wp-block-table :where(th, td) {
	padding: 16px 18px;
	border: 0;
	border-bottom: 1px solid var(--bn-line-2);
	text-align: left;
	vertical-align: top;
}

.bn-content .wp-block-table thead,
.editor-styles-wrapper .wp-block-table thead {
	border: 0;
}

.bn-content .wp-block-table th,
.editor-styles-wrapper .wp-block-table th {
	font-family: var(--bn-font-display);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bn-muted);
}

.bn-content .wp-block-table td:first-child,
.editor-styles-wrapper .wp-block-table td:first-child {
	font-weight: 600;
	color: var(--bn-white);
}

/* ---------- Separator ---------- */

.bn-content .wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
	width: 100%;
	height: 1px;
	margin-block: clamp(40px, 5vw, 64px);
	border: 0;
	background: linear-gradient(90deg, var(--bn-red) 0 64px, var(--bn-line-2) 64px);
	opacity: 1;
}

/* ---------- BN Program Grid ---------- */

.bn-programs {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.bn-programs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.bn-programs {
		grid-template-columns: repeat(var(--bn-cols, 3), minmax(0, 1fr));
		gap: 20px;
	}
}

.bn-program {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--bn-panel);
	border: 1px solid var(--bn-line);
	color: inherit;
	text-decoration: none !important;
	transition: border-color 0.35s, background-color 0.35s;
}

.bn-program:hover {
	border-color: rgba(var(--bn-red-hot-rgb), 0.45);
	background: var(--bn-panel-2);
}

.bn-program__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: radial-gradient(80% 90% at 50% 100%, rgba(var(--bn-red-rgb), 0.2), transparent 70%), var(--bn-ink);
}

.bn-program__media .bn-program__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 1.2s var(--bn-ease);
}

.bn-program:hover .bn-program__img {
	transform: scale(1.05);
}

.bn-focus--left {
	object-position: 15% 50%;
}

.bn-focus--center {
	object-position: 50% 50%;
}

.bn-focus--right {
	object-position: 85% 50%;
}

.bn-program__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 5, 5, 0) 45%, rgba(17, 17, 19, 0.92) 100%);
}

.bn-program__num {
	position: absolute;
	right: 18px;
	bottom: 10px;
	font-family: var(--bn-font-display);
	font-stretch: 125%;
	font-size: 54px;
	font-weight: 900;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
}

.bn-program__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 22px 24px 24px;
}

.bn-program__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.bn-program__type {
	font-family: var(--bn-font-display);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bn-red-hot);
}

.bn-program__status {
	padding: 3px 8px;
	border: 1px solid var(--bn-line-2);
	font-family: var(--bn-font-display);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bn-white);
}

.bn-program__name {
	margin-top: 4px;
	font-family: var(--bn-font-display);
	font-stretch: 118%;
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 800;
	line-height: 1.04;
	text-transform: uppercase;
	color: var(--bn-white);
}

.bn-program__level {
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--bn-muted);
}

.bn-program__excerpt {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--bn-text);
}

.bn-program__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px dashed var(--bn-line-2);
}

.bn-program__price {
	font-family: var(--bn-font-display);
	font-stretch: 110%;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bn-white);
}

.bn-program__go {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--bn-line-2);
	color: var(--bn-white);
	transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}

.bn-program__go .bn-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.45s var(--bn-ease);
}

.bn-program:hover .bn-program__go {
	background: var(--bn-red);
	border-color: var(--bn-red);
	color: #fff;
}

.bn-program:hover .bn-program__go .bn-icon {
	transform: translateX(3px);
}

/* ---------- BN Pricing ---------- */

.bn-pricing {
	position: relative;
	margin-inline: auto;
}

.bn-pricing__card {
	position: relative;
	isolation: isolate;
	display: grid;
	gap: 28px;
	padding: clamp(26px, 4.4vw, 60px);
	overflow: hidden;
	background: radial-gradient(80% 90% at 0% 0%, rgba(var(--bn-red-rgb), 0.2), transparent 62%), linear-gradient(180deg, var(--bn-panel), var(--bn-ink));
	border: 1px solid rgba(var(--bn-red-rgb), 0.42);
	clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
}

.bn-pricing__glow {
	position: absolute;
	right: -20%;
	bottom: -60%;
	z-index: -1;
	width: 80%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(var(--bn-red-rgb), 0.18), transparent);
	pointer-events: none;
}

.bn-pricing__head > * {
	margin: 0;
}

.bn-pricing__status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px !important;
	font-family: var(--bn-font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bn-red-hot);
}

.bn-pricing__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bn-red-hot);
	box-shadow: 0 0 0 0 rgba(var(--bn-red-hot-rgb), 0.6);
	animation: bn-pulse 2s infinite;
}

@keyframes bn-pulse {
	70% {
		box-shadow: 0 0 0 10px rgba(var(--bn-red-hot-rgb), 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(var(--bn-red-hot-rgb), 0);
	}
}

.bn-pricing__name {
	font-family: var(--bn-font-display);
	font-stretch: 125%;
	font-size: clamp(26px, 3.4vw, 44px);
	font-weight: 900;
	line-height: 0.98;
	text-transform: uppercase;
	color: var(--bn-white);
}

.bn-pricing__level {
	margin-top: 10px !important;
	font-size: 14.5px;
	color: var(--bn-muted);
}

.bn-pricing__price > * {
	margin: 0;
}

.bn-pricing__amount {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--bn-font-display);
	line-height: 0.82;
}

.bn-pricing__value {
	font-stretch: 125%;
	font-size: clamp(72px, 12vw, 148px);
	font-weight: 900;
	letter-spacing: -0.04em;
	color: var(--bn-white);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
	.bn-pricing__value {
		background: var(--bn-chrome);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}

.bn-pricing__per {
	font-stretch: 110%;
	font-size: clamp(20px, 2.4vw, 30px);
	font-weight: 700;
	color: var(--bn-muted);
}

.bn-pricing__plan {
	margin-top: 16px !important;
	font-family: var(--bn-font-display);
	font-stretch: 110%;
	font-size: clamp(15px, 1.5vw, 18px);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bn-red-hot);
}

.bn-pricing__rows {
	display: grid;
	margin: 0;
	border-top: 1px solid var(--bn-line-2);
}

.bn-pricing__rows > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--bn-line-2);
}

.bn-pricing__rows dt {
	font-family: var(--bn-font-display);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bn-muted);
}

.bn-pricing__rows dd {
	margin: 0;
	font-weight: 600;
	color: var(--bn-white);
}

.bn-pricing__notes > * {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
}

.bn-pricing__notes > * + * {
	margin-top: 10px;
}

.bn-pricing__cta {
	justify-self: start;
	width: 100%;
}

@media (min-width: 640px) {
	.bn-pricing__cta {
		width: auto;
	}
}

@media (min-width: 1024px) {
	.bn-pricing__card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: clamp(48px, 6vw, 96px);
		row-gap: 24px;
	}

	.bn-pricing__head {
		grid-column: 1;
		grid-row: 1;
	}

	.bn-pricing__price {
		grid-column: 1;
		grid-row: 2 / span 2;
		align-self: end;
	}

	.bn-pricing__rows {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
	}

	.bn-pricing__notes {
		grid-column: 2;
		grid-row: 2;
	}

	.bn-pricing__cta {
		grid-column: 2;
		grid-row: 3;
	}
}

.bn-pricing.is-waitlist .bn-pricing__card {
	border-color: var(--bn-line-2);
}

/* Editor preview helpers */
.bn-pricing-edit__notes {
	margin-top: 16px;
	padding: 16px 18px;
	border: 1px dashed var(--bn-line-2);
}

.bn-pricing-edit__label {
	margin: 0 0 8px;
	font-family: var(--bn-font-display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bn-muted);
}

/* ---------- BN Waitlist ---------- */

.bn-waitlist__card {
	position: relative;
	display: grid;
	gap: 28px;
	padding: clamp(26px, 4.4vw, 56px);
	background: radial-gradient(80% 90% at 100% 0%, rgba(var(--bn-red-rgb), 0.16), transparent 62%), var(--bn-panel);
	border: 1px solid rgba(var(--bn-red-rgb), 0.38);
}

@media (min-width: 1024px) {
	.bn-waitlist__card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		gap: clamp(40px, 6vw, 88px);
	}
}

.bn-waitlist__intro > :first-child {
	margin-top: 0;
}

.bn-waitlist__intro > :last-child {
	margin-bottom: 0;
}

.bn-waitlist__form {
	display: grid;
	gap: 18px;
}

.bn-waitlist__fields {
	display: grid;
	gap: 14px;
}

@media (min-width: 560px) {
	.bn-waitlist__fields {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	}
}

.bn-field {
	display: grid;
	gap: 8px;
	margin: 0;
}

.bn-field label {
	font-family: var(--bn-font-display);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bn-muted);
}

.bn-field input {
	width: 100%;
	min-height: 54px;
	padding: 0 16px;
	border: 1px solid var(--bn-line-2);
	border-radius: 0;
	background: rgba(5, 5, 5, 0.6);
	font: inherit;
	font-size: 16px;
	color: var(--bn-white);
	transition: border-color 0.25s, box-shadow 0.25s;
}

.bn-field input:focus {
	outline: none;
	border-color: var(--bn-red-hot);
	box-shadow: 0 0 0 3px rgba(var(--bn-red-rgb), 0.25);
}

.bn-waitlist__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bn-waitlist__form .bn-btn {
	justify-self: start;
	border: 0;
	background: none;
}

.bn-waitlist__msg {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--bn-line-2);
	font-weight: 500;
}

.bn-waitlist__msg.is-ok {
	border-color: rgba(var(--bn-red-hot-rgb), 0.5);
	color: var(--bn-white);
}

.bn-waitlist__msg.is-ok .bn-icon {
	color: var(--bn-red-hot);
}

.bn-waitlist__msg.is-error {
	border-color: rgba(255, 90, 90, 0.5);
	color: #ffb4b4;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.bn-pricing__dot {
		animation: none;
	}
}

/* ---------- BN Landing blocks: editor canvas ---------- */

/* Editor: server-rendered previews start visible (no scroll motion in the canvas). */
.editor-styles-wrapper [data-bn-pre],
.editor-styles-wrapper .bn-in {
	opacity: 1 !important;
	animation: none !important;
}

.editor-styles-wrapper .bn-hero,
.editor-styles-wrapper .bn-join {
	min-height: 0;
}

.editor-styles-wrapper .bn-phase {
	position: relative !important;
	top: auto !important;
}

/* ---------- BN Contact ---------- */

.bn-contact {
	margin-top: 28px;
}

.bn-contact__card {
	position: relative;
	padding: clamp(24px, 3.6vw, 44px);
	background: radial-gradient(80% 90% at 100% 0%, rgba(var(--bn-red-rgb), 0.14), transparent 62%), var(--bn-panel);
	border: 1px solid rgba(var(--bn-red-rgb), 0.34);
}

.bn-field select,
.bn-field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--bn-line-2);
	border-radius: 0;
	background: rgba(5, 5, 5, 0.6);
	font: inherit;
	font-size: 16px;
	color: var(--bn-white);
	transition: border-color 0.25s, box-shadow 0.25s;
}

.bn-field select {
	min-height: 54px;
}

.bn-field textarea {
	min-height: 160px;
	resize: vertical;
}

.bn-field select:focus,
.bn-field textarea:focus {
	outline: none;
	border-color: var(--bn-red-hot);
	box-shadow: 0 0 0 3px rgba(var(--bn-red-rgb), 0.25);
}

.wp-block-column > .is-style-bn-card + .is-style-bn-card,
.wp-block-column > .is-style-bn-card-accent + .is-style-bn-card,
.wp-block-column > .is-style-bn-card + .is-style-bn-card-accent {
	margin-top: 16px;
}

/* ---------- Balanced card rows ----------
 * Card grids and numbered steps pick cards-per-row from how many cards there
 * are, and the last row stretches to the full width — no orphan cards or
 * empty gaps. 1 per row on phones, 2 on tablets; on desktop 2 → 2, 4/7/8 → 4,
 * everything else → 3.
 */

.bn-content .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent),
.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent),
.wp-block-list.is-style-bn-steps {
	--bn-per: 1;
	--bn-gap: 16px;
	display: flex !important;
	flex-wrap: wrap;
	gap: var(--bn-gap) !important;
}

.bn-content .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent) > *,
.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent) > *,
.wp-block-list.is-style-bn-steps > li {
	flex: 1 1 calc((100% - (var(--bn-per) - 1) * var(--bn-gap)) / var(--bn-per));
	min-width: 0;
	margin: 0 !important;
}

@media (min-width: 700px) {
	.bn-content .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent),
	.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent),
	.wp-block-list.is-style-bn-steps {
		--bn-per: 2;
	}
}

@media (min-width: 1024px) {
	.bn-content .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent),
	.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent),
	.wp-block-list.is-style-bn-steps {
		--bn-per: 3;
		--bn-gap: 20px;
	}

	.bn-content .wp-block-group.is-layout-grid:has(> :nth-child(2):last-child),
	.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> :nth-child(2):last-child),
	.wp-block-list.is-style-bn-steps:has(> li:nth-child(2):last-child) {
		--bn-per: 2;
	}

	.bn-content .wp-block-group.is-layout-grid:has(> :nth-child(4):last-child),
	.bn-content .wp-block-group.is-layout-grid:has(> :nth-child(7):last-child),
	.bn-content .wp-block-group.is-layout-grid:has(> :nth-child(8):last-child),
	.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> :nth-child(4):last-child),
	.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> :nth-child(7):last-child),
	.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> :nth-child(8):last-child),
	.wp-block-list.is-style-bn-steps:has(> li:nth-child(4):last-child),
	.wp-block-list.is-style-bn-steps:has(> li:nth-child(7):last-child),
	.wp-block-list.is-style-bn-steps:has(> li:nth-child(8):last-child) {
		--bn-per: 4;
	}
}

/* ---------- Type scale for program / company pages ---------- */

@media (min-width: 768px) {
	.wp-block-heading.is-style-bn-title {
		font-size: clamp(32px, 4.4vw, 64px);
	}

	.wp-block-cover.is-style-bn-hero .is-style-bn-display {
		font-size: clamp(52px, 6.4vw, 100px);
	}
}

.wp-block-cover.is-style-bn-band .is-style-bn-display {
	font-size: clamp(44px, 7vw, 110px);
}

/* Cards in one row share the same height. */
.bn-content .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent),
.editor-styles-wrapper .wp-block-group.is-layout-grid:has(> .is-style-bn-card, > .is-style-bn-card-accent),
.wp-block-list.is-style-bn-steps {
	align-items: stretch !important;
}

.wp-block-group.is-layout-grid > .is-style-bn-card,
.wp-block-group.is-layout-grid > .is-style-bn-card-accent {
	height: auto;
}

/* Checklists: two balanced columns (an odd last item spans the row); "not included" stays one column. */
.wp-block-list.is-style-bn-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wp-block-list.is-style-bn-checks > li {
	flex: 1 1 100%;
	min-width: 0;
}

@media (min-width: 700px) {
	.wp-block-list.is-style-bn-checks > li {
		flex-basis: calc(50% - 5px);
	}
}

.wp-block-list.is-style-bn-crosses {
	grid-template-columns: minmax(0, 1fr);
}

/* Readable line length inside wide cards. */
.is-style-bn-card p,
.is-style-bn-card-accent p {
	max-width: 80ch;
}

/* Section titles inside two-column layouts and form cards step down a size. */
@media (min-width: 768px) {
	.wp-block-column > .wp-block-heading.is-style-bn-title,
	.bn-waitlist__intro .wp-block-heading.is-style-bn-title {
		font-size: clamp(28px, 3.2vw, 48px);
	}
}

/* FAQ uses the full content width, aligned with its heading. */
.bn-content .is-layout-constrained > .wp-block-group:has(> .wp-block-details) {
	max-width: var(--wp--style--global--wide-size) !important;
}

/* Pricing: price follows the program name instead of sinking to the bottom. */
@media (min-width: 1024px) {
	.bn-pricing__price {
		align-self: start;
		margin-top: 8px;
	}
}

/* Hero with content on the right: the title joins the same right-hand column. */
@media (min-width: 782px) {
	.wp-block-cover.is-style-bn-hero.is-position-center-right .wp-block-cover__inner-container > .is-style-bn-display,
	.wp-block-cover.is-style-bn-hero.is-position-top-right .wp-block-cover__inner-container > .is-style-bn-display,
	.wp-block-cover.is-style-bn-hero.is-position-bottom-right .wp-block-cover__inner-container > .is-style-bn-display {
		max-width: min(640px, 100%);
		font-size: clamp(48px, 5.6vw, 88px);
	}
}

/* Results gallery: before/after photos shown whole, in even dark frames. */
.wp-block-group.bn-results > .wp-block-image {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bn-ink);
	border: 1px solid var(--bn-line);
	transition: border-color 0.35s;
}

.wp-block-group.bn-results > .wp-block-image:hover {
	border-color: rgba(var(--bn-red-hot-rgb), 0.45);
}

.wp-block-group.bn-results > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
