/* =========================================================
   BidVertiser – design system (v3)
   Every colour, size and spacing value comes from the tokens below.
   Change the scheme here, not in the rules.
   ========================================================= */

:root {
	/* Colour – "Ink & Signal on Cloud" (scheme A) */
	--c-cloud: #f6f4ef;        /* page background: warm off-white */
	--c-ink: #15171c;          /* headings, logo, dark sections, footer */
	--c-heading: #15171c;
	--c-text: #3a3e47;         /* body text (9.8:1 on cloud) */
	--c-muted: #646a74;        /* secondary text (5.0:1 on cloud) */
	--c-line: #e4dfd5;
	--c-line-strong: #d3ccbf;
	--c-surface: #efebe3;      /* alternate section tint */
	--c-white: #ffffff;        /* cards, forms */
	--c-action: #ff7a1a;       /* buttons, ink text on it (6.9:1) */
	--c-action-hover: #ff8f3f;
	--c-on-action: #15171c;
	--c-accent: #c93d00;       /* orange highlight in headings (large text) */
	--c-accent-soft: #fff0e6;
	--c-accent-line: #ffc9a8;
	--c-accent-ink: #9a3000;   /* small orange text: labels, kickers (6.3:1+) */
	--c-link: #a83500;         /* links, focus, active states (5:1+ everywhere) */
	--c-link-soft: #fbe9df;
	--c-success: #0f8a60;
	--c-success-soft: #e6f4ec;
	--c-on-dark: #ffffff;
	--c-on-dark-muted: #b9b5ad;
	--c-accent-on-dark: #ff8f3f;

	/* Type – 3 text sizes + 2 heading sizes */
	--font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-s: 14px;              /* labels, eyebrows, meta, footer */
	--fs-m: 16px;              /* body text, buttons, inputs */
	--fs-l: 20px;              /* card titles, H3, lead paragraphs */
	--fs-h2: clamp(28px, 1.6vw + 18px, 40px);
	--fs-h1: clamp(32px, 2.8vw + 20px, 56px);

	/* Space */
	--sp-section: clamp(36px, 3.6vw, 52px);
	--sp-hero-top: clamp(28px, 3vw, 44px);
	--sp-hero-bottom: clamp(36px, 3.6vw, 52px);
	--sp-head: 28px;           /* section heading -> content */
	--sp-card: 24px;
	--gap: 16px;

	/* Shape */
	--r-card: 14px;
	--r-btn: 10px;
	--shadow-card: 0 1px 2px rgba(21, 23, 28, .04), 0 8px 24px rgba(21, 23, 28, .06);
	--shadow-card-hover: 0 2px 4px rgba(21, 23, 28, .05), 0 14px 32px rgba(21, 23, 28, .10);
	--shadow-raised: 0 18px 44px rgba(21, 23, 28, .14);
	--shadow-action: 0 6px 16px rgba(255, 122, 26, .25);
}

body { -webkit-font-smoothing: antialiased; color: var(--c-text); background: var(--c-cloud); }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }

/* Orange highlight inside headings (editor: Highlight → text colour Orange). */
h1 mark, h2 mark, h3 mark, .bdv-accent { background: none !important; color: var(--c-accent) !important; }
.bdv-hero h1 mark.bdv-block { display: block; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
/* Sticky header: WordPress wraps the part in <header class="wp-block-template-part">, which is exactly
   the header's height, so stickiness has to live on that wrapper (or the bar never sticks). */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.bdv-header { position: relative; z-index: 1; border-bottom: 1px solid var(--c-line); }
/* Frosted background on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the mobile menu overlay (position: fixed) and squeeze the menu into the bar. */
.bdv-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(246, 244, 239, .9);
	-webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
}
/* Open mobile menu: full screen, solid background, comfortable tap targets. */
.bdv-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--c-cloud) !important; color: var(--c-heading) !important; padding: 20px 24px !important;
}
.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; }
.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: var(--fs-l) !important; font-weight: 700; }
.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px !important; align-items: flex-start !important; }
.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; }
.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none !important; padding: 10px 0 0 16px !important; background: transparent !important; }
.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { font-size: var(--fs-m); font-weight: 600; padding: 6px 0 !important; }
.bdv-header-inner { min-height: 64px; }
.bdv-logo { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.bdv-logo img { display: block; width: auto; height: 30px; }
@media (max-width: 600px) { .bdv-logo img { height: 26px; } }
.bdv-footer .bdv-logo img { height: 32px; }
.bdv-header .wp-block-navigation { font-size: var(--fs-s) !important; font-weight: 600 !important; }
.bdv-header .wp-block-navigation a { color: var(--c-text); text-decoration: none; }
.bdv-header .wp-block-navigation a:hover,
.bdv-header .wp-block-navigation .current-menu-item > a { color: var(--c-link); }
.bdv-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--c-line) !important; border-radius: 12px; padding: 6px 0 !important; box-shadow: var(--shadow-card);
}
.bdv-header .wp-block-navigation__submenu-container a { padding: 8px 16px !important; }
.bdv-header .wp-block-buttons .wp-block-button__link { padding: 10px 18px; font-size: var(--fs-s); }
.bdv-header-note { color: var(--c-muted); font-size: var(--fs-s); margin: 0; }
.bdv-header-note a { color: var(--c-heading); font-weight: 800; text-decoration: none; }
@media (max-width: 900px) { .bdv-header .bdv-hide-mobile { display: none !important; } }

