/*
 * MB Fluid Services — design system.
 *
 * PORTING NOTE (wp-site-build principle #1): the Claude design carries its
 * layout and appearance in INLINE style attributes on every element, and its
 * grids are all `repeat(auto-fit, minmax(Npx, 1fr))` — intrinsically fluid, so
 * they need no media-query overrides. Those inline styles are copied verbatim
 * into each module's includes/frontend.php and are NOT duplicated here.
 *
 * This sheet holds only what the design expressed through its canvas runtime
 * rather than through inline styles, and therefore has to become real CSS:
 *   1. the base/reset <style> block (verbatim from the design)
 *   2. design tokens
 *   3. the shared max-width container
 *   4. `style-hover` / `style-focus` attributes → :hover / :focus rules
 *   5. `<sc-if desktop>` / `<sc-if mobile>` → a 1160px breakpoint
 *   6. the JS-driven reveal, header, accordion and wipe states
 */

/* ================================================================== *
 * 1. Base / reset — ported verbatim from the design's <style> block
 * ================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	background: #0c0c0e;
	color: #F5F3EE;
	font-family: "Archivo", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;

	/* The design wrapped the whole page in `overflow-x: clip`. Several elements
	   deliberately bleed past the right edge — the stat band's photo at
	   right:-6%, every paper texture at right/left:-13..17% — and without this
	   they widen the document and the page scrolls sideways on mobile.
	   `clip` rather than `hidden` on purpose: hidden would make body a scroll
	   container and break the sticky header. */
	overflow-x: clip;
}
h1, h2, h3, h4 {
	font-family: "Bebas Neue", "Archivo", system-ui, sans-serif;
	letter-spacing: 0.01em;
	font-weight: 400 !important;
}
h2 { letter-spacing: 0.04em; }
img { display: block; max-width: 100%; }
a { color: #84BD00; text-decoration: none; }
a:hover { color: #9ed400; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: #84BD00; color: #0c0c0e; }

/* ================================================================== *
 * 2. Tokens
 * ================================================================== */
:root {
	--mbf-bg:        #0c0c0e; /* page ground */
	--mbf-deep:      #08080a; /* deepest band (stat band, footer) */
	--mbf-surface:   #141416; /* raised section */
	--mbf-surface-2: #1a1a1d; /* card on a raised section */
	--mbf-border:    #2a2a2e;
	--mbf-paper:     #F5F3EE; /* body text on dark */
	--mbf-green:     #84BD00; /* brand */
	--mbf-green-hi:  #93cf00; /* button hover */
	--mbf-green-br:  #9ed400; /* link hover */
	--mbf-blue:      #9ADBE8; /* underline / pill accent */
	--mbf-max:       1240px;
	--mbf-pad:       clamp(18px, 4vw, 44px);
	/* Mirrors --v2-mono. The webfont is self-hosted and fonts.css loads on
	   both shells, so it was always available here — just never applied,
	   which left the nav phone number sans on the homepage and mono on
	   every v2 page. */
	--mbf-mono:      'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--mbf-nav-bp:    1160px;  /* design's isMobile threshold */

	/* The design's right-arrow glyph, as a mask source for pseudo-elements
	   (used on the Formidable submit button, which has no markup to hook). */
	--mbf-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ================================================================== *
 * 3. Shared container (design: max-width:1240px;margin:0 auto;width:100%)
 * ================================================================== */
.mbf-mono { font-family: var(--mbf-mono); }

.mbf-wrap {
	max-width: var(--mbf-max);
	margin: 0 auto;
	width: 100%;
}

/* ================================================================== *
 * 4. Hover / focus states
 *    One class per distinct `style-hover` value in the design, so the
 *    hover appearance is ported exactly rather than approximated.
 * ================================================================== */

/* style-hover="color:#84BD00" */
.mbf-hv-green:hover { color: var(--mbf-green); }

/* style-hover="text-decoration:underline;text-decoration-color:#9ADBE8;
   text-underline-offset:6px;text-decoration-thickness:2px" (nav links) */
.mbf-hv-underline:hover {
	text-decoration: underline;
	text-decoration-color: var(--mbf-blue);
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

/* style-hover="background:#93cf00" (primary green button) */
.mbf-hv-btn:hover { background: var(--mbf-green-hi); }

/* style-hover="border-color:#9ADBE8;background:rgba(154,219,232,0.16)" (pills) */
.mbf-hv-pill:hover {
	border-color: var(--mbf-blue);
	background: rgba(154, 219, 232, 0.16);
}

/* style-hover="transform:translateY(-5px);box-shadow:0 22px 38px -26px rgba(0,0,0,0.28)" */
.mbf-hv-lift { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.mbf-hv-lift:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 38px -26px rgba(0, 0, 0, 0.28);
}

/* style-hover="transform:translateY(-5px);box-shadow:0 24px 40px -24px rgba(0,0,0,0.5)" */
.mbf-hv-lift-dark { transition: transform .3s ease, box-shadow .3s ease; }
.mbf-hv-lift-dark:hover {
	transform: translateY(-5px);
	box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.5);
}

/* style-hover="border-color:#84BD00;box-shadow:0 0 0 3px rgba(132,189,0,0.25)" (cards) */
.mbf-hv-card { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.mbf-hv-card:hover {
	border-color: var(--mbf-green);
	box-shadow: 0 0 0 3px rgba(132, 189, 0, 0.25);
}

/* style-hover="gap:12px;color:#9ed400" (arrow links: gap grows, colour brightens) */
.mbf-hv-arrow { transition: gap .25s ease, color .25s ease; }
.mbf-hv-arrow:hover { gap: 12px; color: var(--mbf-green-br); }

/* style-hover="gap:11px" / "gap:13px" (arrow nudge only) */
.mbf-hv-gap11 { transition: gap .25s ease; }
.mbf-hv-gap11:hover { gap: 11px; }
.mbf-hv-gap13 { transition: gap .25s ease; }
.mbf-hv-gap13:hover { gap: 13px; }

/* style-hover="border-color:#84BD00;color:#84BD00" (ghost button) */
.mbf-hv-ghost { transition: border-color .25s ease, color .25s ease; }
.mbf-hv-ghost:hover { border-color: var(--mbf-green); color: var(--mbf-green); }

/* style-hover="border-color:#0c0c0e" (on the green CTA band) */
.mbf-hv-ink:hover { border-color: var(--mbf-bg); }

/* style-hover="background:#141416" (subtle surface lift) */
.mbf-hv-surface:hover { background: var(--mbf-surface); }

/* style-focus="border-color:#84BD00;outline:none" (all form fields) */
.mbf-field:focus {
	border-color: var(--mbf-green);
	outline: none;
}

/* ================================================================== *
 * 5. Header + navigation
 *    The design switched desktop/mobile nav in its runtime at 1160px
 *    (`window.innerWidth < 1160`); here it's a media query, so the nav
 *    is correct with JS disabled and there is no resize flash.
 * ================================================================== */
.mbf-nav-desktop { display: flex; }
.mbf-nav-mobile  { display: none; }

/* Desktop menu links. The design carried these inline; the nav walker emits
   bare <a class="mbf-nav-link">, so they live here instead. The phone and CTA
   links keep their own inline styles, which win over this sheet. */
/* 14.5px, matching body.mbf-v2 .mbf-nav-link in design-v2.css. The two skins
   shared this class but not this size, so nav labels were half a pixel larger
   on the v1 pages — enough to read as the type shifting when you moved between
   pages, without being obviously wrong on either. Keep the two in step. */
.mbf-nav-link {
	color: var(--mbf-paper);
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* A submenu, if a menu ever adds children. The design has none, so this is a
   minimal hover panel rather than a designed mega menu. */
.mbf-nav-desktop .nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.mbf-nav-desktop .nav-dropdown__menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	flex-direction: column;
	min-width: 220px;
	padding: 8px 0;
	background: var(--mbf-surface);
	border: 1px solid var(--mbf-border);
	border-radius: 8px;
	box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6);
}
/* Same hover bridge as the v2 nav: keeps the pointer inside the dropdown's
   hover area on the way from the link to the first item. */
.mbf-nav-desktop .nav-dropdown__menu::before {
	content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
}
.mbf-nav-desktop .nav-dropdown:hover .nav-dropdown__menu,
.mbf-nav-desktop .nav-dropdown:focus-within .nav-dropdown__menu { display: flex; }
.mbf-nav-sublink { color: var(--mbf-paper); font-size: 15px; font-weight: 500; padding: 9px 16px; }
.mbf-nav-sublink:hover { color: var(--mbf-green); background: rgba(245, 243, 238, 0.04); }

/* The toggle must be a flex line, or the caret below (a zero-size box) lands
   on the text baseline and renders as a raised superscript instead of sitting
   beside the label. */
.mbf-nav-desktop .nav-dropdown__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* CSS-drawn triangle. `display:block` is load-bearing: a <span> is inline, and
   inline boxes ignore width/height — the borders then draw off the baseline,
   which is what made the caret float up and to the right. (Same failure as the
   Gordon Water footer glasses in the wp-site-build gotchas log.) */
.nav-dropdown__caret {
	display: block;
	flex: none;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	/* Optically centre against the cap height rather than the em box. */
	transform: translateY(1px);
	opacity: 0.55;
	transition: opacity .2s ease, transform .2s ease;
}
.mbf-nav-desktop .nav-dropdown:hover .nav-dropdown__caret,
.mbf-nav-desktop .nav-dropdown:focus-within .nav-dropdown__caret {
	opacity: 1;
	transform: translateY(1px) rotate(180deg);
}

@media (max-width: 1159px) {
	.mbf-nav-desktop { display: none; }
	.mbf-nav-mobile  { display: flex; }
}

/* .mbf-header carries no transform. The homepage design hid the header on
   scroll down and returned it on scroll up; the v2 designs do not, which made
   the nav behave differently from page to page. Settled on always-visible
   (2026-11-23) — see js/interactions.js. The class stays as a hook. */

/* Off-canvas panel: closed by default, opened by interactions.js.
   `hidden` on the element keeps it closed with JS off. */
.mbf-menu-panel[hidden] { display: none !important; }

/* ================================================================== *
 * 6. Reveals
 *    interactions.js adds .has-reveal to <body> before observing, so with
 *    JS off (or failed) NOTHING is ever hidden and no LCP element waits on
 *    a script. Children stagger by index, matching the design's 70ms step.
 * ================================================================== */
.has-reveal [data-reveal],
.has-reveal [data-reveal-children] > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .62s cubic-bezier(.22, .7, .28, 1),
	            transform .62s cubic-bezier(.22, .7, .28, 1);
	will-change: opacity, transform;
}
.has-reveal [data-reveal].mbf-in,
.has-reveal [data-reveal-children] > *.mbf-in {
	opacity: 1;
	transform: none;
}
.has-reveal [data-reveal-children] > *:nth-child(1) { transition-delay: 0ms; }
.has-reveal [data-reveal-children] > *:nth-child(2) { transition-delay: 70ms; }
.has-reveal [data-reveal-children] > *:nth-child(3) { transition-delay: 140ms; }
.has-reveal [data-reveal-children] > *:nth-child(4) { transition-delay: 210ms; }
.has-reveal [data-reveal-children] > *:nth-child(5) { transition-delay: 280ms; }
.has-reveal [data-reveal-children] > *:nth-child(6) { transition-delay: 350ms; }
.has-reveal [data-reveal-children] > *:nth-child(7) { transition-delay: 420ms; }
.has-reveal [data-reveal-children] > *:nth-child(8) { transition-delay: 490ms; }
.has-reveal [data-reveal-children] > *:nth-child(n+9) { transition-delay: 560ms; }

/* ================================================================== *
 * 7. Process steps (design: dots fill + connector lines wipe in)
 *    Resting state is the FINISHED state, so with JS off the steps read
 *    correctly; interactions.js adds .mbf-steps--armed to rewind them.
 * ================================================================== */
.mbf-steps--armed [data-step-dot] {
	background: transparent;
	color: var(--mbf-green);
}
.mbf-steps--armed [data-step-line] {
	transform: scaleX(0);
	transition: transform .62s cubic-bezier(.4, .05, .2, 1);
}
[data-step-dot] { transition: background .3s ease, color .3s ease, box-shadow .48s ease; }

/* ================================================================== *
 * 8. FAQ accordion (design: maxHeight 0 ↔ 640px, "+" rotates 45°)
 * ================================================================== */
.mbf-faq__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height .42s cubic-bezier(.4, .05, .2, 1);
}
.mbf-faq__item.is-open .mbf-faq__body { max-height: 640px; }
.mbf-faq__plus { transition: transform .3s ease; }
.mbf-faq__item.is-open .mbf-faq__plus { transform: rotate(45deg); }

/* ================================================================== *
 * 9. Before/after wipe (design: drag to compare)
 * ================================================================== */
.mbf-wipe { cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.mbf-wipe img { pointer-events: none; }
.mbf-wipe:focus-visible { outline: 2px solid var(--mbf-green); outline-offset: 3px; }

/* ================================================================== *
 * 9b. Rich-text bodies
 *     Paragraph styling the design carried inline. These blocks come from a
 *     WYSIWYG field, so the rule has to live here rather than on the element.
 * ================================================================== */
.mbf-lineage__body p {
	font-size: 17.5px;
	line-height: 1.7;
	color: rgba(245, 243, 238, 0.78);
	max-width: 560px;
}
.mbf-lineage__body p + p { margin-top: 20px; }

/* ================================================================== *
 * 9c. Formidable Forms skin
 *     The design drew its forms as hand-written <label>/<input> pairs. The real
 *     forms are Formidable (so submissions are stored and notified), which emits
 *     its own markup — so the design's field styling is reproduced here against
 *     Formidable's classes, scoped to `.mbf-formskin`.
 *
 *     Two containers use it: the hero's aside card (one column, 14px gaps) and
 *     the contact panel (auto-fit columns from 160px, 16px gaps, 13px labels),
 *     matching the design's two treatments.
 * ================================================================== */
.mbf-formskin .frm_forms,
.mbf-formskin .frm_form_fields,
.mbf-formskin fieldset,
.mbf-formskin .frm_fields_container {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
.mbf-formskin legend,
.mbf-formskin .frm_screen_reader,
.mbf-formskin .frm_hidden { display: none; }

/* Field layout.
   Formidable lays fields out on its own 12-column grid and every field spans 12
   by default. That IS the design's hero layout (one column), so we keep the grid
   and only set the design's gap — then a field that should share a row gets
   Formidable's own `frm6` class (set per field in Formidable → Forms), exactly
   as the design pairs Email with Phone. Nothing here fights the plugin. */
.mbf-formskin .frm_form_fields .frm_fields_container { gap: 14px 16px; }
.mbf-formskin .frm_form_field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
}
.mbf-formskin .frm_primary_label {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(245, 243, 238, 0.7);
	margin: 0;
	padding: 0;
}
.mbf-formskin .frm_required { color: var(--mbf-green); }

.mbf-formskin input[type="text"],
.mbf-formskin input[type="email"],
.mbf-formskin input[type="tel"],
.mbf-formskin input[type="number"],
.mbf-formskin input[type="url"],
.mbf-formskin select,
.mbf-formskin textarea {
	width: 100%;
	background: rgba(12, 12, 14, 0.9);
	border: 1px solid rgba(245, 243, 238, 0.18);
	border-radius: 7px;
	padding: 12px 14px;
	color: var(--mbf-paper);
	font-size: 15px;
	font-weight: 400;
	transition: border-color .18s ease;
}
.mbf-formskin input:focus,
.mbf-formskin select:focus,
.mbf-formskin textarea:focus {
	border-color: var(--mbf-green);
	outline: none;
}
.mbf-formskin ::placeholder { color: rgba(245, 243, 238, 0.38); }

/* Native select arrow is invisible on the dark fill, so draw our own. The
   `.with_frm_style` scope matches Formidable's own select rule specificity
   (which sets background-color) and loads later, so the image survives. */
.mbf-formskin .frm_forms.with_frm_style select,
.mbf-formskin select {
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, rgba(245, 243, 238, 0.65) 50%),
	                  linear-gradient(135deg, rgba(245, 243, 238, 0.65) 50%, transparent 50%);
	background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 36px;
}

/* Submit button — the design's full-width green button.
   Formidable ships `.frm_style_x.with_frm_style .frm_submit button` (0-3-1) with
   a blue background, so these selectors add the `.mbf-formskin` scope to reach
   0-4-1 and win outright — no !important, and per-form Builder styles still
   override. Keep the `.frm_forms.with_frm_style` pair when editing. */
.mbf-formskin .frm_submit { margin: 4px 0 0; }
.mbf-formskin .frm_forms.with_frm_style .frm_submit button,
.mbf-formskin .frm_forms.with_frm_style .frm_submit input[type="submit"],
.mbf-formskin .frm_forms.with_frm_style .frm_submit input[type="button"] {
	width: 100%;
	background: var(--mbf-green);
	border: none;
	border-radius: 7px;
	color: var(--mbf-bg);
	font-family: 'Archivo', system-ui, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: normal;
	padding: 15px;
	margin: 0;
	text-shadow: none;
	box-shadow: none;
	transition: background .25s ease;
}
/* The design's arrow after the button label. Formidable renders a plain
   <button>, so the glyph is drawn as a mask rather than added to the label
   text (which an editor would then have to retype). */
.mbf-formskin .frm_forms.with_frm_style .frm_submit button::after {
	content: "";
	display: inline-block;
	width: 19px;
	height: 19px;
	margin-left: 10px;
	vertical-align: -4px;
	background-color: currentColor;
	-webkit-mask: var(--mbf-arrow) no-repeat center / contain;
	mask: var(--mbf-arrow) no-repeat center / contain;
}

.mbf-formskin .frm_forms.with_frm_style .frm_submit button:hover,
.mbf-formskin .frm_forms.with_frm_style .frm_submit input[type="submit"]:hover,
.mbf-formskin .frm_forms.with_frm_style .frm_submit button:focus,
.mbf-formskin .frm_forms.with_frm_style .frm_submit button:active {
	background: var(--mbf-green-hi);
	border-color: transparent;
	color: var(--mbf-bg);
	outline: none;
}

/* Validation + confirmation messages, in the design's palette. */
.mbf-formskin .frm_error,
.mbf-formskin .frm_error_style {
	font-size: 13px;
	color: #ff8a80;
	background: rgba(255, 138, 128, 0.08);
	border: 1px solid rgba(255, 138, 128, 0.3);
	border-radius: 7px;
	padding: 10px 12px;
}
.mbf-formskin .frm_blank_field input,
.mbf-formskin .frm_blank_field select { border-color: #ff8a80; }
.mbf-formskin .frm_message,
.mbf-formskin .frm_success_style {
	font-size: 15px;
	line-height: 1.6;
	color: var(--mbf-paper);
	background: rgba(132, 189, 0, 0.1);
	border: 1px solid rgba(132, 189, 0, 0.4);
	border-radius: 10px;
	padding: 20px 22px;
}
.mbf-formskin .frm_message p { margin: 0; }

/* Contact panel: the design's two-column field grid and larger labels.
   Every field carries `frm6` (set in Formidable), so the 12-column grid gives
   two per row — the same result as the design's
   `repeat(auto-fit, minmax(160px, 1fr))` at this panel width. */
.mbf-contact-form .frm_form_fields .frm_fields_container { gap: 16px; }
.mbf-contact-form .frm_primary_label { font-size: 13px; }
.mbf-contact-form .frm_fields_container .frm_submit {
	grid-column: 1 / -1;
	margin-top: 22px;
}

/* ================================================================== *
 * 9d. Article prose (`.mbf-prose`)
 *     Editor output on a single article. The design has no article page, so
 *     this is built from the design's OWN scale rather than invented: body
 *     copy matches the hero lead, headings use Bebas like every other heading,
 *     links and rules use the brand green and border tokens.
 * ================================================================== */
/* Full-strength paper, not 82%: PinPoint (Taylro, 2026-10-21) asked for the
   blog body text to be white "so it can be seen better". Matches .mbf-lede,
   which was already at full strength — the two now read as one voice. */
.mbf-prose { font-size: 17.5px; line-height: 1.75; color: var(--mbf-paper); }
.mbf-prose > * + * { margin-top: 1.1em; }

.mbf-prose h2,
.mbf-prose h3,
.mbf-prose h4 {
	color: var(--mbf-paper);
	line-height: 1.12;
	letter-spacing: 0.01em;
	text-wrap: balance;
}
.mbf-prose h2 { font-size: clamp(26px, 3.2vw, 38px); margin-top: 1.8em; }
.mbf-prose h3 { font-size: clamp(21px, 2.4vw, 27px); margin-top: 1.6em; }
.mbf-prose h4 { font-size: 19px; margin-top: 1.5em; }

.mbf-prose a { color: var(--mbf-green); text-decoration: underline; text-underline-offset: 3px; }
.mbf-prose a:hover { color: var(--mbf-green-br); }

.mbf-prose strong { color: var(--mbf-paper); font-weight: 700; }

.mbf-prose ul,
.mbf-prose ol { padding-left: 1.3em; }
.mbf-prose li + li { margin-top: 0.5em; }
.mbf-prose ul li::marker { color: var(--mbf-green); }
.mbf-prose ol li::marker { color: var(--mbf-green); font-weight: 700; }

.mbf-prose blockquote {
	border-left: 3px solid var(--mbf-green);
	padding: 4px 0 4px 22px;
	color: var(--mbf-paper);
	font-size: 19px;
	line-height: 1.6;
}

.mbf-prose img,
.mbf-prose figure img { border-radius: 12px; }
.mbf-prose figcaption {
	margin-top: 10px;
	font-size: 13.5px;
	color: rgba(245, 243, 238, 0.5);
}

.mbf-prose hr { border: 0; border-top: 1px solid var(--mbf-border); margin: 2.2em 0; }

.mbf-prose code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
	background: rgba(245, 243, 238, 0.07);
	border: 1px solid var(--mbf-border);
	border-radius: 5px;
	padding: 2px 6px;
}
.mbf-prose pre {
	background: var(--mbf-surface-2);
	border: 1px solid var(--mbf-border);
	border-radius: 10px;
	padding: 18px 20px;
	overflow-x: auto;
}
.mbf-prose pre code { background: none; border: 0; padding: 0; }

.mbf-prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mbf-prose th,
.mbf-prose td { border-top: 1px solid var(--mbf-border); padding: 12px 14px; text-align: left; }
.mbf-prose th { color: var(--mbf-paper); font-weight: 700; }

/* ================================================================== *
 * 9d-i. Article card grid — three across
 *
 * auto-FILL, not auto-fit. auto-fit collapses the tracks that have no item
 * in them, so with one published article the single card stretched across
 * the whole row; auto-fill keeps the tracks, so cards stay card-sized and
 * fill from the left however many there are.
 *
 * The 320px floor is what makes it exactly three at full width: the content
 * column is ~1152px, and 3×320 + 2×24 fits where 4×320 + 3×24 does not. It
 * still falls to two columns and then one as the viewport narrows, with no
 * media query. min(100%, 320px) keeps the track from overflowing a container
 * narrower than the floor.
 * ================================================================== */
.mbf-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 24px;
}

