/* ============================================================================
   MenoMind Knowledge Library — feminine, premium theme.
   Palette:
     #6B2C5C  deep mauve   (headings + primary)
     #C99B7E  rose gold    (accent, links, dividers)
     #A8B89E  sage         (secondary, severity-mild)
     #FCF8F3  ivory        (page background)
     #3D2B3D  dark plum    (body)
     #8E7A8E  warm grey    (muted)
============================================================================ */
:root {
    --mm-mauve:      #6B2C5C;
    --mm-mauve-dark: #4A1D40;
    --mm-rose:       #C99B7E;
    --mm-rose-dark:  #A87A5C;
    --mm-sage:       #A8B89E;
    --mm-ivory:      #FCF8F3;
    --mm-cream:      #F6EEE3;
    --mm-plum:       #3D2B3D;
    --mm-muted:      #8E7A8E;
    --mm-line:       #EBE2D5;
}

/* ---------- Page wrapper ---------- */
.mmg-page {
    background: var(--mm-ivory);
    color: var(--mm-plum);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

/* H1 keeps the editorial Playfair serif — the page-level "moment". */
.mmg-page h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--mm-mauve);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
/* H2–H6 use the body sans-serif so sub-headings read as content, not poster
   text. Weight is bumped (700) so they still carry hierarchy weight, and
   letter-spacing is loosened slightly (sans-serifs don't want the same
   negative tracking as Playfair). Colour stays mauve for visual rhythm. */
.mmg-page h2, .mmg-page h3, .mmg-page h4, .mmg-page h5, .mmg-page h6 {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--mm-mauve);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.mmg-page a { color: var(--mm-mauve); text-decoration-color: var(--mm-rose); text-underline-offset: 4px; }
.mmg-page a:hover { color: var(--mm-mauve-dark); }

/* ---------- Reading progress bar ---------- */
.mmg-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; background: transparent; z-index: 9999;
    pointer-events: none;
}
.mmg-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--mm-mauve), var(--mm-rose));
    transition: width .1s linear;
}

/* ---------- Hero ---------- */
.mmg-hero {
    position: relative;
    padding: 80px 24px 110px;
    background:
        radial-gradient(ellipse at 90% 0%, rgba(201,155,126,.18), transparent 55%),
        radial-gradient(ellipse at 10% 100%, rgba(107,44,92,.10), transparent 60%),
        linear-gradient(180deg, #FBF5EC 0%, var(--mm-ivory) 100%);
    overflow: hidden;
}
.mmg-hero::before {
    /* decorative floral motif top-right */
    content: ''; position: absolute; top: -40px; right: -60px;
    width: 280px; height: 280px;
    background: url('../images/menomind/flower-no-background.png') no-repeat center / contain;
    opacity: 0.22; transform: rotate(20deg);
    pointer-events: none;
}
.mmg-hero::after {
    /* floral motif bottom-left */
    content: ''; position: absolute; bottom: -80px; left: -50px;
    width: 240px; height: 240px;
    background: url('../images/menomind/flower-no-background.png') no-repeat center / contain;
    opacity: 0.14; transform: rotate(-30deg);
    pointer-events: none;
}
.mmg-hero-wrap { max-width: 920px; margin: 0 auto; position: relative; z-index: 2; }
.mmg-hero-crumbs { font-size: 13px; color: var(--mm-muted); margin-bottom: 16px; letter-spacing: 0.04em; }
.mmg-hero-crumbs a { color: var(--mm-muted); text-decoration: none; }
.mmg-hero-crumbs a:hover { color: var(--mm-mauve); }
.mmg-hero-crumbs i { margin: 0 8px; font-size: 9px; }

.mmg-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: 0.22em; font-weight: 700; text-transform: uppercase;
    color: var(--mm-rose-dark);
    padding: 6px 14px;
    border: 1px solid var(--mm-rose);
    border-radius: 99px;
    background: rgba(252,248,243,.6);
    margin-bottom: 22px;
}
.mmg-hero-eyebrow i { font-size: 11px; }

