/*
 * Micro Filer design system v3, "Ledger".
 * Editorial and quietly premium: warm paper and deep ink, a serif display
 * face (Fraunces) over Inter, hairline rules instead of shadows, numbered
 * section labels, and dark ink kept for a few deliberate moments (service
 * heroes, the quote band, the featured package, the footer).
 * Loads last. Spec: design/design-system-v3.md.
 */

/* ==================================================================
 * 1. Tokens (semantic, shadcn-style; the --mf-* names used by modern.css
 *    are re-pointed here so every component picks the system up)
 * ================================================================== */
:root {
	/* Colour */
	--mf-bg: #ffffff;
	--mf-paper: #f7f5f0;
	--mf-paper-2: #efebe2;
	--mf-fg: #1a1f24;
	--mf-ink: #0e2a3b;
	--mf-ink-2: #0b2231;
	--mf-muted-fg: #56656f;
	--mf-rule: #e4dfd4;
	--mf-rule-strong: #cdc6b6;
	--mf-accent: #00b0f0;
	--mf-act: #00729c;
	--mf-act-strong: #0b5c7a;
	--mf-ring: #00729c;
	--mf-on-ink: #ffffff;
	--mf-on-ink-muted: #b9ccd6;
	--mf-highlight-bg: rgb(0 176 240 / .26);

	/* Re-pointed v2 tokens */
	--mf-bg-soft: var(--mf-paper);
	--mf-line-soft: var(--mf-rule);
	--mf-text-soft: var(--mf-muted-fg);
	--mf-tint: #eef7fa;
	--mf-ink-deep: var(--mf-ink-2);
	--mf-ink-bg: radial-gradient(55% 80% at 92% 0%, rgb(0 176 240 / .16), transparent 62%), linear-gradient(180deg, #0e2a3b 0%, #0b2231 100%);
	--mf-grid-lines: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px);
	--mf-ledger-lines: repeating-linear-gradient(180deg, transparent 0 39px, rgb(14 42 59 / .07) 39px 40px);

	/* Radius: small and consistent */
	--mf-r-sm: 6px;
	--mf-r-md: 10px;
	--mf-r-lg: 14px;
	--mf-radius-control: 8px;

	/* Elevation: hairlines first, shadow only for overlays and the one hero object */
	--mf-shadow-1: 0 1px 0 rgb(14 42 59 / .03);
	--mf-shadow-2: 0 1px 2px rgb(14 42 59 / .05), 0 22px 48px -22px rgb(14 42 59 / .30);
	--mf-shadow-pop: 0 2px 6px rgb(14 42 59 / .06), 0 30px 70px -28px rgb(14 42 59 / .40);

	/* Type */
	--mf-font-display: var(--wp--preset--font-family--fraunces, Fraunces, Georgia, serif);
	--mf-font-ui: var(--wp--preset--font-family--inter, Inter, system-ui, sans-serif);
	--mf-step-6: clamp(2.5rem, 1.35rem + 4.4vw, 4.5rem);   /* display */
	--mf-step-5: clamp(2.125rem, 1.4rem + 2.9vw, 3.5rem);  /* page H1 */
	--mf-step-4: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem); /* section H2 */
	--mf-step-3: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); /* card display */
	--mf-step-2: 1.25rem;
	--mf-step-1: 1.125rem;

	/* Space */
	--mf-pad-section: clamp(3.5rem, 7vw, 6.5rem);
	--mf-gutter: clamp(1rem, 3vw, 1.5rem);

	/* Motion */
	--mf-ease: cubic-bezier(.2, .7, .2, 1);
	--mf-dur-1: 120ms;
	--mf-dur-2: 200ms;
	--mf-dur-3: 600ms;
}

/* ==================================================================
 * 2. Base
 * ================================================================== */
body { background: var(--mf-bg); color: var(--mf-fg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: var(--mf-highlight-bg); color: var(--mf-ink); }
:where(h1, h2, .wp-block-post-title, .wp-block-query-title) { font-family: var(--mf-font-display); font-weight: 600; text-wrap: balance; }
:where(h3, h4, h5, h6) { font-family: var(--mf-font-ui); }
:where(p, li) { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--mf-ring); outline-offset: 2px; }
:where(.mf-button, .mf-link, .mf-faq__q, .mf-choice input, .mf-field :is(input, select, textarea), .wp-block-button__link):focus-visible { outline: 2px solid var(--mf-ring) !important; outline-offset: 2px !important; }

/* Display numerals and headings that modern.css set via a "heading" variable. */
:is(.mf-timeline > li, .is-style-steps > li)::before, .mf-steps__num, .mf-toc__list a::before, .mf-quote__steps > li::before { font-family: var(--mf-font-display) !important; font-weight: 600 !important; }

/* Section headings */
.mf-section__inner > .wp-block-heading:not(h3), .mf-section-title, :is(.mf-section--faqs, .mf-service__body, .mf-page-body) .mf-faqs > h2, .mf-service__body :is(.mf-block__heading, .mf-facts__section > h2, .mf-related h2), .mf-assistant__title, .mf-lead__title {
	font-family: var(--mf-font-display) !important; font-weight: 600 !important; letter-spacing: -.022em !important; line-height: 1.08 !important;
}
.mf-section__inner > .wp-block-heading:not(h3) { font-size: var(--mf-step-4) !important; max-width: 20ch; }
.mf-section-lead { color: var(--mf-muted-fg); }

/* ==================================================================
 * 3. Section label: numbered editorial index (replaces pill eyebrows)
 * ================================================================== */
