/**
 * BNI Activate - the brand stylesheet.
 *
 * Every value is a token (`--bnia-*`, printed inline from inc/tokens.php).
 * Elementor templates carry no styling of their own: a section is styled
 * here, by the class on its container (`css_classes`) or widget
 * (`_css_classes`). docs/design-system.md maps each class to the
 * application's component it reproduces.
 *
 * Contents
 *  0. Fonts
 *  1. Base
 *  2. Accessibility
 *  3. Buttons and links
 *  4. Forms (global, by element selector)
 *  5. Header
 *  6. Footer
 *  7. Sections
 *  8. Cards and section patterns
 *  9. Articles, archives, search, 404
 * 10. Motion
 * 11. Connection section (docs/connection-section.md)
 */

/* ---------------------------------------------------------------------------
 * 0. Fonts (ADR 0009) - Sora (headings, display) and Inter (body, UI),
 * self-hosted WOFF2, SIL OFL 1.1 (assets/fonts/OFL-*.txt). Only the weights
 * the type roles use; Latin Extended downloads only for a page that needs
 * it. font-display: swap, and the two faces of the first paint are
 * preloaded (inc/setup.php).
 *
 * The "… Fallback" faces are the local Arial resized to each font's metrics
 * (size-adjust from average character width; ascent and descent from the
 * fonts; Capsize metrics 4.5.0), so the swap from fallback to web font
 * moves nothing.
 * ------------------------------------------------------------------------ */

@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/sora-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/sora-latin-ext-600-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/sora-latin-700-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/sora-latin-ext-700-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/inter-latin-ext-600-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Sora Fallback';
	src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial');
	font-weight: 600 700;
	size-adjust: 107.71%;
	ascent-override: 90.05%;
	descent-override: 26.92%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Inter Fallback';
	src: local('Arial'), local('ArialMT');
	size-adjust: 107.12%;
	ascent-override: 90.44%;
	descent-override: 22.52%;
	line-gap-override: 0%;
}

/* ---------------------------------------------------------------------------
 * 1. Base - sizes, weights and families are the type roles
 * (--bnia-type-<role>-*, inc/tokens.php bnia_type_roles()), the same values
 * Elementor's global typography carries.
 * ------------------------------------------------------------------------ */

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--bnia-header-height) + 1rem);
}

body {
	margin: 0;
	background: var(--bnia-color-surface);
	color: var(--bnia-color-text);
	font-family: var(--bnia-type-text-family);
	font-size: var(--bnia-type-text-size);
	font-weight: var(--bnia-type-text-weight);
	line-height: var(--bnia-type-text-leading);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Elementor sets its own family on some widgets: body text is Inter. */
.elementor-widget-text-editor,
.elementor-button,
.elementor-field-group .elementor-field,
.elementor-field-label,
.elementor-tab-title,
.e-n-accordion-item-title-text {
	font-family: var(--bnia-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 0.5em;
	color: var(--bnia-color-heading);
	font-family: var(--bnia-font-heading);
	font-weight: var(--bnia-type-primary-weight);
	line-height: var(--bnia-type-primary-leading);
	letter-spacing: var(--bnia-type-primary-tracking);
	text-wrap: balance;
}

/* Atomic headings unset everything (`.elementor .e-heading-base`); give them
 * the heading face back. */
.elementor :is(h1, h2, h3, h4, h5, h6).e-heading-base {
	font-family: var(--bnia-font-heading);
}

h1 {
	font-size: var(--bnia-type-heading1-size);
	font-weight: var(--bnia-type-heading1-weight);
	line-height: var(--bnia-type-heading1-leading);
	letter-spacing: var(--bnia-type-heading1-tracking);
}

h2 {
	font-size: var(--bnia-type-heading2-size);
	font-weight: var(--bnia-type-heading2-weight);
	line-height: var(--bnia-type-heading2-leading);
	letter-spacing: var(--bnia-type-heading2-tracking);
}

h3 {
	font-size: var(--bnia-type-heading3-size);
	line-height: var(--bnia-type-heading3-leading);
	letter-spacing: var(--bnia-type-heading3-tracking);
}

h4 {
	font-size: var(--bnia-type-heading4-size);
	line-height: var(--bnia-type-heading4-leading);
}

h5,
h6 {
	font-size: var(--bnia-text-base);
	line-height: var(--bnia-leading-normal);
}

p {
	margin-block: 0 1em;
	text-wrap: pretty;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

hr {
	border: 0;
	border-top: 1px solid var(--bnia-color-border);
	margin-block: 2rem;
}

code,
kbd,
pre,
samp {
	font-family: var(--bnia-font-mono);
	font-size: 0.875em;
}

.bnia-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex: none;
	fill: currentColor;
	vertical-align: -0.125em;
}

/* ---------------------------------------------------------------------------
 * 2. Accessibility
 * ------------------------------------------------------------------------ */

/* The application's focus ring (apps/web/src/index.css:201-204): visible and
 * consistent everywhere, never removed. */
:focus-visible {
	outline: 2px solid var(--bnia-color-focus);
	outline-offset: 2px;
}

/* On the dark header and dark sections the ring is white, as in the
 * application's header (AppShell.tsx:596). */
.bnia-header :focus-visible,
.bnia-footer :focus-visible,
.bnia-hero :focus-visible,
.bnia-section--dark :focus-visible,
.bnia-connection-section--dark :focus-visible {
	outline-color: var(--bnia-color-on-dark);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	border-radius: var(--bnia-radius-medium);
	background: var(--bnia-color-surface);
	color: var(--bnia-color-primary);
	font-weight: var(--bnia-weight-semibold);
	box-shadow: var(--bnia-shadow-large);
	white-space: normal;
}

/* ---------------------------------------------------------------------------
 * 3. Buttons and links
 * ------------------------------------------------------------------------ */

/* Links: the application's `font-medium text-brand-700 underline
 * hover:no-underline` (HomePage.tsx:35-36). */
a {
	color: var(--bnia-color-link);
	text-decoration: underline;
	text-decoration-thickness: from-font;
	text-underline-offset: 0.15em;
	transition: color var(--bnia-transition);
}

a:hover {
	color: var(--bnia-color-primary-hover);
	text-decoration: none;
}

.elementor-widget-text-editor a,
.entry-content a,
.page-content a {
	font-weight: var(--bnia-weight-medium);
}

/* The primary button: `rounded-md bg-brand-700 px-5 py-2.5 text-sm
 * font-semibold text-white hover:bg-brand-800` (HomePage.tsx:74). Elementor's
 * buttons take the same values from Site Settings (inc/elementor-kit.php);
 * this covers the theme's own buttons and the states the kit cannot set. */
body a.bnia-button,
body button.bnia-button,
.elementor a.e-button-base,
.elementor button.e-button-base,
.elementor-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	/* The 1px border sits inside the application's py-2.5 (40px tall). */
	padding: calc(0.625rem - 1px) 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--bnia-radius-medium);
	background: var(--bnia-color-primary);
	color: var(--bnia-color-on-dark);
	font-family: var(--bnia-type-accent-family);
	font-size: var(--bnia-type-accent-size);
	font-weight: var(--bnia-type-accent-weight);
	line-height: 1.25rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--bnia-transition), border-color var(--bnia-transition), color var(--bnia-transition), box-shadow var(--bnia-transition), transform var(--bnia-transition);
}

body a.bnia-button:hover,
body button.bnia-button:hover,
.elementor a.e-button-base:hover,
.elementor button.e-button-base:hover,
.elementor-button:hover {
	background: var(--bnia-color-primary-hover);
	color: var(--bnia-color-on-dark);
	text-decoration: none;
}

.elementor-button .elementor-button-content-wrapper {
	gap: 0.5rem;
}

/* Accent: the application's `bg-accent hover:bg-accent-hover` (AppShell.tsx:954).
 * White on #d71920 is 5.19:1. */
body a.bnia-button--accent,
.elementor a.bnia-button--accent,
body .bnia-button--accent .elementor-button {
	background: var(--bnia-color-accent);
	color: var(--bnia-color-on-dark);
}

body a.bnia-button--accent:hover,
.elementor a.bnia-button--accent:hover,
body .bnia-button--accent .elementor-button:hover {
	background: var(--bnia-color-accent-hover);
	color: var(--bnia-color-on-dark);
}

/* Outline: `border border-brand-500 text-brand-800 hover:bg-brand-50`
 * (packages/ui/src/primitives.tsx:105-109). */
body a.bnia-button--outline,
.elementor a.bnia-button--outline,
body .bnia-button--outline .elementor-button {
	border: 1px solid var(--bnia-brand-500);
	background: transparent;
	color: var(--bnia-brand-800);
}