/* ================================================================== *
 * 9e. Pagination (article index, archives, multi-page posts)
 * ================================================================== */
.mbf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(245, 243, 238, 0.16);
	border-radius: 7px;
	background: var(--mbf-surface-2);
	color: var(--mbf-paper);
	font-size: 14.5px;
	font-weight: 600;
	transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.mbf-pagination a.page-numbers:hover {
	border-color: var(--mbf-blue);
	background: rgba(154, 219, 232, 0.16);
	color: var(--mbf-paper);
}
.mbf-pagination .page-numbers.current {
	background: var(--mbf-green);
	border-color: var(--mbf-green);
	color: var(--mbf-bg);
}
.mbf-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ================================================================== *
 * 10. Reduced motion — the design's own final rule, plus the states above
 * ================================================================== */
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
	.has-reveal [data-reveal],
	.has-reveal [data-reveal-children] > * {
		opacity: 1 !important;
		transform: none !important;
	}
	.mbf-steps--armed [data-step-dot] { background: var(--mbf-green); color: var(--mbf-bg); }
	.mbf-steps--armed [data-step-line] { transform: scaleX(1); }
}

/* ========================================================================== *
 * 11. Article page components (single.php)
 *     From the individual-post design. Everything here is scoped to the
 *     article page or to a class an editor opts into, so nothing reaches the
 *     rest of the site.
 * ========================================================================== */