main { counter-reset: mfsec; }
.mf-eyebrow {
	counter-increment: mfsec;
	display: flex !important; align-items: center; gap: .875rem; width: 100%; max-width: 30rem;
	margin: 0 0 1.25rem !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important;
	color: var(--mf-muted-fg) !important; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.mf-eyebrow::before { content: counter(mfsec, decimal-leading-zero) !important; display: inline !important; width: auto !important; height: auto !important; border-radius: 0 !important; background: none !important; color: var(--mf-act); font-family: var(--mf-font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.mf-eyebrow::after { content: ""; flex: 1; height: 1px; min-width: 2rem; background: var(--mf-rule-strong); }
.mf-hero .mf-eyebrow { counter-increment: none; }
.mf-hero .mf-eyebrow::before { content: "" !important; width: 1.75rem !important; height: 2px !important; background: var(--mf-accent) !important; }
.mf-hero .mf-eyebrow::after { display: none; }
:is([id="get-a-quote"], .mf-section--quote, .mf-section--ink) .mf-eyebrow { color: var(--mf-on-ink-muted) !important; }
:is([id="get-a-quote"], .mf-section--quote, .mf-section--ink) .mf-eyebrow::before { color: var(--mf-accent); }
:is([id="get-a-quote"], .mf-section--quote, .mf-section--ink) .mf-eyebrow::after { background: rgb(255 255 255 / .2); }

/* ==================================================================
 * 4. Buttons (variants: default, outline, ghost/link; sizes via plugin --small)
 * ================================================================== */
.wp-block-button__link, .mf-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .75rem 1.375rem !important; border-radius: var(--mf-radius-control) !important; border-width: 1px !important; border-style: solid;
	font-family: var(--mf-font-ui); font-weight: 600; letter-spacing: -.005em; line-height: 1.2; text-decoration: none;
	box-shadow: none !important; transform: none !important;
	transition: background-color var(--mf-dur-2) var(--mf-ease), color var(--mf-dur-2) var(--mf-ease), border-color var(--mf-dur-2) var(--mf-ease);
}
.mf-button--small { min-height: 44px; padding: .5rem 1rem !important; }
/* Primary buttons carry a small arrow that nudges on hover. */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after, .mf-button--primary:not(.mf-button--small)::after {
	content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
	-webkit-mask: var(--mf-ic-arrow) center / contain no-repeat; mask: var(--mf-ic-arrow) center / contain no-repeat;
	transition: transform var(--mf-dur-2) var(--mf-ease);
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::after, .mf-button--primary:hover::after { transform: translateX(3px); }

/* On ink: cyan primary, light outline. */
/* Forms inside ink sections are white cards: reset their buttons to the light scheme. */

/* Header CTA */
.mf-header__cta .wp-block-button__link { min-height: 42px; padding: .5rem 1rem !important; font-size: .9375rem; }
.mf-header__cta .wp-block-button__link::after { display: none; }
.mf-nav .wp-block-navigation__responsive-container.is-menu-open .mf-nav-cta > .wp-block-navigation-item__content { border-radius: var(--mf-radius-control) !important; background: var(--mf-ink) !important; color: #fff !important; }

/* ==================================================================
 * 5. Inputs (shadcn-style: hairline, 8px radius, soft focus ring)
 * ================================================================== */
:is(.mf-lead, .mf-assistant, .mf-finder, .wp-block-search) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea) {
	min-height: 48px; border: 1px solid var(--mf-rule-strong) !important; border-radius: var(--mf-radius-control) !important; background: var(--mf-card); color: var(--mf-fg); font: inherit;
	transition: border-color var(--mf-dur-2) var(--mf-ease), box-shadow var(--mf-dur-2) var(--mf-ease);
}
:is(.mf-lead, .mf-assistant, .mf-finder, .wp-block-search) :is(input, select, textarea):hover { border-color: #a99f8b !important; }
:is(.mf-lead, .mf-assistant, .mf-finder, .wp-block-search) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea):focus { outline: none !important; border-color: var(--mf-act) !important; box-shadow: 0 0 0 3px rgb(0 114 156 / .22); }
.mf-field--error :is(input, select, textarea) { border-color: var(--wp--preset--color--error, #b42318) !important; }
.mf-choice label, .mf-finder__option label { border-radius: var(--mf-radius-control) !important; border-width: 1px !important; box-shadow: none !important; transform: none !important; }
.mf-choice label:hover, .mf-finder__option label:hover { border-color: var(--mf-ink) !important; background: var(--mf-paper) !important; }
.mf-choice input:checked + label, .mf-finder__option input:checked + label { border-color: var(--mf-ink) !important; background: var(--mf-card) !important; box-shadow: inset 0 0 0 1px var(--mf-ink) !important; }
.mf-lead__tabs { border-radius: 10px !important; padding: 4px !important; background: var(--mf-paper) !important; border-color: var(--mf-rule) !important; }
.mf-lead__tab { border-radius: 7px !important; min-height: 40px !important; }
.mf-lead__tab[aria-selected="true"], .mf-lead__tab[aria-current="true"] { background: var(--mf-card) !important; color: var(--mf-ink) !important; box-shadow: 0 1px 2px rgb(14 42 59 / .12), 0 0 0 1px var(--mf-rule) !important; }

/* ==================================================================
 * 6. Surfaces: cards become hairline objects; shared icon tile
 * ================================================================== */
.mf-section--subtle { background: var(--mf-paper) !important; }
.mf-has-ic::before, .mf-ic-dot { background: var(--mf-paper) !important; border: 1px solid var(--mf-rule); border-radius: 10px !important; width: 44px !important; height: 44px !important; box-shadow: none !important; }
.mf-has-ic::after { background: var(--mf-act) !important; }
.mf-card__icon, .mf-card--service .mf-card__icon { width: 44px !important; height: 44px !important; border-radius: 10px !important; background: var(--mf-paper) !important; border: 1px solid var(--mf-rule); color: var(--mf-act) !important; box-shadow: none !important; }

/* Spotlight (pointer light on interactive cards; see ui.js) */
@media (hover: hover) and (pointer: fine) {
	:is(.mf-card--service, .mf-benefit, .mf-package:not(.mf-package--featured), .mf-post-card, .mf-link-tiles a, .mf-spot) { background-image: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgb(0 176 240 / .07), transparent 65%) !important; }
}

/* ==================================================================
 * 7. Homepage
 * ================================================================== */
/* Hero: paper, editorial headline, a filing "sheet" as the one elevated object. */
.mf-hero { background: var(--mf-paper) !important; color: var(--mf-fg); border-bottom: 1px solid var(--mf-rule); padding-block: clamp(3rem, 7vw, 6.5rem) clamp(5.5rem, 10vw, 8.5rem) !important; }
.mf-hero::before { background: radial-gradient(42% 60% at 100% 0%, rgb(0 176 240 / .10), transparent 70%) !important; }
.mf-hero::after { background-image: var(--mf-ledger-lines) !important; background-size: auto !important; -webkit-mask: linear-gradient(90deg, transparent 35%, #000 75%) !important; mask: linear-gradient(90deg, transparent 35%, #000 75%) !important; }
.mf-hero .mf-eyebrow { color: var(--mf-ink) !important; }
.mf-hero__title { color: var(--mf-ink) !important; font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: var(--mf-step-6) !important; line-height: 1.02 !important; letter-spacing: -.028em !important; max-width: 15ch !important; }
.mf-highlight { color: inherit !important; -webkit-text-fill-color: currentColor; background: linear-gradient(180deg, transparent 64%, var(--mf-highlight-bg) 64%, var(--mf-highlight-bg) 90%, transparent 90%) !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; padding: 0 .04em; }
.mf-hero .mf-lead { color: var(--mf-muted-fg) !important; }
.mf-indicators > li { background: none !important; border: 0 !important; padding: 0 0 0 1.5rem !important; color: var(--mf-fg) !important; font-weight: 500 !important; position: relative; }
.mf-indicators > li::before { position: absolute !important; left: 0; top: 50%; transform: translateY(-50%); background-color: var(--mf-act) !important; }
.mf-indicators { gap: .5rem 1.5rem !important; }

.mf-hero .mf-panel { background: var(--mf-card) !important; border: 1px solid var(--mf-rule) !important; border-radius: var(--mf-r-lg) !important; box-shadow: var(--mf-shadow-pop) !important; color: var(--mf-fg); padding: clamp(1.25rem, 2.6vw, 1.75rem) !important; }
.mf-hero .mf-panel::before { display: none; }
.mf-hero .mf-panel::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -8px; height: 8px; border: 1px solid var(--mf-rule); border-top: 0; border-radius: 0 0 12px 12px; background: var(--mf-muted-soft); }
.mf-panel__title { color: var(--mf-ink) !important; font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: 1.375rem !important; padding-bottom: .875rem; border-bottom: 1px solid var(--mf-rule); }
.mf-panel__links { gap: 0 !important; }
.mf-panel__links a, .mf-panel__links a:visited { color: var(--mf-ink) !important; background: none !important; border: 0 !important; border-bottom: 1px solid var(--mf-rule) !important; border-radius: 0 !important; min-height: 60px; padding: .5rem .25rem !important; transform: none !important; }
.mf-panel__links li:last-child a { border-bottom: 0 !important; }
.mf-panel__links a:hover { background: var(--mf-paper) !important; }
.mf-panel__links a::before { background: var(--mf-paper) !important; box-shadow: inset 0 0 0 1px var(--mf-rule) !important; border-radius: 8px !important; }
.mf-panel__links li::after { background: var(--mf-act) !important; left: calc(.25rem + 8px) !important; }
.mf-panel__links a::after { background: var(--mf-muted-fg) !important; }
.mf-panel__note { background: var(--mf-paper) !important; border: 1px solid var(--mf-rule) !important; color: var(--mf-fg) !important; border-radius: 10px !important; }
.mf-panel__note::before { background: var(--mf-act) !important; }

/* Trust card under the hero */
.mf-trust-row { border-radius: var(--mf-r-lg) !important; box-shadow: var(--mf-shadow-2) !important; border-color: var(--mf-rule) !important; }
.mf-trust-row li::before { background: var(--mf-paper) !important; border: 1px solid var(--mf-rule); border-radius: 10px !important; }

/* Service marquee (Magic UI-style band, pausable) */
.mf-marquee { position: relative; margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.125rem; border-block: 1px solid var(--mf-rule); }
.mf-marquee__viewport { display: flex; overflow: hidden; }
.mf-marquee__list { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin: 0; padding: 0; list-style: none; }
.mf-marquee__list--clone { display: none; }
.mf-marquee__item { display: inline-flex; align-items: center; gap: 2.25rem; white-space: nowrap; }
.mf-marquee__item a { color: var(--mf-ink); font-family: var(--mf-font-display); font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -.015em; text-decoration: none; }
.mf-marquee__item a:hover { color: var(--mf-act); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.mf-marquee__item::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--mf-accent); }
.mf-marquee.is-animated .mf-marquee__viewport { -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding-right: 3rem; }
.mf-marquee.is-animated .mf-marquee__list { flex-wrap: nowrap; padding-right: 2.25rem; animation: mf-marquee 48s linear infinite; }
.mf-marquee.is-animated .mf-marquee__list--clone { display: flex; }
.mf-marquee.is-animated:hover .mf-marquee__list, .mf-marquee.is-paused .mf-marquee__list, .mf-marquee.is-focus-paused .mf-marquee__list { animation-play-state: paused; }
@keyframes mf-marquee { to { transform: translateX(-100%); } }
.mf-marquee__toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 1px solid var(--mf-rule-strong); border-radius: 8px; background: var(--mf-card); cursor: pointer; }
.mf-marquee__toggle::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 12px; border-inline: 3px solid var(--mf-ink); box-sizing: border-box; }
.mf-marquee__toggle[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-left: 10px solid var(--mf-ink); border-block: 6px solid transparent; margin-left: 14px; }
.mf-marquee__toggle:hover { border-color: var(--mf-ink); }

/* Finder */
.mf-finder__result { border-radius: var(--mf-r-lg) !important; }

/* Services: one ruled grid (not a pile of cards). */
.mf-service-grid .mf-cards { gap: 0 !important; border-top: 1px solid var(--mf-rule); border-left: 1px solid var(--mf-rule); border-radius: var(--mf-r-lg); overflow: hidden; background: var(--mf-card); }
.mf-card--service { border: 0 !important; border-right: 1px solid var(--mf-rule) !important; border-bottom: 1px solid var(--mf-rule) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; background-color: var(--mf-card); padding: 1.75rem 1.75rem 4rem !important; }
.mf-card--service:hover { box-shadow: none !important; background-color: var(--mf-muted-soft); }
.mf-card--service .mf-card__title { font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: var(--mf-step-2) !important; letter-spacing: -.015em !important; line-height: 1.2; }
.mf-card--service .mf-card__title a { color: var(--mf-ink); }
.mf-card--service::after { border-radius: 8px !important; background-color: var(--mf-paper) !important; border: 1px solid var(--mf-rule); }
.mf-card--service:hover::after { background-color: var(--mf-ink) !important; border-color: var(--mf-ink); }
.mf-card--service:hover::before { background: var(--mf-card) !important; }
.mf-card__suits { background: var(--mf-paper) !important; border: 1px solid var(--mf-rule); }
.home .mf-service-grid .mf-card:first-child { background: var(--mf-paper) !important; background-image: var(--mf-ledger-lines) !important; }
.home .mf-service-grid .mf-card:first-child .mf-card__title a { color: var(--mf-ink) !important; }
.home .mf-service-grid .mf-card:first-child .mf-card__title { font-size: var(--mf-step-4) !important; max-width: 16ch; line-height: 1.08; }
.home .mf-service-grid .mf-card:first-child .mf-card__text { color: var(--mf-muted-fg) !important; }
.home .mf-service-grid .mf-card:first-child .mf-card__suits { background: var(--mf-card) !important; color: var(--mf-muted-fg) !important; }
.home .mf-service-grid .mf-card:first-child .mf-card__suits strong, .home .mf-service-grid .mf-card:first-child .mf-card__benefit { color: var(--mf-ink) !important; }
.home .mf-service-grid .mf-card:first-child .mf-card__benefit::before { background: var(--wp--preset--color--success, #1f7a4d) !important; }
.home .mf-service-grid .mf-card:first-child .mf-card__icon { background: var(--mf-ink) !important; color: var(--mf-accent) !important; border-color: var(--mf-ink); }
.home .mf-service-grid .mf-card:first-child::before { background: var(--mf-act) !important; }
.home .mf-service-grid .mf-card:first-child::after { background-color: var(--mf-card) !important; }
.home .mf-service-grid .mf-card:first-child:hover::after { background-color: var(--mf-ink) !important; }
.home .mf-service-grid .mf-card:first-child:hover::before { background: var(--mf-card) !important; }

/* Who we help: pull quotes on rules, no boxes. */
.mf-situations { gap: 2.5rem 2rem !important; }
.mf-situation { background: none !important; border: 0 !important; border-top: 2px solid var(--mf-ink) !important; border-radius: 0 !important; box-shadow: none !important; padding: 1.25rem 0 0 !important; transform: none !important; }
.mf-situation.mf-has-ic::before, .mf-situation.mf-has-ic::after { display: none !important; }
.mf-situation__title { font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: var(--mf-step-3) !important; line-height: 1.2 !important; letter-spacing: -.018em !important; color: var(--mf-ink); margin-bottom: .75rem !important; }
.mf-situation p { color: var(--mf-muted-fg); }
.mf-situation .mf-arrow-link { margin-top: auto !important; padding-top: .875rem; }

/* Packages: hairline cards; the featured one is ink with a single border sweep. */
.mf-package { border-radius: var(--mf-r-lg) !important; box-shadow: none !important; border-color: var(--mf-rule) !important; }
.mf-package__name { font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: var(--mf-step-2) !important; letter-spacing: -.015em !important; }
.mf-package__price { border-radius: 10px !important; border: 1px solid var(--mf-rule); background: var(--mf-paper) !important; }
.mf-package--featured { background: var(--mf-ink-2) !important; background-image: var(--mf-ink-bg) !important; box-shadow: var(--mf-shadow-pop) !important; }
.mf-package--featured .mf-package__price { border-color: rgb(255 255 255 / .14); background: rgb(255 255 255 / .06) !important; }
@property --mf-beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.mf-package--featured::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--mf-beam), transparent 0deg 300deg, var(--mf-accent) 340deg, transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: mf-beam 4.5s var(--mf-ease) .6s 1 both; opacity: .9; }
@keyframes mf-beam { from { --mf-beam: 0deg; } to { --mf-beam: 360deg; } }

/* What's included: columns divided by rules. */
.mf-included { gap: 0 !important; }
.mf-included__col { background: transparent !important; border: 0 !important; border-left: 1px solid var(--mf-rule) !important; border-radius: 0 !important; box-shadow: none !important; padding: .25rem clamp(1rem, 2.5vw, 2rem) !important; }
.mf-included__col:first-child { border-left: 0 !important; padding-left: 0 !important; }
.mf-included__col::before { display: none !important; }
.mf-included__title { font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: var(--mf-step-2) !important; letter-spacing: -.015em; padding-bottom: .75rem; border-bottom: 2px solid var(--mf-ink); }

/* Quote band (ink) */
#get-a-quote::after { opacity: .6; }
#get-a-quote .mf-quote__aside h2 { font-family: var(--mf-font-display); font-weight: 600; font-size: var(--mf-step-4); }
.mf-quote__steps > li { background: transparent !important; border: 0 !important; border-top: 1px solid rgb(255 255 255 / .16) !important; border-radius: 0 !important; padding: 1rem 0 !important; }
.mf-quote__steps > li::before { background: none !important; color: var(--mf-accent) !important; font-size: 1.5rem !important; width: auto !important; height: auto !important; }
.mf-quote__form .mf-lead { border-radius: var(--mf-r-lg) !important; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .55) !important; }

/* Steps: numbered ledger columns on a shared rule (home, how it works, services). */
.mf-timeline > li, .is-style-steps > li, .mf-steps__item { background: transparent !important; border: 0 !important; border-top: 1px solid var(--mf-rule-strong) !important; border-radius: 0 !important; box-shadow: none !important; padding: 1.25rem 1rem 0 0 !important; }
.mf-timeline > li::before, .is-style-steps > li::before, .mf-steps__num { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--mf-act) !important; font-size: clamp(2.5rem, 4vw, 3.25rem) !important; letter-spacing: -.03em !important; }
.mf-timeline > li, .is-style-steps > li, .mf-steps__item { position: relative; }
.mf-timeline > li::after, .is-style-steps > li::after, .mf-steps__item::after { content: "" !important; display: block !important; position: absolute !important; top: -4px !important; left: 0 !important; width: 7px !important; height: 7px !important; border-radius: 0 !important; background: var(--mf-accent) !important; transform: rotate(45deg); }