.mmg-hero-title {
    font-size: 54px; margin: 0 0 18px; max-width: 18ch;
    background: linear-gradient(135deg, var(--mm-mauve) 0%, #84365B 60%, var(--mm-rose-dark) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mmg-hero-sub {
    font-size: 18px; color: var(--mm-plum); margin: 0 0 18px;
    max-width: 56ch; line-height: 1.55; opacity: .85;
}
.mmg-hero-lead {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-style: italic; line-height: 1.5;
    color: var(--mm-plum); margin: 26px 0 0;
    max-width: 60ch; padding-left: 22px; border-left: 3px solid var(--mm-rose);
}

.mmg-hero-meta {
    display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
    margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--mm-line);
    font-size: 13px; color: var(--mm-muted);
}
.mmg-hero-meta strong { color: var(--mm-plum); font-weight: 600; }
.mmg-hero-meta .mmg-reviewer {
    display: inline-flex; align-items: center; gap: 10px;
    background: white; padding: 6px 14px 6px 6px;
    border-radius: 99px; box-shadow: 0 1px 3px rgba(107,44,92,.08);
}
.mmg-hero-meta .mmg-reviewer img {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--mm-rose);
}

/* ---------- Body layout: article + sticky TOC ---------- */
.mmg-body {
    max-width: 1180px; margin: -50px auto 0; padding: 0 24px;
    position: relative; z-index: 3;
    display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px;
    /* No align-items: the grid defaults to stretch, which gives the right-rail
       <aside> the full row height. Without that, position:sticky on .mmg-toc
       has no track to stick along — it just scrolls away with the aside. */
}
.mmg-body > aside { min-width: 0; }
@media (max-width: 980px) { .mmg-body { grid-template-columns: 1fr; gap: 32px; margin-top: -30px; } }

.mmg-article {
    background: white; border-radius: 18px;
    padding: 50px clamp(28px, 4vw, 60px) 60px;
    box-shadow: 0 12px 40px rgba(107,44,92,.08), 0 2px 8px rgba(107,44,92,.04);
    border: 1px solid var(--mm-line);
    min-width: 0;
}

/* ---------- Featured image banner (between hero + article) ----------
   Sits AFTER the hero as a magazine-style editorial banner. Constrained to
   a cinematic 21:9 ratio and capped at a fraction of the viewport so it
   reads as a banner — not a hero replacement that pushes the article off
   the fold. */
.mmg-feature-banner {
    max-width: 1080px;
    margin: -80px auto 0;
    padding: 0 24px;
    position: relative; z-index: 4;
}
/* When a feature banner precedes the body grid, neutralise the body's
   default -50px pull-up so the right-rail TOC can't ride up into the
   banner's bottom edge. Spacing between banner and article is owned here. */
.mmg-feature-banner + .mmg-body {
    margin-top: 30px;
}
.mmg-feature-banner figure {
    margin: 0; border-radius: 18px; overflow: hidden;
    background: white; border: 1px solid var(--mm-line);
    box-shadow: 0 20px 50px rgba(107,44,92,.14), 0 4px 12px rgba(107,44,92,.06);
}
.mmg-feature-banner-img {
    display: block; width: 100%; height: auto;
    aspect-ratio: 21 / 9;
    max-height: clamp(220px, 36vh, 380px);
    object-fit: cover;
}
.mmg-feature-banner figcaption {
    padding: 12px 22px;
    background: linear-gradient(180deg, white 0%, var(--mm-cream) 100%);
    font-size: 12.5px; color: var(--mm-muted); font-style: italic;
    border-top: 1px solid var(--mm-line);
    display: flex; align-items: center; gap: 10px;
    line-height: 1.4;
}
.mmg-feature-banner figcaption i { color: var(--mm-rose); font-size: 12px; flex-shrink: 0; }

@media (max-width: 720px) {
    .mmg-feature-banner { margin: -50px auto 0; padding: 0 16px; }
    .mmg-feature-banner figure { border-radius: 14px; }
    .mmg-feature-banner-img { aspect-ratio: 16 / 10; max-height: 240px; }
    .mmg-feature-banner figcaption { padding: 10px 16px; font-size: 12px; }
}

/* ---------- DHA-compliance disclaimer footer ---------- */
.mmg-disclaimer {
    margin-top: 50px; padding: 26px 28px;
    background: linear-gradient(180deg, var(--mm-cream) 0%, #FBF5EC 100%);
    border: 1px solid var(--mm-line); border-radius: 14px;
    font-size: 13.5px; color: var(--mm-plum); line-height: 1.7;
    position: relative;
}
.mmg-disclaimer-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 10px; font-size: 13px;
}
.mmg-disclaimer-row strong { color: var(--mm-mauve); font-weight: 600; }
.mmg-disclaimer-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--mm-mauve); color: white;
    padding: 4px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.mmg-disclaimer-body {
    margin: 12px 0 0; font-size: 13px; color: var(--mm-muted); line-height: 1.7;
}

