/* ═══════════════════════════════════════════════════════════════
   My Inner Foundation — shared site styles
   (nav, footer, homepage)
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paper & ink */
  --mf-paper:      #F4EDE0;
  --mf-paper-2:    #EDE3D0;
  --mf-paper-3:    #E0D3BC;
  --mf-card:       #FBF7EE;
  --mf-ink:        #1C1814;
  --mf-ink-2:      #3A342C;
  --mf-ink-3:      #6B5E50;
  --mf-muted:      #8F8271;
  --mf-rule:       #D6CBB5;

  /* Course accents */
  --mf-sage:       #4A7D6A;   /* Conscious Parenting */
  --mf-sage-soft:  #E4F0EB;
  --mf-ember:      #B8923A;   /* Through the Fire (gold/amber) */
  --mf-ember-soft: #F4E8D0;
  --mf-terracotta: #9C3A26;   /* Self in Love */
  --mf-terracotta-soft: #F2E2DC;
  --mf-clay:       #B8543D;   /* Self Love / Finding Yourself */
  --mf-clay-soft:  #F4E3D8;

  /* Umbrella accent (used sparingly) */
  --mf-accent:     #8A6A24;

  /* Type */
  --mf-serif:      'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --mf-sans:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mf-mono:       'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Structure */
  --mf-max:        1200px;
  --mf-gutter:     clamp(20px, 4vw, 48px);
  --mf-section-y:  clamp(58px, 7.2vw, 102px);

  --mf-r-sm:       8px;
  --mf-r-md:       14px;
  --mf-r-lg:       22px;
  --mf-r-xl:       32px;
  --mf-r-pill:     9999px;

  --mf-sh-sm:      0 1px 3px rgba(28,24,20,0.05), 0 4px 12px rgba(28,24,20,0.04);
  --mf-sh-md:      0 6px 24px rgba(28,24,20,0.08);
  --mf-sh-lg:      0 24px 60px -12px rgba(28,24,20,0.18);

  --mf-nav-h:      72px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

body.mf-body {
  font-family: var(--mf-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mf-ink);
  background: var(--mf-paper);
  overflow-x: hidden;
  font-weight: 400;
}
body.mf-body p { color: var(--mf-ink-3); line-height: 1.78; }

.mf-wrap { max-width: var(--mf-max); margin: 0 auto; padding: 0 var(--mf-gutter); }