/* ---- 11a. Three-column body: sticky TOC | prose | sticky CTA ---- */
.mbf-art {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr) 300px;
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
}
.mbf-art__aside { position: sticky; top: 150px; min-width: 0; max-height: calc(100vh - 180px); overflow-y: auto; scrollbar-width: none; }
.mbf-art__aside::-webkit-scrollbar { display: none; }
.mbf-art__toc { order: 1; }
.mbf-art__body { order: 2; min-width: 0; }
.mbf-art__cta  { order: 3; display: flex; flex-direction: column; gap: 16px; }

/* Below three columns the rails stop being sticky and stack around the prose:
   the TOC above it (still useful), the CTA below it (where it reads as a
   closing offer rather than a sidebar). */
@media (max-width: 1180px) {
	.mbf-art { grid-template-columns: minmax(0, 1fr) 300px; }
	.mbf-art__toc { order: 2; grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 900px) {
	.mbf-art { grid-template-columns: minmax(0, 1fr); }
	.mbf-art__aside { position: static; max-height: none; }
	.mbf-art__toc { order: 1; }
	.mbf-art__body { order: 2; }
	.mbf-art__cta { order: 3; }
}

/* ---- 11b. "On this page" card + reading-progress rail ---- */
.mbf-toc {
	background: #141416;
	border: 1px solid #2a2a2e;
	border-top: 3px solid var(--mbf-green);
	border-radius: 12px;
	padding: 20px 22px 22px;
}
.mbf-toc__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #2a2a2e;
}
.mbf-toc__label { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mbf-green); }
.mbf-toc__pct {
	font-family: 'Bebas Neue', 'Archivo', sans-serif;
	font-size: 22px; line-height: 1; letter-spacing: 0.03em;
	color: var(--mbf-paper); font-variant-numeric: tabular-nums;
}
.mbf-toc__grid { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 16px; }
.mbf-toc__rail { position: relative; border-radius: 100px; background: var(--mbf-bg); border: 1px solid #3a3a40; overflow: hidden; }
.mbf-toc__fill {
	position: absolute; left: 0; right: 0; top: 0; height: 0;
	background: linear-gradient(180deg, #9ed400 0%, #84BD00 40%, #5f8a00 100%);
	transition: height .15s linear;
}
.mbf-toc__dot {
	position: absolute; left: 0; right: 0; top: 0; height: 10px; margin-top: -5px;
	border-radius: 50%; background: #b5e63a; opacity: 0.9; transition: top .15s linear;
}
.mbf-toc__sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent 45%, rgba(0,0,0,0.3)); }
.mbf-toc__list { display: flex; flex-direction: column; }
.mbf-toc__list a {
	font-size: 13.5px; line-height: 1.4; padding: 7px 0;
	color: rgba(245, 243, 238, 0.62); text-decoration: none;
	transition: color .18s ease;
}
.mbf-toc__list a:hover { color: var(--mbf-paper); }
.mbf-toc__list a.is-active { color: var(--mbf-paper); font-weight: 600; }
/* Horizontal rail when the card is stacked rather than beside the prose. */
@media (max-width: 1180px) {
	.mbf-art__toc .mbf-toc__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.mbf-art__toc .mbf-toc__rail { height: 6px; }
	.mbf-art__toc .mbf-toc__fill { top: 0; bottom: 0; right: auto; height: auto !important; width: 0; transition: width .15s linear; }
	.mbf-art__toc .mbf-toc__dot { display: none; }
	.mbf-art__toc .mbf-toc__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 18px; }
}