/* Subtle highlight for primary SEO keywords inside richtext bodies. */
.mmg-section strong em,
.mmg-section em strong,
.mmg-section .mmg-keyword {
    background: linear-gradient(180deg, transparent 65%, rgba(201,155,126,.28) 65%, rgba(201,155,126,.28) 90%, transparent 90%);
    font-style: normal; color: var(--mm-mauve); font-weight: 700;
    padding: 0 2px;
}

/* ---------- TL;DR card ---------- */
.mmg-tldr {
    background: linear-gradient(135deg, var(--mm-cream) 0%, var(--mm-ivory) 100%);
    border: 1px solid var(--mm-rose);
    border-radius: 14px;
    padding: 26px 28px;
    margin: 0 0 36px;
    position: relative;
}
.mmg-tldr::before {
    content: 'In one minute';
    position: absolute; top: -11px; left: 24px;
    background: var(--mm-mauve); color: white;
    font-family: 'Inter', sans-serif;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 99px;
}
.mmg-tldr h2 { display: none; } /* heading is the floating chip */
.mmg-tldr ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.mmg-tldr li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--mm-plum); }
.mmg-tldr li i { color: var(--mm-rose-dark); font-size: 14px; margin-top: 5px; flex-shrink: 0; }

/* ---------- Glance stats strip ----------
   Locked to a 2-column grid on desktop so the layout reads as a balanced
   2×2 quartet for 4 stats (rather than the auto-fit 3+1 row that left the
   last tile hanging). Mobile breakpoint below preserves the same 2-col
   feel with tighter padding. */
.mmg-glance {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px; margin: 32px 0 40px;
}
.mmg-glance-stat {
    background: white; border: 1px solid var(--mm-line); border-left: 4px solid var(--mm-rose);
    border-radius: 10px; padding: 16px 18px;
}
.mmg-glance-stat .v {
    font-family: 'Playfair Display', serif; font-size: 28px; line-height: 1; color: var(--mm-mauve); font-weight: 700;
}
.mmg-glance-stat .l { font-size: 12.5px; color: var(--mm-muted); margin-top: 6px; }

/* ---------- Article sections ---------- */
/* scroll-margin-top accounts for the sticky site header (~80–90px tall) so a
   section H2 is not hidden under the chrome after a TOC click navigation. */
.mmg-section { margin: 40px 0; scroll-margin-top: 100px; }
.mmg-section h2 {
    font-size: 32px; margin: 0 0 8px;
    position: relative; padding-bottom: 14px;
}
.mmg-section h2::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--mm-rose), transparent);
}
.mmg-section h3 { font-size: 20px; margin: 26px 0 10px; color: var(--mm-mauve); }
.mmg-section p  { margin: 0 0 18px; }
.mmg-section ul, .mmg-section ol { margin: 0 0 18px; padding-left: 22px; }
.mmg-section li { margin-bottom: 8px; }
.mmg-section strong { color: var(--mm-mauve); }

.mmg-section-sub {
    font-size: 16px; color: var(--mm-muted); margin: -6px 0 22px;
    max-width: 64ch;
}

.mmg-pullquote {
    font-family: 'Playfair Display', serif; font-style: italic;
    font-size: 24px; line-height: 1.5; color: var(--mm-mauve);
    margin: 28px 0; padding: 24px 28px 24px 32px;
    border-left: 4px solid var(--mm-rose);
    background: linear-gradient(90deg, rgba(252,248,243,.6) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
}
.mmg-pullquote::before { content: '“'; font-size: 60px; line-height: 0; color: var(--mm-rose); margin-right: 8px; vertical-align: -10px; }

.mmg-drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 64px; line-height: 0.85; font-weight: 700;
    float: left; padding: 6px 12px 0 0; color: var(--mm-mauve);
}

