/* Global layer. Colours, fonts, sizes, radii and motion come ONLY from tokens.css. Block styles live in blocks/<name>/style.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--mf-nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mf-bg); color: var(--mf-text); font: var(--mf-w-body) var(--mf-fs-body)/1.65 var(--mf-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body.mf-lock { overflow: clip; }   /* clip, not hidden: hidden makes body a scroll container and breaks the sticky header while Lenis is stopped */
img, svg, video { max-width: 100%; display: block; }
a { color: var(--mf-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: var(--mf-w-heading); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--mf-text); text-wrap: balance; }
h1 { font-size: var(--mf-fs-h1); font-weight: var(--mf-w-hero); letter-spacing: -.035em; }
h2 { font-size: var(--mf-fs-h2); }
h3 { font-size: var(--mf-fs-h3); }
p { margin: 0 0 1em; }
::selection { background: var(--mf-accent); color: var(--mf-chrome); }
:focus-visible { outline: 3px solid var(--mf-accent); outline-offset: 3px; border-radius: 6px; }
.mf-skip { position: absolute; left: -999px; } .mf-skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--mf-surface); padding: 10px 16px; border-radius: var(--mf-radius-sm); }

/* Layout */
.mf-container { width: 100%; max-width: var(--mf-container); margin: 0 auto; padding: 0 var(--mf-gutter); }
.mf-narrow { max-width: 860px; }
.mf-section { padding: var(--mf-section-y) 0; position: relative; }
.mf-section--tight { padding: calc(var(--mf-section-y) * .55) 0; }
.mf-section--alt { background: var(--mf-surface); }
.mf-center { text-align: center; } .mf-mt { margin-top: 44px; }
.mf-muted { color: var(--mf-text-muted); }
.mf-lead { font-size: var(--mf-fs-lead); color: var(--mf-text-muted); max-width: 58ch; }
.mf-center .mf-lead { margin-inline: auto; }
.mf-head { margin-bottom: 52px; max-width: 760px; }
.mf-head.mf-center { margin-inline: auto; }
.mf-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: var(--mf-w-button); letter-spacing: .12em; text-transform: uppercase; color: var(--mf-primary); margin-bottom: 16px; }
.mf-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--mf-accent-ink); }
.mf-eyebrow--light { color: var(--mf-accent); }
.mf-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fbf7f; position: relative; }
.mf-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #3fbf7f; opacity: 0; animation: mf-ping 2s var(--mf-ease) infinite; }
@keyframes mf-ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
/* Breadcrumbs (also used on blog posts, where the page-hero block CSS is not loaded) */
.mf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; margin-bottom: 28px; color: color-mix(in srgb, var(--mf-on-chrome) 70%, transparent); }
.mf-crumbs a { color: var(--mf-on-chrome); } .mf-crumbs b { color: var(--mf-accent); font-weight: var(--mf-w-button); } .mf-crumbs span { opacity: .5; }
.mf-grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Emphasised headline word with hand-drawn swash */
.mf-em { font-style: normal; position: relative; white-space: nowrap; color: var(--mf-primary); }
.mf-swash { position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .3em; color: var(--mf-accent-ink); overflow: visible; }
.mf-swash path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .mf-swash path { stroke-dashoffset: 1; }
.js .is-in .mf-swash path, .js .mf-swash.is-in path { animation: mf-draw 1.1s .5s var(--mf-ease) forwards; }
@keyframes mf-draw { to { stroke-dashoffset: 0; } }