.mf-serif { font-family: var(--mf-serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
.mf-eyebrow {
  display: inline-block;
  font-family: var(--mf-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mf-accent);
}

/* ════════════ NAV ════════════
   The shared MIF header is fixed at the top across ALL viewports with a
   high z-index and an isolated stacking context so no page content can
   ever render above or bleed through it. The .mf-nav-spacer below
   reserves equivalent space so layout is unaffected. Visual design
   (height, colour, blur) is preserved.

   Stacking scale (consistent across components — keep these in sync):
     --mf-z-nav       : 1000  (fixed header)
     --mf-z-drawer    : 1100  (mobile menu / sidebars)
     --mf-z-overlay   : 1200  (modals, dialogs, legal overlay)
     --mf-z-toast     : 1250  (transient notifications)
     --mf-z-safe-mask : 1300  (iPhone notch/status bar mask, always topmost)
*/
:root {
  --mf-z-nav: 1000;
  --mf-z-drawer: 1100;
  --mf-z-overlay: 1200;
  --mf-z-toast: 1250;
  --mf-z-safe-mask: 1300;
}
.mf-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--mf-z-nav);
  isolation: isolate;
  height: var(--mf-nav-h);
  background: rgb(244, 237, 224);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.mf-nav.is-scrolled {
  background: rgb(244, 237, 224);
  border-bottom-color: var(--mf-rule);
  box-shadow: 0 1px 0 rgba(28,24,20,0.04);
}
.mf-nav-inner {
  max-width: var(--mf-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--mf-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mf-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mf-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--mf-ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}
.mf-logo-mark {
  width: 34px; height: 34px; flex-shrink: 0;
}
/* Site-wide brand mark color: black ring + black centre dot.
   Overrides any per-page inline stroke/fill on the two <circle> elements. */
.mf-logo-mark circle { stroke: #000 !important; fill: #000 !important; }
.mf-logo-mark circle:first-of-type { fill: none !important; stroke: #000 !important; }
.mf-logo em { font-style: italic; color: var(--mf-accent); }
.mf-nav-links {
  display: flex; align-items: center;
  gap: 34px;
}
.mf-nav-links a {
  font-family: var(--mf-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--mf-ink-2);
  transition: color .2s;
  position: relative;
}
.mf-nav-links a:hover { color: var(--mf-accent); }
.mf-nav-links a.is-current { color: var(--mf-accent); }

.mf-nav-cta {
  display: none !important;
}
.mf-nav-cta.legacy-show {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: var(--mf-ink);
  color: var(--mf-paper);
  border: none;
  border-radius: var(--mf-r-pill);
  font-family: var(--mf-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.mf-nav-cta:hover { background: var(--mf-ink-2); transform: translateY(-1px); }

.mf-ham {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 8px;
}
.mf-ham span {
  display: block; width: 22px; height: 1.5px;
  background: var(--mf-ink);
  transition: transform .3s, opacity .2s;
}

/* Mobile menu */
.mf-mobile-menu {
  position: fixed; inset: var(--mf-nav-h) 0 0 0;
  background: var(--mf-paper);
  z-index: 899;
  padding: 28px var(--mf-gutter) 48px;
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--mf-rule);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mf-mobile-menu.is-open { display: flex; }

/* Primary links */
.mf-mobile-menu a {
  display: block;
  font-family: var(--mf-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--mf-ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--mf-rule);
  text-decoration: none;
}
.mf-mobile-menu a.is-current { color: var(--mf-accent); }
.mf-mobile-menu a em { color: var(--mf-accent); font-style: italic; }

/* Courses accordion trigger */
.mf-courses-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mf-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--mf-ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--mf-rule);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mf-courses-toggle svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--mf-ink-2);
}
.mf-courses-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Course sub-links (accordion body) */
.mf-courses-list {
  display: none;
  flex-direction: column;
  padding: 6px 0 4px 20px;
  border-bottom: 1px solid var(--mf-rule);
}
.mf-courses-list.is-open { display: flex; }
.mf-courses-list a {
  font-family: var(--mf-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--mf-ink);
  padding: 12px 0;
  border-bottom: 1px solid rgba(28,24,20,0.06);
}
.mf-courses-list a:last-child { border-bottom: none; }
.mf-courses-list a.is-current { color: var(--mf-accent); font-weight: 500; }

.mf-mobile-cta {
  margin-top: 28px;
  padding: 18px !important;
  background: var(--mf-ink);
  color: var(--mf-paper) !important;
  border-radius: var(--mf-r-md);
  text-align: center;
  font-family: var(--mf-sans) !important;
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: none !important;
}

/* Spacer so content isn't hidden under the fixed nav */
.mf-nav-spacer { height: var(--mf-nav-h); }

/* ════════════ HOMEPAGE HERO ════════════ */
.mf-home {
  padding-top: 0;
}

.mf-hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) var(--mf-gutter) clamp(32px, 5vw, 56px);
  max-width: var(--mf-max);
  margin: 0 auto;
  overflow: hidden;
}
.mf-hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(ellipse 60% 70% at 80% 10%, rgba(184,146,58,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 10% 90%, rgba(74,125,106,0.07) 0%, transparent 60%);
}
.mf-hero-inner { position: relative; max-width: 860px; }
.mf-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px;
  background: var(--mf-card);
  border: 1px solid var(--mf-rule);
  border-radius: var(--mf-r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mf-ink-2);
  margin-bottom: 32px;
}
.mf-hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mf-sage);
}
.mf-hero h1 {
  font-family: var(--mf-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--mf-ink);
  margin-bottom: 28px;
  text-wrap: pretty;
}
.mf-hero h1 em {
  font-style: italic;
  color: var(--mf-accent);
}
.mf-hero .lede {
  font-family: var(--mf-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--mf-ink-2);
  max-width: 620px;
  margin-bottom: 40px;
  font-style: italic;
}
.mf-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.mf-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--mf-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--mf-r-pill);
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.mf-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.mf-btn:hover svg { transform: translateX(3px); }

.mf-btn-primary {
  background: var(--mf-ink);
  color: var(--mf-paper);
  box-shadow: 0 4px 20px rgba(28,24,20,0.18);
}
.mf-btn-primary:hover { background: var(--mf-ink-2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(28,24,20,0.22); }

.mf-btn-ghost {
  background: transparent;
  color: var(--mf-ink);
  border: 1px solid var(--mf-ink);
}
.mf-btn-ghost:hover { background: var(--mf-ink); color: var(--mf-paper); transform: translateY(-2px); }

/* ════════════ COURSES SECTION ════════════ */
.mf-courses {
  padding: clamp(28px, 3vw, 48px) 0 var(--mf-section-y);
  background: color-mix(in oklab, var(--mf-paper) 70%, var(--mf-sage-soft) 30%);
  border-top: 1px solid var(--mf-rule);
  border-bottom: 1px solid var(--mf-rule);
}
.mf-courses-header {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  padding: 0 var(--mf-gutter);
  text-align: center;
}
.mf-courses-header .mf-eyebrow { margin-bottom: 18px; }
.mf-courses-header h2 {
  font-family: var(--mf-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--mf-ink);
  margin-bottom: 18px;
}
.mf-courses-header h2 em { font-style: italic; color: var(--mf-accent); }
.mf-courses-header p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--mf-ink-3);
}