/* ---------- Symptoms grid ---------- */
.mmg-symptoms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.mmg-symptom {
    background: white; border: 1px solid var(--mm-line); border-radius: 14px;
    padding: 22px; position: relative;
    transition: transform .15s, box-shadow .15s;
}
.mmg-symptom:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(107,44,92,.08); }
.mmg-symptom-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--mm-rose) 0%, var(--mm-mauve) 100%);
    color: white; display: grid; place-items: center; font-size: 18px;
    margin-bottom: 14px;
}
.mmg-symptom h4 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--mm-mauve); margin: 0 0 6px; }
.mmg-symptom p  { font-size: 14px; color: var(--mm-plum); margin: 0; line-height: 1.6; }
.mmg-severity {
    position: absolute; top: 18px; right: 18px;
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
    padding: 4px 8px; border-radius: 99px;
}
.mmg-severity.mild     { background: #E4EDD9; color: #4F6B3B; }
.mmg-severity.moderate { background: #FDEACB; color: #8B5A00; }
.mmg-severity.severe   { background: #FBD5D9; color: #8B1A2E; }

/* ---------- Approach pillars (alternative to symptoms grid) ----------
   Three large editorial cards with prominent numerals — used on guides
   where a symptoms checklist doesn't suit the topic (e.g. mental health).
   Visually distinct from .mmg-symptoms: bigger cards, no severity chips,
   big rose-gold numerals at top-right. */
.mmg-pillars {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px; margin-top: 22px;
}
.mmg-pillar {
    background: linear-gradient(180deg, white 0%, var(--mm-cream) 100%);
    border: 1px solid var(--mm-line); border-radius: 16px;
    padding: 32px 26px 28px; position: relative;
    transition: transform .15s, box-shadow .15s;
}
.mmg-pillar:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(107,44,92,.08); }
.mmg-pillar-num {
    font-family: 'Playfair Display', serif;
    font-size: 60px; line-height: 0.9; font-weight: 700;
    color: var(--mm-rose); opacity: 0.32;
    position: absolute; top: 14px; right: 22px;
    pointer-events: none;
}
.mmg-pillar-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--mm-rose) 0%, var(--mm-mauve) 100%);
    color: white; display: grid; place-items: center;
    font-size: 18px; margin-bottom: 16px; position: relative; z-index: 1;
}
.mmg-pillar h3 { font-size: 19px; margin: 0 0 8px; }
.mmg-pillar p  { font-size: 14.5px; color: var(--mm-plum); line-height: 1.6; margin: 0; }
@media (max-width: 720px) {
    .mmg-pillars { grid-template-columns: 1fr; gap: 14px; }
    .mmg-pillar { padding: 26px 22px 24px; }
    .mmg-pillar-num { font-size: 48px; top: 12px; right: 18px; }
}

/* ---------- Triage urgency cards ----------
   Red / amber / green action cards used on guides where the main reader
   question is "is this serious?" — bleeding, discharge, sudden symptoms.
   Each card colour-codes via .mmg-triage-{urgent,soon,monitor}. */
.mmg-triage {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; margin-top: 22px;
}
.mmg-triage-card {
    background: white;
    border: 1px solid var(--mm-line);
    border-left: 5px solid var(--mm-rose);
    border-radius: 14px;
    padding: 26px 24px 24px;
    transition: transform .15s, box-shadow .15s;
}
.mmg-triage-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(107,44,92,.08); }
.mmg-triage-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 18px; margin-bottom: 14px;
}
.mmg-triage-label {
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
    margin-bottom: 6px;
}
.mmg-triage-card h3 { font-size: 17px; margin: 0 0 12px; }
.mmg-triage-card ul { margin: 0; padding-left: 18px; }
.mmg-triage-card li { font-size: 14px; line-height: 1.55; margin-bottom: 6px; color: var(--mm-plum); }