/* Scroll reveal (JS adds .is-in; no-JS always visible) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--mf-ease), transform .9s var(--mf-ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }


/* Buttons */
.mf-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: var(--mf-radius-pill); font: var(--mf-w-button) var(--mf-fs-button)/1 var(--mf-font); border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--mf-ease), background .25s, color .25s, box-shadow .25s, border-color .25s; text-decoration: none !important; isolation: isolate; }
.mf-btn .mf-arrow { transition: transform .3s var(--mf-ease); flex: none; }
.mf-btn:hover .mf-arrow { transform: translateX(4px); }
.mf-btn--primary { background: var(--mf-primary); color: var(--mf-on-primary); }
.mf-btn--primary::before { content: ""; position: absolute; inset: 0; background: var(--mf-chrome); transform: translateY(101%); transition: transform .35s var(--mf-ease); z-index: -1; }
.mf-btn--primary:hover::before { transform: none; }
.mf-btn--primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--mf-primary) 35%, transparent); }
.mf-btn--ghost { background: transparent; color: var(--mf-primary); border-color: color-mix(in srgb, var(--mf-primary) 55%, transparent); }
.mf-btn--ghost:hover { background: var(--mf-primary); color: var(--mf-on-primary); border-color: var(--mf-primary); }
.mf-btn--accent { background: var(--mf-accent); color: var(--mf-chrome); font-weight: var(--mf-w-heading); }
.mf-btn--accent:hover { background: var(--mf-c-white); color: var(--mf-chrome); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.mf-btn--outline-light { color: var(--mf-on-chrome); border-color: color-mix(in srgb, var(--mf-on-chrome) 45%, transparent); }
.mf-btn--outline-light:hover { background: color-mix(in srgb, var(--mf-on-chrome) 14%, transparent); }
.mf-btn--lg { padding: 18px 32px; font-weight: var(--mf-w-heading); }
.mf-btn--sm { padding: 11px 20px; font-size: 14px; }
.mf-btn--nav { padding: 12px 22px; }
.mf-btn--block { display: flex; width: 100%; }
.mf-link { font-weight: var(--mf-w-button); display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(currentColor, currentColor) 0 100%/0 1.5px no-repeat; transition: background-size .35s var(--mf-ease); padding-bottom: 3px; }
.mf-link:hover { background-size: 100% 1.5px; text-decoration: none; }

/* Top announcement bar — scrolling fill */
.mf-topbar { background: var(--mf-chrome); color: var(--mf-on-chrome); overflow: hidden; height: var(--mf-topbar-h); display: flex; align-items: center; }
.mf-marquee { display: flex; width: max-content; animation: mf-scroll 45s linear infinite; }
.mf-topbar:hover .mf-marquee { animation-play-state: paused; }
.mf-marquee__track { display: flex; margin: 0; padding: 0; list-style: none; flex-shrink: 0; }
.mf-marquee__track li { padding: 0 28px; font-size: 13px; font-weight: var(--mf-w-label); letter-spacing: .03em; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.mf-marquee__track li::after { content: "✦"; color: var(--mf-accent); font-size: 11px; }
@keyframes mf-scroll { to { transform: translateX(-50%); } }

/* Header — big nav */
.mf-header { position: sticky; top: 0; z-index: 90; background: var(--mf-surface); border-bottom: 1px solid var(--mf-border); transition: box-shadow .3s; }
.mf-header.is-stuck { box-shadow: 0 8px 30px rgba(41,37,37,.08); }
.mf-header__in { display: flex; align-items: center; gap: 36px; height: var(--mf-nav-h); }
.mf-logo { font-size: 31px; font-weight: var(--mf-w-hero); letter-spacing: -.045em; color: var(--mf-primary); display: inline-flex; align-items: baseline; text-decoration: none !important; flex: none; }
.mf-logo span { color: var(--mf-text); }
.mf-logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--mf-accent); margin-left: 3px; transition: transform .4s var(--mf-ease); }

.mf-logo--light, .mf-logo--light span { color: var(--mf-on-chrome); }
.mf-nav { flex: 1; align-self: stretch; display: flex; }
.mf-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; height: 100%; }
.mf-nav__item { display: flex; align-items: stretch; }
.mf-nav__link { white-space: nowrap; display: flex; align-items: center; gap: 7px; padding: 0 16px; font-size: 17px; font-weight: var(--mf-w-button); color: var(--mf-text); text-decoration: none !important; position: relative; }
.mf-nav__link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 22px; height: 2px; background: var(--mf-accent-ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--mf-ease); }
.mf-nav__item:hover > .mf-nav__link::after, .mf-nav__item.is-open > .mf-nav__link::after { transform: scaleX(1); }
.mf-nav__item:hover > .mf-nav__link, .mf-nav__item.is-open > .mf-nav__link { color: var(--mf-primary); }
.mf-chev { opacity: .55; transition: transform .25s var(--mf-ease); }
.mf-nav__item.is-open .mf-chev { transform: rotate(180deg); }
.mf-header__tools { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.mf-nav__login { font-size: 16px; font-weight: var(--mf-w-button); color: var(--mf-text); white-space: nowrap; }
.mf-header__tools .mf-btn { white-space: nowrap; }
.mf-iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--mf-text); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.mf-iconbtn:hover { background: var(--mf-bg); }
.mf-nav__cta-m, .mf-burger { display: none; }