/* Benefits: same ruled grid language as services. */
.mf-benefits { gap: 0 !important; border-top: 1px solid var(--mf-rule); border-left: 1px solid var(--mf-rule); border-radius: var(--mf-r-lg); overflow: hidden; background: var(--mf-card); }
.mf-benefit { background: var(--mf-card) !important; border: 0 !important; border-right: 1px solid var(--mf-rule) !important; border-bottom: 1px solid var(--mf-rule) !important; border-radius: 0 !important; box-shadow: none !important; padding: 1.75rem !important; color: var(--mf-fg) !important; background-image: none; }
.mf-benefit:first-child { background: var(--mf-paper) !important; background-image: var(--mf-ledger-lines) !important; }
.mf-benefit:first-child :is(h3, p) { color: inherit !important; }
.mf-benefit h3 { font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: var(--mf-step-2) !important; letter-spacing: -.015em !important; color: var(--mf-ink) !important; }
.mf-benefit:first-child h3 { font-size: var(--mf-step-3) !important; }
.mf-benefit p { color: var(--mf-muted-fg) !important; }
.mf-benefit:first-child::before { background: var(--mf-ink) !important; border-color: var(--mf-ink) !important; }
.mf-benefit:first-child::after { background: var(--mf-accent) !important; }

/* Deadlines: a ledger table with one paper callout. */
.mf-deadlines table { border-spacing: 0 !important; border-top: 1px solid var(--mf-rule) !important; }
.mf-deadlines tr { background: transparent !important; box-shadow: none !important; }
.mf-deadlines td { border-bottom: 1px solid var(--mf-rule) !important; border-radius: 0 !important; }
.mf-deadlines td:first-child::before { background: var(--mf-paper) !important; border: 1px solid var(--mf-rule); border-radius: 8px !important; }
.mf-callout { background: var(--mf-paper) !important; color: var(--mf-fg) !important; border: 1px solid var(--mf-rule) !important; border-top: 3px solid var(--mf-ink) !important; border-radius: 0 0 var(--mf-r-lg) var(--mf-r-lg) !important; box-shadow: none !important; }
.mf-callout::before { display: none !important; }
.mf-callout::after { background: var(--mf-act) !important; opacity: .5; }
.mf-callout h3 { color: var(--mf-ink) !important; font-family: var(--mf-font-display) !important; font-weight: 600 !important; }
.mf-callout p { color: var(--mf-muted-fg) !important; }