/* Urgency variants */
.mmg-triage-urgent {
    border-left-color: #B91C1C;
    background: linear-gradient(180deg, #FEF2F2 0%, white 100%);
}
.mmg-triage-urgent .mmg-triage-icon { background: #FEE2E2; color: #B91C1C; }
.mmg-triage-urgent .mmg-triage-label { color: #B91C1C; }

.mmg-triage-soon {
    border-left-color: var(--mm-rose);
    background: linear-gradient(180deg, var(--mm-cream) 0%, white 100%);
}
.mmg-triage-soon .mmg-triage-icon { background: rgba(201,155,126,.18); color: var(--mm-rose-dark); }
.mmg-triage-soon .mmg-triage-label { color: var(--mm-rose-dark); }

.mmg-triage-monitor {
    border-left-color: var(--mm-sage);
    background: linear-gradient(180deg, #F1F5EE 0%, white 100%);
}
.mmg-triage-monitor .mmg-triage-icon { background: #E4EDD9; color: #4F6B3B; }
.mmg-triage-monitor .mmg-triage-label { color: #4F6B3B; }

@media (max-width: 720px) {
    .mmg-triage { grid-template-columns: 1fr; gap: 12px; }
    .mmg-triage-card { padding: 22px 20px; }
}

/* ---------- Lab markers ---------- */
.mmg-markers { display: grid; gap: 14px; margin-top: 18px; }
.mmg-marker {
    background: linear-gradient(180deg, white 0%, #FDF9F2 100%);
    border: 1px solid var(--mm-line); border-radius: 14px;
    padding: 20px 22px;
    display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 220px) 1fr; gap: 18px;
    align-items: start;
}
@media (max-width: 760px) { .mmg-marker { grid-template-columns: 1fr; gap: 8px; } }
.mmg-marker-name { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--mm-mauve); font-size: 18px; }
.mmg-marker-range { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 13px; color: var(--mm-rose-dark); background: rgba(201,155,126,.1); padding: 6px 10px; border-radius: 6px; align-self: start; }
.mmg-marker-why { font-size: 14.5px; line-height: 1.6; }

/* ---------- Treatment tier cards ----------
   Locked to a 2-column grid so the layout reads as a deliberate comparison
   rather than an auto-fit float. With 3 tiers, the 3rd card naturally drops
   to row 2 left-aligned; with 4 tiers it would be a clean 2×2. minmax(0, 1fr)
   stops grid items overflowing on long copy. Mobile breakpoint below collapses
   to a single column. */
.mmg-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.mmg-tier {
    background: white; border-radius: 16px; padding: 28px 24px;
    border: 1px solid var(--mm-line); position: relative; overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.mmg-tier:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(107,44,92,.12); }
.mmg-tier::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--mm-rose), var(--mm-mauve)); }
.mmg-tier-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mm-rose-dark); font-weight: 700; margin-bottom: 8px; }
.mmg-tier h3 { font-size: 22px; margin: 0 0 8px; }
.mmg-tier-price { color: var(--mm-mauve); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.mmg-tier-desc  { font-size: 14.5px; color: var(--mm-plum); margin-bottom: 18px; line-height: 1.6; }
.mmg-tier-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--mm-mauve);
    text-decoration: none; padding: 8px 14px;
    border: 1px solid var(--mm-rose); border-radius: 99px;
    background: white; transition: background .12s, color .12s;
}
.mmg-tier-cta:hover { background: var(--mm-mauve); color: white; border-color: var(--mm-mauve); }

/* ---------- Doctor spotlight ---------- */
.mmg-doctor {
    display: flex; gap: 22px; align-items: center;
    background: linear-gradient(135deg, var(--mm-cream) 0%, var(--mm-ivory) 100%);
    border: 1px solid var(--mm-line); border-radius: 16px;
    padding: 24px 28px; margin-top: 18px;
}
.mmg-doctor img {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--mm-rose); flex-shrink: 0;
}
.mmg-doctor-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mm-rose-dark); font-weight: 700; margin-bottom: 4px; }
.mmg-doctor h4 { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 22px; margin: 0 0 4px; color: var(--mm-mauve); }
.mmg-doctor .role { color: var(--mm-muted); font-size: 13.5px; margin-bottom: 8px; }
.mmg-doctor p { margin: 0; font-size: 14.5px; line-height: 1.6; }
@media (max-width: 540px) { .mmg-doctor { flex-direction: column; text-align: center; } }

/* ---------- FAQs (accordion) ---------- */
.mmg-faqs { margin-top: 18px; }
.mmg-faq {
    background: white; border: 1px solid var(--mm-line); border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
    transition: border-color .15s;
}
.mmg-faq[open] { border-color: var(--mm-rose); }
.mmg-faq summary {
    padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 16px;
    color: var(--mm-mauve); list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.mmg-faq summary::-webkit-details-marker { display: none; }
.mmg-faq summary::after { content: '+'; font-size: 24px; color: var(--mm-rose); transition: transform .15s; line-height: 0; }
.mmg-faq[open] summary::after { content: '−'; }
.mmg-faq-body { padding: 0 22px 22px; font-size: 15px; line-height: 1.7; color: var(--mm-plum); }

/* ---------- CTA card ---------- */
.mmg-cta {
    margin-top: 56px; border-radius: 22px; overflow: hidden;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(201,155,126,.5), transparent 50%),
        linear-gradient(135deg, var(--mm-mauve) 0%, #4A1D40 60%, #2D1228 100%);
    color: white; padding: 50px clamp(28px, 4vw, 56px);
    position: relative;
}
.mmg-cta::after {
    content: ''; position: absolute; right: -50px; bottom: -50px;
    width: 240px; height: 240px;
    background: url('../images/menomind/flower-no-background.png') no-repeat center / contain;
    opacity: 0.18; transform: rotate(15deg);
    pointer-events: none;
}
.mmg-cta-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mm-rose); font-weight: 700; margin-bottom: 12px; }
.mmg-cta h2 { color: white; font-size: 36px; margin: 0 0 14px; max-width: 22ch; }
.mmg-cta p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0 0 28px; max-width: 60ch; }
.mmg-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mmg-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 99px;
    font-weight: 600; font-size: 15px; text-decoration: none;
    transition: transform .12s, background .12s;
}
/* The .mmg-page a base rule (single class + element) outranks single-class
   .mmg-cta-btn-* rules, so the buttons inherit mauve text. Scoping inside
   .mmg-cta gives us 2 classes deep and wins specificity cleanly. Hover
   states are pinned to the same colour so :hover doesn't trip the
   .mmg-page a:hover override. */