/* ---------------------------------------------------------
   Labels: eyebrow pill, kicker, step number, format badge
   --------------------------------------------------------- */
.is-style-bdv-eyebrow {
	display: inline-flex !important; align-items: center; width: auto !important;
	margin: 0 0 14px; padding: 5px 12px; border: 1px solid var(--c-accent-line); border-radius: 999px;
	background: var(--c-accent-soft); color: var(--c-accent-ink) !important;
	font-size: var(--fs-s) !important; font-weight: 700; line-height: 1.3 !important; letter-spacing: .02em;
}
.is-style-bdv-eyebrow::before {
	content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--c-action);
}
.has-text-align-center.is-style-bdv-eyebrow,
.bdv-center .is-style-bdv-eyebrow { margin-left: auto; margin-right: auto; }
p.is-style-bdv-eyebrow:where(.has-text-align-center) { display: flex !important; width: fit-content !important; }
.is-style-bdv-kicker {
	display: block !important; margin: 0 0 4px; padding: 0; border: 0; background: none;
	color: var(--c-accent-ink) !important; font-size: var(--fs-s) !important; font-weight: 700; letter-spacing: .02em;
}
.is-style-bdv-cta .is-style-bdv-eyebrow {
	display: block !important; margin: 0 0 8px; padding: 0; border: 0; background: none;
	color: var(--c-accent-on-dark) !important;
}
.is-style-bdv-cta .is-style-bdv-eyebrow::before { display: none; }

.is-style-bdv-number {
	display: flex !important; align-items: center; margin: 0 0 14px !important;
	color: var(--c-accent) !important; font-size: var(--fs-l) !important; font-weight: 800; line-height: 1 !important;
}
.is-style-bdv-number::after { content: ""; flex: 1; height: 1px; margin-left: 12px; background: linear-gradient(90deg, var(--c-accent-line), transparent); }