/* Mega panel */
.mf-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--mf-surface); border-bottom: 1px solid var(--mf-border); box-shadow: 0 30px 60px rgba(41,37,37,.12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--mf-ease), visibility .25s; }
.mf-nav__item.is-open > .mf-mega { opacity: 1; visibility: visible; transform: none; }
.mf-mega__in { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding-top: 40px; padding-bottom: 44px; }
.mf-mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.mf-mega__title { font-size: 12px; font-weight: var(--mf-w-heading); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-text-muted); margin: 0 0 14px; }
.mf-mega ul { list-style: none; margin: 0; padding: 0; }
.mf-mega li a { display: flex; flex-direction: column; padding: 9px 12px; margin: 0 -12px; border-radius: var(--mf-radius-sm); color: var(--mf-text); text-decoration: none; transition: background .2s, transform .3s var(--mf-ease); }
.mf-mega li a span { font-size: 16px; font-weight: var(--mf-w-button); }
.mf-mega li a small { font-size: 13px; color: var(--mf-text-muted); }
.mf-mega li a:hover { background: var(--mf-bg); color: var(--mf-primary); }
.mf-mega__feature { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--mf-bg); border-radius: var(--mf-radius); color: var(--mf-text); text-decoration: none !important; overflow: hidden; transition: transform .35s var(--mf-ease), box-shadow .35s; }
.mf-mega__feature:hover { box-shadow: var(--mf-shadow-lg); }
.mf-mega__img { display: block; aspect-ratio: 16/10; border-radius: var(--mf-radius-sm); overflow: hidden; margin-bottom: 10px; background: var(--mf-accent-soft); }
.mf-mega__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--mf-ease); }
.mf-mega__feature.is-contain .mf-mega__img img { object-fit: contain; object-position: center bottom; }
.mf-mega__feature:hover img { transform: scale(1.06); }
.mf-mega__kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: var(--mf-w-heading); color: var(--mf-primary); }
.mf-mega__feature strong { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.mf-mega__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--mf-w-button); color: var(--mf-primary); margin-top: 4px; }
.mf-scrim { position: fixed; inset: 0; background: rgba(41,37,37,.35); backdrop-filter: blur(2px); z-index: 80; opacity: 0; transition: opacity .3s; }
.mf-scrim.is-on { opacity: 1; }

/* Search overlay */
.mf-search-overlay { position: fixed; inset: 0; z-index: 120; background: color-mix(in srgb, var(--mf-chrome) 94%, transparent); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 24px; }
.mf-search-overlay[hidden] { display: none; }
.mf-search-overlay__in { width: min(760px, 100%); color: var(--mf-on-chrome); position: relative; animation: mf-rise .5s var(--mf-ease); }
.mf-search-overlay label { font-size: var(--mf-fs-h3); font-weight: var(--mf-w-heading); display: block; margin-bottom: 20px; letter-spacing: -.02em; }
.mf-search-overlay__in > div { display: flex; gap: 12px; }
.mf-search-overlay input { flex: 1; min-width: 0; font: var(--mf-w-label) 20px var(--mf-font); padding: 20px 24px; border-radius: var(--mf-radius-pill); border: 0; outline: none; background: var(--mf-surface); color: var(--mf-text); }
.mf-search-overlay p { margin-top: 20px; opacity: .85; } .mf-search-overlay p a { color: var(--mf-accent); margin-left: 12px; }
.mf-search-overlay__close { position: absolute; right: 0; top: -64px; background: transparent; border: 0; color: var(--mf-on-chrome); font-size: 22px; cursor: pointer; width: 44px; height: 44px; }
@keyframes mf-rise { from { opacity: 0; transform: translateY(24px); } }

/* Footer */
.mf-footer { background: var(--mf-chrome); color: var(--mf-on-chrome); padding: 88px 0 28px; margin-top: 60px; position: relative; overflow: hidden; }
.mf-footer a { color: var(--mf-on-chrome); opacity: .8; transition: opacity .2s, color .2s; } .mf-footer a:hover { opacity: 1; color: var(--mf-accent); text-decoration: none; }
.mf-footer .mf-btn { opacity: 1; }
.mf-footer .mf-btn--accent { color: var(--mf-chrome); }
.mf-footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid color-mix(in srgb, var(--mf-on-chrome) 16%, transparent); margin-bottom: 56px; }
.mf-footer__kicker { color: var(--mf-accent); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: var(--mf-w-heading); margin-bottom: 14px; }
.mf-footer__big { font-size: clamp(34px, 5.2vw, 68px); font-weight: var(--mf-w-hero); letter-spacing: -.04em; line-height: 1.03; margin: 0; }
.mf-footer__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mf-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.mf-footer h4 { color: var(--mf-accent); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.mf-footer ul { list-style: none; padding: 0; margin: 0; } .mf-footer li { padding: 5px 0; font-size: 15px; } .mf-footer li a { display: inline-block; line-height: 1.65; }
.mf-footer__about { margin: 16px 0 12px; opacity: .85; max-width: 38ch; } .mf-footer__legal { font-size: 13px; opacity: .6; max-width: 42ch; }
.mf-footer__word { pointer-events: none; font-size: clamp(64px, 17vw, 260px); font-weight: var(--mf-w-hero); letter-spacing: -.06em; line-height: .8; margin: 56px 0 0; text-align: center; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--mf-accent) 55%, transparent); user-select: none; white-space: nowrap; }
.mf-footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--mf-on-chrome) 16%, transparent); font-size: 13px; opacity: .7; }
/* Aya launcher (bottom-right chat bubble + a nudge message) */
.mf-aya { position: fixed; left: 22px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; pointer-events: none; }
.mf-aya > * { pointer-events: auto; }
.mf-aya__btn { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--mf-primary); color: var(--mf-on-primary); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s var(--mf-ease), background .3s; }
.mf-aya__btn:hover { transform: scale(1.06); background: var(--mf-primary-hover); }
.mf-aya__dot { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: #3fbf7f; border: 2px solid var(--mf-bg); }
.mf-aya__msg { position: relative; width: min(290px, calc(100vw - 44px)); padding: 16px 18px 16px; border: 1px solid var(--mf-border); border-radius: 20px 20px 20px 6px; background: var(--mf-surface); color: var(--mf-text); box-shadow: var(--mf-shadow-lg);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom left; transition: opacity .35s var(--mf-ease), transform .35s var(--mf-ease); }
.mf-aya__msg.is-on { opacity: 1; transform: none; }
.mf-aya__msg p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; padding-right: 18px; } .mf-aya__msg .mf-aya__who { margin-bottom: 4px; font-size: 12px; color: var(--mf-text-muted); }
.mf-aya__go { display: inline-block; padding: 9px 18px; border-radius: var(--mf-radius-pill); background: var(--mf-primary); color: var(--mf-on-primary); font-size: 14px; font-weight: var(--mf-w-button); text-decoration: none; }
.mf-aya__x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--mf-text-muted); font-size: 18px; line-height: 1; cursor: pointer; } .mf-aya__x:hover { background: var(--mf-border); }