.mmg-cta .mmg-cta-btn-primary,
.mmg-cta a.mmg-cta-btn-primary:hover {
    background: white; color: var(--mm-mauve);
}
.mmg-cta a.mmg-cta-btn-primary:hover { transform: translateY(-1px); background: var(--mm-cream); }
.mmg-cta .mmg-cta-btn-secondary,
.mmg-cta a.mmg-cta-btn-secondary:hover {
    background: transparent; color: white;
    border: 1px solid rgba(255,255,255,.4);
}
.mmg-cta a.mmg-cta-btn-secondary:hover { background: rgba(255,255,255,.1); color: white; }

/* ---------- Sticky right TOC ----------
   - top:100px clears the site's sticky header.
   - max-height + overflow-y:auto so very long TOCs scroll internally without
     overflowing the viewport (which would otherwise break the sticky illusion
     by clipping the bottom of the rail off-screen).
   - overscroll-behavior contains scroll chaining so flicking inside the TOC
     doesn't bubble up and scroll the whole page. */
.mmg-toc {
    position: sticky; top: 100px;
    background: white; border: 1px solid var(--mm-line); border-radius: 14px;
    padding: 22px 22px 18px;
    font-size: 14px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mmg-toc h4 {
    margin: 0 0 14px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--mm-rose-dark); font-weight: 700;
    font-family: 'Inter', sans-serif;
}
.mmg-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: tocnum; }
.mmg-toc li { counter-increment: tocnum; margin-bottom: 8px; }
.mmg-toc ol a {
    display: block; padding: 6px 10px 6px 12px;
    color: var(--mm-plum); text-decoration: none;
    border-left: 2px solid transparent;
    transition: color .12s, border-color .12s, background .12s;
    font-size: 13.5px; line-height: 1.4;
}
/* Counter prefix only applies to the numbered list — bottom CTAs are excluded. */
.mmg-toc ol a::before {
    content: counter(tocnum, decimal-leading-zero);
    color: var(--mm-rose); font-weight: 700; margin-right: 8px;
    font-size: 11px;
}
.mmg-toc ol a:hover, .mmg-toc ol a.is-active { color: var(--mm-mauve); border-left-color: var(--mm-rose); background: rgba(252,248,243,.6); }

.mmg-toc-cta {
    margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--mm-line);
    display: grid; gap: 8px;
}
.mmg-toc-cta a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    background: var(--mm-cream); color: var(--mm-mauve);
    transition: background .12s;
}
.mmg-toc-cta a:hover { background: var(--mm-rose); color: white; }

/* ---------- Related guides at the bottom ---------- */
.mmg-related {
    max-width: 1180px; margin: 60px auto 0; padding: 60px 24px 80px;
    background: linear-gradient(180deg, var(--mm-ivory) 0%, var(--mm-cream) 100%);
}
.mmg-related-wrap { max-width: 1120px; margin: 0 auto; }
.mmg-related h3 { font-size: 28px; margin: 0 0 28px; text-align: center; }
.mmg-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.mmg-related-card {
    background: white; border-radius: 14px; padding: 26px 24px;
    border: 1px solid var(--mm-line); text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    display: flex; flex-direction: column; gap: 10px;
}
.mmg-related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(107,44,92,.08); border-color: var(--mm-rose); }
.mmg-related-card .cat {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--mm-rose-dark); font-weight: 700;
}
.mmg-related-card h4 {
    font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
    font-size: 19px; color: var(--mm-mauve);
    margin: 0; line-height: 1.3;
}
.mmg-related-card p { color: var(--mm-muted); font-size: 13.5px; margin: 0; line-height: 1.55; }
.mmg-related-card .read {
    margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--mm-mauve);
    display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Library index page ---------- */
