/* Mayatte Family Dentistry — design system. Source of truth: design\mockup\site.css (copied here with font paths adjusted) + theme additions at the end. Original work, 2026-09-29. */
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
	--ink: #2b2b2b; --charcoal: #383838; --slate: #46505a; --muted: #5e6670;
	--red: #d02818; --red-700: #b3200f; --red-800: #8f1a0c; --brick: #9c4a33;
	--paper: #fbf8f4; --white: #fff; --sand: #f2ece4; --sand-2: #e9e1d6; --line: #ddd5cb; --field: #8a8178;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 12px; --wrap: 1180px; --gutter: clamp(16px, 4vw, 32px);
	--step-0: 1.125rem; --step-1: 1.3rem; --step-2: clamp(1.45rem, 2.4vw, 1.75rem); --step-3: clamp(1.75rem, 3.6vw, 2.35rem); --step-4: clamp(2.1rem, 5vw, 3.25rem);
	--header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-800); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 650; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.mfd-wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.mfd-narrow { max-width: 760px; }
.mfd-eyebrow { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brick); margin: 0 0 .6rem; }
.mfd-lead { font-size: var(--step-1); color: var(--slate); max-width: 62ch; }
.mfd-ph { background: #fff1b8; color: #5a4400; padding: 0 .25em; border-radius: 3px; font-size: .92em; outline: 1px dashed #b38f00; }
.screen-reader-text, .mfd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.mfd-skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.mfd-skip:focus { top: 12px; color: #fff; }

/* Section heading motif: the logo's smile as a thin red swoosh */
.mfd-swoosh { display: block; width: 88px; height: 14px; margin: .1rem 0 1rem; color: var(--red); fill: none; stroke: currentColor; stroke-linecap: round; }
.mfd-center .mfd-swoosh { margin-inline: auto; }
.mfd-center { text-align: center; }
.mfd-center .mfd-lead { margin-inline: auto; }

/* Buttons */
.mfd-btn, .wp-block-button__link { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 999px; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.mfd-btn--primary, .wp-block-button__link { background: var(--red-700); color: #fff; }
.mfd-btn--primary:hover, .wp-block-button__link:hover { background: var(--red-800); color: #fff; }
.mfd-btn--ghost, .is-style-mfd-ghost .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.mfd-btn--ghost:hover, .is-style-mfd-ghost .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.mfd-btn--light { background: #fff; color: var(--ink); }
.mfd-btn--light:hover { background: var(--sand); color: var(--ink); }
.mfd-btn .mfd-icon { width: 20px; height: 20px; }
.mfd-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.mfd-icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.mfd-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 244, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.mfd-header__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.mfd-logo { display: block; flex: none; }
.mfd-logo img { width: 168px; height: auto; }
.mfd-nav { margin-left: auto; }
.mfd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.mfd-nav a { display: block; padding: .6rem .6rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.mfd-nav a:hover, .mfd-nav a[aria-current="page"] { background: var(--sand); color: var(--ink); }
.mfd-header__actions { display: flex; align-items: center; gap: .5rem; }
.mfd-header__phone { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: 0 .6rem; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.mfd-header__phone:hover { color: var(--red-700); }
.mfd-menu-btn { display: none; }
@media (max-width: 1240px) {
	.mfd-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; }
	.mfd-nav.is-open { display: block; }
	.mfd-nav ul { flex-direction: column; }
	.mfd-nav a { padding: .8rem .5rem; font-size: 1.1rem; }
	.mfd-menu-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; min-width: 48px; padding: 0 .75rem; margin-left: auto; background: transparent; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font: 700 1rem var(--sans); cursor: pointer; }
	.mfd-header__actions { margin-left: .25rem; }
}
@media (max-width: 720px) {
	:root { --header-h: 64px; }
	.mfd-logo img { width: 132px; }
	.mfd-header__actions .mfd-btn--primary { display: none; }
	.mfd-header__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
	.mfd-header__phone { border: 2px solid var(--ink); border-radius: 999px; min-width: 48px; justify-content: center; }
	.mfd-menu-btn .mfd-menu-label { display: none; }
}

/* Mobile action bar */
.mfd-mobile-bar { display: none; }
@media (max-width: 720px) {
	.mfd-mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1px; position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--line); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
	.mfd-mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; }
	.mfd-mobile-bar a.is-primary { background: var(--red-700); color: #fff; }
	body { padding-bottom: 62px; }
}

/* Hero */
.mfd-hero { position: relative; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.mfd-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.mfd-hero h1 { margin-bottom: .4em; }
.mfd-hero .mfd-lead { margin-bottom: 1.5rem; }
.mfd-hero__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.25rem; color: var(--slate); font-size: 1rem; }
.mfd-hero__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.mfd-hero__meta .mfd-icon { width: 20px; height: 20px; color: var(--brick); }
.mfd-hero__docs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mfd-hero__doc { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(43, 43, 43, .35); }
.mfd-hero__doc:nth-child(2) { transform: translateY(1.75rem); }
.mfd-hero__doc img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.mfd-hero__doc figcaption { padding: .7rem .9rem .8rem; font-size: .98rem; line-height: 1.35; }
.mfd-hero__doc figcaption strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.mfd-hero__curve { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; width: 100%; color: var(--white); pointer-events: none; }
@media (max-width: 900px) {
	.mfd-hero__grid { grid-template-columns: 1fr; }
	.mfd-hero__docs { max-width: 460px; }
	.mfd-hero__doc:nth-child(2) { transform: none; }
}

/* Sections */
.mfd-section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.mfd-section--white { background: var(--white); }
.mfd-section--sand { background: var(--sand); }
.mfd-section--ink { background: var(--charcoal); color: #fff; }
.mfd-section--ink h2, .mfd-section--ink h3 { color: #fff; }
.mfd-section--ink a:not(.mfd-btn) { color: #fff; }
.mfd-section__head { margin-bottom: 2rem; }
.mfd-grid { display: grid; gap: 1.25rem; }
.mfd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mfd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mfd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .mfd-grid--3, .mfd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mfd-grid--3, .mfd-grid--2, .mfd-grid--4 { grid-template-columns: 1fr; } }

/* Steps (new-patient path) */
.mfd-steps { list-style: none; padding: 0; margin: 0 0 1.75rem; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.mfd-steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.25rem; position: relative; }
.mfd-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--charcoal); color: #fff; font: 700 1.1rem var(--sans); margin-bottom: .8rem; }
.mfd-steps h3 { margin-bottom: .3rem; }
.mfd-steps p { margin: 0; color: var(--slate); }
@media (max-width: 800px) { .mfd-steps { grid-template-columns: 1fr; } }

/* Service cards */
.mfd-card { display: flex; flex-direction: column; gap: .35rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; color: var(--ink); text-decoration: none; position: relative; transition: border-color .15s, box-shadow .15s; }
a.mfd-card:hover { border-color: var(--charcoal); box-shadow: 0 10px 24px -18px rgba(43, 43, 43, .45); color: var(--ink); }
.mfd-card .mfd-icon { width: 32px; height: 32px; color: var(--red); margin-bottom: .3rem; }
.mfd-card h3 { margin: 0; font-size: 1.2rem; }
.mfd-card p { margin: 0; color: var(--slate); font-size: 1rem; }
.mfd-card__more { margin-top: auto; padding-top: .4rem; font-weight: 700; color: var(--red-700); font-size: 1rem; }

/* Doctors */
.mfd-doc { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; background: var(--white); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--line); }
.mfd-doc img { border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.mfd-doc h3 { font-size: var(--step-2); margin-bottom: .1rem; }
.mfd-doc__creds { color: var(--brick); font-weight: 700; margin-bottom: .75rem; }
.mfd-doc ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--slate); }
@media (max-width: 600px) { .mfd-doc { grid-template-columns: 1fr; } .mfd-doc img { max-width: 240px; } }

/* Proof strip */
.mfd-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.mfd-proof li { border-left: 3px solid var(--red); padding: .25rem 0 .25rem 1rem; }
.mfd-proof strong { display: block; font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; color: #fff; }
.mfd-proof span { color: #e9e4dd; font-size: 1rem; }
@media (max-width: 900px) { .mfd-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .mfd-proof { grid-template-columns: 1fr; } }

/* Money cards */
.mfd-money h3 { display: flex; align-items: center; gap: .5rem; }
.mfd-money .mfd-icon { color: var(--brick); }
.mfd-money ul { padding-left: 1.1rem; margin: 0 0 .75rem; }
.mfd-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.mfd-note { font-size: 1rem; color: var(--muted); }

/* Reviews */
.mfd-review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.mfd-review blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.mfd-review figcaption { color: var(--slate); font-size: 1rem; margin-top: auto; }
.mfd-stars { color: var(--red); letter-spacing: 2px; }

/* Gallery placeholder */
.mfd-gallery-ph { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; border: 2px dashed var(--field); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); }
.mfd-gallery-ph .mfd-icon { width: 44px; height: 44px; color: var(--brick); }

/* Emergency band */
.mfd-emergency { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
.mfd-emergency .mfd-icon--xl { width: 56px; height: 56px; color: #fff; }
.mfd-emergency p { margin: .25rem 0 0; color: #ece7e1; }
@media (max-width: 800px) { .mfd-emergency { grid-template-columns: 1fr; } }

/* Visit (hours + map) */
.mfd-visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: stretch; }
.mfd-hours { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.mfd-hours th, .mfd-hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.mfd-hours th { font-weight: 700; width: 45%; }
.mfd-hours tr.is-closed td { color: var(--muted); }
.mfd-map { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.mfd-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mfd-map__art { position: absolute; inset: 0; width: 100%; height: 100%; color: #cfc4b6; }
.mfd-map__inner { position: relative; background: rgba(255, 255, 255, .94); border-radius: var(--radius); padding: 1.25rem 1.5rem; max-width: 360px; }
.mfd-map__inner p { font-size: 1rem; color: var(--slate); }
@media (max-width: 900px) { .mfd-visit { grid-template-columns: 1fr; } }

/* FAQ */
.mfd-faq { border-top: 1px solid var(--line); }
.mfd-faq details { border-bottom: 1px solid var(--line); }
.mfd-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.mfd-faq summary::-webkit-details-marker { display: none; }
.mfd-faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.mfd-faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.mfd-faq .mfd-faq__a { padding: 0 0 1.1rem; color: var(--slate); max-width: 70ch; }

/* Footer */
.mfd-footer { background: #262626; color: #e8e3dc; padding: 3rem 0 1.5rem; font-size: 1rem; }
.mfd-footer a { color: #fff; }
.mfd-footer h2 { color: #fff; font-size: 1.15rem; font-family: var(--sans); font-weight: 700; margin-bottom: .75rem; }
.mfd-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.mfd-footer ul { list-style: none; margin: 0; padding: 0; }
.mfd-footer li { margin-bottom: .45rem; }
.mfd-footer__logo { background: #fff; border-radius: 10px; padding: .5rem .75rem; display: inline-block; margin-bottom: 1rem; }
.mfd-footer__logo img { width: 150px; }
.mfd-footer__legal { border-top: 1px solid #4a4a4a; margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .95rem; color: #d6d0c8; }
.mfd-footer__legal ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.mfd-footer__notice { margin-top: 1rem; font-size: .95rem; color: #d6d0c8; max-width: 90ch; }
@media (max-width: 900px) { .mfd-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mfd-footer__grid { grid-template-columns: 1fr; } }

/* Forms */
.mfd-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.mfd-form__title { font-size: var(--step-2); }
.mfd-field { margin: 0 0 1.1rem; border: 0; padding: 0; }
.mfd-label { display: block; font-weight: 700; margin-bottom: .35rem; padding: 0; }
.mfd-hint { margin: -.15rem 0 .45rem; color: var(--muted); font-size: 1rem; }
.mfd-form input[type="text"], .mfd-form input[type="tel"], .mfd-form input[type="email"], .mfd-form textarea { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 2px solid var(--field); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
.mfd-form input:focus-visible, .mfd-form textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.mfd-choice__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.mfd-choice__opt { position: relative; }
.mfd-choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mfd-choice__opt label { display: inline-flex; align-items: center; min-height: 48px; padding: .55rem 1rem; border: 2px solid var(--field); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; }
.mfd-choice__opt input:checked + label { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.mfd-choice__opt input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }
.mfd-req { color: var(--red-700); }
.mfd-form__req, .mfd-form__fine { font-size: .98rem; color: var(--muted); }
.mfd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mfd-form-success, .mfd-form-error { border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.mfd-form-success { background: #e8f3ea; border: 2px solid #2f6b3a; }
.mfd-form-error { background: #fbeae7; border: 2px solid var(--red-700); }
.mfd-form-success__title { font-size: 1.25rem; margin-bottom: .3rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .mfd-header, .mfd-mobile-bar, .mfd-footer { display: none; } }

/* ===== Theme additions (WordPress pages) ===== */
.wp-site-blocks > * { margin-block: 0; }
.mfd-main > .wp-block-post-content > * { margin-block: 0; }
.wp-block-group { margin-block: 0; }
.mfd-page-hero { background: var(--sand); padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(1.75rem, 4vw, 2.75rem); border-bottom: 1px solid var(--line); }
.mfd-page-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: .35em; }
.mfd-page-hero .mfd-lead { margin-bottom: 0; }
.mfd-crumbs ol { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .98rem; color: var(--slate); }
.mfd-crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--field); }
.mfd-crumbs a { color: var(--slate); }
.mfd-byline { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; font-size: 1rem; color: var(--slate); }
.mfd-byline .mfd-icon { width: 20px; height: 20px; color: var(--brick); }
.mfd-footer__byline { color: #fff; font-weight: 600; }
.mfd-prose { max-width: calc(760px + 2 * var(--gutter)); }
.mfd-prose > * + * { margin-top: 1rem; }
.mfd-prose h2 { margin-top: 2.25rem; }
.mfd-prose h3 { margin-top: 1.5rem; }
.mfd-prose ul, .mfd-prose ol { padding-left: 1.25rem; }
.mfd-prose li + li { margin-top: .35rem; }
.mfd-prose img { border-radius: var(--radius); }
.is-style-mfd-checks { list-style: none; padding-left: 0 !important; }
.is-style-mfd-checks li { position: relative; padding-left: 1.9rem; }
.is-style-mfd-checks li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .55rem; height: .95rem; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(40deg); }
.mfd-steps-list { list-style: none; padding-left: 0 !important; counter-reset: s; }
.mfd-steps-list > li { counter-increment: s; position: relative; padding-left: 3rem; min-height: 2.4rem; }
.mfd-steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--charcoal); color: #fff; font-weight: 700; font-size: 1rem; }
.mfd-stack { display: grid; gap: 1.25rem; }
.mfd-stack h2, .mfd-panel h2 { font-size: var(--step-2); display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.mfd-panel h2 .mfd-icon, .mfd-panel h3 .mfd-icon { color: var(--brick); }
.mfd-callout { background: var(--white); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; }
.mfd-callout--warn { background: #fdf3f1; }
.mfd-table { width: 100%; border-collapse: collapse; margin: 0 0 .75rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.mfd-table caption { text-align: left; font-weight: 700; padding: 0 0 .5rem; }
.mfd-table th, .mfd-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.mfd-table thead th { background: var(--sand); }
.mfd-actions--center, .wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.wp-block-button { margin: 0; }
.mfd-emergency__title { font-size: var(--step-2); margin: 0; color: #fff; }
.mfd-faq__h { margin-top: 0; }
.mfd-cta { background: var(--paper); }
.mfd-section--sand + .mfd-cta, .mfd-cta { border-top: 1px solid var(--line); }
.mfd-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.mfd-person { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mfd-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }
.mfd-person figcaption { padding: .9rem 1rem 1.1rem; font-size: 1rem; color: var(--slate); }
.mfd-person figcaption strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.mfd-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.mfd-split > figure { margin: 0; }
.mfd-split img { border-radius: var(--radius); width: 100%; }
@media (max-width: 800px) { .mfd-split { grid-template-columns: 1fr; } }
.wp-block-image { margin: 0; }
.wp-block-image figcaption { font-size: .95rem; color: var(--muted); margin-top: .4rem; }
.mfd-setting { font-weight: inherit; }
.mfd-gallery__item { margin: 0; }
.mfd-gallery__item figcaption { font-size: .95rem; color: var(--slate); padding-top: .5rem; }
/* The template-part wrapper is the sticky element (a sticky child can't outlive its own wrapper). */
.mfd-header-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.mfd-header-part .mfd-header { position: relative; }

/* Compact service cards on phones (icon beside text, no "Learn more" line — the whole card is the link). */
@media (max-width: 600px) {
	a.mfd-card { display: grid; grid-template-columns: 32px 1fr; column-gap: .9rem; row-gap: .15rem; padding: 1rem; }
	a.mfd-card .mfd-icon { grid-row: span 2; margin: .1rem 0 0; }
	a.mfd-card .mfd-card__more { display: none; }
	.mfd-grid { gap: .75rem; }
}