/* Shared atoms used by several blocks */
.mf-ticks { list-style: none; padding: 0; margin: 16px 0 24px; }
.mf-ticks li { position: relative; padding: 6px 0 6px 32px; }
.mf-ticks li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: var(--mf-w-heading); line-height: 1; background: var(--mf-accent-soft); color: var(--mf-primary); }

/* Long-form content (crawled copy as core blocks) */
.mf-article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; }
.mf-toc { position: sticky; top: calc(var(--mf-nav-h) + 28px); border-left: 1.5px solid var(--mf-border); padding-left: 22px; font-size: 14px; }
.mf-toc p { font-size: 12px; font-weight: var(--mf-w-heading); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-text-muted); margin-bottom: 12px; }
.mf-toc a { display: block; color: var(--mf-text-muted); padding: 6px 0; line-height: 1.35; transition: color .2s, transform .3s var(--mf-ease); }
.mf-toc a:hover, .mf-toc a.is-active { color: var(--mf-primary); text-decoration: none; }
.mf-toc a.is-active { font-weight: var(--mf-w-button); }
/* long pages (no side rails): contents on the left, text on the right at a readable width; the script puts the contents first */
@media (min-width: 1024px) { .mf-article:not(.mf-article--post) { grid-template-columns: 260px minmax(0, 780px); justify-content: center; gap: 64px; } .mf-article.mf-article--single:not(.mf-article--post) { grid-template-columns: minmax(0, 780px); } }
.mf-prose { min-width: 0; counter-reset: sec; }
/* whatever an editor pastes into a post must never push the page wider than the screen */
.mf-prose, .mf-posthero h1, .mf-posthero__lead { overflow-wrap: anywhere; }
.mf-prose pre { overflow-x: auto; max-width: 100%; padding: 16px 18px; border-radius: var(--mf-radius-sm); background: var(--mf-surface); border: 1px solid var(--mf-border); font-size: 14px; line-height: 1.55; overflow-wrap: normal; }
.mf-prose img, .mf-prose video, .mf-prose iframe, .mf-prose svg { max-width: 100%; height: auto; }
.mf-prose iframe { aspect-ratio: 16 / 9; width: 100%; }
.mf-prose .wp-block-table, .mf-prose table { max-width: 100%; }
.mf-prose .wp-block-table { overflow-x: auto; }
.mf-prose h2 { margin-top: 2.4em; font-size: calc(var(--mf-fs-h2) * .78); counter-increment: sec; position: relative; }
.mf-prose h2::before { content: counter(sec, decimal-leading-zero); display: block; font-size: 13px; letter-spacing: .14em; color: var(--mf-accent-ink); font-weight: var(--mf-w-heading); margin-bottom: 8px; }
.mf-prose h2:first-child { margin-top: 0; }
.mf-prose h3 { margin-top: 1.9em; font-size: calc(var(--mf-fs-h3) * .85); }
.mf-prose h4, .mf-prose h5 { margin-top: 1.5em; font-size: 20px; }
.mf-prose p, .mf-prose li { font-size: 17px; }
.mf-prose ul, .mf-prose ol { padding-left: 1.3em; } .mf-prose li { margin-bottom: .5em; }
.mf-prose ul li::marker { color: var(--mf-accent-ink); }
.mf-prose blockquote { margin: 1.5em 0; padding: 22px 26px; background: var(--mf-surface); border-left: 4px solid var(--mf-accent-ink); border-radius: var(--mf-radius-sm); }
.mf-prose a { text-decoration: underline; text-decoration-color: var(--mf-accent-ink); text-underline-offset: 3px; }
.mf-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; }
.mf-prose table { width: 100%; border-collapse: collapse; background: var(--mf-surface); border-radius: var(--mf-radius-sm); overflow: hidden; box-shadow: var(--mf-shadow); margin: 1.5em 0; font-size: 15px; }
.mf-prose th { background: var(--mf-chrome); color: var(--mf-on-chrome); text-align: left; } .mf-prose th, .mf-prose td { padding: 12px 16px; border-bottom: 1px solid var(--mf-border); }
.mf-hp { position: absolute; left: -9999px; }