/* Guides: paper "notebook" headers instead of dark tiles. */
.mf-guide-card, .mf-post-card { border-radius: var(--mf-r-lg) !important; box-shadow: none !important; transform: none !important; border-color: var(--mf-rule) !important; }
.mf-guide-card:hover, .mf-post-card:hover { border-color: var(--mf-ink) !important; box-shadow: none !important; }
.mf-guide-card::before, .mf-post-card:not(:has(.wp-block-post-featured-image img))::before { background: var(--mf-paper) !important; background-image: repeating-linear-gradient(180deg, transparent 0 17px, rgb(14 42 59 / .08) 17px 18px), linear-gradient(90deg, transparent 22px, rgb(0 176 240 / .35) 22px 23px, transparent 23px) !important; border-bottom: 1px solid var(--mf-rule); }
.mf-guide-card__topic { background: var(--mf-card) !important; border: 1px solid var(--mf-rule) !important; color: var(--mf-ink) !important; border-radius: 6px !important; }
.mf-guide-card__title, .mf-post-card .wp-block-post-title { font-family: var(--mf-font-display) !important; font-weight: 600 !important; letter-spacing: -.012em !important; }
.mf-post-card .mf-article__cat a { border-radius: 6px !important; background: var(--mf-paper) !important; border: 1px solid var(--mf-rule); color: var(--mf-ink) !important; }