.mf-courses-grid {
  max-width: var(--mf-max);
  margin: 0 auto;
  padding: 0 var(--mf-gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mf-course-card {
  position: relative;
  background: var(--mf-card);
  border: 1px solid var(--mf-rule);
  border-radius: var(--mf-r-xl);
  padding: 28px 22px 22px;
  box-shadow: var(--mf-sh-sm);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.mf-course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--mf-card-accent, var(--mf-sage));
  opacity: 0.85;
}
.mf-course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--mf-card-accent-soft, var(--mf-sage-soft)) 0%, transparent 60%);
  opacity: 0.7;
  z-index: -1;
  transition: opacity .3s;
}
.mf-course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mf-sh-lg);
  border-color: var(--mf-card-accent, var(--mf-sage));
}
.mf-course-card:hover::after { opacity: 1; }

.mf-course-num {
  font-family: var(--mf-mono);
  font-size: 10.5px;
  color: var(--mf-muted);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.mf-course-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--mf-card-accent-soft, var(--mf-sage-soft));
  color: var(--mf-card-accent, var(--mf-sage));
  border-radius: var(--mf-r-pill);
  align-self: flex-start;
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,0.06);
}

.mf-course-art {
  height: 92px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mf-card-accent, var(--mf-sage));
}
.mf-course-art svg { width: 100%; height: 100%; }

.mf-course-card h3 {
  font-family: var(--mf-serif);
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mf-ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.mf-course-card h3 em { font-style: italic; color: var(--mf-card-accent, var(--mf-sage)); }

.mf-course-card .mf-course-tag {
  font-family: var(--mf-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--mf-card-accent, var(--mf-sage));
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.mf-course-card .mf-course-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mf-ink-3);
  margin-bottom: 20px;
  flex-grow: 1;
}

.mf-course-meta {
  display: flex; gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--mf-rule);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mf-course-meta-item {
  display: flex; flex-direction: column;
  gap: 3px;
}
.mf-course-meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mf-muted);
}
.mf-course-meta-value {
  font-family: var(--mf-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--mf-ink);
  font-style: italic;
}

.mf-course-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mf-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-ink);
  padding: 12px 0;
  border-top: 1px solid var(--mf-rule);
  transition: color .2s, gap .2s;
  margin-top: auto;
}
.mf-course-link svg { width: 14px; height: 14px; transition: transform .2s; }
.mf-course-card:hover .mf-course-link { color: var(--mf-card-accent, var(--mf-sage)); gap: 14px; }
.mf-course-card:hover .mf-course-link svg { transform: translateX(4px); }

/* Accent variants */
.mf-accent-sage       { --mf-card-accent: var(--mf-sage);       --mf-card-accent-soft: var(--mf-sage-soft); }
.mf-accent-ember      { --mf-card-accent: var(--mf-ember);      --mf-card-accent-soft: var(--mf-ember-soft); }
.mf-accent-terracotta { --mf-card-accent: var(--mf-terracotta); --mf-card-accent-soft: var(--mf-terracotta-soft); }
.mf-accent-clay       { --mf-card-accent: var(--mf-clay);       --mf-card-accent-soft: var(--mf-clay-soft); }

/* ════════════ PHILOSOPHY / INTRO SECTION ════════════ */
.mf-intro {
  padding: clamp(32px, 5vw, 56px) var(--mf-gutter) var(--mf-section-y);
  max-width: 960px;
  margin: 0 auto;
}
.mf-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.mf-intro .mf-eyebrow { margin-bottom: 18px; }
.mf-intro-title {
  font-family: var(--mf-serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--mf-ink);
}
.mf-intro-title em { font-style: italic; color: var(--mf-accent); }
.mf-intro-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--mf-ink-2);
  margin-bottom: 20px;
}
.mf-intro-body p:last-child { margin-bottom: 0; }
.mf-intro-body p strong {
  font-weight: 500;
  color: var(--mf-ink);
}

/* ════════════ PILLARS (quiet 3-up) ════════════ */
.mf-pillars {
  padding: clamp(48px, 7vw, 96px) var(--mf-gutter);
  border-top: 1px solid var(--mf-rule);
  max-width: var(--mf-max);
  margin: 0 auto;
}
.mf-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.mf-pillar {
  padding-top: 24px;
  border-top: 1px solid var(--mf-ink);
}
.mf-pillar-num {
  font-family: var(--mf-mono);
  font-size: 11px;
  color: var(--mf-muted);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.mf-pillar h3 {
  font-family: var(--mf-serif);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--mf-ink);
  margin-bottom: 14px;
}
.mf-pillar h3 em { font-style: italic; color: var(--mf-accent); }
.mf-pillar p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mf-ink-3);
}