/* Mobile containment backstop: wide children never stretch the page */
.mf-section, .mf-page { overflow-x: clip; }

@media (max-width: 1100px) { .mf-nav__link { padding: 0 11px; font-size: 16px; } .mf-header__in { gap: 20px; } .mf-nav__login { display: none; } }
@media (max-width: 1023px) {
  .mf-header__in { gap: 12px; }
  .mf-nav__login, .mf-btn--nav { display: none; }
  .mf-burger { display: block; width: 46px; height: 46px; background: none; border: 0; position: relative; cursor: pointer; }
  .mf-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--mf-text); border-radius: 2px; transition: .3s var(--mf-ease); }
  .mf-burger span:first-child { top: 18px; } .mf-burger span:last-child { top: 26px; }
  .mf-nav-open .mf-burger span:first-child { top: 22px; transform: rotate(45deg); }
  .mf-nav-open .mf-burger span:last-child { top: 22px; transform: rotate(-45deg); }
  .mf-nav { position: fixed; inset: var(--mf-nav-top, calc(var(--mf-nav-h) + var(--mf-topbar-h))) 0 0 0; background: var(--mf-surface); padding: 8px var(--mf-gutter) 40px; overflow-y: auto; display: block; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--mf-ease), visibility .45s; z-index: 85; }
  .mf-nav-open .mf-nav { transform: none; visibility: visible; }
  .mf-nav__list { flex-direction: column; gap: 0; height: auto; }
  .mf-nav__item { flex-direction: column; border-bottom: 1px solid var(--mf-border); }
  .mf-nav__link { font-size: 22px; letter-spacing: -.02em; padding: 15px 0; justify-content: space-between; }
  .mf-nav__link::after { display: none; }
  .mf-mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .mf-nav__item.is-open > .mf-mega { display: block; }
  .mf-mega__in { grid-template-columns: 1fr; gap: 16px; padding: 0 0 18px; } .mf-mega__cols { gap: 18px; grid-template-columns: 1fr; }
  /* sub-items: two per row, chip-like, no descriptions, so the drawer stays short */
  .mf-mega__cols { display: block; }
  .mf-mega__col + .mf-mega__col { margin-top: 14px; }
  .mf-mega__title { margin: 0 0 8px; font-size: 11.5px; }
  .mf-mega ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mf-mega li a { height: 100%; justify-content: center; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--mf-bg); font-size: 15px; line-height: 1.25; }
  .mf-mega li a span { font-size: 14.5px; font-weight: var(--mf-w-button); }
  .mf-mega li a small { display: none; }
  .mf-mega li a:hover, .mf-mega li a:active { background: var(--mf-accent-soft); }
  .mf-nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .mf-mega__feature { display: none; }
  .mf-nav__cta-m { display: flex; gap: 12px; margin-top: 28px; } .mf-nav__cta-m .mf-btn { flex: 1; }
  .mf-footer__grid { grid-template-columns: 1fr 1fr; }
  .mf-article { grid-template-columns: 1fr; gap: 32px; } .mf-toc { display: none; }
 
}
@media (max-width: 767px) {
  .mf-logo { font-size: 26px; }
  .mf-footer { padding-top: 56px; } .mf-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .mf-btn { padding: 13px 22px; } .mf-aya { left: 14px; bottom: 14px; } .mf-top { right: 14px; bottom: 14px; width: 46px; height: 46px; } .mf-aya__btn { width: 52px; height: 52px; }
  .mf-head { margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .mf-marquee, .mf-dot::after { animation: none; } .mf-aya__msg { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; } .js .mf-swash path { stroke-dashoffset: 0; animation: none !important; }
}
.mf-prose .mf-prose-btn { margin: 1.6em 0; } .mf-prose a.mf-btn { text-decoration: none; color: var(--mf-on-primary); } .mf-prose a.mf-btn--ghost { color: var(--mf-primary); }
.mf-prose a.mf-btn--ghost:hover { color: var(--mf-on-primary); }
.mf-prose .mf-faqsec { margin-top: 2em; }

/* Above-the-fold content animates by CSS alone so it can never be left hidden */
@keyframes mf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .mf-hero [data-reveal], .js .mf-pagehero [data-reveal] { opacity: 1; transform: none; animation: mf-in .8s var(--mf-ease) both; animation-delay: calc(var(--d, 0) * 80ms + 60ms); }
.js .mf-hero .mf-swash path, .js .mf-pagehero .mf-swash path { animation: mf-draw 1.1s .9s var(--mf-ease) forwards; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Custom select (replaces native <select>) ---------- */
.mf-sel { position: relative; min-width: 0; }
.mf-sel > select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.mf-sel__btn { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: var(--mf-w-button) 16px/1.3 var(--mf-font); color: var(--mf-text); }
.mf-sel__btn:focus-visible { outline: 3px solid var(--mf-accent); outline-offset: 4px; border-radius: 8px; }
.mf-sel__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-sel__val.is-placeholder { color: var(--mf-text-muted); font-weight: var(--mf-w-label); }
.mf-sel__chev { flex: none; opacity: .55; transition: transform .35s var(--mf-ease); }
.mf-sel.is-open .mf-sel__chev { transform: rotate(180deg); }
.mf-sel__list { position: absolute; z-index: 60; left: -22px; top: calc(100% + 18px); min-width: calc(100% + 44px); width: max-content; max-width: 320px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 8px; list-style: none; background: var(--mf-surface); border: 1px solid var(--mf-border); border-radius: 18px; box-shadow: var(--mf-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--mf-ease), transform .35s var(--mf-ease), visibility .25s; scrollbar-width: thin; }
.mf-sel.is-open .mf-sel__list { opacity: 1; visibility: visible; transform: none; }
.mf-sel__opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 12px; cursor: pointer; font: var(--mf-w-label) 15px/1.3 var(--mf-font); color: var(--mf-text); text-transform: none; letter-spacing: 0; }
.mf-sel__opt.is-active, .mf-sel__opt:hover { background: var(--mf-bg); }
.mf-sel__opt[aria-selected="true"] { color: var(--mf-primary); font-weight: var(--mf-w-heading); }
.mf-sel__opt[aria-selected="true"]::after { content: ""; width: 16px; height: 16px; flex: none; background: var(--mf-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Image placeholder (swap via the block's image picker) */
.mf-ph { width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: color-mix(in srgb, var(--mf-primary) 55%, transparent); background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--mf-accent) 14%, transparent) 14px 15px), linear-gradient(160deg, var(--mf-accent-soft), var(--mf-bg)); }
.mf-ph { padding: 18px; }
.mf-ph span { font-size: 12px; font-weight: var(--mf-w-button); letter-spacing: .12em; text-transform: uppercase; }
.mf-ph small { display: block; max-width: 36ch; font-size: 12.5px; line-height: 1.45; font-weight: var(--mf-w-label); letter-spacing: 0; text-transform: none; color: var(--mf-text-muted); }

/* ---------- Theme switcher ---------- */
.mf-themes { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--mf-radius-pill); background: var(--mf-bg); border: 1px solid var(--mf-border); }
.mf-themes__btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--mf-radius-pill); font: var(--mf-w-button) 13px/1 var(--mf-font); color: var(--mf-text-muted); transition: background .3s var(--mf-ease), color .3s var(--mf-ease), box-shadow .3s; }
.mf-themes__btn i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 0 0 1px color-mix(in srgb, var(--sw) 60%, transparent); flex: none; }
.mf-themes__btn:hover { color: var(--mf-text); }
.mf-themes__btn[aria-pressed="true"] { background: var(--mf-surface); color: var(--mf-text); box-shadow: var(--mf-shadow); }
.mf-themes__btn:focus-visible { outline: 3px solid var(--mf-accent); outline-offset: 2px; }
.mf-nav__theme-m { display: none; }
html.mf-theme-anim *, html.mf-theme-anim *::before, html.mf-theme-anim *::after { transition: background-color .45s var(--mf-ease), color .45s var(--mf-ease), border-color .45s var(--mf-ease), fill .45s, stroke .45s !important; }
/* header switcher: swatches only (labels live in the mobile drawer) */
.mf-themes--header .mf-themes__btn span { display: none; } .mf-themes--header .mf-themes__btn { padding: 6px; }
@media (max-width: 1023px) { .mf-themes--header { display: none; } .mf-nav__theme-m { display: block; margin-top: 28px; } .mf-nav__theme-m p { font-size: 12px; font-weight: var(--mf-w-heading); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-text-muted); margin-bottom: 10px; } .mf-nav__theme-m .mf-themes__btn { padding: 9px 16px 9px 12px; font-size: 14px; } }