/* ---- 11c. Sticky CTA card + related services ---- */
.mbf-artcta {
	flex: none; background: var(--mbf-green); color: var(--mbf-bg);
	border-radius: 12px; padding: clamp(24px, 2.4vw, 32px);
}
.mbf-artcta h2, .mbf-artcta h3 {
	font-size: clamp(30px, 2.6vw, 38px); line-height: 0.98; letter-spacing: 0.01em;
	margin: 0 0 12px; text-wrap: balance; color: var(--mbf-bg);
}
.mbf-artcta p { font-size: 15px; line-height: 1.55; color: rgba(12, 12, 14, 0.8); margin: 0 0 20px; }
.mbf-artcta__btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--mbf-bg); color: var(--mbf-paper);
	font-weight: 700; font-size: 15.5px; padding: 15px 22px; border-radius: 7px;
	text-decoration: none; transition: background .18s ease;
}
.mbf-artcta__btn:hover { background: #1a1a1d; color: var(--mbf-paper); }

.mbf-artsvc { flex: none; background: #141416; border: 1px solid #2a2a2e; border-radius: 12px; padding: 18px 22px; }
.mbf-artsvc__label { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 8px; }
.mbf-artsvc a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	color: var(--mbf-paper); font-size: 14.5px; font-weight: 500;
	padding: 10px 0; border-bottom: 1px solid #2a2a2e; text-decoration: none;
	transition: color .18s ease;
}
.mbf-artsvc a:last-child { border-bottom: 0; }
.mbf-artsvc a:hover { color: var(--mbf-green); }

/* ---- 11d. Editor components inside the prose ----
 * Two structures the design repeats. Both are plain markup an editor inserts
 * from the block inserter (see the patterns registered in inc/blocks.php), so
 * article bodies stay in the editor rather than moving into ACF fields.
 */

/* Definition cards: a <dl> of term + explanation. */
.mbf-prose .mbf-defs { display: grid; gap: 14px; margin-top: 1.4em; }
.mbf-prose .mbf-defs > div,
.mbf-prose .mbf-defs > dl {
	background: #141416; border: 1px solid #2a2a2e; border-radius: 10px; padding: 20px 22px;
}
.mbf-prose .mbf-defs dt {
	font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--mbf-green); margin-bottom: 8px;
}
.mbf-prose .mbf-defs dd { font-size: 16px; line-height: 1.65; margin: 0; color: rgba(245, 243, 238, 0.82); }