/* ════════════ CLOSING CTA ════════════ */
.mf-closing {
  padding: var(--mf-section-y) var(--mf-gutter);
  background: var(--mf-paper-2);
  color: var(--mf-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--mf-paper-3);
}
.mf-closing::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(184,146,58,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 65% at 85% 70%, rgba(74,125,106,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.mf-closing-inner { position: relative; max-width: 680px; margin: 0 auto; }
.mf-closing .mf-eyebrow { color: var(--mf-ember); margin-bottom: 22px; }
.mf-closing h2 {
  font-family: var(--mf-serif);
  font-size: clamp(2.75rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--mf-ink);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.mf-closing h2 em { font-style: italic; color: var(--mf-ember); }
.mf-closing p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--mf-ink-2);
  margin-bottom: 38px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.mf-closing .mf-btn-primary {
  background: var(--mf-ink);
  color: var(--mf-paper);
}
.mf-closing .mf-btn-primary:hover { background: var(--mf-ink-2); }
.mf-closing .mf-btn-ghost {
  color: var(--mf-ink);
  border-color: var(--mf-ink-3);
}
.mf-closing .mf-btn-ghost:hover { background: var(--mf-ink); color: var(--mf-paper); }

/* ════════════ FOOTER ════════════ */
.mf-footer {
  background: var(--mf-paper-2);
  border-top: 1px solid var(--mf-rule);
  padding: 64px var(--mf-gutter) 32px;
  color: var(--mf-ink-3);
}
.mf-footer-inner {
  max-width: var(--mf-max);
  margin: 0 auto;
}
.mf-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--mf-rule);
}
.mf-footer-brand .mf-logo { margin-bottom: 18px; }
.mf-footer-tag {
  font-family: var(--mf-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.55;
  color: var(--mf-ink-2);
  max-width: 320px;
}
.mf-footer h4 {
  font-family: var(--mf-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mf-ink);
  margin-bottom: 18px;
}
.mf-footer-list { display: flex; flex-direction: column; gap: 10px; }
.mf-footer-list a {
  font-size: 18px;
  color: var(--mf-ink-3);
  transition: color .2s;
}
.mf-footer-list a:hover { color: var(--mf-accent); }

.mf-footer-bottom {
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
  color: var(--mf-muted);
}
.mf-footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.mf-footer-legal a { color: var(--mf-muted); transition: color .2s; }
.mf-footer-legal a:hover { color: var(--mf-accent); }

/* ════════════ REVEAL ════════════ */
.mf-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.mf-reveal.is-in { opacity: 1; transform: translateY(0); }
.mf-d1 { transition-delay: .08s; }
.mf-d2 { transition-delay: .16s; }
.mf-d3 { transition-delay: .24s; }

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 1060px) {
  .mf-courses-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
}
@media (max-width: 980px) {
  .mf-nav-links, .mf-nav-cta { display: none; }
  .mf-ham { display: flex; }
  .mf-courses-grid { grid-template-columns: 1fr; gap: 20px; }
  .mf-intro-grid { grid-template-columns: 1fr; }
  .mf-pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .mf-pillar { padding-top: 20px; }
  .mf-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  :root { --mf-section-y: 58px; }
  .mf-hero-actions { flex-direction: column; align-items: stretch; }
  .mf-hero-actions .mf-btn { justify-content: center; }
  .mf-footer-top { grid-template-columns: 1fr; }
  .mf-footer-bottom { flex-direction: column; align-items: flex-start; }
  .mf-course-card { padding: 28px 24px 24px; }
}

/* ═══ iPhone safe-area + course-soon modal (added for native shell) ═══ */
:root { --mf-safe-top: env(safe-area-inset-top, 0px); --mf-safe-bot: env(safe-area-inset-bottom, 0px); }

.mf-nav { padding-top: var(--mf-safe-top); height: calc(var(--mf-nav-h) + var(--mf-safe-top)); }
.mf-nav-spacer { height: calc(var(--mf-nav-h) + var(--mf-safe-top)); }
.mf-mobile-menu { inset: calc(var(--mf-nav-h) + var(--mf-safe-top)) 0 0 0; padding-bottom: var(--mf-safe-bot); }

/* The native Expo shell already paints solid edge blocks above and below
   the WebView, so safe-area insets are typically 0 inside the WebView.
   These rules are defensive in case the shell is ever made translucent
   or the page is loaded directly in mobile Safari. */