/* Cookie banner (consent.js) */
.mf-consent { position: fixed; left: 0; right: 0; margin-inline: auto; bottom: 20px; z-index: 120; width: min(440px, calc(100vw - 32px)); padding: 22px 22px 18px; border: 1px solid var(--mf-border); border-radius: var(--mf-radius); background: var(--mf-surface); color: var(--mf-text); box-shadow: var(--mf-shadow-lg);
  opacity: 0; transform: translateY(16px); transition: opacity .4s var(--mf-ease), transform .4s var(--mf-ease); }
.mf-consent.is-on { opacity: 1; transform: none; }
.mf-consent__t { margin: 0 0 6px; font-size: 17px; font-weight: var(--mf-w-heading); letter-spacing: -.01em; }
.mf-consent__d { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--mf-text-muted); } .mf-consent__d a { color: var(--mf-primary); font-weight: var(--mf-w-button); }
.mf-consent__opts { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px; border-radius: var(--mf-radius-sm); background: var(--mf-accent-soft); }
.mf-consent__opts[hidden] { display: none; }
.mf-consent__opt { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.mf-consent__opt input { position: absolute; opacity: 0; pointer-events: none; }
.mf-consent__sw { flex: none; position: relative; width: 38px; height: 22px; margin-top: 2px; border-radius: 99px; background: color-mix(in srgb, var(--mf-text) 22%, transparent); transition: background .25s; }
.mf-consent__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--mf-ease); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.mf-consent__opt input:checked + .mf-consent__sw { background: var(--mf-primary); } .mf-consent__opt input:checked + .mf-consent__sw::after { transform: translateX(16px); }
.mf-consent__opt input:disabled + .mf-consent__sw { opacity: .55; } .mf-consent__opt input:focus-visible + .mf-consent__sw { outline: 2px solid var(--mf-primary); outline-offset: 2px; }
.mf-consent__txt b { display: block; font-size: 14px; } .mf-consent__txt small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--mf-text-muted); }
.mf-consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mf-consent__b { padding: 11px 14px; border: 1.5px solid var(--mf-border); border-radius: var(--mf-radius-pill); background: var(--mf-surface); color: var(--mf-text); font: inherit; font-size: 14px; font-weight: var(--mf-w-button); cursor: pointer; transition: border-color .2s, background .2s; }
.mf-consent__b:hover { border-color: var(--mf-primary); }
.mf-consent__b--main { background: var(--mf-primary); border-color: var(--mf-primary); color: var(--mf-on-primary); } .mf-consent__b--main:hover { background: var(--mf-primary-hover); }
.mf-consent__b--ghost { grid-column: 1 / -1; border-color: transparent; background: none; color: var(--mf-text-muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.mf-consent__b:focus-visible { outline: 2px solid var(--mf-primary); outline-offset: 2px; }
@media (max-width: 560px) { .mf-consent { left: 8px; right: 8px; margin-inline: 0; bottom: 8px; width: auto; padding: 18px 16px 14px; } }
@media (prefers-reduced-motion: reduce) { .mf-consent, .mf-consent__sw::after { transition: none; } }
.mf-footer__pay { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; vertical-align: middle; } .mf-footer__pay img { height: 30px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.mf-footer__bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.mf-404 { padding: clamp(56px, 9vw, 120px) 0; text-align: center; }
.mf-404__code { margin: 0 0 4px; font-size: clamp(88px, 18vw, 190px); font-weight: var(--mf-w-hero); letter-spacing: -.06em; line-height: .9; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--mf-primary) 55%, transparent); }
.mf-404 h1 { margin: 10px 0 12px; } .mf-404 .mf-lead { max-width: 52ch; margin: 0 auto 26px; }
.mf-404__search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 22px; padding: 6px 6px 6px 20px; border: 1.5px solid var(--mf-border); border-radius: var(--mf-radius-pill); background: var(--mf-surface); }
.mf-404__search:focus-within { border-color: var(--mf-primary); }
.mf-404__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--mf-text); }
.mf-404__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 34px; }
.mf-404__links { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; max-width: 640px; margin: 0 auto; padding: 0; list-style: none; }
.mf-404__links a { display: inline-block; padding: 8px 16px; border: 1px solid var(--mf-border); border-radius: var(--mf-radius-pill); background: var(--mf-surface); font-size: 14px; font-weight: var(--mf-w-button); text-decoration: none; color: var(--mf-text); }
.mf-404__links a:hover { border-color: var(--mf-primary); color: var(--mf-primary); }