.is-style-bdv-symbol {
	display: inline-flex !important; align-items: center; justify-content: center;
	flex: 0 0 44px; width: 44px; height: 44px; margin: 0 !important; border-radius: 12px;
	background: var(--c-link-soft); color: var(--c-link) !important; font-size: var(--fs-s) !important; font-weight: 800; line-height: 1 !important;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */
.bdv-section { padding-top: var(--sp-section) !important; padding-bottom: var(--sp-section) !important; }
/* Two sections in a row with the same background: no double gap. */
.bdv-section:not(.has-background) + .bdv-section:not(.has-background),
.has-surface-background-color.bdv-section + .has-surface-background-color.bdv-section { padding-top: 0 !important; }
.bdv-section-head { max-width: 720px; margin-bottom: var(--sp-head) !important; }
.bdv-section-head.has-text-align-center, .bdv-center { margin-left: auto !important; margin-right: auto !important; text-align: center; }
.bdv-section-head h2 { margin: 0 0 12px; }
.bdv-section-head > p:not(.is-style-bdv-eyebrow) { max-width: 680px; margin: 0; color: var(--c-muted); font-size: var(--fs-m); }
.bdv-center > p:not(.is-style-bdv-eyebrow) { margin-left: auto; margin-right: auto; }
.wp-block-group.bdv-section-head { gap: 0; }

/* Hero */
.bdv-hero {
	position: relative; overflow: hidden;
	padding-top: var(--sp-hero-top) !important; padding-bottom: var(--sp-hero-bottom) !important;
	background: radial-gradient(55% 80% at 0% 0%, rgba(255, 122, 26, .13), transparent 60%),
		radial-gradient(45% 70% at 100% 0%, rgba(201, 61, 0, .06), transparent 60%),
		var(--c-cloud) !important;
}
.bdv-hero > * { position: relative; z-index: 1; }
.bdv-hero h1 { margin: 0 0 16px; }
.bdv-hero .bdv-lead { max-width: 640px; color: var(--c-text); font-size: var(--fs-l); line-height: 1.55; margin-bottom: 0; }
.bdv-hero-sub { color: var(--c-heading) !important; font-size: var(--fs-l) !important; font-weight: 700; line-height: 1.4 !important; margin: 0 0 10px !important; }
.bdv-hero .is-style-bdv-checks { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; max-width: 640px; }
.bdv-hero .is-style-bdv-checks li { font-weight: 600; color: var(--c-heading); padding-top: 5px; padding-bottom: 5px; }
@media (max-width: 600px) { .bdv-hero .is-style-bdv-checks { grid-template-columns: 1fr; } }
.bdv-hero-visual img { border-radius: var(--r-card); border: 1px solid var(--c-line); box-shadow: var(--shadow-raised); background: #fff; }

/* Proof strip */
.bdv-proof { background: transparent !important; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding-top: 18px !important; padding-bottom: 18px !important; }
.bdv-proof .wp-block-columns { gap: 0 !important; }
.bdv-proof .wp-block-column { padding: 2px 24px; border-right: 1px solid var(--c-line); }
.bdv-proof .wp-block-column:first-child { padding-left: 0; }
.bdv-proof .wp-block-column:last-child { padding-right: 0; border-right: 0; }
.bdv-proof h3, .bdv-proof .bdv-proof-value { margin: 0 0 2px; color: var(--c-heading); font-size: var(--fs-l); font-weight: 800; line-height: 1.3; }
.bdv-proof p { margin: 0; color: var(--c-muted); font-size: var(--fs-s); line-height: 1.45; }
@media (max-width: 781px) {
	.bdv-proof .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; }
	.bdv-proof .wp-block-column { padding: 12px 16px !important; border-bottom: 1px solid var(--c-line); }
	.bdv-proof .wp-block-column:nth-child(2n) { border-right: 0; }
	.bdv-proof .wp-block-column:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Grids */
.bdv-grid { display: grid !important; gap: var(--gap); }
.bdv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bdv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bdv-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bdv-grid > * { margin: 0 !important; }
@media (max-width: 950px) { .bdv-grid-3, .bdv-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .bdv-grid-2, .bdv-grid-3, .bdv-grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.is-style-bdv-card, .is-style-bdv-card-accent, .is-style-bdv-panel {
	position: relative; margin: 0; padding: var(--sp-card); overflow: hidden;
	border: 1px solid var(--c-line); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card);
	transition: transform .18s ease, box-shadow .18s ease;
}
.is-style-bdv-card-accent { border-top: 3px solid var(--c-action); }
.is-style-bdv-card:hover, .is-style-bdv-card-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.is-style-bdv-card > *, .is-style-bdv-card-accent > *, .is-style-bdv-panel > * { margin-block-start: 0; }
.is-style-bdv-card h3, .is-style-bdv-card-accent h3 { margin: 0 0 8px; }
.is-style-bdv-card p, .is-style-bdv-card-accent p { margin: 0; color: var(--c-muted); font-size: var(--fs-m); line-height: 1.6; }

/* Format cards: badge + copy side by side */
.bdv-format { display: flex !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 14px !important; padding: 20px !important; }
.bdv-format > .wp-block-group { flex: 1; min-width: 0; }
.bdv-format h3 { margin: 0 0 4px !important; font-size: var(--fs-l); line-height: 1.3; }
.bdv-format p:not(.is-style-bdv-symbol) { margin: 0; color: var(--c-muted); font-size: var(--fs-m); line-height: 1.55; }
.bdv-format.bdv-format-compact { align-items: center !important; padding: 14px 16px !important; }
.bdv-format.bdv-format-compact h3 { margin: 0 !important; }

/* Panels with numbered heading */
.is-style-bdv-panel { padding: var(--sp-card); }
.bdv-panel-head { display: flex !important; align-items: center; gap: 14px; margin: 0 0 14px !important; padding: 0 0 14px; border-bottom: 1px solid var(--c-line); }
.bdv-panel-head > .wp-block-group { gap: 0; }
.bdv-panel-head h3 { margin: 0; }
.bdv-circle {
	display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; margin: 0 !important;
	border-radius: 50%; background: var(--c-heading); color: #fff !important; font-size: var(--fs-s) !important; font-weight: 800; line-height: 1 !important;
}

/* Check list */
ul.is-style-bdv-checks { margin: 0; padding: 0; list-style: none; }
ul.is-style-bdv-checks li { position: relative; margin: 0; padding: 6px 0 6px 30px; color: var(--c-text); font-size: var(--fs-m); line-height: 1.5; }
ul.is-style-bdv-checks li::before {
	content: "✓"; position: absolute; top: 8px; left: 0;
	display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
	background: var(--c-success-soft); color: var(--c-success); font-size: var(--fs-s); font-weight: 900; line-height: 20px;
}
ul.is-style-bdv-checks li strong { display: block; color: var(--c-heading); }
ul.is-style-bdv-checks.bdv-checks-2col { columns: 2; column-gap: 28px; }
ul.is-style-bdv-checks.bdv-checks-2col li { break-inside: avoid; }
@media (max-width: 600px) { ul.is-style-bdv-checks.bdv-checks-2col { columns: 1; } }

/* Chips */
ul.is-style-bdv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
ul.is-style-bdv-chips li { margin: 0; padding: 6px 12px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: #fff; color: var(--c-heading); font-size: var(--fs-s); font-weight: 600; line-height: 1.3; }
.bdv-chips-label { margin: 18px 0 8px !important; color: var(--c-muted); font-size: var(--fs-s) !important; font-weight: 700; }

/* FAQ */
.wp-block-details.is-style-bdv-faq { margin: 0 0 10px !important; overflow: hidden; border-color: var(--c-line) !important; box-shadow: 0 1px 2px rgba(21, 23, 28, .04); }
.wp-block-details.is-style-bdv-faq summary {
	position: relative; display: block; padding: 15px 48px 15px 18px; color: var(--c-heading);
	font-size: var(--fs-m); font-weight: 700; line-height: 1.45; cursor: pointer; list-style: none;
}
.wp-block-details.is-style-bdv-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-bdv-faq summary::after {
	content: "+"; position: absolute; top: 50%; right: 18px; width: 22px; height: 22px; margin-top: -11px;
	color: var(--c-accent); font-size: var(--fs-l); font-weight: 600; line-height: 22px; text-align: center;
}
.wp-block-details.is-style-bdv-faq[open] summary::after { content: "−"; }
.wp-block-details.is-style-bdv-faq > :not(summary) { margin: 0; padding: 0 18px 16px; color: var(--c-muted); font-size: var(--fs-m); line-height: 1.6; }

/* Dark CTA card */
.is-style-bdv-cta {
	position: relative; overflow: hidden; padding: 36px 40px !important; border-radius: 18px;
	background: radial-gradient(70% 120% at 100% 0%, rgba(255, 122, 26, .28), transparent 60%),
		radial-gradient(50% 90% at 0% 100%, rgba(255, 255, 255, .05), transparent 60%),
		var(--c-ink) !important;
	box-shadow: var(--shadow-raised); color: var(--c-on-dark-muted);
}
.is-style-bdv-cta > * { position: relative; z-index: 1; }
.is-style-bdv-cta h2, .is-style-bdv-cta h3 { color: var(--c-on-dark) !important; }
.is-style-bdv-cta h2 { margin: 0 0 10px; }
.is-style-bdv-cta p { color: var(--c-on-dark-muted); font-size: var(--fs-m); line-height: 1.6; margin: 0; }
.is-style-bdv-cta .bdv-cta-note { margin-top: 10px !important; color: var(--c-on-dark-muted) !important; font-size: var(--fs-s) !important; text-align: center; }
.is-style-bdv-cta .bdv-cta-note a { color: var(--c-accent-on-dark) !important; }
.is-style-bdv-cta .wp-block-columns { align-items: center !important; }
.bdv-cta-pair .is-style-bdv-cta { padding: 28px 30px !important; height: 100%; }
.bdv-cta-pair .is-style-bdv-cta h3 { margin: 0 0 8px; }
@media (max-width: 650px) {
	.is-style-bdv-cta { padding: 26px 20px !important; border-radius: 14px; }
	.is-style-bdv-cta .wp-block-buttons, .is-style-bdv-cta .wp-block-button, .is-style-bdv-cta .wp-block-button__link { width: 100%; }
}

/* Buttons (colours/size in theme.json; these add motion + variants) */
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; box-shadow: var(--shadow-action); }
.wp-block-button:not(.is-style-bdv-outline):not(.is-style-bdv-navy) .wp-block-button__link { background-color: var(--c-action); color: var(--c-on-action); }
.wp-block-button:not(.is-style-bdv-outline):not(.is-style-bdv-navy) .wp-block-button__link:hover { background-color: var(--c-action-hover); color: var(--c-on-action); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-bdv-navy .wp-block-button__link { background: var(--c-heading) !important; color: #fff !important; box-shadow: none; }
.is-style-bdv-navy .wp-block-button__link:hover { background: var(--c-ink) !important; }
.is-style-bdv-outline .wp-block-button__link { background: #fff !important; color: var(--c-heading) !important; border: 1px solid var(--c-line-strong) !important; box-shadow: none; }
.is-style-bdv-outline .wp-block-button__link:hover { border-color: var(--c-heading) !important; }
.wp-block-button__link .bdv-arrow { margin-left: 8px; line-height: 1; }

/* Highlight band */
.bdv-band { border: 1px solid var(--c-accent-line); border-radius: var(--r-card); background: linear-gradient(90deg, var(--c-accent-soft) 0, #fff 100%); padding: 24px 28px !important; }
.bdv-band h3 { margin: 0 0 6px; }
.bdv-band p { margin: 0; color: var(--c-text); font-size: var(--fs-m); }
.bdv-band .wp-block-columns { align-items: center !important; }
.bdv-band .wp-block-column.bdv-band-action { flex: 0 0 auto !important; }

/* Logo strips */
.bdv-logos { gap: 24px 40px !important; align-items: center !important; }
.bdv-logos .wp-block-image { margin: 0 !important; }
.bdv-logos .wp-block-image img { width: auto !important; height: 30px !important; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.bdv-logos .wp-block-image:hover img { filter: none; opacity: 1; }
.bdv-logos.bdv-logos-tall .wp-block-image img { height: 36px !important; max-width: 170px; }
.is-style-bdv-card-accent .bdv-logos { justify-content: flex-start !important; gap: 12px 20px !important; margin-top: 14px !important; }
.is-style-bdv-card-accent .bdv-logos .wp-block-image img { height: 26px !important; }

/* Contact / stats info items */
.bdv-info p.bdv-info-label { margin: 0 0 2px !important; color: var(--c-muted); font-size: var(--fs-s) !important; font-weight: 600; }
.bdv-info p.bdv-info-value { margin: 0 !important; color: var(--c-heading); font-size: var(--fs-m) !important; font-weight: 700; line-height: 1.45 !important; }

/* Quote */
.bdv-quote { border-left: 3px solid var(--c-action); padding: 2px 0 2px 16px !important; margin-top: 18px !important; }
.bdv-quote p { margin: 0 0 6px; color: var(--c-text); font-size: var(--fs-m); font-style: italic; }
.bdv-quote .bdv-quote-who { color: var(--c-heading); font-size: var(--fs-s); font-weight: 700; font-style: normal; }

/* ---------------------------------------------------------
   Long text (legal, blog posts): only M and L sizes
   --------------------------------------------------------- */
.bdv-prose { color: var(--c-text); font-size: var(--fs-m); line-height: 1.75; }
.bdv-prose h1, .bdv-prose h2 { font-size: var(--fs-l); line-height: 1.3; margin-top: 1.8em; letter-spacing: 0; }
.bdv-prose h3, .bdv-prose h4, .bdv-prose h5 { font-size: var(--fs-m); line-height: 1.4; margin-top: 1.5em; letter-spacing: 0; }
.bdv-prose a { color: var(--c-link); text-decoration: underline; text-underline-offset: 2px; }
.bdv-prose ul, .bdv-prose ol { padding-left: 1.3em; }
.bdv-prose li { margin: .3em 0; }
.bdv-prose img { border-radius: 12px; }
.bdv-prose blockquote { border-left: 3px solid var(--c-action); margin-left: 0; padding-left: 16px; }
.bdv-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.bdv-prose th, .bdv-prose td { border: 1px solid var(--c-line); padding: 8px 10px; text-align: left; }
.bdv-prose p, .bdv-prose li, .bdv-prose h1, .bdv-prose h2, .bdv-prose h3, .bdv-prose h4, .bdv-prose td { overflow-wrap: anywhere; }
.bdv-page-hero h1 { font-size: var(--fs-h2); margin: 0; }
.bdv-page-hero .bdv-lead { color: var(--c-text); font-size: var(--fs-m); margin-top: 10px; }

/* Legal pages: sticky "On this page" sidebar + article */
.bdv-legal { align-items: stretch !important; }
.bdv-legal-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.admin-bar .bdv-legal-sidebar { top: 120px; }
.bdv-legal-sidebar .is-style-bdv-kicker { margin-bottom: 8px !important; }
ul.bdv-toc, ul.bdv-toc ul { list-style: none; margin: 0; padding: 0; }
ul.bdv-toc > li { margin: 0; }
ul.bdv-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--c-line); color: var(--c-muted); font-size: var(--fs-s); font-weight: 600; line-height: 1.4; text-decoration: none; }
ul.bdv-toc ul a { padding-left: 24px; font-weight: 500; }
ul.bdv-toc a:hover { color: var(--c-heading); border-left-color: var(--c-line-strong); }
ul.bdv-toc a.is-active { color: var(--c-link); border-left-color: var(--c-link); }
.bdv-legal-help { margin-top: 20px !important; padding: 16px !important; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); }
.bdv-legal-help p { margin: 0 0 6px !important; font-size: var(--fs-s) !important; }
.bdv-legal-help-title { color: var(--c-heading); font-weight: 700; }
.bdv-legal-meta { display: inline-block; margin: 0 0 4px !important; padding: 5px 12px; border: 1px solid var(--c-accent-line); border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent-ink) !important; font-size: var(--fs-s) !important; font-weight: 700; line-height: 1.3 !important; }
.bdv-legal-article { min-width: 0; }
.bdv-legal-article > :first-child { margin-top: 0; }
.bdv-legal-article h2, .bdv-legal-article h3, .bdv-legal-article h4 { scroll-margin-top: 92px; }
.bdv-legal-article h2 { padding-top: 18px; border-top: 1px solid var(--c-line); }
.bdv-legal-article .bdv-legal-meta + h2 { border-top: 0; padding-top: 0; }
@media (max-width: 781px) {
	.bdv-legal .bdv-legal-aside { order: 2; }
	.bdv-legal-sidebar { position: static; max-height: none; }
}
.bdv-page-hero + .wp-block-post-content.bdv-prose { padding-top: 8px !important; padding-bottom: var(--sp-section) !important; }

/* Blog cards */
.bdv-post-grid .wp-block-post-template { gap: var(--gap); }
.bdv-post-card { height: 100%; display: flex !important; flex-direction: column; }
.bdv-post-card .wp-block-post-title { font-size: var(--fs-l); line-height: 1.35; margin: 0; }
.bdv-post-card .wp-block-post-title a { color: var(--c-heading); text-decoration: none; }
.bdv-post-card .wp-block-post-title a:hover { color: var(--c-link); }
.bdv-post-card .wp-block-post-date { font-size: var(--fs-s) !important; color: var(--c-muted); }
.bdv-post-card .wp-block-post-excerpt { color: var(--c-muted); font-size: var(--fs-m); flex: 1; }
.bdv-post-card .wp-block-post-excerpt__more-link { font-weight: 700; font-size: var(--fs-s); text-decoration: none; color: var(--c-link); }
.bdv-post-card .wp-block-post-featured-image { margin: calc(var(--sp-card) * -1) calc(var(--sp-card) * -1) 16px !important; }
.bdv-post-card .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 16/9; object-fit: cover; }
.wp-block-query-pagination { font-weight: 700; font-size: var(--fs-s); }
.wp-block-query-pagination a { text-decoration: none; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 8px; }
.wp-block-query-pagination-numbers .current { background: var(--c-heading); color: #fff; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.bdv-footer { color: var(--c-on-dark-muted); font-size: var(--fs-s); padding-top: 44px !important; background: var(--c-ink) !important; }
.bdv-footer a { color: #e9e6df; }
.bdv-footer p { font-size: var(--fs-s); }
.bdv-footer a { color: #dfe5ee; text-decoration: none; }
.bdv-footer a:hover { color: var(--c-accent-on-dark); }
.bdv-footer h4 { color: #fff; font-size: var(--fs-s); font-weight: 700; margin: 0 0 12px; letter-spacing: 0; }
.bdv-footer ul { list-style: none; margin: 0; padding: 0; }
.bdv-footer li { margin: 0 0 8px; }
.bdv-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px !important; padding-top: 16px !important; padding-bottom: 20px !important; }
.bdv-footer-bottom p { margin: 0; }
.bdv-footer .wp-block-social-links .wp-social-link { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.bdv-footer .wp-block-social-links .wp-social-link:hover { background: var(--c-action) !important; color: var(--c-on-action) !important; }

/* ---------------------------------------------------------
   Login form (same field names as before)
   --------------------------------------------------------- */
.bdv-login-shell { max-width: 460px; margin: 0 auto; }
.bdv-login-shell form {
	padding: 28px; border: 1px solid var(--c-line); border-top: 4px solid var(--c-heading); border-radius: var(--r-card); background: #fff;
	box-shadow: var(--shadow-raised); color: var(--c-text);
}
.bdv-login-shell h2 { font-size: var(--fs-l); letter-spacing: 0; margin: 0 0 4px; }
.bdv-login-shell .bdv-login-sub { margin: 0 0 18px; color: var(--c-muted); font-size: var(--fs-s); }
.bdv-role { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.bdv-role legend { margin: 0 0 8px; color: var(--c-heading); font-size: var(--fs-s); font-weight: 700; }
.bdv-role input { position: absolute; opacity: 0; pointer-events: none; }
.bdv-role label { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--c-line-strong); border-radius: 8px; color: var(--c-text); font-size: var(--fs-s); font-weight: 700; cursor: pointer; transition: all .15s; }
.bdv-role input:checked + label { border-color: var(--c-link); background: var(--c-link-soft); color: var(--c-link); box-shadow: 0 0 0 3px rgba(255, 122, 26, .18); }
.bdv-role input:focus-visible + label { outline: 2px solid var(--c-link); outline-offset: 2px; }
.bdv-login-shell .bdv-field { margin: 0 0 14px; }
.bdv-login-shell .bdv-field label { display: flex; justify-content: space-between; margin: 0 0 6px; color: var(--c-heading); font-size: var(--fs-s); font-weight: 700; }
.bdv-login-shell .bdv-field label a { font-weight: 600; text-decoration: none; color: var(--c-link); }
.bdv-login-shell input[type="text"], .bdv-login-shell input[type="password"] {
	display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: 8px; background: #fff; color: var(--c-text); font: inherit; font-size: var(--fs-m);
}
.bdv-login-shell input[type="text"]:focus, .bdv-login-shell input[type="password"]:focus { outline: none; border-color: var(--c-link); box-shadow: 0 0 0 3px rgba(255, 122, 26, .18); }
.bdv-login-shell .bdv-remember { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--c-text); font-size: var(--fs-s); }
.bdv-login-shell .bdv-remember input { width: 18px; height: 18px; accent-color: var(--c-link); }
.bdv-login-shell .g-recaptcha { margin: 0 0 14px; }
.bdv-login-shell #errSpn { display: block; color: #c2410c; font-size: var(--fs-s); font-weight: 700; margin: 0 0 10px; }
.bdv-login-shell button[type="submit"] {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 0; border-radius: var(--r-btn);
	background: var(--c-heading); color: #fff; font: inherit; font-size: var(--fs-m); font-weight: 700; cursor: pointer;
}
.bdv-login-shell button[type="submit"]:hover { background: var(--c-ink); }
.bdv-login-foot { margin: 16px 0 0; text-align: center; color: var(--c-muted); font-size: var(--fs-s); }
.bdv-login-foot a { font-weight: 700; text-decoration: none; color: var(--c-link); }

/* Contact form wrapper (FormCraft output lives inside) */
.bdv-form-card { padding: var(--sp-card) !important; border: 1px solid var(--c-line); border-top: 4px solid var(--c-action); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); }
.bdv-form-card .fc-form { box-shadow: none !important; padding: 0 !important; width: 100% !important; max-width: none !important; }

/* Publisher agreement checkboxes inside the shared sign-up form */
.bdv-terms-stack .bdv-terms-row { margin-bottom: 8px; }

/* Utilities */
.bdv-mt-24 { margin-top: 20px !important; }
.bdv-muted { color: var(--c-muted) !important; }
.bdv-small { font-size: var(--fs-s) !important; }
.bdv-mt-0 { margin-top: 0 !important; }
.wp-site-blocks { padding-top: 0; }
main.wp-block-group { margin-top: 0 !important; }
.wp-block-post-terms.is-style-bdv-eyebrow a { color: inherit; text-decoration: none; }

/* Phones: feature/format grids become a swipe row (next card peeks in). Steps stay vertical. */
@media (max-width: 650px) {
	.bdv-grid.bdv-swipe {
		display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 82%;
		overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		margin-left: calc(var(--wp--style--root--padding-left, 20px) * -1) !important; margin-right: calc(var(--wp--style--root--padding-right, 20px) * -1) !important;
		padding: 4px var(--wp--style--root--padding-left, 20px) 14px !important; scroll-padding-left: var(--wp--style--root--padding-left, 20px);
		scrollbar-width: none;
	}
	.bdv-grid.bdv-swipe::-webkit-scrollbar { display: none; }
	.bdv-grid.bdv-swipe > * { scroll-snap-align: start; }
	.bdv-grid.bdv-swipe .is-style-bdv-card:hover, .bdv-grid.bdv-swipe .is-style-bdv-card-accent:hover { transform: none; }
}
@media (max-width: 781px) { .bdv-proof .wp-block-columns { gap: 0 !important; } .bdv-proof .wp-block-column { flex-basis: auto !important; } }

/* Timeline (About) */
.bdv-timeline { position: relative; margin-top: 14px !important; }
.bdv-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--c-line); }
.bdv-tl-row { position: relative; padding: 0 0 14px 30px !important; margin: 0 !important; }
.bdv-tl-row:last-child { padding-bottom: 0 !important; }
.bdv-tl-row::before { content: ""; position: absolute; left: 1px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--c-action); }
.bdv-tl-row > * { margin: 0 !important; }
p.bdv-tl-year { color: var(--c-heading); font-size: var(--fs-m) !important; font-weight: 800; line-height: 1.4 !important; }
p.bdv-tl-text { color: var(--c-muted); font-size: var(--fs-s) !important; line-height: 1.5 !important; }

/* Path rows (Home: two ways to start) */
.bdv-paths { margin-top: 12px !important; }
.bdv-path-row { padding: 14px 0 !important; margin: 0 !important; border-top: 1px solid var(--c-line); }
.bdv-path-row:last-child { padding-bottom: 0 !important; }
.bdv-path-row > * { margin: 0 !important; }
p.bdv-path-label { color: var(--c-heading); font-size: var(--fs-m) !important; font-weight: 800; }
p.bdv-path-text { color: var(--c-muted); font-size: var(--fs-s) !important; line-height: 1.5 !important; margin-top: 2px !important; }
p.bdv-path-link { font-size: var(--fs-s) !important; font-weight: 700; margin-top: 6px !important; }
p.bdv-path-link a { color: var(--c-link); text-decoration: none; }
p.bdv-path-link a:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   FormCraft contact form (inside .bdv-form-card) – theme look.
   Fixes: the form's own settings colour the submit text the same
   as its background (invisible label); required asterisks sat on
   the field border; empty "0 /" character counter.
   --------------------------------------------------------- */
.bdv-form-card .formcraft-css .fc-form,
.bdv-form-card .formcraft-css .fc-form *:not(.formcraft-icon):not([class*="icon-"]) { font-family: var(--font) !important; }
.bdv-form-card .formcraft-css .fc-form .formcraft-icon { display: none !important; } /* field icons would collide with the required marker */
.bdv-form-card .formcraft-css .fc-form { box-shadow: none !important; background: transparent !important; }
.bdv-form-card .formcraft-css .fc-form input[type="text"],
.bdv-form-card .formcraft-css .fc-form input[type="email"],
.bdv-form-card .formcraft-css .fc-form select,
.bdv-form-card .formcraft-css .fc-form textarea {
	border: 1px solid var(--c-line-strong) !important; border-radius: 8px !important; background-color: #fff !important;
	color: var(--c-text) !important; font-size: var(--fs-m) !important; box-shadow: none !important;
}
.bdv-form-card .formcraft-css .fc-form input[type="text"],
.bdv-form-card .formcraft-css .fc-form input[type="email"],
.bdv-form-card .formcraft-css .fc-form select { min-height: 46px !important; }
.bdv-form-card .formcraft-css .fc-form input:focus,
.bdv-form-card .formcraft-css .fc-form select:focus,
.bdv-form-card .formcraft-css .fc-form textarea:focus { border-color: var(--c-link) !important; box-shadow: 0 0 0 3px rgba(255, 122, 26, .18) !important; outline: none !important; }
.bdv-form-card .formcraft-css .fc-form ::placeholder { color: #8a8e96 !important; }
/* Required marker: small, inside the field, clear of the dropdown arrow. */
.bdv-form-card .formcraft-css .fc-form .is-required-true .field-cover::after {
	top: 13px !important; right: 14px !important; font-size: 18px !important; line-height: 1 !important; color: var(--c-accent) !important; pointer-events: none;
}
.bdv-form-card .formcraft-css .fc-form .is-required-true .field-cover.dropdown-cover::after { right: 40px !important; }
.bdv-form-card .formcraft-css .fc-form .count-true { display: none !important; }
.bdv-form-card .formcraft-css .fc-form .checkbox-cover label > span { color: var(--c-text) !important; font-size: var(--fs-m) !important; }
.bdv-form-card .formcraft-css .fc-form .checkbox-cover input { accent-color: var(--c-action); }
/* Submit button: same as every other primary button. */
.bdv-form-card .formcraft-css .fc-form .form-element .submit-cover .submit-button {
	background: var(--c-action) !important; color: var(--c-on-action) !important; border: 0 !important; border-radius: var(--r-btn) !important;
	min-height: 48px !important; padding: 12px 28px !important; font-size: var(--fs-m) !important; font-weight: 700 !important;
	box-shadow: var(--shadow-action) !important; text-shadow: none !important;
}
.bdv-form-card .formcraft-css .fc-form .form-element .submit-cover .submit-button .text { color: var(--c-on-action) !important; }
.bdv-form-card .formcraft-css .fc-form .form-element .submit-cover .submit-button:hover { background: var(--c-action-hover) !important; }

/* Hero: right-hand box starts level with the H1, not with the eyebrow pill above it.
   Eyebrow = 14px × 1.3 line + 10px padding + 2px border + 14px margin ≈ 44px. */
.bdv-hero-cols.has-eyebrow > .wp-block-column:last-child { padding-top: 44px; }
@media (max-width: 781px) { .bdv-hero-cols.has-eyebrow > .wp-block-column:last-child { padding-top: 0; } }

/* Single-column hero (no box on the right): keep the title to a readable width. */
.bdv-hero > .wp-block-group.alignwide > h1 { max-width: 920px; }
/* Hero titles: search phrase first (ink), slogan always on its own line (orange). */
.bdv-hero h1 mark { display: block; }

/* Phones: on pages with a form beside the title (sign-up, landing, contact, login)
   show eyebrow + title, then the form, then the rest of the intro text. */
@media (max-width: 781px) {
	.bdv-hero-cols.has-form { display: flex !important; flex-direction: column; row-gap: 0 !important; }
	.bdv-hero-cols.has-form > .wp-block-column:first-child { display: contents; }
	.bdv-hero-cols.has-form > .wp-block-column:first-child > * { order: 3; }
	.bdv-hero-cols.has-form > .wp-block-column:first-child > .is-style-bdv-eyebrow { order: 1; }
	.bdv-hero-cols.has-form > .wp-block-column:first-child > h1 { order: 1; margin-bottom: 20px !important; }
	.bdv-hero-cols.has-form > .wp-block-column:last-child { order: 2; flex-basis: auto !important; width: 100%; padding-top: 0; margin: 0 0 28px !important; }
	.bdv-hero-cols.has-form > .wp-block-column:first-child > .is-style-bdv-eyebrow { align-self: flex-start; }
}

/* Ad-format cards: centre an incomplete last row (7 cards = 4 + 3). Same card widths as the grid. */
@media (min-width: 651px) {
	.bdv-grid.bdv-formats { display: flex !important; flex-wrap: wrap; justify-content: center; }
	.bdv-grid.bdv-formats > * { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); }
}
@media (min-width: 651px) and (max-width: 950px) {
	.bdv-grid.bdv-formats > * { flex-basis: calc((100% - var(--gap)) / 2); }
}

/* Header dropdowns (e.g. Register): open from the item's left edge.
   WordPress right-aligns them in a right-justified menu; desktop only (the mobile overlay lists them inline). */
@media (min-width: 600px) {
	.bdv-header .wp-block-navigation .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { left: 0 !important; right: auto !important; }
}

/* Laptops/tablets (600–1100px): the full menu no longer fits next to the wider logo, so use the
   hamburger + full-screen menu here too (WordPress only switches below 600px). */
@media (min-width: 600px) and (max-width: 1100px) {
	.bdv-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.bdv-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.bdv-header .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; position: fixed; inset: 0; z-index: 100000; overflow: auto; }
	.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
	.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; }
	.bdv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { position: static !important; opacity: 1 !important; visibility: visible !important; width: auto !important; height: auto !important; min-width: 0 !important; }
}
@media (min-width: 600px) and (max-width: 900px) { .bdv-header .bdv-hide-mobile { display: flex !important; } }