/* Improve tap targets on mobile */
@media (max-width: 600px) {
  .mf-nav .mf-cta, .btn { min-height: 44px; }
}

/* Course-soon notice modal */
.mf-soon-overlay {
  position: fixed; inset: 0; z-index: var(--mf-z-overlay);
  background: rgba(28,24,20,.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  padding-top: calc(24px + var(--mf-safe-top));
  padding-bottom: calc(24px + var(--mf-safe-bot));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mf-soon-overlay.is-open { display: flex; animation: mfSoonFade .18s ease-out; }
@keyframes mfSoonFade { from { opacity: 0; } to { opacity: 1; } }

.mf-soon-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: #F5ECD9;
  border: 1px solid rgba(138,106,36,.22);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(28,24,20,.28);
  padding: 28px 24px 22px;
  text-align: left;
  animation: mfSoonRise .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes mfSoonRise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.mf-soon-close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(28,24,20,.06); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #3A2F1F; transition: background .2s;
}
.mf-soon-close:hover { background: rgba(28,24,20,.12); }

.mf-soon-eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10.5px; font-weight: 500;
  color: #8A6A24; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 10px;
}
.mf-soon-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500; font-size: 26px; line-height: 1.2;
  color: #1c1814; margin: 0 0 10px;
}
.mf-soon-body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14.5px; line-height: 1.55; color: #3a342c;
  margin: 0 0 20px;
}
.mf-soon-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mf-soon-primary, .mf-soon-ghost {
  flex: 1 1 auto; min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.mf-soon-primary {
  background: #1c1814; color: #f4ede0;
}
.mf-soon-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(28,24,20,.2); }
.mf-soon-ghost {
  background: transparent; color: #3a342c;
  border-color: rgba(28,24,20,.18);
}
.mf-soon-ghost:hover { background: rgba(28,24,20,.05); }

@media (max-width: 380px) {
  .mf-soon-actions { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   IPHONE-NATIVE REFINEMENTS  (added 2026-04-21)
   Goal: make every page feel like a native iOS app
   - Robust safe-area handling (top notch + bottom home indicator)
   - Hide redundant inner course navs on phones (MIF nav is enough)
   - 44px+ tap targets, calmer mobile typography
   - Sticky bottom action bars where appropriate
   - Visible "back to courses" pill on mobile course pages
   ═══════════════════════════════════════════════════════════════ */

/* — Safe-area variables (already declared above; re-exposing for clarity) — */
:root {
  --mf-safe-l: env(safe-area-inset-left, 0px);
  --mf-safe-r: env(safe-area-inset-right, 0px);
}

/* ─── iPhone safe-area top block ───────────────────────────────────
   A dedicated solid bar fills the notch / Dynamic Island area on every
   page. Nothing else may render in that strip. The shared .mf-nav is
   shifted DOWN by env(safe-area-inset-top) so its text/logo can never
   appear behind the notch. The bar uses the app's paper background so
   it visually merges with the nav bar below it.                      */
body.mf-body {
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: var(--mf-safe-l);
  padding-right: var(--mf-safe-r);
}

/* Guaranteed minimum strip height for the notch / camera area.
   On phones / iOS WebViews we take the larger of the actual safe-area
   inset and 50px so the logo is always pushed below the camera. On
   tablet/desktop there is no notch, so we use 0 — otherwise the nav
   would float 50px below the viewport top and page content would scroll
   into the gap above it. */
:root {
  --mf-camera-clear: env(safe-area-inset-top, 0px);
}
@media (max-width: 767px) {
  :root {
    --mf-camera-clear: max(env(safe-area-inset-top, 0px), 50px);
  }
}

.mf-safe-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mf-camera-clear);
  background: var(--mf-paper);
  z-index: var(--mf-z-safe-mask); /* topmost — covers notch above nav */
  pointer-events: none;
}

/* Push the fixed nav (logo lives here) below the safe-area block;
   remove its internal safe-area padding so we don't double-offset. */
.mf-nav {
  top: var(--mf-camera-clear) !important;
  padding-top: 0 !important;
  height: var(--mf-nav-h) !important;
}
/* The in-flow spacer that reserves room for the fixed nav must now
   account for the camera-clear + nav height together — this is what
   pushes every page's H1 / hero title below the camera. */
.mf-nav-spacer {
  height: calc(var(--mf-nav-h) + var(--mf-camera-clear)) !important;
}
/* Mobile menu drawer also opens below the safe-area block + nav. */
.mf-mobile-menu {
  inset: calc(var(--mf-nav-h) + var(--mf-camera-clear)) 0 0 0 !important;
}