/* FAQs: accordion rows. */
.mf-faq { border: 0 !important; border-bottom: 1px solid var(--mf-rule) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.mf-faqs > .mf-faq:first-of-type, .mf-faqs > h2 + .mf-faq { border-top: 1px solid var(--mf-rule) !important; }
.mf-faq__q { padding: 1.25rem 3rem 1.25rem 0 !important; font-size: 1.0625rem !important; font-weight: 600; color: var(--mf-ink); }
.mf-faq__q:hover { color: var(--mf-act); }
.mf-faq__q::after { right: 0 !important; background: transparent !important; border: 1px solid var(--mf-rule-strong) !important; border-radius: 8px !important; }
.mf-faq__q::before { right: 7px !important; background: var(--mf-ink) !important; }
.mf-faq[open] .mf-faq__q::after { background: var(--mf-ink) !important; border-color: var(--mf-ink) !important; }
.mf-faq[open] .mf-faq__q::before { background: var(--mf-card) !important; }
.mf-faq__a { padding: 0 3rem 1.5rem 0 !important; }
.mf-faq__q::-webkit-details-marker { display: none; }

/* Final CTA: a paper letter, not another dark band before the footer. */
#get-started { background: var(--mf-paper) !important; border-top: 1px solid var(--mf-rule); }
#get-started::before { background: none !important; }
#get-started::after { background-image: var(--mf-ledger-lines) !important; background-size: auto !important; -webkit-mask: radial-gradient(ellipse 60% 80% at 50% 50%, #000 10%, transparent 75%) !important; mask: radial-gradient(ellipse 60% 80% at 50% 50%, #000 10%, transparent 75%) !important; }
#get-started .mf-section__inner > h2 { color: var(--mf-ink) !important; font-size: var(--mf-step-5) !important; }
#get-started .mf-lead { color: var(--mf-muted-fg) !important; }
#get-started .mf-cta-points { color: var(--mf-fg) !important; }
#get-started .mf-cta-points > li::before { background-color: var(--mf-act) !important; }

/* Footer */
.mf-footer::before { background: radial-gradient(45% 80% at 100% 0%, rgb(0 176 240 / .10), transparent 62%) !important; }
.mf-footer__brand { font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: 1.625rem !important; }
.mf-footer__heading { font-family: var(--mf-font-ui) !important; }

/* ==================================================================
 * 8. Inner pages: light editorial hero by default; ink for service pages
 * ================================================================== */
.mf-page-hero { background: var(--mf-paper) !important; color: var(--mf-fg) !important; border-bottom: 1px solid var(--mf-rule); }
.mf-page-hero::before { background: radial-gradient(40% 80% at 100% 0%, rgb(0 176 240 / .09), transparent 70%) !important; }
.mf-page-hero::after { background-image: var(--mf-ledger-lines) !important; background-size: auto !important; -webkit-mask: linear-gradient(90deg, transparent 45%, #000 85%) !important; mask: linear-gradient(90deg, transparent 45%, #000 85%) !important; }
.mf-page-hero :is(h1, .wp-block-post-title, .wp-block-query-title) { color: var(--mf-ink) !important; font-size: var(--mf-step-5) !important; letter-spacing: -.026em !important; line-height: 1.04 !important; }
.mf-page-intro, .mf-page-hero .wp-block-term-description { color: var(--mf-muted-fg) !important; }
.mf-page-hero .mf-breadcrumbs a { color: var(--mf-act) !important; }
.mf-page-hero .mf-breadcrumbs [aria-current] { color: var(--mf-muted-fg) !important; }
.mf-page-hero .mf-breadcrumbs li:not(:last-child)::after { color: var(--mf-rule-strong) !important; }
.mf-page-hero :focus-visible { outline-color: var(--mf-ring) !important; }
.mf-hero-search .wp-block-search__inside-wrapper { background: var(--mf-card) !important; border: 1px solid var(--mf-rule-strong) !important; border-radius: 12px !important; padding: 4px !important; }
.mf-hero-search .wp-block-search__input { border: 0 !important; border-radius: 8px !important; box-shadow: none !important; }
.mf-hero-search .wp-block-search__button { border-radius: 8px !important; background: var(--mf-ink) !important; color: #fff !important; }
.mf-hero-search .wp-block-search__button:hover { background: var(--mf-act-strong) !important; }
.mf-legal .mf-page-hero .mf-legal__meta, .mf-page-hero--article .mf-article__meta { color: var(--mf-muted-fg) !important; }
.mf-page-hero--article .mf-article__meta > *::before { background: var(--mf-act) !important; }
.mf-page-hero--article .mf-article__cat a { background: var(--mf-card) !important; border: 1px solid var(--mf-rule) !important; color: var(--mf-ink) !important; border-radius: 6px !important; }
.mf-page-hero--article :is(h1, .wp-block-post-title) { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem) !important; max-width: 24ch !important; }
.mf-404__code { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: transparent !important; -webkit-text-stroke: 1.5px var(--mf-ink); font-family: var(--mf-font-display) !important; font-weight: 600 !important; letter-spacing: -.04em !important; }

/* Service pages keep the ink hero, with a white price sheet as its object. */
.mf-service-hero.mf-page-hero { background: var(--mf-ink-2) !important; color: #fff !important; border-bottom: 0; }
.mf-service-hero.mf-page-hero::before { background: var(--mf-ink-bg) !important; }
.mf-service-hero.mf-page-hero::after { background-image: var(--mf-grid-lines) !important; background-size: 56px 56px !important; -webkit-mask: radial-gradient(ellipse 80% 95% at 82% 10%, #000 20%, transparent 75%) !important; mask: radial-gradient(ellipse 80% 95% at 82% 10%, #000 20%, transparent 75%) !important; }
.mf-service-hero :is(h1, .wp-block-post-title) { color: #fff !important; }
.mf-service-hero .mf-page-intro { color: var(--mf-muted-fg) !important; }
.mf-service-hero .mf-breadcrumbs a { color: #8fdcf7 !important; }
.mf-service-hero .mf-breadcrumbs [aria-current] { color: var(--mf-on-ink-muted) !important; }
.mf-service-hero .mf-breadcrumbs li:not(:last-child)::after { color: rgb(255 255 255 / .35) !important; }
.mf-service-hero :focus-visible { outline-color: var(--mf-accent) !important; }
.mf-page-hero .mf-price-card { background: var(--mf-card) !important; color: var(--mf-fg) !important; border: 1px solid #fff !important; border-radius: var(--mf-r-lg) !important; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .6) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mf-page-hero .mf-price-card::before { display: none; }
.mf-page-hero .mf-price-card::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -8px; height: 8px; border-radius: 0 0 12px 12px; background: rgb(255 255 255 / .55); }
.mf-page-hero .mf-price-card__label { color: var(--mf-act) !important; }
.mf-page-hero .mf-price-card__price { color: var(--mf-ink) !important; font-family: var(--mf-font-display); font-weight: 600; }
.mf-page-hero .mf-price-card__price.mf-price--pending::before { background: var(--mf-act) !important; }
.mf-page-hero .mf-price-card__band { color: var(--mf-muted-fg) !important; }
.mf-page-hero .mf-price-card__facts { border-color: var(--mf-rule) !important; }
.mf-page-hero .mf-price-card__facts li { color: var(--mf-fg) !important; }
.mf-page-hero .mf-price-card__facts .mf-icon { color: var(--mf-act) !important; }
.mf-page-hero .mf-price-card :focus-visible { outline-color: var(--mf-ring) !important; }

/* Inner components on the system */
.mf-facts__section { border-radius: var(--mf-r-lg) !important; box-shadow: none !important; }
.mf-facts__section .mf-columns > div:first-child { background: var(--mf-muted-soft) !important; border: 1px solid var(--mf-rule); }
.mf-facts__section .mf-columns > div { background: var(--mf-paper) !important; border-radius: 10px !important; }
.mf-table-wrap { border-radius: var(--mf-r-lg) !important; box-shadow: none !important; }
.mf-table thead th { background: var(--mf-paper) !important; }
.mf-table .mf-price--pending, .mf-inner .mf-card__price { background: var(--mf-paper) !important; border: 1px solid var(--mf-rule); color: var(--mf-ink) !important; border-radius: 6px !important; }
.mf-table .mf-price--pending::before { background: var(--mf-act) !important; }
.mf-table .mf-link { border-radius: 8px !important; border: 1px solid var(--mf-rule-strong) !important; color: var(--mf-ink) !important; }
.mf-table .mf-link:hover { background: var(--mf-ink) !important; border-color: var(--mf-ink) !important; color: #fff !important; }
.mf-pricing__service { font-family: var(--mf-font-display) !important; font-weight: 600 !important; font-size: var(--mf-step-3) !important; }
.mf-related > nav { background: var(--mf-paper) !important; border-radius: var(--mf-r-lg) !important; }
.mf-related a { border-radius: 10px !important; border-color: var(--mf-rule) !important; transform: none !important; }
.mf-related a:hover { border-color: var(--mf-ink) !important; }
.mf-assistant { border-radius: var(--mf-r-lg) !important; box-shadow: var(--mf-shadow-2) !important; border-color: var(--mf-rule) !important; }
.mf-assistant__result { border-radius: 10px !important; background: var(--mf-paper) !important; box-shadow: none !important; }
.mf-contact-layout .mf-lead { border-radius: var(--mf-r-lg) !important; box-shadow: var(--mf-shadow-2) !important; border-color: var(--mf-rule) !important; }
.mf-contact-layout .mf-contact { background: var(--mf-paper) !important; background-image: none !important; border-radius: var(--mf-r-lg) !important; border-top: 3px solid var(--mf-ink) !important; }
.mf-contact-layout .mf-contact > h2 { font-family: var(--mf-font-display) !important; font-weight: 600; font-size: 1.375rem !important; }
.mf-search-result, .mf-link-tiles a { border-radius: var(--mf-r-lg) !important; box-shadow: none !important; transform: none !important; }
.mf-search-result:hover, .mf-link-tiles a:hover { border-color: var(--mf-ink) !important; }
.mf-link-tiles li::before { background: var(--mf-paper) !important; border: 1px solid var(--mf-rule); border-radius: 10px !important; }
.mf-link-tiles li::after { background: var(--mf-act) !important; }
.mf-topic-chips a { border-radius: 8px !important; }
.mf-topic-chips a:hover { background: var(--mf-paper) !important; border-color: var(--mf-ink) !important; }
.mf-toc { border-radius: var(--mf-r-lg) !important; box-shadow: none !important; }
.mf-toc__list a[aria-current="true"] { background: var(--mf-paper) !important; box-shadow: inset 2px 0 0 var(--mf-ink); border-radius: 0 8px 8px 0 !important; }
.mf-article__image img { border-radius: var(--mf-r-lg) !important; box-shadow: var(--mf-shadow-pop) !important; }
.mf-article__content > h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem) !important; }
.mf-article__content blockquote { background: var(--mf-paper) !important; border-left-color: var(--mf-ink) !important; font-family: var(--mf-font-display); font-size: 1.1875rem; }
.mf-article .mf-service-cta { border-radius: var(--mf-r-lg) !important; }
.mf-review { background: var(--mf-paper) !important; border-radius: var(--mf-r-lg) !important; }
.mf-sticky-cta { border-radius: 12px !important; }

/* ==================================================================
 * 9. Motion: transform-only reveal (content is never hidden)
 * ================================================================== */
.mf-reveal { transform: translateY(18px); transition: transform var(--mf-dur-3) var(--mf-ease); }
.mf-reveal.is-in { transform: none; }

/* ==================================================================
 * 10. Phones and tablets
 * ================================================================== */
@media (max-width: 1023px) {
	.mf-included { grid-template-columns: minmax(0, 1fr) !important; gap: 1.75rem !important; }
	.mf-included__col { border-left: 0 !important; padding: 0 !important; }
}
@media (max-width: 781px) {
	.mf-hero { padding-block: 2.25rem 5rem !important; }
	.mf-hero__title { font-size: clamp(2.25rem, 10vw, 2.875rem) !important; max-width: 14ch !important; }
	.mf-hero .mf-panel { padding: 1rem 1.125rem !important; }
	.mf-panel__links { grid-template-columns: minmax(0, 1fr) !important; }
	.mf-panel__links a { flex-direction: row !important; align-items: center !important; min-height: 52px !important; padding: .375rem .25rem !important; font-size: .9375rem; }
	.mf-panel__links a::after { display: block !important; }
	.mf-panel__links li::after { top: 50% !important; transform: translateY(-50%) !important; left: calc(.25rem + 8px) !important; }
	/* Home swipe rows: separate cards again (a ruled grid can't scroll sideways). */
	.home .mf-service-grid .mf-cards { border: 0 !important; border-radius: 0 !important; overflow-x: auto !important; background: transparent; }
	.home .mf-service-grid .mf-card--service { border: 1px solid var(--mf-rule) !important; border-radius: var(--mf-r-lg) !important; }
	.home .mf-section__inner .mf-situations { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; overflow: visible !important; margin-inline: 0 !important; padding: 0 !important; gap: 1.75rem !important; }
	.home .mf-section__inner .mf-situations > * { flex: none !important; }
	.mf-section__inner:has(.mf-situations) > .mf-section-lead::after { content: none !important; }
	.mf-benefits { grid-template-columns: minmax(0, 1fr) !important; }
	.mf-benefit { padding: 1.25rem !important; }
	.mf-marquee__item a { font-size: 1.0625rem; }
	.mf-marquee { padding-right: 0; }
	.mf-timeline > li, .is-style-steps > li, .mf-steps__item { padding-right: 0 !important; }
	.mf-faq__q { padding-right: 3rem !important; }
	.mf-faq__a { padding-right: 0 !important; }
	.mf-page-hero :is(h1, .wp-block-post-title, .wp-block-query-title) { font-size: clamp(2rem, 8.6vw, 2.5rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
	.mf-reveal { transform: none !important; transition: none !important; }
	.mf-marquee__list { animation: none !important; }
	.mf-package--featured::after { animation: none !important; display: none; }
	.wp-block-button__link::after, .mf-button::after { transition: none !important; }
}

@media print {
	.mf-marquee, .mf-marquee__toggle { display: none !important; }
	.mf-hero, .mf-page-hero { background: none !important; }
}

/* ==================================================================
 * 11. Page-specific heroes (page-pricing, page-contact, page-about)
 * ================================================================== */
.mf-page-hero--split .mf-page-hero__grid { gap: clamp(2rem, 5vw, 4.5rem) !important; margin: 0 !important; }
.mf-page-hero--split .mf-page-hero__grid > .wp-block-column > :first-child { margin-top: .75rem !important; }
.mf-hero-sheet { position: relative; margin: 0 !important; padding: clamp(1.25rem, 2.6vw, 1.75rem); border: 1px solid var(--mf-rule); border-radius: var(--mf-r-lg); background: var(--mf-card); box-shadow: var(--mf-shadow-pop); }
.mf-hero-sheet::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -8px; height: 8px; border: 1px solid var(--mf-rule); border-top: 0; border-radius: 0 0 12px 12px; background: var(--mf-muted-soft); }
.mf-hero-sheet > * { margin-block: 0; }
.mf-hero-sheet__title { margin: 0 0 1rem !important; padding-bottom: .875rem; border-bottom: 1px solid var(--mf-rule); color: var(--mf-ink); font-family: var(--mf-font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.015em; }
.mf-hero-sheet__list { gap: .75rem !important; margin: 0 !important; }
.mf-hero-sheet__list > li { color: var(--mf-fg); line-height: 1.45; }
.mf-hero-sheet__list > li::before { background-color: var(--mf-act) !important; }
.mf-hero-sheet__steps { counter-reset: mfsheet; list-style: none; margin: 0 !important; padding: 0; display: grid; gap: 0; }
.mf-hero-sheet__steps > li { counter-increment: mfsheet; display: grid; grid-template-columns: 2.25rem 1fr; gap: .5rem; padding: .875rem 0; border-top: 1px solid var(--mf-rule); color: var(--mf-fg); line-height: 1.5; }
.mf-hero-sheet__steps > li:first-child { border-top: 0; padding-top: 0; }
.mf-hero-sheet__steps > li::before { content: counter(mfsheet, decimal-leading-zero); color: var(--mf-act); font-family: var(--mf-font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.mf-hero-sheet .mf-trust { display: grid !important; gap: .625rem; font-weight: 600; }
.mf-hero-sheet .mf-trust li { padding: 0 !important; background: none !important; border: 0 !important; }
.mf-hero-sheet .mf-trust li::before { background: var(--mf-act) !important; }
.mf-hero-sheet .mf-disclosure { margin-top: 1rem !important; padding: 1rem 0 0 !important; border: 0 !important; border-top: 1px solid var(--mf-rule) !important; border-radius: 0 !important; background: none !important; color: var(--mf-muted-fg) !important; font-size: .875rem; line-height: 1.6; }

/* About: principles as a numbered ledger. */
.mf-principles { list-style: none; counter-reset: mfprin; margin: 1.25rem 0 0 !important; padding: 0 !important; border-top: 1px solid var(--mf-rule); }
.mf-principles > li { counter-increment: mfprin; display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--mf-rule); color: var(--mf-muted-fg); line-height: 1.6; }
.mf-principles > li::before { content: counter(mfprin, decimal-leading-zero); grid-row: span 2; color: var(--mf-act); font-family: var(--mf-font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.mf-principles > li > strong { display: block; color: var(--mf-ink); font-family: var(--mf-font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.012em; }
.mf-about .mf-page-body > .wp-block-mf-service-grid { margin-top: 2rem; }

/* Legal: hide "Last updated" when WordPress has no separate modified date. */
.mf-legal__meta:not(:has(time)) { display: none !important; }

@media (max-width: 781px) {
	.mf-page-hero--split .mf-page-hero__grid { gap: 1.75rem !important; }
	.mf-hero-sheet__title { font-size: 1.1875rem; }
}
@media (max-width: 781px) {
	.mf-about .mf-service-grid .mf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.mf-about .mf-card--service { padding: 1rem 1rem 3.25rem !important; }
	.mf-about .mf-card--service :is(.mf-card__text, .mf-card__price) { display: none !important; }
	.mf-about .mf-card--service .mf-card__title { font-size: 1.0625rem !important; }
}

/* ==================================================================
 * 12. Enquiry journey: stepper, loading and error states
 * ================================================================== */
.mf-step-off { display: none !important; }
.mf-stepper { margin: 0 0 1.5rem; }
.mf-stepper__label { margin: 0 0 .625rem; color: var(--mf-muted-fg); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mf-stepper__list { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: mfstepper; }
.mf-stepper__list li { counter-increment: mfstepper; display: flex; align-items: center; gap: .625rem; padding-top: .75rem; border-top: 3px solid var(--mf-rule); color: var(--mf-muted-fg); font-weight: 600; font-size: .9375rem; transition: border-color var(--mf-dur-2) var(--mf-ease), color var(--mf-dur-2) var(--mf-ease); }
.mf-stepper__list li::before { content: counter(mfstepper); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--mf-rule-strong); font-size: .8125rem; color: var(--mf-muted-fg); background: var(--mf-card); }
.mf-stepper__list li[aria-current="step"] { border-top-color: var(--mf-ink); color: var(--mf-ink); }
.mf-stepper__list li[aria-current="step"]::before { background: var(--mf-ink); border-color: var(--mf-ink); color: #fff; }
.mf-stepper__list li.is-done { border-top-color: var(--mf-act); color: var(--mf-ink); }
.mf-stepper__list li.is-done::before { content: ""; background: var(--mf-act) var(--mf-ic-check) center / 0 no-repeat; border-color: var(--mf-act); -webkit-mask: none; }
.mf-stepper__list li.is-done::before { background-color: var(--mf-act); }
.mf-stepper__next { margin-top: 1.75rem; }
.mf-lead__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
@media (max-width: 599px) {
	.mf-stepper__next .mf-button, .mf-lead__actions .mf-button--primary { width: 100%; }
	.mf-lead__actions .mf-stepper__back { order: 2; width: 100%; }
}

/* Loading: the submit button shows a spinner and stays readable. */
.mf-button[aria-busy="true"] { opacity: 1 !important; cursor: progress; }
.mf-button[aria-busy="true"]::after { content: "" !important; width: 16px !important; height: 16px !important; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; background: none !important; -webkit-mask: none !important; mask: none !important; animation: mf-spin .7s linear infinite; transform: none !important; }
@keyframes mf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mf-button[aria-busy="true"]::after { animation-duration: 2.4s; } }

/* Error and success states. */
.mf-alert { border-radius: 10px !important; border: 1px solid var(--mf-rule) !important; padding: 1rem 1.125rem !important; }
.mf-alert--error { border-color: var(--mf-border) !important; border-left: 4px solid var(--wp--preset--color--error, #b42318) !important; background: var(--mf-card) !important; color: var(--mf-fg); }
.mf-alert--error h3 { margin: 0 0 .5rem; font-size: 1.0625rem; color: var(--mf-destructive); }
.mf-alert--error a { color: var(--mf-destructive); font-weight: 600; }
.mf-alert--success { border-left: 4px solid var(--wp--preset--color--success, #1f7a4d) !important; background: var(--mf-card) !important; }
.mf-alert--success h3 { font-family: var(--mf-font-display); font-weight: 600; font-size: 1.5rem; color: var(--mf-ink); margin-top: 0; }
.mf-field--error > label, .mf-field--error legend { color: var(--mf-destructive) !important; }

/* ==================================================================
 * 13. Credentials and testimonials (render only from approved records)
 * ================================================================== */
.mf-credentials__list { display: grid; gap: 0; margin: 0; }
.mf-credentials__row { display: grid; gap: .25rem; padding: .875rem 0; border-top: 1px solid var(--mf-rule); }
.mf-credentials__row:first-child { border-top: 0; padding-top: 0; }
.mf-credentials__row dt { color: var(--mf-muted-fg); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mf-credentials__row dd { margin: 0; color: var(--mf-ink); font-weight: 600; line-height: 1.45; }
.mf-credentials__link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; color: var(--mf-act); font-size: .875rem; font-weight: 600; text-underline-offset: .18em; }
.mf-credentials__link::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--mf-ic-arrow) center / contain no-repeat; mask: var(--mf-ic-arrow) center / contain no-repeat; transform: rotate(-45deg); }
.mf-hero-sheet .mf-credentials + .wp-block-mf-business-disclosure .mf-disclosure, .mf-hero-sheet .mf-credentials ~ * .mf-disclosure { margin-top: .875rem !important; }

.mf-testimonials .mf-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 !important; border-top: 1px solid var(--mf-rule); }
.mf-quote { margin: 0; padding: 1.75rem 1.75rem 1.75rem 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
.mf-quote blockquote { margin: 0 0 1rem; padding: 0; border: 0; color: var(--mf-ink); font-family: var(--mf-font-display); font-size: var(--mf-step-2); line-height: 1.4; letter-spacing: -.01em; }
.mf-quote blockquote::before { content: "\201C"; display: block; height: .55em; color: var(--mf-accent); font-size: 3.5rem; line-height: 1; }
.mf-quote figcaption { color: var(--mf-muted-fg); font-size: .875rem; }

/* Pricing page: packages and comparison inside the page body. */
.mf-inner .mf-page-body > .wp-block-mf-package-cards, .mf-inner .mf-page-body > .wp-block-mf-included-compare { margin-top: 1.5rem; }
.mf-inner .mf-page-body > .wp-block-mf-pricing-table { margin-top: 1rem; }
.mf-inner .mf-page-body > h2 + .wp-block-mf-package-cards { margin-top: 1.5rem; }

/* Pages that mix text with wide blocks: one left edge, readable measure. */
.mf-page-body:has(> .alignwide) > :not(.alignwide):not(.alignfull) { max-width: var(--wp--style--global--wide-size, 1200px) !important; }
.mf-page-body:has(> .alignwide) > :is(p, ol.mf-principles, ul) { box-sizing: border-box; padding-right: max(0px, calc(100% - 720px)) !important; }
@media (max-width: 781px) {
	.mf-contact-page .mf-hero-sheet { display: none !important; }
	.mf-contact-page .mf-page-hero--split .mf-page-hero__grid > .wp-block-column:last-child { display: none; }
}