/* Cause → Effect table: a titled card with two bulleted columns. */
.mbf-prose .mbf-ce {
	background: #141416; border: 1px solid #2a2a2e; border-radius: 12px;
	overflow: hidden; margin-top: 1.6em;
}
.mbf-prose .mbf-ce__head {
	padding: 14px 22px; border-bottom: 1px solid #2a2a2e;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mbf-prose .mbf-ce__title { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mbf-green); margin: 0; }
.mbf-prose .mbf-ce__note { font-size: 12px; color: #FFFFFF; opacity: 0.7; }
.mbf-prose .mbf-ce__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mbf-prose .mbf-ce__col { padding: 20px 22px; }
.mbf-prose .mbf-ce__col + .mbf-ce__col { border-left: 1px solid #2a2a2e; }
.mbf-prose .mbf-ce__col > h3,
.mbf-prose .mbf-ce__col > h4,
.mbf-prose .mbf-ce__col > p:first-child {
	font-family: 'Bebas Neue', 'Archivo', sans-serif; font-weight: 400;
	font-size: 22px; letter-spacing: 0.04em; color: var(--mbf-paper);
	margin: 0 0 12px;
}
.mbf-prose .mbf-ce__col ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 8px;
	font-size: 15px; line-height: 1.5;
}
.mbf-prose .mbf-ce__col li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.mbf-prose .mbf-ce__col li::before {
	content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
	background: var(--mbf-green); margin-top: 9px;
}
/* A narrow screen stacks the columns, so the divider moves to the top edge. */
@media (max-width: 520px) {
	.mbf-prose .mbf-ce__col + .mbf-ce__col { border-left: 0; border-top: 1px solid #2a2a2e; }
}

/* ---- 11e. Lede + article meta ---- */
.mbf-lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--mbf-paper); }
.mbf-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: #FFFFFF; }
.mbf-byline__who { display: inline-flex; align-items: center; gap: 9px; }
.mbf-byline__av {
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--mbf-green); color: var(--mbf-bg);
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 12px;
}
.mbf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(245, 243, 238, 0.6); }
.mbf-crumbs a { color: rgba(245, 243, 238, 0.6); text-decoration: none; }
.mbf-crumbs a:hover { color: var(--mbf-green); }
.mbf-crumbs__sep { opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
	.mbf-toc__fill, .mbf-toc__dot { transition: none; }
}