/* Back to top: a round "sweep" button with a reading-progress ring, bottom-right (Aya is bottom-left) */
.mf-top { position: fixed; right: 22px; bottom: 22px; z-index: 69; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--mf-chrome); color: var(--mf-on-chrome); box-shadow: 0 10px 28px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8); transition: opacity .35s var(--mf-ease), transform .35s var(--mf-ease), visibility .35s, background .25s; }
.mf-top.is-on { opacity: 1; visibility: visible; transform: none; }
.mf-top:hover { background: var(--mf-primary); }
.mf-top:focus-visible { outline: 2px solid var(--mf-accent); outline-offset: 3px; }
.mf-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mf-top__ring circle { fill: none; stroke-width: 2.5; } .mf-top__ring .t { stroke: color-mix(in srgb, var(--mf-on-chrome) 22%, transparent); } .mf-top__ring .p { stroke: var(--mf-accent); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.mf-top__ico { position: relative; transform-origin: 70% 20%; transition: transform .3s var(--mf-ease); }
.mf-top:hover .mf-top__ico { transform: translateY(-3px) rotate(-8deg); }
.mf-top.is-sweep .mf-top__ico { animation: mf-sweep .9s var(--mf-ease); }
@keyframes mf-sweep { 0% { transform: rotate(0); } 20% { transform: rotate(-26deg) translateY(2px); } 45% { transform: rotate(22deg) translateY(-4px); } 70% { transform: rotate(-12deg) translateY(-8px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mf-top, .mf-top__ico { transition: none; } .mf-top.is-sweep .mf-top__ico { animation: none; } }

/* ---- mobile polish (Apple HIG: 44px tap targets, 16px+ text fields, nothing under 12px) ---- */
@media (max-width: 767px) {
  /* search overlay: sits at the top like a native search sheet, nothing can run off the screen */
  .mf-search-overlay { place-items: start center; padding: 76px 16px 24px; overflow-y: auto; }
  .mf-search-overlay__in { width: 100%; min-width: 0; }
  .mf-search-overlay label { font-size: 22px; margin-bottom: 14px; }
  .mf-search-overlay__in > div { gap: 8px; }
  .mf-search-overlay input { font-size: 16px; padding: 0 18px; min-height: 48px; }
  .mf-search-overlay .mf-btn { min-height: 48px; padding: 0 20px; font-size: 15px; flex: none; }
  .mf-search-overlay p { margin-top: 16px; font-size: 14px; line-height: 1.9; }
  .mf-search-overlay p a { margin: 0 12px 0 0; display: inline-block; padding: 2px 0; }
  .mf-search-overlay__close { position: fixed; top: 14px; right: 12px; width: 44px; height: 44px; font-size: 20px; }
  /* small caps labels: never below 12px */
  .mf-posthero__meta dt, .mf-toc__label, .mf-upsell2 small, .mf-herosearch .mf-field > span:first-child { font-size: 12px; }
}
/* cookie banner: compact, equal buttons, comfortable tap targets */
@media (max-width: 560px) {
  .mf-consent__more { display: none; }
  .mf-consent__t { font-size: 16px; }
  .mf-consent__d { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
  .mf-consent__b { min-height: 46px; padding: 0 12px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
  .mf-consent__b--ghost { min-height: 44px; font-size: 14px; padding: 0 6px; }
}

/* text fields are 16px on phones (iOS zooms the page for smaller ones) */
@media (max-width: 767px) {
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]), select, textarea { font-size: 16px; }
}

/* ---- audit fixes ---- */
/* the dark gold (--mf-accent-ink) is for light surfaces; on dark ones, and in the home hero (left as designed), the bright gold stays */
.mf-pagehero, .mf-numbers, .mf-visa, .mf-cta, .mf-footer, .mf-upsell, .mf-posthero, .mf-ticker.is-solid, .mf-cmp.is-rec, .mf-pack.is-best,
.mf-review:nth-child(3n+2), .mf-search-overlay, .mf-float--b, .mf-hero { --mf-accent-ink: var(--mf-accent); }
/* placeholder text must be readable too (4.5:1) */
::placeholder { color: var(--mf-text-muted); opacity: 1; }
/* top announcement bar: a pause button for everyone (moving text needs one) */
.mf-topbar { position: relative; }
.mf-topbar__pause { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: color-mix(in srgb, var(--mf-chrome) 82%, #fff); color: var(--mf-on-chrome); box-shadow: 0 0 0 8px color-mix(in srgb, var(--mf-chrome) 82%, transparent); }
.mf-topbar__pause::before { content: ""; width: 8px; height: 10px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.mf-topbar.is-paused .mf-topbar__pause::before { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; margin-left: 2px; }
.mf-topbar.is-paused .mf-marquee { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mf-topbar__pause { display: none; } }
/* phone corners: smaller floating buttons, and they step aside while the cookie banner is open */
@media (max-width: 767px) {
  .mf-aya__btn, .mf-top { width: 46px; height: 46px; }
  body:has(.mf-consent) .mf-aya, body:has(.mf-consent) .mf-top { visibility: hidden; }
}