.mmg-index-hero {
    padding: 80px 24px 60px; text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201,155,126,.18), transparent 60%),
        linear-gradient(180deg, #FBF5EC 0%, var(--mm-ivory) 100%);
}
.mmg-index-hero h1 {
    font-size: 52px; margin: 12px 0; max-width: 18ch; margin-left: auto; margin-right: auto;
    background: linear-gradient(135deg, var(--mm-mauve) 0%, var(--mm-rose-dark) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mmg-index-hero p { font-size: 18px; color: var(--mm-plum); max-width: 56ch; margin: 0 auto; opacity: .85; line-height: 1.55; }

.mmg-chips {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin: 32px auto 0; max-width: 720px;
}
.mmg-chip {
    padding: 8px 18px; border-radius: 99px; text-decoration: none;
    font-size: 13.5px; font-weight: 600;
    background: white; color: var(--mm-mauve);
    border: 1px solid var(--mm-line);
    transition: background .12s, color .12s, border-color .12s;
}
.mmg-chip:hover, .mmg-chip.is-active { background: var(--mm-mauve); color: white; border-color: var(--mm-mauve); }

.mmg-grid {
    max-width: 1180px; margin: 50px auto 0; padding: 0 24px 80px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px;
}
.mmg-card {
    background: white; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--mm-line); text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.mmg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(107,44,92,.12); border-color: var(--mm-rose); }
.mmg-card-img {
    aspect-ratio: 5 / 3;
    background: linear-gradient(135deg, var(--mm-cream) 0%, #F0E2D2 100%);
    background-size: cover; background-position: center;
    position: relative;
}
.mmg-card-img .cat {
    position: absolute; top: 14px; left: 14px;
    background: white; color: var(--mm-mauve);
    padding: 4px 12px; border-radius: 99px;
    font-size: 11px; letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase;
}
.mmg-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mmg-card-body h3 {
    font-family: 'Inter', system-ui, sans-serif; font-weight: 700;
    font-size: 22px; line-height: 1.25;
    color: var(--mm-mauve); margin: 0;
}
.mmg-card-body p { font-size: 14px; color: var(--mm-plum); margin: 0; line-height: 1.55; }
.mmg-card-meta {
    margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--mm-line);
    font-size: 12px; color: var(--mm-muted); display: flex; gap: 14px; align-items: center;
}
.mmg-card-meta .read-more { margin-left: auto; color: var(--mm-mauve); font-weight: 600; }
.mmg-featured-flag {
    position: absolute; top: 14px; right: 14px;
    background: var(--mm-rose); color: white;
    padding: 4px 12px; border-radius: 99px;
    font-size: 11px; letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase;
}

/* ===========================================================================
   Mobile / responsive — comprehensive breakpoints.
   Strategy: fluid typography via clamp() everywhere; explicit overrides only
   where the desktop layout has to fundamentally change (TOC, grids).
   =========================================================================== */

/* Fluid typography on the hero title — scales smoothly between 30 → 54px
   across phone ↔ desktop without breakpoint jumps. */
.mmg-hero-title    { font-size: clamp(30px, 6vw, 54px); }
.mmg-hero-sub      { font-size: clamp(15px, 2vw, 18px); }
.mmg-hero-lead     { font-size: clamp(17px, 1.9vw, 22px); }
.mmg-section h2    { font-size: clamp(24px, 3.5vw, 32px); }
.mmg-cta h2        { font-size: clamp(24px, 3.5vw, 36px); }
.mmg-index-hero h1 { font-size: clamp(32px, 5.5vw, 52px); }
.mmg-pullquote     { font-size: clamp(18px, 2.4vw, 24px); }

/* Tablet — single-column main grid; TOC moves to a slim accordion below the
   hero so it doesn't dominate. */
@media (max-width: 980px) {
    .mmg-toc { position: static; }   /* drop sticky on mobile (nothing to stick to in 1-col) */
}

/* Phone (≤ 720px) — hide the right-rail TOC entirely (mobile reading is
   linear, and a TOC stacked under the article is dead weight). Tighten
   padding/spacing everywhere. */
@media (max-width: 720px) {
    .mmg-body { padding: 0 14px; gap: 24px; }
    .mmg-body > aside { display: none; } /* hide TOC + booking CTAs on mobile */
    .mmg-article {
        padding: 30px clamp(18px, 4vw, 26px) 36px;
        border-radius: 14px;
    }

    /* Hero */
    .mmg-hero { padding: 56px 18px 70px; }
    .mmg-hero::before { width: 180px; height: 180px; top: -30px; right: -50px; opacity: 0.16; }
    .mmg-hero::after  { width: 160px; height: 160px; bottom: -60px; left: -40px; opacity: 0.10; }
    .mmg-hero-eyebrow { font-size: 10.5px; padding: 5px 12px; margin-bottom: 18px; }
    .mmg-hero-lead    { padding-left: 14px; }
    .mmg-hero-meta    { gap: 12px; margin-top: 26px; padding-top: 20px; font-size: 12.5px; }
    .mmg-hero-meta .mmg-reviewer { padding: 5px 12px 5px 5px; font-size: 12.5px; }

    /* TL;DR card */
    .mmg-tldr { padding: 22px 20px; border-radius: 12px; }
    .mmg-tldr li { font-size: 14.5px; gap: 10px; }

    /* Glance stats — 2-col on phone */
    .mmg-glance { grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 32px; }
    .mmg-glance-stat { padding: 14px 16px; }
    .mmg-glance-stat .v { font-size: 22px; }
    .mmg-glance-stat .l { font-size: 11.5px; }

    /* Sections */
    .mmg-section { margin: 32px 0; }
    .mmg-section h3 { font-size: 18px; }
    .mmg-section p, .mmg-section li { font-size: 15.5px; }
    .mmg-section-sub { font-size: 14.5px; margin: -4px 0 18px; }
    .mmg-drop-cap::first-letter { font-size: 52px; padding-right: 10px; }

    /* Symptoms — 1-col cards on phone with looser spacing */
    .mmg-symptoms { grid-template-columns: 1fr; gap: 12px; }
    .mmg-symptom { padding: 20px; }
    .mmg-severity { top: 16px; right: 16px; font-size: 9.5px; padding: 3px 7px; }

    /* Lab markers — already collapses to 1-col, tighten padding */
    .mmg-marker { padding: 18px 18px; gap: 8px; }
    .mmg-marker-name { font-size: 17px; }

    /* Treatment tier cards */
    .mmg-tiers { grid-template-columns: 1fr; gap: 14px; }
    .mmg-tier { padding: 24px 22px; }

    /* Doctor spotlight — already stacks; tighten */
    .mmg-doctor { padding: 22px; gap: 16px; }
    .mmg-doctor img { width: 80px; height: 80px; }
    .mmg-doctor h4 { font-size: 20px; }

    /* FAQs */
    .mmg-faq summary { padding: 16px 18px; font-size: 15px; gap: 14px; }
    .mmg-faq-body    { padding: 0 18px 18px; font-size: 14.5px; }

    /* CTA card — pull in, tighten */
    .mmg-cta { padding: 40px 24px; border-radius: 18px; }
    .mmg-cta p { font-size: 15px; }
    .mmg-cta::after { width: 180px; height: 180px; right: -40px; bottom: -40px; }
    .mmg-cta-actions { gap: 10px; }
    .mmg-cta-btn { padding: 12px 22px; font-size: 14px; min-height: 44px; } /* min-height = touch target */

    /* Disclaimer footer */
    .mmg-disclaimer { padding: 20px 22px; margin-top: 36px; }
    .mmg-disclaimer-row { font-size: 12.5px; }
    .mmg-disclaimer-chip { font-size: 10px; padding: 3px 10px; }
    .mmg-disclaimer-body { font-size: 12.5px; line-height: 1.65; }

    /* Related guides */
    .mmg-related { padding: 44px 16px 60px; margin-top: 40px; }
    .mmg-related h3 { font-size: 24px; margin-bottom: 22px; }
    .mmg-related-grid { gap: 14px; }
    .mmg-related-card { padding: 22px 20px; }

    /* Library index page */
    .mmg-index-hero { padding: 56px 18px 40px; }
    .mmg-chips { gap: 6px; margin-top: 24px; }
    .mmg-chip { padding: 7px 14px; font-size: 12.5px; min-height: 36px; display: inline-flex; align-items: center; }
    .mmg-grid { margin: 32px auto 0; padding: 0 16px 60px; gap: 16px; }
    .mmg-card-body { padding: 18px 20px 22px; }
    .mmg-card-body h3 { font-size: 19px; }
}

/* Touch-target safety net — ensure every clickable link hits the 44×44px
   minimum recommended by WCAG. Scoped to .mmg-page so it doesn't bleed. */
@media (pointer: coarse) {
    .mmg-page a.mmg-tier-cta,
    .mmg-page a.mmg-cta-btn,
    .mmg-page a.mmg-chip { min-height: 44px; }
    .mmg-page .mmg-card-meta .read-more,
    .mmg-page .mmg-related-card .read { padding: 6px 0; }
}