/* ---- 11f. Legacy figures ----
 * The migrated /technical/ articles carry black-on-white reference charts.
 * On a #0c0c0e page those glare, so they sit on a light card that reads as a
 * deliberate figure rather than a transparent PNG that lost its background.
 */
.mbf-prose .mbf-figure { margin-top: 1.6em; }
.mbf-prose .mbf-figure img {
	display: block; width: 100%; height: auto;
	background: #FFFFFF; border: 1px solid #2a2a2e; border-radius: 10px;
	padding: 12px;
}
.mbf-prose .mbf-figcap {
	font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase;
	font-weight: 700; color: rgba(245, 243, 238, 0.6); text-align: center;
	margin-top: 0.7em;
}

/* Nothing to scroll means nothing to report: the rail and the percentage go,
   the heading list stays. Set by interactions.js. */
.mbf-toc--norail .mbf-toc__pct { display: none; }
.mbf-toc--norail .mbf-toc__rail { display: none; }
.mbf-toc--norail .mbf-toc__grid { grid-template-columns: minmax(0, 1fr); }
/* ------------------------------------------------------------------ *
 * Shared nav width — defined identically in global.css and
 * design-v2.css on purpose.
 *
 * The header used to inherit each skin's page wrapper (.mbf-wrap 1240px /
 * .v2-wrap 1320px), so moving between a v1 page and a v2 page shifted the
 * logo 32px and changed the header height by 16px. The nav is one fixed
 * element across the whole site, so its width is its own, not the page's.
 * Change one copy and you must change the other.
 * ------------------------------------------------------------------ */