body a.bnia-button--outline:hover,
.elementor a.bnia-button--outline:hover,
body .bnia-button--outline .elementor-button:hover {
	background: var(--bnia-brand-50);
	color: var(--bnia-brand-800);
}

/* Secondary: `border border-slate-300 bg-white text-slate-700
 * hover:bg-slate-100` (scheduling-form.ts:14-15). */
body a.bnia-button--secondary,
.elementor a.bnia-button--secondary,
body .bnia-button--secondary .elementor-button {
	border: 1px solid var(--bnia-color-border-strong);
	background: var(--bnia-color-surface);
	color: var(--bnia-color-text);
}

body a.bnia-button--secondary:hover,
.elementor a.bnia-button--secondary:hover,
body .bnia-button--secondary .elementor-button:hover {
	background: var(--bnia-color-background-alt);
	color: var(--bnia-color-text);
}

/* On a dark ground: the header's nav-item language, as a button. */
body a.bnia-button--on-dark,
.elementor a.bnia-button--on-dark,
body .bnia-button--on-dark .elementor-button {
	border: 1px solid rgb(255 255 255 / 0.35);
	background: transparent;
	color: var(--bnia-color-on-dark);
}

body a.bnia-button--on-dark:hover,
.elementor a.bnia-button--on-dark:hover,
body .bnia-button--on-dark .elementor-button:hover {
	background: rgb(255 255 255 / 0.1);
	color: var(--bnia-color-on-dark);
}

/* Standalone links are buttons (owner, 2026-11-26): "See All Features"-style
 * links (`.bnia-link-arrow`), the empty-state link lists, and the header's
 * and footer's Sign In. Links inside sentences, menus and the blog sidebar's
 * lists stay links. On a light ground the outline button; on a dark one the
 * on-dark button. */
body .bnia-link-arrow .elementor-button,
body a.bnia-link-arrow,
body .bnia-link-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: calc(0.625rem - 1px) 1.25rem;
	border: 1px solid var(--bnia-brand-500);
	border-radius: var(--bnia-radius-medium);
	background: transparent;
	color: var(--bnia-brand-800);
	font-family: var(--bnia-type-accent-family);
	font-size: var(--bnia-type-accent-size);
	font-weight: var(--bnia-weight-semibold);
	line-height: 1.25rem;
	text-decoration: none;
}

:is(.bnia-section--dark, .bnia-hero, .bnia-connection-section--dark) :is(.bnia-link-arrow .elementor-button, a.bnia-link-arrow, .bnia-link-list a),
#site-header .bnia-header__signin,
#site-footer .bnia-footer__signin {
	border: 1px solid rgb(255 255 255 / 0.35);
	background: transparent;
	color: var(--bnia-color-on-dark);
}

/* The contemporary hover, shared by every secondary button: it fills with
 * the brand (white on a dark ground), lifts a pixel onto a soft shadow, and
 * its arrow or icon leans the way it points. */
body a.bnia-button--outline:hover,
.elementor a.bnia-button--outline:hover,
body .bnia-button--outline .elementor-button:hover,
body .bnia-link-arrow .elementor-button:hover,
body a.bnia-link-arrow:hover,
body .bnia-link-list a:hover {
	border-color: var(--bnia-color-primary);
	background: var(--bnia-color-primary);
	color: var(--bnia-color-on-dark);
	text-decoration: none;
	box-shadow: 0 6px 16px -6px rgb(22 58 102 / 0.45);
	transform: translateY(-1px);
}

body a.bnia-button--on-dark:hover,
.elementor a.bnia-button--on-dark:hover,
body .bnia-button--on-dark .elementor-button:hover,
:is(.bnia-section--dark, .bnia-hero, .bnia-connection-section--dark) :is(.bnia-link-arrow .elementor-button, a.bnia-link-arrow, .bnia-link-list a):hover,
#site-header .bnia-header__signin:hover,
#site-footer .bnia-footer__signin:hover {
	border-color: var(--bnia-color-on-dark);
	background: var(--bnia-color-on-dark);
	color: var(--bnia-color-secondary);
	text-decoration: none;
	box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.5);
	transform: translateY(-1px);
}

:is(.bnia-button--outline, .bnia-button--on-dark, .bnia-link-arrow, .bnia-link-list a, .bnia-header__signin, .bnia-footer__signin) :is(svg, .elementor-button-icon) {
	transition: transform var(--bnia-transition);
}