/* — Always show the "← All Courses" back chip on mobile (course pages) — */
@media (max-width: 980px) {
  .mf-nav-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: rgba(28, 24, 20, 0.06);
    color: var(--mf-ink-2);
    border-radius: var(--mf-r-pill);
    font-family: var(--mf-sans);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(28, 24, 20, 0.08);
    min-height: 36px;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
  }
  .mf-nav-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
  .mf-nav-cta:hover, .mf-nav-cta:active { background: rgba(28, 24, 20, 0.1); }
  /* Hide on the homepage where it points to itself */
  body.mf-body.is-home .mf-nav-cta { display: none !important; }
}

/* — Ensure mobile menu fully respects safe areas, scrolls cleanly — */
.mf-mobile-menu {
  padding-top: 24px;
  padding-bottom: max(48px, calc(48px + var(--mf-safe-bot)));
  padding-left: max(var(--mf-gutter), calc(var(--mf-gutter) + var(--mf-safe-l)));
  padding-right: max(var(--mf-gutter), calc(var(--mf-gutter) + var(--mf-safe-r)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* — Footer: respect bottom safe area — */
.mf-footer {
  padding-bottom: max(40px, calc(40px + var(--mf-safe-bot)));
}

/* — Phone: hide the redundant per-course inner navs.
     Each course has its own anchor nav stacked under the MIF nav,
     which on iPhone wastes ~70-90px of vertical space and feels
     un-native. Section anchors are still reachable by scrolling. — */
@media (max-width: 768px) {
  /* Course-specific inner navs */
  .so-page > .nav,                 /* SWITCH OFF */
  .lr-page #lrNav,                 /* 30-day reset (if present) */
  .lr-page > .nav,
  .cp-page #nav,                   /* Conscious Parenting */
  .cp-page .topnav,
  body.mf-body #cnav,              /* Finding Yourself */
  body.mf-body .topnav,            /* generic inner topnav */
  body.mf-body > nav.nav,          /* through-the-fire bare nav */
  .tf-page > .nav,
  .sl-page > .nav {
    display: none !important;
  }
  /* Compensate: kill the top padding inner pages added to clear their own nav */
  .so-page .hero { padding-top: 1.5rem !important; }
}

/* — Phone: tighten oversized hero/section padding so first content
     is visible just below the iPhone notch + MIF nav — */
@media (max-width: 600px) {
  :root { --mf-section-y: 45px; }
  body.mf-body h1, body.mf-body .mf-serif h1 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.1; }
  body.mf-body h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.15; }
  body.mf-body p { font-size: 16px; line-height: 1.7; }
  .mf-wrap { padding-left: max(20px, calc(20px + var(--mf-safe-l)));
             padding-right: max(20px, calc(20px + var(--mf-safe-r))); }
}

/* — Universal 44px minimum tap target on phones — */
@media (max-width: 768px) {
  a[href], button, [role="button"], .mf-btn, .mf-nav-cta {
    min-height: 44px;
  }
  .mf-mobile-menu a { padding: 16px 0; min-height: 56px; display: flex; align-items: center; }
  /* Course inner button-like elements */
  .so-page .lesson-btn,
  .so-page .module-toggle,
  .so-page .faq-q { min-height: 52px; }
  .so-page .module-toggle { font-size: 0.95rem; }
}

/* ═══ SWITCH OFF — app-style refinements ═══ */
@media (max-width: 768px) {
  /* The desktop layout has sidebar | content side-by-side.
     On phones, force a clean single column and let the lesson
     viewer occupy the full width with comfortable padding. */
  .so-page .course-layout { display: block !important; }
  .so-page .course-sidebar { position: static !important; width: 100% !important; max-width: none !important; }
  .so-page .sidebar-inner { padding: 0 !important; }
  .so-page .lesson-viewer {
    min-height: 0 !important; max-height: none !important;
    margin-top: 1.5rem; padding: 1.25rem !important;
    border-radius: var(--mf-r-md);
  }
  .so-page .container-wide,
  .so-page .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .so-page .module-block { margin-bottom: 0.75rem; }
  .so-page .lesson-list { padding-left: 0; }
  .so-page .lesson-btn { padding: 14px 16px !important; gap: 12px; }
  .so-page .lesson-num { min-width: 36px; font-weight: 600; }

  /* Promote the in-content prev/next to a sticky bottom bar */
  .so-page .lc-nav {
    position: sticky;
    bottom: 0;
    margin: 1.5rem -1.25rem -1.25rem;
    padding: 12px 16px max(12px, calc(12px + var(--mf-safe-bot)));
    background: rgba(247, 243, 236, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(28, 24, 20, 0.08);
    display: flex !important;
    gap: 8px;
    z-index: 50;
  }
  .so-page .lc-nav-btn {
    flex: 1 1 0; min-height: 48px;
    font-size: 13px;
    padding: 10px 12px !important;
    border-radius: 12px;
    background: rgba(28, 24, 20, 0.05);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .so-page .lc-nav-btn.disabled { opacity: 0.35; pointer-events: none; }

  /* Compact framework cards & faq for phone scanning */
  .so-page .frameworks-grid { grid-template-columns: 1fr !important; }
  .so-page .benefits-grid,
  .so-page .who-grid,
  .so-page .about-cards { grid-template-columns: 1fr !important; }
  .so-page .transform-row { flex-direction: column !important; gap: 1rem !important; }
  .so-page .transform-divider { display: none !important; }
}

/* ═══ Through the Fire — bottom bar safe-area ═══ */
.bot-bar {
  padding-bottom: max(16px, calc(16px + var(--mf-safe-bot))) !important;
  padding-left: max(20px, calc(20px + var(--mf-safe-l))) !important;
  padding-right: max(20px, calc(20px + var(--mf-safe-r))) !important;
}

/* ═══ Self You Bring to Life Course — sticky lesson nav (.nav-btn rows) ═══ */
@media (max-width: 768px) {
  /* Make sure prev/next bars never get hidden under the home indicator */
  .nav-btn { min-height: 48px; }
}

/* ═══ Hub course cards — phone polish ═══ */
@media (max-width: 600px) {
  .mf-course-card {
    padding: 24px 20px 20px !important;
    border-radius: 18px;
  }
  .mf-course-card h3 { font-size: clamp(2rem, 8vw, 2.4rem); }
  .mf-course-art { max-height: 100px; }
  .mf-course-meta { gap: 10px !important; }
  .mf-course-meta-item { padding: 8px 10px !important; }
}

/* ═══ Calm transitions everywhere on touch devices ═══ */
@media (hover: none) {
  a, button, .mf-btn, .mf-course-card { transition: opacity .15s, background .15s; }
  a:active, button:active, .mf-course-card:active { opacity: 0.7; }
}

/* ═══ Floating "back to top" pill (added by JS on long pages) ═══ */
.mf-back-top {
  position: fixed;
  right: max(16px, calc(16px + var(--mf-safe-r)));
  bottom: max(16px, calc(16px + var(--mf-safe-bot)));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mf-ink);
  color: var(--mf-paper);
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--mf-sh-md);
  z-index: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.mf-back-top.is-visible { display: flex; opacity: 1; transform: none; }
.mf-back-top svg { width: 18px; height: 18px; }

/* ═══ Status bar tint for native shell — solid color matches paper === */
@media (display-mode: standalone) {
  body.mf-body { background: var(--mf-paper); }
}

/* ═══════════════════════════════════════════════════════════════
   CALM MOTION (global)
   Reduce motion intensity across the whole site. Keeps subtle
   fades, removes large slides / bounces / parallax / zooms,
   and shortens long transitions. Respects prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --mf-motion-fast: 120ms;
  --mf-motion-base: 180ms;
  --mf-motion-slow: 240ms;
  --mf-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cap any transition/animation duration sitewide so long marketing
   transitions become quick and calm, without changing easing intent. */
*,
*::before,
*::after {
  animation-duration: var(--mf-motion-slow) !important;
  animation-iteration-count: 1 !important;
  transition-duration: var(--mf-motion-base) !important;
  transition-timing-function: var(--mf-ease) !important;
}

/* Disable smooth-scroll jumps that pull the eye on hash navigation. */
html { scroll-behavior: auto !important; }

/* Tame hover scale / lift effects: keep the affordance, drop the bounce. */
.hover-scale,
a:hover,
button:hover,
.mf-card:hover,
.mf-course-card:hover,
.mf-cta:hover,
.mf-nav-cta:hover {
  transform: none !important;
}

/* Neutralize large translate / scale transforms used purely for entrance
   animations on marketing sections — keep opacity fades, drop movement. */
.animate-fade-in,
.animate-slide-in-right,
.animate-slide-out-right,
.animate-scale-in,
.animate-scale-out,
.animate-enter,
.animate-exit,
[data-animate],
[data-aos] {
  animation-name: mf-soft-fade !important;
  animation-duration: var(--mf-motion-slow) !important;
  animation-timing-function: var(--mf-ease) !important;
  animation-iteration-count: 1 !important;
  transform: none !important;
}

@keyframes mf-soft-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Stop any infinite/auto motion (pulses, bounces, marquees, parallax loops)
   so nothing pulls the eye while reading. */
.animate-pulse,
.animate-bounce,
.animate-spin,
.pulse,
[class*="marquee"],
[class*="parallax"] {
  animation: none !important;
  transform: none !important;
}

/* Honour user OS-level setting: collapse motion to near-instant. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE APP ONLY — Course list as simple vertical rows.
   Scoped to standalone (installed app) + phone width so that the
   website (mobile browser, tablet, desktop) is unaffected.
   ═══════════════════════════════════════════════════════════════ */
@media (display-mode: standalone) and (max-width: 600px) {
  .mf-courses-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .mf-course-card {
    display: grid !important;
    grid-template-columns: 64px 1fr !important;
    grid-template-areas: "art body" !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    min-height: 0 !important;
  }
  .mf-course-card::before,
  .mf-course-card::after { display: none !important; }
  .mf-course-card .mf-course-num,
  .mf-course-card .mf-course-badge,
  .mf-course-card .mf-course-tag,
  .mf-course-card .mf-course-meta,
  .mf-course-card .mf-course-link { display: none !important; }
  .mf-course-card .mf-course-art {
    grid-area: art !important;
    width: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mf-course-card h3 {
    grid-area: body !important;
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
  }
  .mf-course-card .mf-course-desc {
    grid-column: 2 !important;
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

/* ═══ Course landing pages: mobile-only "Home" button on far right ═══
   Visible only inside the app / mobile width (<=600px).
   Tablet & desktop are unchanged — the existing nav links handle those. */
.mf-nav-home-mobile {
  display: none;
}
@media (max-width: 600px) {
  .mf-nav-inner:has(.mf-nav-home-mobile) .mf-ham {
    /* keep hamburger; place Home button before it on the far right */
    margin-left: 0;
  }
  .mf-nav-home-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 10px;
    padding: 8px 14px;
    font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mf-ink, #1c1814);
    text-decoration: none;
    border: 1px solid rgba(138, 106, 36, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
  }
  .mf-nav-home-mobile:hover,
  .mf-nav-home-mobile:active {
    background: var(--mf-accent, #8A6A24);
    color: #fff;
    border-color: var(--mf-accent, #8A6A24);
  }
}

/* ─── Stacking-context normalisation across all pages ───
   Every modal / overlay / drawer / popover / dropdown variant used
   anywhere in the project is mapped to the shared scale here so they
   render predictably above the fixed header (z: var(--mf-z-nav)).
   Page-level inline styles or scoped CSS that set their own z-index
   lose to these rules thanks to !important. */

/* — Drawers / mobile menus / side sheets — sit just above the header — */
.mf-mobile-menu,
.mm,                       /* per-page mobile menus on landing pages */
.mobile-menu,              /* switch-off course mobile menu */
.so-page .mobile-menu,
.drawer,
.side-sheet,
[data-mf-drawer] {
  z-index: var(--mf-z-drawer) !important;
}

/* — Modals, dialogs, full-screen overlays — above drawers — */
#mf-legal-overlay,
.mf-legal-overlay,
.mf-soon-overlay,
[role="dialog"][aria-modal="true"],
.modal,
.modal-overlay,
.modal-backdrop,
.dialog,
.dialog-overlay,
.lightbox,
.lr-modal,                 /* 30-day life reset modal */
[data-mf-overlay],
[data-mf-modal] {
  z-index: var(--mf-z-overlay) !important;
}

/* — Floating popovers / dropdowns / tooltips — overlay level so they
     never get clipped by the header or by sticky section nav bars — */
.popover,
.tweaks-popover,           /* self-love SPA settings popover */
.dropdown-menu,
.menu-popover,
.tooltip,
[role="menu"][data-mf-floating],
[role="listbox"][data-mf-floating],
[data-mf-popover] {
  z-index: var(--mf-z-overlay) !important;
}

/* — Transient UI on top of overlays — */
.mf-toast,
.toast,
.mf-back-top,
.snap-dots,                /* through-the-fire side scroll indicator */
[data-mf-toast] {
  z-index: var(--mf-z-toast) !important;
}

/* ════════════ DESKTOP LEGIBILITY BUMP ════════════
   Increase small text sizes on web view (≥768px) only.
   Mobile sizes stay untouched to preserve current mobile layout. */
@media (min-width: 768px) {
  body.mf-body { font-size: 17px; line-height: 1.65; }
  body.mf-body p { color: var(--mf-ink-2); line-height: 1.8; }

  .mf-eyebrow { font-size: 13px; letter-spacing: 0.2em; }
  .mf-course-badge { font-size: 13px; }
  .mf-course-card .mf-course-tag { font-size: 14px; }
  .mf-course-meta-label { font-size: 12px; }
  .mf-pillar-num { font-size: 13px; }

  .mf-nav-links a { font-size: 15px; }

  .mf-footer h4 { font-size: 13px; }
  .mf-footer,
  .mf-footer p,
  .mf-footer a,
  .mf-footer li { font-size: 15px; }
  .mf-footer-bottom { font-size: 14px; }
}