.mbf-nav-wrap { max-width: 1320px; margin: 0 auto; width: 100%; }

/* ------------------------------------------------------------------ *
 * FAQ question focus ring
 *
 * PinPoint homepage #4 (Taylro, 2026-10-21): "Can we remove the white box
 * that appears around the questions in the FAQ?" The box is Chrome's default
 * focus ring on the <button>, which renders near-white on this dark panel and
 * sticks after a click. It is not a background — the rows are transparent.
 *
 * Not simply `outline:none`, which would leave keyboard users with no visible
 * focus at all. The click case is suppressed and the keyboard case is given
 * the brand ring instead.
 * ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ *
 * No white focus outline. Anywhere.
 *
 * Beaver Builder's 9-layout.css ships:
 *   :where(.fl-builder-content, .fl-page)
 *   :is(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus
 *   { outline-style: solid; outline-width: 2px; outline-offset: 2px; }
 *
 * It sets no colour, so the outline falls back to currentColor — which on
 * this site's dark panels is #F5F3EE. That is the white box the client
 * reported on the FAQ (PinPoint homepage #4), and it is not FAQ-specific: it
 * hits every link and button inside Beaver Builder content.
 *
 * A plain `.mbf-faq__q:focus` override loses to it — :is() takes the highest
 * specificity among its arguments, and a[href] carries an attribute selector,
 * so BB's rule scores (0,2,1) against (0,2,0). The `body` prefix below wins
 * on specificity rather than relying on stylesheet order, and !important
 * holds the line against a plugin stylesheet we do not control.
 *
 * Mouse and touch focus get nothing; keyboard focus keeps a green ring, so
 * this is not an accessibility regression.
 * ------------------------------------------------------------------ */
body :is(a[href], button, summary, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none !important;
}
body :is(a[href], button, summary, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 2px solid var(--mbf-green) !important;
	outline-offset: 2px;
}

/* ================================================================== *
 * reCAPTCHA v3 — badge hidden (required attribution is printed under
 *   each form by the do_shortcode_tag filter in functions.php). The
 *   floating badge is position:fixed on <body> and was overlapping the
 *   Send Message button on the dark form.
 * ================================================================== */
.grecaptcha-badge { visibility: hidden !important; }
.mbf-recaptcha-note {
	margin: 12px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--mbf-muted, #8a8a90);
}
.mbf-recaptcha-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mbf-recaptcha-note a:hover { color: var(--mbf-green, #84BD00); }