:is(.bnia-button--outline, .bnia-button--on-dark, .bnia-link-arrow, .bnia-link-list a, .bnia-header__signin, .bnia-footer__signin):hover :is(svg, .elementor-button-icon) {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	body :is(.bnia-button--outline, .bnia-button--on-dark, .bnia-link-arrow .elementor-button, a.bnia-link-arrow, .bnia-link-list a, .bnia-header__signin, .bnia-footer__signin):hover,
	:is(.bnia-button--outline, .bnia-button--on-dark, .bnia-link-arrow, .bnia-link-list a, .bnia-header__signin, .bnia-footer__signin):hover :is(svg, .elementor-button-icon) {
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
 * 4. Forms - every form inherits these, by element selector. Never style a
 * form in Elementor's Style tab: fix a mismatch here.
 *
 * The application's input: `rounded-md border border-slate-300 px-3 py-2
 * text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-1
 * focus-visible:outline-brand-500`; its label: `text-sm font-medium
 * text-slate-700` (LoginPage.tsx:11-14).
 * ------------------------------------------------------------------------ */

input[type='text'],
input[type='email'],
input[type='url'],
input[type='tel'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='date'],
select,
textarea,
.elementor-field-group .elementor-field-textual,
.elementor-field-group .elementor-select-wrapper select {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--bnia-color-border-strong);
	border-radius: var(--bnia-radius-medium);
	background-color: var(--bnia-color-surface);
	color: var(--bnia-color-text);
	font-family: var(--bnia-font-body);
	font-size: var(--bnia-text-base);
	line-height: var(--bnia-leading-normal);
	box-shadow: none;
	transition: border-color var(--bnia-transition);
}

textarea,
.elementor-field-group textarea.elementor-field-textual {
	min-height: 8rem;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.elementor-field-group .elementor-field-textual:focus {
	border-color: var(--bnia-brand-500);
	outline: 2px solid var(--bnia-brand-500);
	outline-offset: 1px;
	box-shadow: none;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid,
.elementor-field-group .elementor-field-textual[aria-invalid='true'] {
	border-color: var(--bnia-color-error);
}

::placeholder {
	color: var(--bnia-color-text-subtle);
	opacity: 1;
}

label,
.elementor-field-group > label,
.elementor-field-label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--bnia-color-text);
	font-size: var(--bnia-text-sm);
	font-weight: var(--bnia-weight-medium);
	line-height: 1.25rem;
}

/* Required: a visible asterisk the screen reader skips (the field carries
 * the native `required`). */
.elementor-field-group.elementor-field-required .elementor-field-label::after,
.elementor-mark-required .elementor-field-label::after {
	content: ' *';
	color: var(--bnia-color-error);
}

input[type='checkbox'],
input[type='radio'] {
	width: 1rem;
	height: 1rem;
	margin: 0.125rem 0.5rem 0 0;
	accent-color: var(--bnia-color-primary);
	flex: none;
}

.elementor-field-type-acceptance .elementor-field-subgroup,
.elementor-field-type-checkbox .elementor-field-subgroup .elementor-field-option {
	display: flex;
	align-items: flex-start;
}

.elementor-field-type-acceptance label,
.elementor-field-option label {
	display: inline;
	margin: 0;
	color: var(--bnia-color-text-muted);
	font-weight: var(--bnia-weight-normal);
}

.elementor-form .elementor-field-group {
	margin-bottom: 1rem;
}

.elementor-form .elementor-button[type='submit'] {
	min-width: 10rem;
}

/* Validation and the inline confirmation: the application's status tones
 * (packages/ui/src/primitives.tsx:148-157). */
.elementor-message {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--bnia-radius-medium);
	font-size: var(--bnia-text-sm);
	line-height: 1.25rem;
}

.elementor-message::before {
	display: none;
}

.elementor-message.elementor-message-success {
	border-color: var(--bnia-color-success);
	background: var(--bnia-color-success-bg);
	color: var(--bnia-color-success);
}

.elementor-message.elementor-message-danger,
.elementor-message.elementor-help-inline {
	border-color: var(--bnia-color-error-border);
	background: var(--bnia-color-error-bg);
	color: var(--bnia-color-error-text);
}

.elementor-field-group .elementor-message.elementor-help-inline {
	margin-top: 0.25rem;
	padding: 0;
	border: 0;
	background: none;
}

.bnia-form-note {
	color: var(--bnia-color-text-muted);
	font-size: var(--bnia-text-sm);
}

/* ---------------------------------------------------------------------------
 * 5. Header - the application's header bar (AppShell.tsx:593-608)
 * ------------------------------------------------------------------------ */

.bnia-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bnia-color-secondary);
	color: var(--bnia-color-on-dark);
}

.admin-bar .bnia-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

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

.bnia-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	box-sizing: border-box;
	max-width: var(--bnia-content-width);
	min-height: var(--bnia-header-height);
	margin-inline: auto;
	padding: 0.75rem var(--bnia-gutter);
}

.bnia-header__brand {
	display: inline-flex;
	align-items: center;
	border-radius: var(--bnia-radius-medium);
	margin-right: auto;
}

.bnia-header__logo {
	display: block;
	width: auto;
	height: 1.75rem;
}

.bnia-header__panel {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.bnia-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Nav items: `rounded-md px-3 py-1.5 text-sm font-medium`; idle
 * `text-brand-100 hover:bg-white/10`; current `bg-white/15 text-white`
 * (AppShell.tsx:83-87). */
#site-header .bnia-nav__list a {
	display: block;
	padding: 0.375rem 0.75rem;
	border-radius: var(--bnia-radius-medium);
	color: var(--bnia-color-on-dark-muted);
	font-size: var(--bnia-text-sm);
	font-weight: var(--bnia-type-accent-weight);
	line-height: 1.25rem;
	text-decoration: none;
	transition: background-color var(--bnia-transition), color var(--bnia-transition);
}

#site-header .bnia-nav__list a:hover {
	background: rgb(255 255 255 / 0.1);
	color: var(--bnia-color-on-dark);
}

/* The current page: aqua on the header's navy (11.61:1). */
#site-header .bnia-nav__list .current-menu-item > a,
#site-header .bnia-nav__list .current_page_item > a,
#site-header .bnia-nav__list .current-page-ancestor > a,
#site-header .bnia-nav__list .current-menu-parent > a,
#site-header .bnia-nav__list a[aria-current='page'] {
	background: rgb(255 255 255 / 0.15);
	color: var(--bnia-color-accent-aqua);
}

.bnia-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Sign In: an on-dark button beside "Get a Demo", the same height. Its
 * colors and hover are the shared on-dark button's (section 3). */
#site-header .bnia-header__signin {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: calc(0.625rem - 1px) 1rem;
	border-radius: var(--bnia-radius-medium);
	font-size: var(--bnia-type-accent-size);
	font-weight: var(--bnia-type-accent-weight);
	line-height: 1.25rem;
	text-decoration: none;
	transition: background-color var(--bnia-transition), border-color var(--bnia-transition), color var(--bnia-transition), box-shadow var(--bnia-transition), transform var(--bnia-transition);
}

#site-header .bnia-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: var(--bnia-radius-medium);
	background: transparent;
	color: var(--bnia-color-on-dark);
	font-size: 1.125rem;
	cursor: pointer;
}

#site-header .bnia-header__toggle:hover {
	background: rgb(255 255 255 / 0.1);
}

.bnia-header__toggle-close {
	display: none;
}

.bnia-header.is-open .bnia-header__toggle-open {
	display: none;
}

.bnia-header.is-open .bnia-header__toggle-close {
	display: inline-flex;
}

/* Below `lg` (1024px) the navigation becomes a disclosure panel, as in the
 * application. Without JavaScript the panel stays visible. */
@media (max-width: 1024px) {
	.bnia-header__panel {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding-bottom: 0.5rem;
	}

	.bnia-nav__list {
		flex-direction: column;
	}

	#site-header .bnia-nav__list a {
		padding: 0.625rem 0.75rem;
		font-size: var(--bnia-text-base);
	}

	.bnia-header__actions {
		flex-direction: column;
		align-items: stretch;
		padding-top: 0.75rem;
		border-top: 1px solid rgb(255 255 255 / 0.15);
	}

	#site-header .bnia-header__signin {
		padding: 0.625rem 0.75rem;
		font-size: var(--bnia-text-base);
	}

	.bnia-js #site-header .bnia-header__toggle {
		display: inline-flex;
	}

	.bnia-js .bnia-header:not(.is-open) .bnia-header__panel {
		display: none;
	}
}

@media (min-width: 768px) {
	.bnia-header__inner {
		padding-inline: var(--bnia-gutter-md);
	}
}

/* ---------------------------------------------------------------------------
 * 6. Footer
 * ------------------------------------------------------------------------ */

.bnia-footer {
	background: var(--bnia-brand-950);
	color: var(--bnia-color-on-dark-muted);
	font-size: var(--bnia-text-sm);
}

#site-footer a {
	color: var(--bnia-color-on-dark-muted);
}

#site-footer a:hover {
	color: var(--bnia-color-on-dark);
}

.bnia-footer__inner {
	box-sizing: border-box;
	max-width: var(--bnia-content-width);
	margin-inline: auto;
	padding: 3.5rem var(--bnia-gutter) 2rem;
}

.bnia-footer__top {
	display: grid;
	gap: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.bnia-footer__logo {
	display: block;
	width: auto;
	height: 2rem;
}

.bnia-footer__logo-link {
	display: inline-block;
	border-radius: var(--bnia-radius-medium);
}

.bnia-footer__tagline {
	margin: 0.75rem 0 1.25rem;
	color: var(--bnia-color-on-dark-muted);
	font-size: var(--bnia-text-base);
}

/* Sign In: an on-dark button (colors and hover in section 3). */
#site-footer .bnia-footer__signin {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: calc(0.625rem - 1px) 1.25rem;
	border-radius: var(--bnia-radius-medium);
	font-size: var(--bnia-type-accent-size);
	font-weight: var(--bnia-weight-semibold);
	line-height: 1.25rem;
	text-decoration: none;
	transition: background-color var(--bnia-transition), border-color var(--bnia-transition), color var(--bnia-transition), box-shadow var(--bnia-transition), transform var(--bnia-transition);
}

/* "Powered by Centry": the platform badge, linking out, at the right of the
 * footer line. Its own 12px corner, so the focus ring follows the badge. */
.bnia-footer__badge {
	display: block;
	flex: none;
	margin-left: auto;
	border-radius: 12px;
	transition: opacity var(--bnia-transition), transform var(--bnia-transition);
}

/* 240px: the badge's smallest labels (10.5 of 300 units) stay above 8px. */
.bnia-footer__badge img {
	display: block;
	width: 15rem;
	height: auto;
}

.bnia-footer__badge:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	.bnia-footer__badge:hover {
		transform: none;
	}
}

.bnia-footer__list,
.bnia-footer__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnia-footer__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 2rem;
}

/* A top-level footer item linking to "#" is a column heading, printed as
 * text (inc/library.php bnia_footer_column_heading()). */
.bnia-footer__heading,
#site-footer .bnia-footer__list > .menu-item-has-children > a {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--bnia-color-on-dark);
	font-weight: var(--bnia-weight-semibold);
	text-decoration: none;
}

.bnia-footer__list .sub-menu li + li {
	margin-top: 0.5rem;
}

#site-footer .bnia-footer__list a {
	text-decoration: none;
}

#site-footer .bnia-footer__list a:hover {
	text-decoration: underline;
}

/* The application's own footer line (SiteFooter.tsx), word for word. */
.bnia-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-top: 1.5rem;
	color: var(--bnia-brand-200);
	font-size: var(--bnia-text-xs);
	line-height: 1.25rem;
}

.bnia-footer__bottom p {
	margin: 0;
}

.bnia-footer__bottom p + p {
	margin-top: 0.25rem;
}

#site-footer .bnia-footer__bottom a:not(.bnia-footer__badge) {
	color: var(--bnia-brand-100);
	text-decoration: underline;
}

@media (min-width: 768px) {
	.bnia-footer__inner {
		padding-inline: var(--bnia-gutter-md);
	}

	.bnia-footer__top {
		grid-template-columns: minmax(16rem, 1fr) 2fr;
	}
}

/* ---------------------------------------------------------------------------
 * 7. Sections - the top-level container of every SEC / template
 * ------------------------------------------------------------------------ */

.bnia-section {
	--bnia-section-pad: var(--bnia-section-spacing-sm);
	padding-block: var(--bnia-section-pad) !important;
	padding-inline: var(--bnia-gutter) !important;
}

@media (min-width: 640px) {
	.bnia-section {
		padding-inline: var(--bnia-gutter-md) !important;
	}
}

/* The heading block's parts, spaced the same in every section. */
.bnia-section-head > .elementor-widget-text-editor,
.bnia-section-head > .elementor-widget-heading + .elementor-widget-heading {
	margin-top: 1rem;
}

@media (min-width: 768px) {
	.bnia-section {
		--bnia-section-pad: var(--bnia-section-spacing-md);
	}
}

@media (min-width: 1025px) {
	.bnia-section {
		--bnia-section-pad: var(--bnia-section-spacing);
	}
}

.bnia-section--compact {
	--bnia-section-pad: var(--bnia-section-spacing-sm) !important;
}

.bnia-section--alt {
	background-color: var(--bnia-color-background);
}

.bnia-section--tint {
	background-color: var(--bnia-color-surface-tint);
}

/* Dark ground: brand-900, the application's header color. */
.bnia-section--dark,
.bnia-connection-section--dark,
.bnia-hero {
	background-color: var(--bnia-color-secondary);
	color: var(--bnia-color-on-dark-muted);
}

.bnia-section--dark :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title),
.bnia-connection-section--dark :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title),
.bnia-hero :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) {
	color: var(--bnia-color-on-dark);
}

.bnia-section--dark a:not(.elementor-button):not(.e-button-base),
.bnia-connection-section--dark a:not(.elementor-button):not(.e-button-base),
.bnia-hero a:not(.elementor-button):not(.e-button-base) {
	color: var(--bnia-brand-200);
}

.bnia-section--dark a:not(.elementor-button):not(.e-button-base):hover,
.bnia-connection-section--dark a:not(.elementor-button):not(.e-button-base):hover,
.bnia-hero a:not(.elementor-button):not(.e-button-base):hover {
	color: var(--bnia-color-on-dark);
}

/* The heading block that opens a section: eyebrow, heading, lead. */
/* Headings use the full content width, so most fit one line on desktop;
 * the lead below keeps its own reading measure. */
.bnia-section-head {
	max-width: none;
}

/* Leads keep a reading measure inside the wider head, wrapped evenly. */
.bnia-section-head .bnia-lead p,
.bnia-section-head .bnia-lead:not(:has(p)) {
	max-width: 46rem;
	text-wrap: balance;
}

.bnia-section-head--center .bnia-lead p {
	margin-inline: auto;
}

/* A page hero's lead is longer than a section's: a wider measure keeps it
 * to two lines on desktop. */
.bnia-section-head--center {
	align-self: center;
	margin-inline: auto !important;
	text-align: center;
}

.bnia-section-head--center :is(.elementor-widget, .elementor-heading-title, .elementor-widget-text-editor) {
	text-align: center;
}

.bnia-section-head--center .bnia-faq,
.bnia-section-head--center .bnia-faq :is(.elementor-widget, .e-n-accordion-item-title) {
	text-align: left;
}

.bnia-section-head--center > .e-con-inner,
.bnia-section-head--center .e-con:has(> .elementor-widget-button) {
	justify-content: center;
}

.bnia-eyebrow .elementor-heading-title,
.bnia-eyebrow {
	margin-bottom: 0.75rem;
	color: var(--bnia-color-primary);
	font-family: var(--bnia-type-eyebrow-family);
	font-size: var(--bnia-type-eyebrow-size);
	font-weight: var(--bnia-type-eyebrow-weight);
	line-height: var(--bnia-type-eyebrow-leading);
	letter-spacing: var(--bnia-type-eyebrow-tracking);
	text-transform: var(--bnia-type-eyebrow-transform);
}

.bnia-section--dark .bnia-eyebrow .elementor-heading-title,
.bnia-hero .bnia-eyebrow .elementor-heading-title,
.bnia-hero p.bnia-eyebrow {
	color: var(--bnia-brand-200);
}

.bnia-lead,
.bnia-lead p {
	color: var(--bnia-color-text-muted);
	font-family: var(--bnia-type-lead-family);
	font-size: var(--bnia-type-lead-size);
	font-weight: var(--bnia-type-lead-weight);
	line-height: var(--bnia-type-lead-leading);
}

.bnia-section--dark .bnia-lead,
.bnia-section--dark .bnia-lead p,
.bnia-hero .bnia-lead,
.bnia-hero .bnia-lead p {
	color: var(--bnia-color-on-dark-muted);
}

.bnia-muted,
.bnia-muted p {
	color: var(--bnia-color-text-muted);
}

.elementor-widget-text-editor p:last-child,
.bnia-lead p:last-child {
	margin-bottom: 0;
}

/* Hero: the application's header ground, with a quiet brand-800 glow so the
 * first screen is not flat. Static: no animation, no image request. */
.bnia-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-image:
		radial-gradient(60rem 30rem at 85% -10%, rgb(44 95 159 / 0.45), transparent 70%),
		radial-gradient(40rem 24rem at -10% 110%, rgb(22 58 102 / 0.6), transparent 70%);
}

/* The homepage hero's heading is the Display role; `body …` outranks
 * Elementor's kit `h1` rule. Compact (page) heroes keep the H1 role. */
body .bnia-hero:not(.bnia-hero--compact) h1 {
	max-width: 18ch;
	font-size: var(--bnia-type-display-size);
	font-weight: var(--bnia-type-display-weight);
	line-height: var(--bnia-type-display-leading);
	letter-spacing: var(--bnia-type-display-tracking);
}

.bnia-hero--compact h1,
.bnia-hero--compact .elementor-widget-heading h1.elementor-heading-title {
	max-width: none;
}

.bnia-hero__note,
.bnia-hero__note p {
	color: var(--bnia-brand-200);
	font-size: var(--bnia-text-sm);
}

/* Every hero fills the screen below the sticky header, its content
 * centered vertically (owner, 2026-11-25). `body` outranks Elementor's own
 * `.e-con { min-height: var(--min-height) }`; the theme's page hero is a
 * plain section, so it becomes a column flexbox here. */
body .bnia-hero {
	--justify-content: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - var(--bnia-header-height));
	min-height: calc(100svh - var(--bnia-header-height));
}

body.admin-bar .bnia-hero {
	min-height: calc(100svh - var(--bnia-header-height) - var(--wp-admin--admin-bar--height, 32px));
}

.bnia-hero > .e-con-inner {
	--justify-content: center;
	justify-content: center;
}

/* The hero's text block is as wide as its heading, and the lead and note
 * wrap at that width: `contain: inline-size` keeps them from widening the
 * block themselves. Where the heading wraps, the block is the full width;
 * a short heading ("About") never narrows the lead below 46rem. */
.bnia-hero--full .bnia-hero__text,
.bnia-hero--compact .bnia-section-head {
	--width: fit-content;
	width: fit-content !important;
	min-width: min(100%, 46rem);
	max-width: 100%;
}

.bnia-hero :is(.bnia-lead, .bnia-hero__note, .bnia-statement) {
	contain: inline-size;
	width: 100%;
}

.bnia-hero .bnia-lead p,
.bnia-hero p.bnia-lead {
	max-width: none;
	text-wrap: pretty;
}

/* Desktop: the hero heading never wraps; each of its lines stays whole.
 * Below 1025px it wraps as text does. */
@media (min-width: 1025px) {
	body .bnia-hero.bnia-hero--full h1 {
		max-width: none;
		white-space: nowrap;
	}
}

/* The hero heading's second line in aqua (a <span> in the title). */
.bnia-hero h1 span {
	color: var(--bnia-color-accent-aqua);
}

/* A hero with a picture: a post's featured image (bnia_hero_featured_media())
 * fills the hero behind the text, anchored right, where its subject is. A
 * navy wash keeps the text at the hero's contrast whatever the picture holds
 * behind it: solid up to just past where the text ends, then clearing. */
.bnia-hero--has-image {
	/* Where the text block ends: the gutter plus its 46rem. */
	--bnia-hero-text-end: calc(max(var(--bnia-gutter-md), (100% - var(--bnia-content-width)) / 2) + 46rem);
}

/* Outranks `.bnia-connection-section > :not(…)` (section 11): the template's
 * hero also carries the network class, which lifts its children. */
.bnia-hero.bnia-hero--has-image > .bnia-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

body .bnia-hero .bnia-hero__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.bnia-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgb(11 30 54 / 0.9) 0,
		rgb(11 30 54 / 0.88) calc(var(--bnia-hero-text-end) + 2rem),
		rgb(11 30 54 / 0) calc(var(--bnia-hero-text-end) + 16rem)
	);
}

.bnia-hero--has-image > :not(.bnia-hero__media) {
	position: relative;
	z-index: 1;
}

/* The text keeps to the left, at most 46rem, clear of the picture. */
.bnia-hero--has-image.bnia-hero--compact .bnia-section-head {
	max-width: min(100%, 46rem);
}

/* Below desktop the text runs the full width: the picture stays behind it
 * as an even, dimmed ground. */
@media (max-width: 1024px) {
	body .bnia-hero .bnia-hero__image {
		object-position: 70% center;
	}

	.bnia-hero__media::after {
		background: rgb(11 30 54 / 0.86);
	}
}

@media (max-width: 767px) {
	.bnia-hero__media::after {
		background: rgb(11 30 54 / 0.92);
	}
}

/* ---------------------------------------------------------------------------
 * 8. Cards and section patterns
 * ------------------------------------------------------------------------ */

/* Card: `rounded-xl border border-slate-200 bg-white shadow-sm`, with the
 * home page's `p-5`..`p-6` (packages/ui/src/primitives.tsx:18-28). */
.bnia-card {
	padding: 1.5rem !important;
	border: 1px solid var(--bnia-color-border);
	border-radius: var(--bnia-radius-xl);
	background-color: var(--bnia-color-surface);
	box-shadow: var(--bnia-shadow-small);
}

.bnia-card h3,
.bnia-card .elementor-heading-title {
	margin-bottom: 0.5rem;
}

/* Card titles: the H3 role is sized for sections; in a card a step down
 * keeps a title to a line or two. `body …` outranks the kit's h3 rule. */
body .bnia-card h3 {
	font-size: clamp(1.2rem, 1.5vw, 1.375rem);
	line-height: 1.25;
}

.bnia-card p {
	color: var(--bnia-color-text-muted);
}

/* A card on a dark ground (the hero's capability panel). */
.bnia-card--on-dark {
	border-color: rgb(255 255 255 / 0.12);
	background-color: rgb(255 255 255 / 0.06);
	box-shadow: none;
}

.bnia-card--on-dark p,
.bnia-card--on-dark .elementor-widget-text-editor {
	color: var(--bnia-color-on-dark-muted);
}

/* Icon tile beside a card title: brand-50 ground, brand-700 glyph. */
.bnia-icon-tile .elementor-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--bnia-radius-large);
	background: var(--bnia-brand-50);
	color: var(--bnia-color-primary);
	font-size: 1.25rem;
}

.bnia-icon-tile .elementor-icon svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
}

.bnia-card--on-dark .bnia-icon-tile .elementor-icon {
	background: rgb(255 255 255 / 0.1);
	color: var(--bnia-brand-200);
}

/* Benefits: a check list, no card chrome. */
.bnia-benefit .elementor-icon-list-item {
	align-items: flex-start !important;
	color: var(--bnia-color-text);
}

.bnia-benefit .elementor-icon-list-item + .elementor-icon-list-item {
	margin-top: 0.5rem;
}

.bnia-benefit .elementor-icon-list-icon {
	flex: none;
	padding-top: 0.2em;
}

.bnia-benefit .elementor-icon-list-icon svg {
	width: 1rem;
	height: 1rem;
	fill: var(--bnia-color-primary);
}

.bnia-benefit .elementor-icon-list-text {
	padding-left: 0.5rem;
}

/* Steps: numbered with a CSS counter, so reordering never renumbers by hand. */
.bnia-steps {
	counter-reset: bnia-step;
}

.bnia-step .elementor-widget-heading .elementor-heading-title::before {
	content: counter(bnia-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-bottom: 1rem;
	border-radius: var(--bnia-radius-full);
	background: var(--bnia-color-primary);
	color: var(--bnia-color-on-dark);
	font-size: var(--bnia-text-sm);
	font-weight: var(--bnia-weight-semibold);
	line-height: 1;
}

.bnia-step {
	counter-increment: bnia-step;
}

/* Product screenshot frame: the application's dialog chrome
 * (rounded-xl, shadow-xl), on a slate-100 mat. */
.bnia-screenshot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--bnia-color-border);
	border-radius: var(--bnia-radius-xl);
	background: var(--bnia-color-background-alt);
	box-shadow: var(--bnia-shadow-xl);
}

.bnia-screenshot figcaption,
.bnia-screenshot .widget-image-caption {
	margin-top: 0.75rem;
	color: var(--bnia-color-text-muted);
	font-size: var(--bnia-text-sm);
	text-align: center;
}

/* Proof points: short factual statements, never invented numbers. */
.bnia-proof .elementor-heading-title {
	font-size: var(--bnia-text-lg);
}

/* Testimonial card - used only with an approved, attributed quote. */
.bnia-quote blockquote,
.bnia-quote .elementor-testimonial-content {
	margin: 0;
	color: var(--bnia-color-text);
	font-size: var(--bnia-text-lg);
	line-height: 1.6;
}

.bnia-quote cite,
.bnia-quote .elementor-testimonial-name {
	display: block;
	margin-top: 1rem;
	color: var(--bnia-color-text-muted);
	font-size: var(--bnia-text-sm);
	font-style: normal;
	font-weight: var(--bnia-weight-semibold);
}

/* FAQ: Elementor's accordion renders <details>/<summary>. */
.bnia-faq .e-n-accordion-item,
.bnia-faq details {
	border: 1px solid var(--bnia-color-border);
	border-radius: var(--bnia-radius-large);
	background: var(--bnia-color-surface);
}

.bnia-faq .e-n-accordion-item + .e-n-accordion-item,
.bnia-faq details + details {
	margin-top: 0.75rem;
}

.bnia-faq .e-n-accordion-item-title,
.bnia-faq summary {
	padding: 1rem 1.25rem;
	color: var(--bnia-color-heading);
	font-size: var(--bnia-text-base);
	font-weight: var(--bnia-weight-semibold);
	cursor: pointer;
}

.bnia-faq .e-n-accordion-item-title-text {
	font-size: var(--bnia-text-base);
	font-weight: var(--bnia-weight-semibold);
	color: var(--bnia-color-heading);
}

.bnia-faq .e-n-accordion-item-title-icon svg {
	width: 1rem;
	height: 1rem;
	fill: var(--bnia-color-text-muted);
}

/* One chevron for both states: the open one points up. */
.bnia-faq .e-n-accordion-item-title-icon .e-opened svg {
	transform: rotate(180deg);
}

.bnia-faq .e-n-accordion-item > [role='region'],
.bnia-faq .e-n-accordion-item > .e-con {
	padding: 0 1.25rem 1.25rem !important;
	color: var(--bnia-color-text-muted);
	border: 0 !important;
}

/* Call-to-action band. */
.bnia-cta .elementor-heading-title {
	max-width: 32ch;
}

.bnia-cta.bnia-section-head--center .elementor-heading-title {
	margin-inline: auto;
}

/* Contact layout: the form card and the details beside it. */
.bnia-contact-details .elementor-icon-list-item {
	align-items: flex-start;
}

.bnia-contact-details .elementor-icon-list-text {
	color: var(--bnia-color-text-muted);
}

.bnia-contact-details .elementor-icon-list-icon svg {
	fill: var(--bnia-color-primary);
}

/* Prose pages (About, Privacy, Terms): framework default template. */
.bnia-prose,
body.page:not(.elementor-page) .page-content {
	max-width: var(--bnia-prose-width);
}

/* ---------------------------------------------------------------------------
 * 9. Articles, archives, search, 404 (the theme's templates)
 * ------------------------------------------------------------------------ */

body:not([class*='elementor-page-']) .site-main,
.bnia-main {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--bnia-content-width);
	margin-inline: auto;
	padding: var(--bnia-section-spacing-sm) var(--bnia-gutter);
}

@media (min-width: 768px) {
	body:not([class*='elementor-page-']) .site-main,
	.bnia-main {
		padding-inline: var(--bnia-gutter-md);
	}
}

.site-main > .page-header,
.bnia-page-header {
	max-width: var(--bnia-prose-width);
	margin-bottom: 2.5rem;
}

.site-main > .page-header .entry-title,
.bnia-page-header h1 {
	margin-bottom: 0.5rem;
	font-size: var(--bnia-type-heading2-size);
	line-height: var(--bnia-type-heading2-leading);
}

.archive-description,
.bnia-page-header p {
	color: var(--bnia-color-text-muted);
	font-size: var(--bnia-text-lg);
}

/* Pages the theme renders open with a full-width hero (template-parts/
 * page-hero.php); the body below keeps the content width. */
body .site-main.bnia-has-hero {
	max-width: none;
	padding: 0;
}

.bnia-page-hero__inner {
	/* Auto margins in the hero's flex column would shrink it to its content. */
	box-sizing: border-box;
	width: 100%;
	max-width: var(--bnia-content-width);
	margin-inline: auto;
}

/* Centred means centred: no trailing paragraph margin under the last line. */
.bnia-page-hero .bnia-section-head > :last-child {
	margin-bottom: 0;
}

.bnia-page-body {
	box-sizing: border-box;
	max-width: var(--bnia-content-width);
	margin-inline: auto;
	padding: var(--bnia-section-spacing-sm) var(--bnia-gutter);
}

@media (min-width: 768px) {
	.bnia-page-body {
		padding-inline: var(--bnia-gutter-md);
	}
}

.bnia-page-hero .bnia-search-form {
	margin-bottom: 0;
}

/* Prose: posts, and the pages that use the framework's default template. */
.single-post .page-content,
.bnia-article__content,
body.page:not(.elementor-page) .page-content {
	color: var(--bnia-color-text);
	font-size: var(--bnia-text-lg);
	line-height: 1.75;
}

:is(.single-post .page-content, .bnia-article__content, body.page:not(.elementor-page) .page-content) :is(h2, h3, h4) {
	margin-top: 2em;
}

:is(.single-post .page-content, .bnia-article__content, body.page:not(.elementor-page) .page-content) h2 {
	font-size: var(--bnia-text-2xl);
}

:is(.single-post .page-content, .bnia-article__content, body.page:not(.elementor-page) .page-content) h3 {
	font-size: var(--bnia-text-xl);
}

:is(.single-post .page-content, .bnia-article__content, body.page:not(.elementor-page) .page-content) :is(ul, ol) {
	padding-left: 1.5rem;
}

:is(.single-post .page-content, .bnia-article__content, body.page:not(.elementor-page) .page-content) li + li {
	margin-top: 0.375rem;
}

:is(.single-post .page-content, .bnia-article__content) {
	max-width: var(--bnia-prose-width);
}

blockquote {
	margin: 1.5rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--bnia-brand-300);
	color: var(--bnia-color-text-muted);
}

/* The single-post template (TPL / Single Post). */
.bnia-article__meta,
.bnia-article__meta .elementor-post-info {
	color: var(--bnia-color-text-muted);
	font-size: var(--bnia-text-sm);
}

/* In the article's hero the date sits on the dark ground. */
.bnia-hero .bnia-article__meta,
.bnia-hero .bnia-article__meta .elementor-post-info,
.bnia-hero .bnia-article__meta .elementor-icon-list-text {
	color: var(--bnia-color-on-dark-muted);
}

/* Archive and search lists: Hello prints `article.post`; the theme makes
 * each one a card in a grid. */
.blog .site-main .page-content,
.archive .site-main .page-content,
.search .site-main .page-content {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.5rem;
}

.blog .page-content > article.post,
.archive .page-content > article.post,
.search .page-content > article {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	border: 1px solid var(--bnia-color-border);
	border-radius: var(--bnia-radius-xl);
	background: var(--bnia-color-surface);
	box-shadow: var(--bnia-shadow-small);
}

.page-content > article .entry-title {
	order: 2;
	margin: 0 0 0.5rem;
	font-size: var(--bnia-text-lg);
	line-height: 1.4;
}

.page-content > article .entry-title a {
	color: var(--bnia-color-heading);
	text-decoration: none;
}

.page-content > article .entry-title a:hover {
	color: var(--bnia-color-primary);
	text-decoration: underline;
}

.page-content > article > a:has(img) {
	order: 1;
	display: block;
	margin: -1.5rem -1.5rem 1.25rem;
}

.page-content > article > a img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--bnia-radius-xl) var(--bnia-radius-xl) 0 0;
}

.page-content > article p {
	order: 3;
	margin: 0;
	color: var(--bnia-color-text-muted);
	font-size: var(--bnia-text-sm);
}

.pagination {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.5rem;
	font-weight: var(--bnia-weight-medium);
}

.bnia-empty {
	grid-column: 1 / -1;
	max-width: var(--bnia-prose-width);
}

/* Search form (404, empty results). */
/* Blog layout: the article (or the list of them) and the blog sidebar
 * (template-parts/blog-sidebar.php) beside it from 1025px; below that the
 * sidebar follows the content. Works on the theme's own page body and on a
 * boxed Elementor container (its `.e-con-inner`). */
.bnia-blog-layout:not(.e-con),
body .bnia-blog-layout.e-con > .e-con-inner {
	--display: grid;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

@media (min-width: 1025px) {
	.bnia-blog-layout:not(.e-con),
	body .bnia-blog-layout.e-con > .e-con-inner {
		grid-template-columns: minmax(0, 1fr) 18rem;
		gap: 4rem;
	}

	.bnia-blog-sidebar {
		position: sticky;
		top: calc(var(--bnia-header-height) + 1.5rem);
	}

	body.admin-bar .bnia-blog-sidebar {
		top: calc(var(--bnia-header-height) + var(--wp-admin--admin-bar--height, 32px) + 1.5rem);
	}
}

.bnia-blog-layout__main {
	min-width: 0;
}

.bnia-blog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* `body … ` outranks Elementor's kit `h2` rule. */
body .bnia-blog-sidebar .bnia-blog-sidebar__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--bnia-brand-500);
	font-size: var(--bnia-type-heading4-size);
	line-height: var(--bnia-type-heading4-leading);
}

.bnia-blog-sidebar .bnia-search-form {
	margin: 0;
}

.bnia-blog-sidebar__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnia-blog-sidebar__list li + li {
	border-top: 1px solid var(--bnia-color-border);
}

.bnia-blog-sidebar__list a {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block: 0.625rem;
	color: var(--bnia-color-text);
	font-weight: var(--bnia-weight-medium);
	text-decoration: none;
}

.bnia-blog-sidebar__list a:hover,
.bnia-blog-sidebar__list a[aria-current='page'] {
	color: var(--bnia-color-primary);
	text-decoration: underline;
}

.bnia-blog-sidebar__list time,
.bnia-blog-sidebar__count {
	color: var(--bnia-color-text-muted);
	font-size: var(--bnia-text-sm);
	font-weight: var(--bnia-weight-normal);
}

.bnia-blog-sidebar__list time {
	display: block;
	margin-top: -0.375rem;
	padding-bottom: 0.625rem;
}

.bnia-search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
	margin-block: 1.5rem;
}

.bnia-search-form input[type='search'] {
	flex: 1;
}

.bnia-link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.bnia-link-list a {
	box-sizing: border-box;
	transition: background-color var(--bnia-transition), border-color var(--bnia-transition), color var(--bnia-transition), box-shadow var(--bnia-transition), transform var(--bnia-transition);
}

/* ---------------------------------------------------------------------------
 * 10. Motion - nothing moves for a visitor who asked it not to.
 * ------------------------------------------------------------------------ */

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

/* ---------------------------------------------------------------------------
 * 11. Connection section - a small, quiet network of members and the
 * relationships between them, in one corner of a statement or call to
 * action. docs/connection-section.md is the editor's guide.
 *
 * The layers (`__visual` > `__glow` + `__network`) are rendered by the theme
 * (inc/connection-section.php) into a corner box. The drawing is made for
 * the top-right corner; the box's --bnia-cn-fx / --bnia-cn-fy mirror it into
 * the others (the script reads the same two values). Colors are Elementor's
 * global colors, with the theme tokens they are copied from as the fallback.
 * Only transform, opacity and stroke-dashoffset animate.
 * ------------------------------------------------------------------------ */

.e-con.bnia-connection-section,
.bnia-connection-section {
	--bnia-cn-node: var(--e-global-color-bniaondarkmuted, var(--bnia-color-on-dark-muted));
	--bnia-cn-line: var(--e-global-color-bniafocus, var(--bnia-color-focus));
	--bnia-cn-pulse: var(--e-global-color-bniaondark, var(--bnia-color-on-dark));
	--bnia-cn-hub: var(--e-global-color-accent, var(--bnia-color-accent));
	--bnia-cn-glow: var(--e-global-color-bniafocus, var(--bnia-color-focus));
	--bnia-cn-opacity: 0.7;
	--bnia-cn-box-w: clamp(16rem, 34%, 30rem);
	--bnia-cn-box-h: clamp(12rem, 70%, 24rem);
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* Content above the decoration, whatever Elementor nests it in. */
.bnia-connection-section > :not(.bnia-connection-section__visual) {
	position: relative;
	z-index: 1;
}

/* The corner box. Strongest at the section's corner, fading toward its
 * middle, so it never ends in a visible edge. */
.bnia-connection-section__visual {
	--bnia-cn-fx: 1;
	--bnia-cn-fy: 1;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 0;
	width: var(--bnia-cn-box-w);
	height: var(--bnia-cn-box-h);
	overflow: hidden;
	pointer-events: none;
	opacity: var(--bnia-cn-opacity);
	transform: scale(var(--bnia-cn-fx), var(--bnia-cn-fy));
	-webkit-mask-image: radial-gradient(ellipse 120% 120% at 100% 0%, #000 28%, rgb(0 0 0 / 0.5) 55%, transparent 85%);
	mask-image: radial-gradient(ellipse 120% 120% at 100% 0%, #000 28%, rgb(0 0 0 / 0.5) 55%, transparent 85%);
}

.bnia-connection-section__visual--top-left {
	--bnia-cn-fx: -1;
	right: auto;
	left: 0;
}

.bnia-connection-section__visual--bottom-right {
	--bnia-cn-fy: -1;
	top: auto;
	bottom: 0;
}

.bnia-connection-section__visual--bottom-left {
	--bnia-cn-fx: -1;
	--bnia-cn-fy: -1;
	top: auto;
	right: auto;
	bottom: 0;
	left: 0;
}

.bnia-connection-section__glow {
	position: absolute;
	left: 78%;
	top: 22%;
	width: 90%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--bnia-cn-glow) 32%, transparent), transparent);
	transform: translate(-50%, -50%) translate(var(--bnia-cn-dx, 0px), var(--bnia-cn-dy, 0px));
	transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
	animation: bnia-cn-glow 14s ease-in-out infinite;
}

.bnia-connection-section__network {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.bnia-cn__line {
	stroke: var(--bnia-cn-line);
	stroke-width: 1;
	stroke-opacity: 0.32;
	vector-effect: non-scaling-stroke;
}

.bnia-cn__pulse {
	stroke: var(--bnia-cn-pulse);
	stroke-width: 1.25;
	stroke-linecap: round;
	stroke-dasharray: 18 100;
	stroke-dashoffset: 18;
	opacity: 0;
	animation: bnia-cn-pulse 14s ease-in-out infinite;
	animation-delay: calc(var(--bnia-cn-step) * 1.2s + 2s);
}

.bnia-cn__core {
	fill: var(--bnia-cn-node);
}

.bnia-cn__halo-stop {
	stop-color: var(--bnia-cn-node);
}

.bnia-cn__node.is-hub .bnia-cn__core {
	fill: var(--bnia-cn-hub);
}

.bnia-cn__node:not(.is-primary) {
	opacity: 0.65;
}

.bnia-cn__node {
	transform-box: fill-box;
	transform-origin: center;
	animation: bnia-cn-breathe calc(7s + var(--bnia-cn-i) * 0.7s) ease-in-out infinite;
	animation-delay: calc(var(--bnia-cn-i) * -1.3s);
}

.bnia-cn__drift {
	animation: bnia-cn-drift 16s ease-in-out infinite;
}

@keyframes bnia-cn-drift {
	0%,
	100% {
		transform: translate(0, 0);
	}

	33% {
		transform: translate(5px, -3px);
	}

	66% {
		transform: translate(-3px, 4px);
	}
}

@keyframes bnia-cn-breathe {
	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.15);
	}
}

/* The light crosses one connection, then rests until the cycle comes
 * round: the steps run member to chapter, in order. */
@keyframes bnia-cn-pulse {
	0% {
		stroke-dashoffset: 18;
		opacity: 0;
	}

	2% {
		opacity: 0.8;
	}

	10% {
		stroke-dashoffset: -100;
		opacity: 0.8;
	}

	12%,
	100% {
		stroke-dashoffset: -100;
		opacity: 0;
	}
}

@keyframes bnia-cn-glow {
	0%,
	100% {
		opacity: 0.7;
	}

	50% {
		opacity: 1;
	}
}

/* --- Variants ------------------------------------------------------------ */

/* Dark: the hero's ground; the shared dark-section rules (section 7) set the
 * background, text and links. */

/* Light grounds: deeper brand blues and stronger lines, so the network
 * holds its contrast on white, slate-50 and brand-50. Applies to the --light
 * modifier and, automatically, to any component section that is not one of
 * the site's dark grounds. */
.e-con.bnia-connection-section--light,
.bnia-connection-section--light,
.bnia-section.bnia-connection-section:not(.bnia-section--dark):not(.bnia-hero):not(.bnia-connection-section--dark) {
	--bnia-cn-node: var(--e-global-color-primary, var(--bnia-color-primary));
	--bnia-cn-line: var(--bnia-brand-500);
	--bnia-cn-pulse: var(--e-global-color-primary, var(--bnia-color-primary));
	--bnia-cn-opacity: 0.8;
}

/* The explicit modifier also brings its own slate-50 ground. */
.e-con.bnia-connection-section--light,
.bnia-connection-section--light {
	background-color: var(--e-global-color-bniabackground, var(--bnia-color-background));
}

:is(.bnia-connection-section--light, .bnia-section.bnia-connection-section:not(.bnia-section--dark):not(.bnia-hero):not(.bnia-connection-section--dark)) .bnia-connection-section__glow {
	background: radial-gradient(closest-side, color-mix(in srgb, var(--bnia-cn-glow) 18%, transparent), transparent);
}

:is(.bnia-connection-section--light, .bnia-section.bnia-connection-section:not(.bnia-section--dark):not(.bnia-hero):not(.bnia-connection-section--dark)) .bnia-cn__line {
	stroke-opacity: 0.42;
}

/* Subtle: smaller and quieter still, for a transition between sections. */
.e-con.bnia-connection-section--subtle,
.bnia-connection-section--subtle {
	--bnia-cn-opacity: 0.45;
	--bnia-cn-box-w: clamp(14rem, 28%, 24rem);
	--bnia-cn-box-h: clamp(10rem, 60%, 20rem);
}

.bnia-connection-section--subtle .bnia-cn__pulse {
	animation-duration: 22s;
}

/* Hero: a larger corner. */
.e-con.bnia-connection-section--hero,
.bnia-connection-section--hero {
	--bnia-cn-opacity: 0.8;
	--bnia-cn-box-w: clamp(18rem, 40%, 34rem);
	--bnia-cn-box-h: clamp(14rem, 80%, 30rem);
}

/* Call to action: centered content. */
.bnia-connection-section--cta .bnia-connection-section__content {
	margin-inline: auto !important;
	text-align: center;
}

.bnia-connection-section--cta .bnia-connection-section__actions,
.bnia-connection-section--cta .bnia-connection-section__actions > .e-con-inner {
	justify-content: center;
}

/* --- Content -------------------------------------------------------------- */

.bnia-connection-section__content {
	max-width: 48rem;
}

body .bnia-connection-section .bnia-connection-section__eyebrow,
.bnia-connection-section__eyebrow .elementor-heading-title {
	margin-bottom: 1rem;
	color: var(--bnia-color-primary);
	font-family: var(--bnia-type-eyebrow-family);
	font-size: var(--bnia-type-eyebrow-size);
	font-weight: var(--bnia-type-eyebrow-weight);
	letter-spacing: var(--bnia-type-eyebrow-tracking);
	line-height: var(--bnia-type-eyebrow-leading);
	text-transform: var(--bnia-type-eyebrow-transform);
}

.bnia-connection-section--dark :is(.bnia-connection-section__eyebrow, .bnia-connection-section__eyebrow .elementor-heading-title) {
	color: var(--bnia-brand-200);
}

body .bnia-connection-section .bnia-connection-section__title,
body .bnia-connection-section .bnia-connection-section__title .elementor-heading-title {
	font-family: var(--bnia-type-display-family);
	font-size: var(--bnia-type-display-size);
	font-weight: var(--bnia-type-display-weight);
	letter-spacing: var(--bnia-type-display-tracking);
	line-height: var(--bnia-type-display-leading);
	text-wrap: balance;
}

/* A second line in the brand blue: wrap it in a <span> inside the title.
 * Atomic text strips attributes, so any span in the title is the highlight;
 * the __highlight class does the same anywhere else. */
.bnia-connection-section__title span,
.bnia-connection-section__highlight {
	color: var(--bnia-color-primary);
}

.bnia-connection-section--dark :is(.bnia-connection-section__title span, .bnia-connection-section__highlight) {
	color: var(--bnia-brand-200);
}

.bnia-connection-section__text,
.bnia-connection-section__text p {
	color: var(--bnia-color-text-muted);
	font-size: var(--bnia-text-lg);
	line-height: 1.6;
}

.bnia-connection-section--dark :is(.bnia-connection-section__text, .bnia-connection-section__text p) {
	color: var(--bnia-color-on-dark-muted);
}

/* `body …`: above Atomic's own `.elementor .e-*-base { margin: 0 }`. */
body .bnia-connection-section .bnia-connection-section__text {
	margin-top: 1.25rem;
}

body .bnia-connection-section .bnia-connection-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* --- Smaller screens: a smaller corner and fewer nodes ------------------- */

@media (max-width: 1024px) {
	.bnia-connection-section .is-tablet-hidden {
		display: none;
	}

	.e-con.bnia-connection-section,
	.bnia-connection-section {
		--bnia-cn-box-w: clamp(13rem, 44%, 22rem);
		--bnia-cn-box-h: clamp(10rem, 55%, 18rem);
	}
}

/* On a phone the text and the call to action fill the section, so the
 * network keeps to a top corner, inside the section's top padding (3.5rem). */
@media (max-width: 767px) {
	.bnia-connection-section .is-mobile-hidden {
		display: none;
	}

	.e-con.bnia-connection-section,
	.bnia-connection-section {
		/* The phone's nodes sit in the box's top 42%: about 37px. */
		--bnia-cn-box-w: 60%;
		--bnia-cn-box-h: 5.5rem;
	}

	.bnia-connection-section__visual--bottom-right,
	.bnia-connection-section__visual--bottom-left {
		--bnia-cn-fy: 1;
		top: 0;
		bottom: auto;
	}
}

/* --- Still: per section, in the editor, and for visitors who asked ------- */

.bnia-connection-section--static :is(.bnia-connection-section__glow, .bnia-cn__drift, .bnia-cn__node, .bnia-cn__pulse),
.elementor-editor-active .bnia-connection-section :is(.bnia-connection-section__glow, .bnia-cn__drift, .bnia-cn__node, .bnia-cn__pulse) {
	animation: none;
	transition: none;
}

.bnia-connection-section--static .bnia-connection-section__glow,
.elementor-editor-active .bnia-connection-section .bnia-connection-section__glow {
	transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
	.bnia-connection-section :is(.bnia-connection-section__glow, .bnia-cn__drift, .bnia-cn__node, .bnia-cn__pulse) {
		animation: none !important;
		transition: none !important;
	}

	.bnia-connection-section .bnia-connection-section__glow {
		transform: translate(-50%, -50%) !important;
	}
}

/* ---------------------------------------------------------------------------
 * 12. Statements, highlights and audience columns
 *
 * Patterns for Atomic (V4) pages, first used on the About page. The global
 * classes of the same names carry no styles; everything comes from here and
 * from the type roles in inc/tokens.php. `body .elementor …` outranks
 * Atomic's base rules (`.elementor .e-*-base`).
 * ------------------------------------------------------------------------ */

/* A statement: the sentence a section turns on. A paragraph in the heading
 * face, never a heading, so the outline stays H1 > H2 > H3. Default is the
 * H3 role; --large the H2 role; --display the Display role. */
body .elementor .bnia-statement {
	color: var(--bnia-color-heading);
	font-family: var(--bnia-type-heading3-family);
	font-size: var(--bnia-type-heading3-size);
	font-weight: var(--bnia-type-heading3-weight);
	line-height: var(--bnia-type-heading3-leading);
	letter-spacing: var(--bnia-type-heading3-tracking);
	text-wrap: balance;
}

body .elementor .bnia-statement--large {
	font-family: var(--bnia-type-heading2-family);
	font-size: var(--bnia-type-heading2-size);
	font-weight: var(--bnia-type-heading2-weight);
	line-height: var(--bnia-type-heading2-leading);
	letter-spacing: var(--bnia-type-heading2-tracking);
}

/* Display: the lead-in in slate-600, the highlight in brand-500, so the
 * last phrase carries the weight. */
body .elementor .bnia-statement--display {
	color: var(--bnia-color-text-muted);
	font-family: var(--bnia-type-display-family);
	font-size: var(--bnia-type-display-size);
	font-weight: var(--bnia-type-display-weight);
	line-height: var(--bnia-type-display-leading);
	letter-spacing: var(--bnia-type-display-tracking);
}

/* Phones: the large statements step down a role, so a short phrase is not
 * left alone on a line and a long one does not run to a screenful. */
@media (max-width: 767px) {
	body .elementor .bnia-statement--large {
		font-size: var(--bnia-type-heading3-size);
		line-height: var(--bnia-type-heading3-leading);
	}

	body .elementor .bnia-statement--display {
		font-size: var(--bnia-type-heading2-size);
		line-height: var(--bnia-type-heading2-leading);
	}
}

/* A statement after copy stands apart from it: more room above it than
 * the copy's own spacing. */
body .elementor * + .bnia-statement {
	margin-block-start: clamp(0.5rem, 1.5vw, 1.25rem);
}

body .elementor * + :is(.bnia-statement--large, .bnia-statement--display) {
	margin-block-start: clamp(1.5rem, 4vw, 3.5rem);
}

/* Highlights. Atomic text drops a span's attributes, so any span inside a
 * statement or a .bnia-highlight heading is the highlight: brand-500 on
 * light grounds (6.47:1 on white, distinct from slate-900 headings), aqua on
 * the dark ones. */
:is(.bnia-statement, .bnia-highlight) span {
	color: var(--bnia-brand-500);
}

body .elementor :is(.bnia-hero, .bnia-section--dark, .bnia-connection-section--dark) .bnia-statement {
	color: var(--bnia-color-on-dark);
}

:is(.bnia-hero, .bnia-section--dark, .bnia-connection-section--dark) :is(.bnia-statement, .bnia-highlight) span {
	color: var(--bnia-color-accent-aqua);
}

/* Ruled columns: structured columns, not cards. A brand rule above each
 * column; the grid itself is the container's own. `.bnia-audience` (About)
 * and `.bnia-point` (the homepage's trust points) are the same pattern. */
body .elementor :is(.bnia-audience, .bnia-point) {
	padding: 1.5rem 0 0;
	border-top: 2px solid var(--bnia-brand-500);
}

body .elementor :is(.bnia-audience, .bnia-point, .bnia-journey, .bnia-role-panel) h3 {
	font-size: clamp(1.2rem, 1.5vw, 1.375rem);
	line-height: 1.25;
}

body .elementor :is(.bnia-audience, .bnia-point, .bnia-journey) p:not(.bnia-eyebrow) {
	color: var(--bnia-color-text-muted);
}

/* A heading in the Display role: the first statement after a hero. */
body .elementor .bnia-display {
	font-family: var(--bnia-type-display-family);
	font-size: var(--bnia-type-display-size);
	font-weight: var(--bnia-type-display-weight);
	line-height: var(--bnia-type-display-leading);
	letter-spacing: var(--bnia-type-display-tracking);
}

/* Phones: the H2 role, so one long word ("Administration.") fits 320px. */
@media (max-width: 767px) {
	body .elementor .bnia-display {
		font-size: var(--bnia-type-heading2-size);
		line-height: var(--bnia-type-heading2-leading);
	}
}

/* Spacious: half again the section spacing, for a typographic statement. */
.bnia-section.bnia-section--spacious {
	padding-block: calc(var(--bnia-section-pad) * 1.5) !important;
}

/* Role panels: two grounds side by side (dark for leadership, brand-50 for
 * members), the call to action held at the foot of each. */
body .elementor .bnia-role-panel {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: clamp(1.75rem, 4vw, 3rem);
	border-radius: var(--bnia-radius-xl);
}

body .elementor .bnia-role-panel > :last-child {
	margin-block-start: auto;
	padding-block-start: 1rem;
}

/* Journey: numbered steps joined by one line. Desktop: four across, the line
 * through the markers. Below 1025px: one column, the line down the left. */
body .elementor .bnia-journey {
	--bnia-journey-gap: 2rem;
	--bnia-journey-dot: 0.875rem;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: auto;
	gap: var(--bnia-journey-gap);
	padding: 0;
}

body .elementor .bnia-journey__step {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0;
}

body .elementor .bnia-journey__label {
	position: relative;
	margin: 0;
	padding-block-start: 2rem;
}

.bnia-journey__label::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: var(--bnia-journey-dot);
	height: var(--bnia-journey-dot);
	border-radius: 50%;
	background: var(--bnia-brand-500);
}

.bnia-journey__label::after {
	content: '';
	position: absolute;
	top: calc(var(--bnia-journey-dot) / 2 - 1px);
	left: calc(var(--bnia-journey-dot) + 0.5rem);
	right: calc(0.5rem - var(--bnia-journey-gap));
	height: 2px;
	background: var(--bnia-brand-200);
}

.bnia-journey__step:last-child .bnia-journey__label::after {
	content: none;
}

@media (max-width: 1024px) {
	body .elementor .bnia-journey {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	body .elementor .bnia-journey__step {
		padding: 0 0 2rem 1.75rem;
		border-left: 2px solid var(--bnia-brand-200);
	}

	body .elementor .bnia-journey__step:last-child {
		padding-block-end: 0;
		border-left-color: transparent;
	}

	body .elementor .bnia-journey__label {
		padding-block-start: 0;
	}

	.bnia-journey__label::before {
		top: 0.1rem;
		left: calc(-1.75rem - 1px - var(--bnia-journey-dot) / 2);
	}

	.bnia-journey__label::after {
		content: none;
	}
}
