/*
Theme Name: MileMark Directory Theme
Theme URI: https://milemarkmedia.com
Description: Professional law directory theme. 20 subtle color schemes across 4 design styles: Corporate, Modern, Classic Serif and Warm. Each scheme keeps its slug from v5/v7 for drop-in replacement without data loss.
Version: 10.2
Author: MileMark Media
License: Proprietary
Text Domain: milemark-theme
*/

/* ================================================================
   RESET
   ================================================================ */
*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,h4,h5,h6,p,figure{margin:0;padding:0}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;background:#000}
html,body{overflow-x:hidden}
::selection{background:var(--ac);color:var(--hd)}

/* ================================================================
   FOUR DESIGN FAMILIES
   family-linear: dark-forward, Geist, neon rings, ultra-tight tracking, grid textures
   family-stripe: vibrant gradient mesh, bold sans, saturated cards, playful
   family-editorial: huge serif display, off-white, whitespace, minimal color
   family-soft: warm neutrals, pastels, rounded, friendly, gentle shadows
   ================================================================ */

/* ================================================================
   20 SCHEMES (v10): professional palettes, light pages, one quiet accent.
   Slugs unchanged so existing sites keep their setting.
   ================================================================ */

/* 1. Classic Navy */
:root,body.mm-scheme-deep-blue{
    --family:linear;
    --hd:#0f2044;--hd-rgb:15,32,68;
    --bg:#ffffff;--bg2:#f4f6fa;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#e2e8f0;
    --ac:#1e40af;--ac2:#1d4ed8;--hh:#ffffff;--ht:#ffffff;
    --al:#e8eefb;--al2:#f8fafc;
    --glow:rgba(30,64,175,.18);--glow2:rgba(30,64,175,.07);
    --fh:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fb:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fm:'Geist Mono',ui-monospace,monospace;
    --radius:6px;--radius-lg:10px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#f4f6fa 0%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#1e40af,#18348f);
}

/* 6. Slate Charcoal */
body.mm-scheme-midnight-plum{
    --family:linear;
    --hd:#1f2933;--hd-rgb:31,41,51;
    --bg:#ffffff;--bg2:#f5f7f9;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#e2e8f0;
    --ac:#334e68;--ac2:#486581;--hh:#ffffff;--ht:#ffffff;
    --al:#e8eef4;--al2:#f8fafc;
    --glow:rgba(51,78,104,.18);--glow2:rgba(51,78,104,.07);
    --fh:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fb:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fm:'Geist Mono',ui-monospace,monospace;
    --radius:6px;--radius-lg:10px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#f5f7f9 0%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#334e68,#293f55);
}

/* 8. Graphite & Gold */
body.mm-scheme-obsidian{
    --family:linear;
    --hd:#1c1c1e;--hd-rgb:28,28,30;
    --bg:#ffffff;--bg2:#f6f6f4;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#e2e8f0;
    --ac:#8a6a1f;--ac2:#a3802a;--hh:#ffffff;--ht:#ffffff;
    --al:#f6f0e1;--al2:#f8fafc;
    --glow:rgba(138,106,31,.18);--glow2:rgba(138,106,31,.07);
    --fh:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fb:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fm:'Geist Mono',ui-monospace,monospace;
    --radius:6px;--radius-lg:10px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#f6f6f4 0%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#2a2a2d,#1c1c1e);
}

/* 11. Harbor Blue */
body.mm-scheme-noir-ember{
    --family:linear;
    --hd:#0b3a5b;--hd-rgb:11,58,91;
    --bg:#ffffff;--bg2:#f3f7fa;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#e2e8f0;
    --ac:#0e6ba8;--ac2:#1580c4;--hh:#ffffff;--ht:#ffffff;
    --al:#e6f1f9;--al2:#f8fafc;
    --glow:rgba(14,107,168,.18);--glow2:rgba(14,107,168,.07);
    --fh:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fb:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fm:'Geist Mono',ui-monospace,monospace;
    --radius:6px;--radius-lg:10px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#f3f7fa 0%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#0e6ba8,#0b5789);
}

/* 14. Steel Gray */
body.mm-scheme-storm-cloud{
    --family:linear;
    --hd:#2d3748;--hd-rgb:45,55,72;
    --bg:#ffffff;--bg2:#f4f6f8;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#e2e8f0;
    --ac:#2c5282;--ac2:#2b6cb0;--hh:#ffffff;--ht:#ffffff;
    --al:#e9eff7;--al2:#f8fafc;
    --glow:rgba(44,82,130,.18);--glow2:rgba(44,82,130,.07);
    --fh:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fb:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fm:'Geist Mono',ui-monospace,monospace;
    --radius:6px;--radius-lg:10px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#f4f6f8 0%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#2c5282,#24436a);
}

/* 17. Evergreen */
body.mm-scheme-twilight-violet{
    --family:linear;
    --hd:#12352b;--hd-rgb:18,53,43;
    --bg:#ffffff;--bg2:#f3f7f5;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#e2e8f0;
    --ac:#1f6f50;--ac2:#258a63;--hh:#ffffff;--ht:#ffffff;
    --al:#e5f2ec;--al2:#f8fafc;
    --glow:rgba(31,111,80,.18);--glow2:rgba(31,111,80,.07);
    --fh:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fb:'Geist',ui-sans-serif,system-ui,sans-serif;
    --fm:'Geist Mono',ui-monospace,monospace;
    --radius:6px;--radius-lg:10px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#f3f7f5 0%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#1f6f50,#195b41);
}

/* 3. Deep Teal */
body.mm-scheme-charcoal-teal{
    --family:stripe;
    --hd:#0d3b45;--hd-rgb:13,59,69;
    --bg:#f7fafa;--bg2:#eaf2f2;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#dde5ec;
    --ac:#0f766e;--ac2:#0d9488;--hh:#ffffff;--ht:#ffffff;
    --al:#e1f0ee;--al2:#eaf2f2;
    --glow:rgba(15,118,110,.18);--glow2:rgba(15,118,110,.07);
    --fh:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fb:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:10px;--radius-lg:14px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#0d3b45 35%,#0c645d 140%);
    --btn-grad:linear-gradient(180deg,#0f766e,#0c605a);
}

/* 7. Atlantic Blue */
body.mm-scheme-ocean-breeze{
    --family:stripe;
    --hd:#0b2e59;--hd-rgb:11,46,89;
    --bg:#f6f8fc;--bg2:#e9eff8;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#dde5ec;
    --ac:#1d5fbf;--ac2:#2a6fd1;--hh:#ffffff;--ht:#ffffff;
    --al:#e3ecf9;--al2:#e9eff8;
    --glow:rgba(29,95,191,.18);--glow2:rgba(29,95,191,.07);
    --fh:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fb:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:10px;--radius-lg:14px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#0b2e59 35%,#1850a2 140%);
    --btn-grad:linear-gradient(180deg,#1d5fbf,#174d9c);
}

/* 10. Cobalt Slate */
body.mm-scheme-arctic-steel{
    --family:stripe;
    --hd:#1e293b;--hd-rgb:30,41,59;
    --bg:#f8fafc;--bg2:#eef2f6;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#dde5ec;
    --ac:#2563eb;--ac2:#3b72ee;--hh:#ffffff;--ht:#ffffff;
    --al:#e5edfb;--al2:#eef2f6;
    --glow:rgba(37,99,235,.18);--glow2:rgba(37,99,235,.07);
    --fh:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fb:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:10px;--radius-lg:14px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#1e293b 35%,#1f54c7 140%);
    --btn-grad:linear-gradient(180deg,#2563eb,#1e51c0);
}

/* 16. Royal Navy */
body.mm-scheme-cobalt-chrome{
    --family:stripe;
    --hd:#14213d;--hd-rgb:20,33,61;
    --bg:#f7f8fb;--bg2:#ebeef5;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#dde5ec;
    --ac:#1f4e9c;--ac2:#2b5fb5;--hh:#ffffff;--ht:#ffffff;
    --al:#e6ecf7;--al2:#ebeef5;
    --glow:rgba(31,78,156,.18);--glow2:rgba(31,78,156,.07);
    --fh:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fb:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:10px;--radius-lg:14px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#14213d 35%,#1a4284 140%);
    --btn-grad:linear-gradient(180deg,#1f4e9c,#193f7f);
}

/* 19. Forest Green */
body.mm-scheme-carbon-lime{
    --family:stripe;
    --hd:#173b2f;--hd-rgb:23,59,47;
    --bg:#f7f9f7;--bg2:#ebf0ec;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#0f172a;--tx2:#475569;--mu:#8a94a6;--bd:#dde5ec;
    --ac:#2f6b4f;--ac2:#3a7f5f;--hh:#ffffff;--ht:#ffffff;
    --al:#e4efe8;--al2:#ebf0ec;
    --glow:rgba(47,107,79,.18);--glow2:rgba(47,107,79,.07);
    --fh:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fb:'Inter',ui-sans-serif,system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:10px;--radius-lg:14px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#173b2f 35%,#275a43 140%);
    --btn-grad:linear-gradient(180deg,#2f6b4f,#265740);
}

/* 2. Oxford Navy */
body.mm-scheme-crimson-navy{
    --family:editorial;
    --hd:#fbfaf7;--hd-rgb:251,250,247;
    --bg:#fbfaf7;--bg2:#f2efe8;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#14161c;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e6e1d6;
    --ac:#1c3461;--ac2:#2a4a85;--hh:#1c3461;--ht:#14161c;
    --al:#eef1f7;--al2:#f2efe8;
    --glow:rgba(28,52,97,.18);--glow2:rgba(28,52,97,.07);
    --fh:'Instrument Serif',Georgia,serif;
    --fb:'Inter Tight',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:2px;--radius-lg:4px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#fbfaf7 0%,#f2efe8 100%);
    --btn-grad:linear-gradient(180deg,#1c3461,#162a4f);
}

/* 4. Ivory & Gold */
body.mm-scheme-slate-gold{
    --family:editorial;
    --hd:#faf8f2;--hd-rgb:250,248,242;
    --bg:#faf8f2;--bg2:#f0ebdd;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#14161c;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e6e1d6;
    --ac:#7d6320;--ac2:#957726;--hh:#7d6320;--ht:#14161c;
    --al:#f5efdf;--al2:#f0ebdd;
    --glow:rgba(125,99,32,.18);--glow2:rgba(125,99,32,.07);
    --fh:'Instrument Serif',Georgia,serif;
    --fb:'Inter Tight',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:2px;--radius-lg:4px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#faf8f2 0%,#f0ebdd 100%);
    --btn-grad:linear-gradient(180deg,#7d6320,#66511a);
}

/* 13. Charcoal Ink */
body.mm-scheme-burgundy-brass{
    --family:editorial;
    --hd:#fafafa;--hd-rgb:250,250,250;
    --bg:#fafafa;--bg2:#f0f0ee;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#14161c;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e6e1d6;
    --ac:#374151;--ac2:#4b5563;--hh:#374151;--ht:#14161c;
    --al:#eef0f3;--al2:#f0f0ee;
    --glow:rgba(55,65,81,.18);--glow2:rgba(55,65,81,.07);
    --fh:'Instrument Serif',Georgia,serif;
    --fb:'Inter Tight',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:2px;--radius-lg:4px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#fafafa 0%,#f0f0ee 100%);
    --btn-grad:linear-gradient(180deg,#374151,#2d3542);
}

/* 18. Stone & Slate */
body.mm-scheme-rose-quartz{
    --family:editorial;
    --hd:#f8f7f5;--hd-rgb:248,247,245;
    --bg:#f8f7f5;--bg2:#eeece8;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#14161c;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e6e1d6;
    --ac:#3f5468;--ac2:#526b82;--hh:#3f5468;--ht:#14161c;
    --al:#eaeff4;--al2:#eeece8;
    --glow:rgba(63,84,104,.18);--glow2:rgba(63,84,104,.07);
    --fh:'Instrument Serif',Georgia,serif;
    --fb:'Inter Tight',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:2px;--radius-lg:4px;--radius-pill:999px;
    --hero-grad:linear-gradient(180deg,#f8f7f5 0%,#eeece8 100%);
    --btn-grad:linear-gradient(180deg,#3f5468,#334455);
}

/* 5. Sage */
body.mm-scheme-forest-copper{
    --family:soft;
    --hd:#f6f7f3;--hd-rgb:246,247,243;
    --bg:#f6f7f3;--bg2:#eaede4;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#1c1f1d;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e2ded5;
    --ac:#4d6b57;--ac2:#5e7f69;--hh:#4d6b57;--ht:#1c1f1d;
    --al:#e6eee8;--al2:#eaede4;
    --glow:rgba(77,107,87,.18);--glow2:rgba(77,107,87,.07);
    --fh:'Fraunces',Georgia,serif;
    --fb:'Plus Jakarta Sans',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:16px;--radius-lg:22px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#eaede4 0%,#f6f7f3 60%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#4d6b57,#3f5747);
}

/* 9. Sand & Navy */
body.mm-scheme-terracotta{
    --family:soft;
    --hd:#faf8f4;--hd-rgb:250,248,244;
    --bg:#faf8f4;--bg2:#f0ebe2;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#1c1f1d;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e2ded5;
    --ac:#23395d;--ac2:#334d78;--hh:#23395d;--ht:#1c1f1d;
    --al:#e8edf5;--al2:#f0ebe2;
    --glow:rgba(35,57,93,.18);--glow2:rgba(35,57,93,.07);
    --fh:'Fraunces',Georgia,serif;
    --fb:'Plus Jakarta Sans',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:16px;--radius-lg:22px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#f0ebe2 0%,#faf8f4 60%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#23395d,#1c2e4c);
}

/* 12. Mist Blue */
body.mm-scheme-sage-ivory{
    --family:soft;
    --hd:#f5f7f9;--hd-rgb:245,247,249;
    --bg:#f5f7f9;--bg2:#e7ecf1;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#1c1f1d;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e2ded5;
    --ac:#3a6a8c;--ac2:#4a7fa3;--hh:#3a6a8c;--ht:#1c1f1d;
    --al:#e4eef5;--al2:#e7ecf1;
    --glow:rgba(58,106,140,.18);--glow2:rgba(58,106,140,.07);
    --fh:'Fraunces',Georgia,serif;
    --fb:'Plus Jakarta Sans',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:16px;--radius-lg:22px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#e7ecf1 0%,#f5f7f9 60%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#3a6a8c,#2f5672);
}

/* 15. Warm Taupe */
body.mm-scheme-desert-sand{
    --family:soft;
    --hd:#f9f7f3;--hd-rgb:249,247,243;
    --bg:#f9f7f3;--bg2:#eee8de;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#1c1f1d;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e2ded5;
    --ac:#6f5a43;--ac2:#856c51;--hh:#6f5a43;--ht:#1c1f1d;
    --al:#f1ebe2;--al2:#eee8de;
    --glow:rgba(111,90,67,.18);--glow2:rgba(111,90,67,.07);
    --fh:'Fraunces',Georgia,serif;
    --fb:'Plus Jakarta Sans',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:16px;--radius-lg:22px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#eee8de 0%,#f9f7f3 60%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#6f5a43,#5b4936);
}

/* 20. Graphite */
body.mm-scheme-graphite-pearl{
    --family:soft;
    --hd:#f7f7f5;--hd-rgb:247,247,245;
    --bg:#f7f7f5;--bg2:#e8e8e2;--card:#ffffff;--card-rgb:255,255,255;
    --tx:#18181b;--tx2:#4a4d55;--mu:#8f8b84;--bd:#e2ded5;
    --ac:#27272a;--ac2:#52525b;--hh:#27272a;--ht:#18181b;
    --al:#e4e4e7;--al2:#e8e8e2;
    --glow:rgba(39,39,42,.18);--glow2:rgba(39,39,42,.07);
    --fh:'Fraunces',Georgia,serif;
    --fb:'Plus Jakarta Sans',system-ui,sans-serif;
    --fm:ui-monospace,monospace;
    --radius:16px;--radius-lg:22px;--radius-pill:999px;
    --hero-grad:linear-gradient(135deg,#e8e8e2 0%,#f7f7f5 60%,#ffffff 100%);
    --btn-grad:linear-gradient(180deg,#27272a,#1f1f22);
}

/* ================================================================
   BASE TYPOGRAPHY
   ================================================================ */
body{
    font-family:var(--fb);font-size:16px;line-height:1.6;color:var(--tx);
    background:var(--bg);
    min-height:100vh;display:flex;flex-direction:column;
    -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5,h6{font-family:var(--fh);color:var(--tx);line-height:1.15;font-weight:600}
p{margin-bottom:1em;color:var(--tx2)}
a{color:var(--ac);transition:color .2s}
a:hover{color:var(--ac2)}
strong,b{font-weight:600;color:var(--tx)}
hr{border:none;border-top:1px solid var(--bd);margin:2em 0}
:focus-visible{outline:2px solid var(--ac);outline-offset:2px}

/* ================================================================
   TYPOGRAPHY PER FAMILY
   ================================================================ */

/* LINEAR: tight, small caps feel, negative tracking */
body[class*="mm-scheme-"]{letter-spacing:normal}
.mm-scheme-deep-blue,.mm-scheme-midnight-plum,.mm-scheme-obsidian,
.mm-scheme-noir-ember,.mm-scheme-storm-cloud,.mm-scheme-twilight-violet{
    font-feature-settings:"ss01","ss02","cv11";
}
.mm-scheme-deep-blue h1,.mm-scheme-midnight-plum h1,.mm-scheme-obsidian h1,
.mm-scheme-noir-ember h1,.mm-scheme-storm-cloud h1,.mm-scheme-twilight-violet h1{
    font-size:clamp(2.5em,4.5vw,3.75em);letter-spacing:-.04em;font-weight:600;line-height:1.05;margin-bottom:.5em;
}
.mm-scheme-deep-blue h2,.mm-scheme-midnight-plum h2,.mm-scheme-obsidian h2,
.mm-scheme-noir-ember h2,.mm-scheme-storm-cloud h2,.mm-scheme-twilight-violet h2{
    font-size:clamp(1.5em,2.5vw,2em);letter-spacing:-.03em;font-weight:600;margin:1.5em 0 .5em;
}
.mm-scheme-deep-blue h3,.mm-scheme-midnight-plum h3,.mm-scheme-obsidian h3,
.mm-scheme-noir-ember h3,.mm-scheme-storm-cloud h3,.mm-scheme-twilight-violet h3{
    font-size:1.15em;letter-spacing:-.02em;font-weight:600;
}

/* STRIPE: big, rounded, playful */
.mm-scheme-charcoal-teal h1,.mm-scheme-ocean-breeze h1,.mm-scheme-arctic-steel h1,
.mm-scheme-cobalt-chrome h1,.mm-scheme-carbon-lime h1{
    font-size:clamp(2.75em,5.5vw,4.5em);letter-spacing:-.035em;font-weight:700;line-height:1;margin-bottom:.4em;
}
.mm-scheme-charcoal-teal h2,.mm-scheme-ocean-breeze h2,.mm-scheme-arctic-steel h2,
.mm-scheme-cobalt-chrome h2,.mm-scheme-carbon-lime h2{
    font-size:clamp(1.75em,3vw,2.5em);letter-spacing:-.03em;font-weight:700;margin:1.3em 0 .4em;
}
.mm-scheme-charcoal-teal h3,.mm-scheme-ocean-breeze h3,.mm-scheme-arctic-steel h3,
.mm-scheme-cobalt-chrome h3,.mm-scheme-carbon-lime h3{
    font-size:1.3em;letter-spacing:-.02em;font-weight:700;
}

/* EDITORIAL: enormous serif, thin weight, dramatic */
.mm-scheme-crimson-navy h1,.mm-scheme-slate-gold h1,
.mm-scheme-burgundy-brass h1,.mm-scheme-rose-quartz h1{
    font-size:clamp(3em,7vw,6em);letter-spacing:-.03em;font-weight:400;line-height:.95;margin-bottom:.5em;
    font-style:italic;
}
.mm-scheme-crimson-navy h2,.mm-scheme-slate-gold h2,
.mm-scheme-burgundy-brass h2,.mm-scheme-rose-quartz h2{
    font-size:clamp(1.75em,3.5vw,2.75em);letter-spacing:-.02em;font-weight:400;margin:1.5em 0 .5em;
}
.mm-scheme-crimson-navy h3,.mm-scheme-slate-gold h3,
.mm-scheme-burgundy-brass h3,.mm-scheme-rose-quartz h3{
    font-size:1.4em;font-weight:400;letter-spacing:-.01em;
}

/* SOFT: friendly serif display, rounded body */
.mm-scheme-forest-copper h1,.mm-scheme-terracotta h1,.mm-scheme-sage-ivory h1,
.mm-scheme-desert-sand h1,.mm-scheme-graphite-pearl h1{
    font-size:clamp(2.25em,4vw,3.5em);letter-spacing:-.025em;font-weight:500;line-height:1.1;margin-bottom:.5em;
    font-variation-settings:"opsz" 144;
}
.mm-scheme-forest-copper h2,.mm-scheme-terracotta h2,.mm-scheme-sage-ivory h2,
.mm-scheme-desert-sand h2,.mm-scheme-graphite-pearl h2{
    font-size:clamp(1.5em,2.5vw,2em);letter-spacing:-.02em;font-weight:500;margin:1.5em 0 .5em;
    font-variation-settings:"opsz" 144;
}
.mm-scheme-forest-copper h3,.mm-scheme-terracotta h3,.mm-scheme-sage-ivory h3,
.mm-scheme-desert-sand h3,.mm-scheme-graphite-pearl h3{
    font-size:1.25em;letter-spacing:-.01em;font-weight:600;
}

/* ================================================================
   HEADER
   ================================================================ */
.mm-hd{
    background:var(--hd);color:var(--ht);
    padding:0 32px;position:sticky;top:0;z-index:1000;
    border-bottom:1px solid var(--bd);
}

/* LINEAR header: glass + grid dots bg */
body[class*="scheme-deep-blue"] .mm-hd,
body[class*="scheme-midnight-plum"] .mm-hd,
body[class*="scheme-obsidian"] .mm-hd,
body[class*="scheme-noir-ember"] .mm-hd,
body[class*="scheme-storm-cloud"] .mm-hd,
body[class*="scheme-twilight-violet"] .mm-hd{
    background:rgba(var(--hd-rgb),.6);
    -webkit-backdrop-filter:blur(20px) saturate(1.4);
    backdrop-filter:blur(20px) saturate(1.4);
    background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.06) 1px,transparent 0);
    background-size:20px 20px;
    border-bottom:1px solid rgba(255,255,255,.06);
}

/* STRIPE header: gradient bar */
body[class*="scheme-charcoal-teal"] .mm-hd,
body[class*="scheme-ocean-breeze"] .mm-hd,
body[class*="scheme-arctic-steel"] .mm-hd,
body[class*="scheme-cobalt-chrome"] .mm-hd,
body[class*="scheme-carbon-lime"] .mm-hd{
    background:var(--hero-grad);
    border-bottom:none;
}

/* EDITORIAL header: minimal line */
body[class*="scheme-crimson-navy"] .mm-hd,
body[class*="scheme-slate-gold"] .mm-hd,
body[class*="scheme-burgundy-brass"] .mm-hd,
body[class*="scheme-rose-quartz"] .mm-hd{
    background:transparent;
    border-bottom:1px solid var(--bd);
    padding:8px 40px;
}

/* SOFT header: soft rounded bg */
body[class*="scheme-forest-copper"] .mm-hd,
body[class*="scheme-terracotta"] .mm-hd,
body[class*="scheme-sage-ivory"] .mm-hd,
body[class*="scheme-desert-sand"] .mm-hd,
body[class*="scheme-graphite-pearl"] .mm-hd{
    background:rgba(var(--hd-rgb),.85);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--bd);
}

.mm-hd-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;min-height:64px;gap:24px}
.mm-logo a{display:flex;align-items:center;gap:10px}
.mm-logo img{height:36px;width:auto}
.mm-logo .site-title{font-family:var(--fh);font-size:1.15em;font-weight:600;color:var(--ht);letter-spacing:-.02em}

/* Editorial logo: italic serif */
body[class*="scheme-crimson-navy"] .mm-logo .site-title,
body[class*="scheme-slate-gold"] .mm-logo .site-title,
body[class*="scheme-burgundy-brass"] .mm-logo .site-title,
body[class*="scheme-rose-quartz"] .mm-logo .site-title{
    font-style:italic;font-size:1.35em;font-weight:400;letter-spacing:-.02em;
}

/* Nav */
.mm-nav{display:flex;gap:2px;list-style:none;margin:0;padding:0;align-items:center}
.mm-nav li{position:relative}
.mm-nav a{
    color:var(--ht);padding:7px 14px;
    font-size:.88em;font-weight:500;letter-spacing:-.005em;
    transition:all .15s;display:block;white-space:nowrap;
    border-radius:var(--radius);
}
.mm-nav a:hover{color:var(--hh);background:rgba(var(--hd-rgb),.05)}

/* Linear nav: subtle glow on active */
body[class*="scheme-deep-blue"] .mm-nav a:hover,
body[class*="scheme-midnight-plum"] .mm-nav a:hover,
body[class*="scheme-obsidian"] .mm-nav a:hover,
body[class*="scheme-noir-ember"] .mm-nav a:hover,
body[class*="scheme-storm-cloud"] .mm-nav a:hover,
body[class*="scheme-twilight-violet"] .mm-nav a:hover{
    background:rgba(255,255,255,.06);color:var(--ht);
}
body[class*="scheme-deep-blue"] .mm-nav .current-menu-item a,
body[class*="scheme-midnight-plum"] .mm-nav .current-menu-item a,
body[class*="scheme-obsidian"] .mm-nav .current-menu-item a,
body[class*="scheme-noir-ember"] .mm-nav .current-menu-item a,
body[class*="scheme-storm-cloud"] .mm-nav .current-menu-item a,
body[class*="scheme-twilight-violet"] .mm-nav .current-menu-item a{
    background:rgba(255,255,255,.08);color:#fff;
}

/* Stripe nav: white text with underline on current */
body[class*="scheme-charcoal-teal"] .mm-nav a,
body[class*="scheme-ocean-breeze"] .mm-nav a,
body[class*="scheme-arctic-steel"] .mm-nav a,
body[class*="scheme-cobalt-chrome"] .mm-nav a,
body[class*="scheme-carbon-lime"] .mm-nav a{color:#fff;font-weight:600}
body[class*="scheme-charcoal-teal"] .mm-nav a:hover,
body[class*="scheme-ocean-breeze"] .mm-nav a:hover,
body[class*="scheme-arctic-steel"] .mm-nav a:hover,
body[class*="scheme-cobalt-chrome"] .mm-nav a:hover,
body[class*="scheme-carbon-lime"] .mm-nav a:hover{background:rgba(255,255,255,.15);color:#fff}

/* Editorial nav: tiny uppercase, spaced */
body[class*="scheme-crimson-navy"] .mm-nav a,
body[class*="scheme-slate-gold"] .mm-nav a,
body[class*="scheme-burgundy-brass"] .mm-nav a,
body[class*="scheme-rose-quartz"] .mm-nav a{
    font-family:var(--fb);font-size:.7em;font-weight:500;
    text-transform:uppercase;letter-spacing:.2em;padding:10px 16px;
}
body[class*="scheme-crimson-navy"] .mm-nav a:hover,
body[class*="scheme-slate-gold"] .mm-nav a:hover,
body[class*="scheme-burgundy-brass"] .mm-nav a:hover,
body[class*="scheme-rose-quartz"] .mm-nav a:hover{background:transparent;color:var(--ac)}

/* Soft nav: pill, rounded */
body[class*="scheme-forest-copper"] .mm-nav a,
body[class*="scheme-terracotta"] .mm-nav a,
body[class*="scheme-sage-ivory"] .mm-nav a,
body[class*="scheme-desert-sand"] .mm-nav a,
body[class*="scheme-graphite-pearl"] .mm-nav a{
    border-radius:999px;padding:8px 18px;
}
body[class*="scheme-forest-copper"] .mm-nav a:hover,
body[class*="scheme-terracotta"] .mm-nav a:hover,
body[class*="scheme-sage-ivory"] .mm-nav a:hover,
body[class*="scheme-desert-sand"] .mm-nav a:hover,
body[class*="scheme-graphite-pearl"] .mm-nav a:hover{background:var(--bg2);color:var(--tx)}

/* Dropdowns */
.mm-nav .sub-menu,.mm-nav .children{
    display:none;position:absolute;top:calc(100% + 4px);left:0;
    background:var(--card);border:1px solid var(--bd);
    border-radius:var(--radius-lg);min-width:220px;padding:6px;
    box-shadow:0 12px 40px rgba(0,0,0,.1);z-index:999;list-style:none;
}
.mm-nav li:hover>.sub-menu,.mm-nav li:hover>.children{display:block}
.mm-nav .sub-menu a,.mm-nav .children a{color:var(--tx);padding:8px 14px}

/* Hamburger */
.mm-burg{display:none;background:none;border:none;cursor:pointer;padding:8px;color:var(--ht);border-radius:6px}
.mm-burg svg{width:24px;height:24px}

/* Mobile overlay */
.mm-mobile-overlay{
    position:fixed;inset:0;background:rgba(var(--hd-rgb),.98);
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
    z-index:9999;display:flex;flex-direction:column;align-items:center;padding:80px 20px 40px;overflow-y:auto;
}
.mm-mobile-overlay .mm-close{position:absolute;top:16px;right:20px;background:none;border:none;color:var(--ht);font-size:32px;cursor:pointer}
.mm-mobile-overlay a{color:var(--ht);font-size:1.1em;padding:14px 24px;display:block;text-align:center;border-radius:var(--radius);width:100%;max-width:400px;font-weight:500}

/* ================================================================
   MAIN
   ================================================================ */
.mm-main{max-width:1280px;margin:0 auto;padding:48px 32px;flex:1;position:relative}

/* ================================================================
   PAGE CONTENT / PROSE
   ================================================================ */
.mm-page-content{max-width:760px;margin:0 auto;padding:40px 0}
.mm-page-content p{font-size:1.05em;line-height:1.75;color:var(--tx2);margin-bottom:1.2em}
.mm-page-content h2{margin:2em 0 .6em}
.mm-page-content h3{margin:1.8em 0 .4em}
.mm-page-content img{border-radius:var(--radius-lg)}
.mm-page-content ul,.mm-page-content ol{margin:1em 0 1em 1.4em;color:var(--tx2)}
.mm-page-content li{margin-bottom:.5em}
.mm-page-content blockquote{border-left:2px solid var(--ac);padding:.3em 0 .3em 1.6em;margin:1.8em 0;font-style:italic;color:var(--tx);font-size:1.1em}

/* Editorial: dramatic drop-cap + wide content */
body[class*="scheme-crimson-navy"] .mm-page-content,
body[class*="scheme-slate-gold"] .mm-page-content,
body[class*="scheme-burgundy-brass"] .mm-page-content,
body[class*="scheme-rose-quartz"] .mm-page-content{
    max-width:680px;
}
body[class*="scheme-crimson-navy"] .mm-page-content p:first-of-type::first-letter,
body[class*="scheme-slate-gold"] .mm-page-content p:first-of-type::first-letter,
body[class*="scheme-burgundy-brass"] .mm-page-content p:first-of-type::first-letter,
body[class*="scheme-rose-quartz"] .mm-page-content p:first-of-type::first-letter{
    font-family:var(--fh);font-size:4.5em;float:left;line-height:.85;padding:.05em .1em 0 0;color:var(--ac);font-style:italic;
}

.mm-single-post{max-width:720px;margin:0 auto;padding:40px 0}
.mm-single-post .entry-meta{color:var(--mu);font-size:.78em;margin-bottom:20px;text-transform:uppercase;letter-spacing:.15em;font-weight:500;font-family:var(--fb)}

/* ================================================================
   CARDS
   ================================================================ */
.mm-post-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.mm-post-card{
    background:var(--card);border:1px solid var(--bd);
    border-radius:var(--radius-lg);overflow:hidden;
    transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s;
    position:relative;
}
.mm-post-card:hover{transform:translateY(-4px);border-color:var(--ac);box-shadow:0 20px 50px var(--glow2)}
.mm-post-card img{width:100%;height:200px;object-fit:cover;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.mm-post-card:hover img{transform:scale(1.04)}
.mm-post-card-body{padding:18px 20px 20px}
.mm-post-card-body h3{margin-bottom:8px;font-size:1.1em}
.mm-post-card-body h3 a{color:var(--tx)}
.mm-post-card-body h3 a:hover{color:var(--ac)}
.mm-post-card-body p{font-size:.92em;color:var(--tx2);margin-bottom:14px;line-height:1.55}

/* LINEAR cards: dark with glow on hover */
body[class*="scheme-deep-blue"] .mm-post-card,
body[class*="scheme-midnight-plum"] .mm-post-card,
body[class*="scheme-obsidian"] .mm-post-card,
body[class*="scheme-noir-ember"] .mm-post-card,
body[class*="scheme-storm-cloud"] .mm-post-card,
body[class*="scheme-twilight-violet"] .mm-post-card{
    background:var(--card);border:1px solid var(--bd);
    box-shadow:0 0 0 1px rgba(255,255,255,.02) inset;
}
body[class*="scheme-deep-blue"] .mm-post-card:hover,
body[class*="scheme-midnight-plum"] .mm-post-card:hover,
body[class*="scheme-obsidian"] .mm-post-card:hover,
body[class*="scheme-noir-ember"] .mm-post-card:hover,
body[class*="scheme-storm-cloud"] .mm-post-card:hover,
body[class*="scheme-twilight-violet"] .mm-post-card:hover{
    border-color:var(--ac);
    box-shadow:0 0 0 1px var(--ac) inset,0 0 60px var(--glow),0 0 100px var(--glow2);
}

/* STRIPE cards: thick rounded, bold shadow */
body[class*="scheme-charcoal-teal"] .mm-post-card,
body[class*="scheme-ocean-breeze"] .mm-post-card,
body[class*="scheme-arctic-steel"] .mm-post-card,
body[class*="scheme-cobalt-chrome"] .mm-post-card,
body[class*="scheme-carbon-lime"] .mm-post-card{
    border:none;box-shadow:0 8px 30px rgba(0,0,0,.08);
}
body[class*="scheme-charcoal-teal"] .mm-post-card:hover,
body[class*="scheme-ocean-breeze"] .mm-post-card:hover,
body[class*="scheme-arctic-steel"] .mm-post-card:hover,
body[class*="scheme-cobalt-chrome"] .mm-post-card:hover,
body[class*="scheme-carbon-lime"] .mm-post-card:hover{
    transform:translateY(-6px);box-shadow:0 25px 60px var(--glow),0 8px 20px rgba(0,0,0,.08);
}

/* EDITORIAL cards: minimal, thin line */
body[class*="scheme-crimson-navy"] .mm-post-card,
body[class*="scheme-slate-gold"] .mm-post-card,
body[class*="scheme-burgundy-brass"] .mm-post-card,
body[class*="scheme-rose-quartz"] .mm-post-card{
    background:transparent;border:none;border-top:1px solid var(--bd);border-radius:0;padding-top:24px;
}
body[class*="scheme-crimson-navy"] .mm-post-card:hover,
body[class*="scheme-slate-gold"] .mm-post-card:hover,
body[class*="scheme-burgundy-brass"] .mm-post-card:hover,
body[class*="scheme-rose-quartz"] .mm-post-card:hover{
    transform:none;box-shadow:none;border-top-color:var(--ac);
}
body[class*="scheme-crimson-navy"] .mm-post-card img,
body[class*="scheme-slate-gold"] .mm-post-card img,
body[class*="scheme-burgundy-brass"] .mm-post-card img,
body[class*="scheme-rose-quartz"] .mm-post-card img{border-radius:0}
body[class*="scheme-crimson-navy"] .mm-post-card h3,
body[class*="scheme-slate-gold"] .mm-post-card h3,
body[class*="scheme-burgundy-brass"] .mm-post-card h3,
body[class*="scheme-rose-quartz"] .mm-post-card h3{
    font-family:var(--fh);font-size:1.5em;font-weight:400;font-style:italic;letter-spacing:-.02em;margin-top:12px;
}
body[class*="scheme-crimson-navy"] .mm-post-card-body,
body[class*="scheme-slate-gold"] .mm-post-card-body,
body[class*="scheme-burgundy-brass"] .mm-post-card-body,
body[class*="scheme-rose-quartz"] .mm-post-card-body{padding:0 0 24px}

/* SOFT cards: chunky rounded, subtle shadow */
body[class*="scheme-forest-copper"] .mm-post-card,
body[class*="scheme-terracotta"] .mm-post-card,
body[class*="scheme-sage-ivory"] .mm-post-card,
body[class*="scheme-desert-sand"] .mm-post-card,
body[class*="scheme-graphite-pearl"] .mm-post-card{
    border:none;box-shadow:0 2px 0 var(--bd),0 4px 12px rgba(0,0,0,.04);
    border-radius:var(--radius-lg);padding:4px;background:var(--card);
}
body[class*="scheme-forest-copper"] .mm-post-card img,
body[class*="scheme-terracotta"] .mm-post-card img,
body[class*="scheme-sage-ivory"] .mm-post-card img,
body[class*="scheme-desert-sand"] .mm-post-card img,
body[class*="scheme-graphite-pearl"] .mm-post-card img{border-radius:calc(var(--radius-lg) - 4px)}
body[class*="scheme-forest-copper"] .mm-post-card:hover,
body[class*="scheme-terracotta"] .mm-post-card:hover,
body[class*="scheme-sage-ivory"] .mm-post-card:hover,
body[class*="scheme-desert-sand"] .mm-post-card:hover,
body[class*="scheme-graphite-pearl"] .mm-post-card:hover{
    transform:translateY(-3px);box-shadow:0 4px 0 var(--bd),0 16px 30px rgba(0,0,0,.08);
}

/* ================================================================
   BUTTONS — per family
   ================================================================ */
.mm-btn{
    display:inline-flex;align-items:center;gap:8px;
    padding:10px 20px;
    background:var(--btn-grad);color:#fff;
    border-radius:var(--radius-pill);
    font-weight:500;font-size:.92em;letter-spacing:-.005em;
    border:none;cursor:pointer;font-family:var(--fb);
    transition:all .2s;
}
.mm-btn:hover{color:#fff;transform:translateY(-1px);filter:brightness(1.08)}

/* LINEAR btn: sharp rect, subtle glow, mono-feeling */
body[class*="scheme-deep-blue"] .mm-btn,
body[class*="scheme-midnight-plum"] .mm-btn,
body[class*="scheme-obsidian"] .mm-btn,
body[class*="scheme-noir-ember"] .mm-btn,
body[class*="scheme-storm-cloud"] .mm-btn,
body[class*="scheme-twilight-violet"] .mm-btn{
    border-radius:var(--radius);padding:9px 16px;
    font-size:.85em;font-weight:500;
    background:var(--btn-grad);
    box-shadow:0 0 0 1px rgba(255,255,255,.1) inset,0 1px 0 rgba(255,255,255,.15) inset,0 0 24px var(--glow2);
    color:var(--hd);
}
body[class*="scheme-deep-blue"] .mm-btn:hover,
body[class*="scheme-midnight-plum"] .mm-btn:hover,
body[class*="scheme-obsidian"] .mm-btn:hover,
body[class*="scheme-noir-ember"] .mm-btn:hover,
body[class*="scheme-storm-cloud"] .mm-btn:hover,
body[class*="scheme-twilight-violet"] .mm-btn:hover{
    box-shadow:0 0 0 1px rgba(255,255,255,.15) inset,0 1px 0 rgba(255,255,255,.25) inset,0 0 40px var(--glow);
    color:var(--hd);
}

/* STRIPE btn: chunky pill, strong shadow */
body[class*="scheme-charcoal-teal"] .mm-btn,
body[class*="scheme-ocean-breeze"] .mm-btn,
body[class*="scheme-arctic-steel"] .mm-btn,
body[class*="scheme-cobalt-chrome"] .mm-btn,
body[class*="scheme-carbon-lime"] .mm-btn{
    padding:13px 26px;font-size:.95em;font-weight:600;
    box-shadow:0 8px 20px var(--glow),0 1px 0 rgba(255,255,255,.25) inset;
}
body[class*="scheme-charcoal-teal"] .mm-btn::after,
body[class*="scheme-ocean-breeze"] .mm-btn::after,
body[class*="scheme-arctic-steel"] .mm-btn::after,
body[class*="scheme-cobalt-chrome"] .mm-btn::after,
body[class*="scheme-carbon-lime"] .mm-btn::after{content:'→';transition:transform .2s}
body[class*="scheme-charcoal-teal"] .mm-btn:hover::after,
body[class*="scheme-ocean-breeze"] .mm-btn:hover::after,
body[class*="scheme-arctic-steel"] .mm-btn:hover::after,
body[class*="scheme-cobalt-chrome"] .mm-btn:hover::after,
body[class*="scheme-carbon-lime"] .mm-btn:hover::after{transform:translateX(3px)}

/* EDITORIAL btn: text link with arrow */
body[class*="scheme-crimson-navy"] .mm-btn,
body[class*="scheme-slate-gold"] .mm-btn,
body[class*="scheme-burgundy-brass"] .mm-btn,
body[class*="scheme-rose-quartz"] .mm-btn{
    background:transparent;color:var(--ac);padding:12px 0;
    border-radius:0;font-family:var(--fb);font-size:.72em;font-weight:500;
    text-transform:uppercase;letter-spacing:.2em;
    border-bottom:1px solid var(--ac);
}
body[class*="scheme-crimson-navy"] .mm-btn::after,
body[class*="scheme-slate-gold"] .mm-btn::after,
body[class*="scheme-burgundy-brass"] .mm-btn::after,
body[class*="scheme-rose-quartz"] .mm-btn::after{content:'  ⟶';transition:transform .2s}
body[class*="scheme-crimson-navy"] .mm-btn:hover,
body[class*="scheme-slate-gold"] .mm-btn:hover,
body[class*="scheme-burgundy-brass"] .mm-btn:hover,
body[class*="scheme-rose-quartz"] .mm-btn:hover{color:var(--tx);border-color:var(--tx);transform:none;filter:none}
body[class*="scheme-crimson-navy"] .mm-btn:hover::after,
body[class*="scheme-slate-gold"] .mm-btn:hover::after,
body[class*="scheme-burgundy-brass"] .mm-btn:hover::after,
body[class*="scheme-rose-quartz"] .mm-btn:hover::after{transform:translateX(4px)}

/* SOFT btn: big rounded, soft shadow */
body[class*="scheme-forest-copper"] .mm-btn,
body[class*="scheme-terracotta"] .mm-btn,
body[class*="scheme-sage-ivory"] .mm-btn,
body[class*="scheme-desert-sand"] .mm-btn,
body[class*="scheme-graphite-pearl"] .mm-btn{
    padding:14px 28px;font-size:.95em;font-weight:600;
    box-shadow:0 4px 0 rgba(0,0,0,.1),0 6px 16px var(--glow2);
}
body[class*="scheme-forest-copper"] .mm-btn:hover,
body[class*="scheme-terracotta"] .mm-btn:hover,
body[class*="scheme-sage-ivory"] .mm-btn:hover,
body[class*="scheme-desert-sand"] .mm-btn:hover,
body[class*="scheme-graphite-pearl"] .mm-btn:hover{
    transform:translateY(-2px);box-shadow:0 6px 0 rgba(0,0,0,.1),0 10px 24px var(--glow);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.wp-pagenavi,.nav-links,.mm-pagination .nav-links{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;margin-top:48px}
.wp-pagenavi a,.wp-pagenavi span,.nav-links a,.nav-links span,
.mm-pagination a,.mm-pagination span{
    padding:9px 14px;border:1px solid var(--bd);border-radius:var(--radius);
    color:var(--tx);font-size:.88em;font-weight:500;min-width:40px;text-align:center;background:var(--card);
}
.wp-pagenavi a:hover,.nav-links a:hover,.mm-pagination a:hover{background:var(--bg2);border-color:var(--ac);color:var(--ac)}
.wp-pagenavi .current,.nav-links .current,.mm-pagination .current{background:var(--btn-grad);color:#fff;border-color:transparent}

/* ================================================================
   FOOTER
   ================================================================ */
.mm-ft{
    background:var(--hd);color:var(--mu);padding:40px 32px;font-size:.85em;margin-top:auto;
    border-top:1px solid var(--bd);
}
body[class*="scheme-crimson-navy"] .mm-ft,
body[class*="scheme-slate-gold"] .mm-ft,
body[class*="scheme-burgundy-brass"] .mm-ft,
body[class*="scheme-rose-quartz"] .mm-ft{
    background:transparent;color:var(--mu);
}
.mm-ft-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.mm-ft a{color:var(--ht);opacity:.7}
.mm-ft a:hover{opacity:1}
body[class*="scheme-crimson-navy"] .mm-ft a,
body[class*="scheme-slate-gold"] .mm-ft a,
body[class*="scheme-burgundy-brass"] .mm-ft a,
body[class*="scheme-rose-quartz"] .mm-ft a{color:var(--tx2)}

/* ================================================================
   DIRECTORY BREAKOUT
   ================================================================ */
body.post-type-archive-mm_listing .mm-main,
body.tax-mm_category .mm-main,
body.single-mm_listing .mm-main{max-width:100%;padding:0}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media(max-width:900px){
    .mm-nav{display:none}.mm-burg{display:block}
    .mm-hd{padding:0 16px}.mm-main{padding:24px 16px}
    .mm-post-list{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
}
@media(max-width:600px){
    body{font-size:15px}
    .mm-hd-inner{min-height:56px}
    .mm-logo img{height:32px}
    .mm-post-list{grid-template-columns:1fr}
    .mm-ft-inner{flex-direction:column;text-align:center}
}
@media print{
    .mm-hd,.mm-ft,.mm-burg,.mm-mobile-overlay{display:none!important}
    body{background:#fff!important;color:#000!important}
}
@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ================================================================
   HOMEPAGE (v9): hero, search, practice areas, featured firms, prose
   ================================================================ */
.mm-home{padding-top:28px}
.mm-home-section{margin:72px 0 0}
.mm-home-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.mm-home-head h2{margin:0!important}
.mm-home-head a{font-weight:500;font-size:.95em}

/* Hero */
.mm-home-hero{
    position:relative;overflow:hidden;border-radius:var(--radius-lg);
    background:var(--hero-grad);border:1px solid var(--bd);
    padding:88px 48px 64px;text-align:center;
}
.mm-home-hero-inner{max-width:860px;margin:0 auto;position:relative;z-index:1}
.mm-eyebrow{
    display:inline-block;margin:0 0 18px;padding:6px 14px;border-radius:var(--radius-pill);
    font-size:.78em;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
    color:var(--ac);background:var(--card);border:1px solid var(--bd);
}
.mm-home-hero h1{margin:0 0 .35em;color:var(--tx)}
.mm-home-sub{font-size:1.15em;line-height:1.6;max-width:640px;margin:0 auto 32px;color:var(--tx2)}

.mm-home-search{
    display:flex;gap:8px;align-items:stretch;max-width:760px;margin:0 auto;
    background:var(--card);border:1px solid var(--bd);border-radius:var(--radius-lg);padding:8px;
    box-shadow:0 20px 50px -20px rgba(0,0,0,.25);
}
.mm-home-search input,.mm-home-search select{
    font:inherit;font-size:.98em;color:var(--tx);background:transparent;border:0;outline:none;
    padding:12px 14px;min-width:0;
}
.mm-home-search input{flex:1.4}
.mm-home-search select{flex:1;border-left:1px solid var(--bd);cursor:pointer;appearance:auto}
.mm-home-search select option{color:#111;background:#fff}
.mm-home-search input::placeholder{color:var(--mu)}
.mm-home-search .mm-btn{flex-shrink:0;padding:12px 22px}
.mm-home-search:focus-within{border-color:var(--ac);box-shadow:0 0 0 3px var(--glow2),0 20px 50px -20px rgba(0,0,0,.25)}

.mm-home-stats{list-style:none;display:flex;justify-content:center;flex-wrap:wrap;gap:8px 28px;margin:26px 0 0;padding:0;font-size:.92em;color:var(--tx2)}
.mm-home-stats strong{color:var(--tx);font-size:1.15em;margin-right:4px}

/* Stripe hero: white text on vivid mesh */
body[class*="scheme-charcoal-teal"] .mm-home-hero,body[class*="scheme-ocean-breeze"] .mm-home-hero,
body[class*="scheme-arctic-steel"] .mm-home-hero,body[class*="scheme-cobalt-chrome"] .mm-home-hero,
body[class*="scheme-carbon-lime"] .mm-home-hero{border:none}
body[class*="scheme-charcoal-teal"] .mm-home-hero h1,body[class*="scheme-ocean-breeze"] .mm-home-hero h1,
body[class*="scheme-arctic-steel"] .mm-home-hero h1,body[class*="scheme-cobalt-chrome"] .mm-home-hero h1,
body[class*="scheme-carbon-lime"] .mm-home-hero h1,
body[class*="scheme-charcoal-teal"] .mm-home-stats,body[class*="scheme-ocean-breeze"] .mm-home-stats,
body[class*="scheme-arctic-steel"] .mm-home-stats,body[class*="scheme-cobalt-chrome"] .mm-home-stats,
body[class*="scheme-carbon-lime"] .mm-home-stats,
body[class*="scheme-charcoal-teal"] .mm-home-stats strong,body[class*="scheme-ocean-breeze"] .mm-home-stats strong,
body[class*="scheme-arctic-steel"] .mm-home-stats strong,body[class*="scheme-cobalt-chrome"] .mm-home-stats strong,
body[class*="scheme-carbon-lime"] .mm-home-stats strong,
body[class*="scheme-charcoal-teal"] .mm-home-stats a,body[class*="scheme-ocean-breeze"] .mm-home-stats a,
body[class*="scheme-arctic-steel"] .mm-home-stats a,body[class*="scheme-cobalt-chrome"] .mm-home-stats a,
body[class*="scheme-carbon-lime"] .mm-home-stats a{color:#fff}
body[class*="scheme-charcoal-teal"] .mm-home-sub,body[class*="scheme-ocean-breeze"] .mm-home-sub,
body[class*="scheme-arctic-steel"] .mm-home-sub,body[class*="scheme-cobalt-chrome"] .mm-home-sub,
body[class*="scheme-carbon-lime"] .mm-home-sub{color:rgba(255,255,255,.88)}

/* Linear hero: dotted grid texture */
body[class*="scheme-deep-blue"] .mm-home-hero,body[class*="scheme-midnight-plum"] .mm-home-hero,
body[class*="scheme-obsidian"] .mm-home-hero,body[class*="scheme-noir-ember"] .mm-home-hero,
body[class*="scheme-storm-cloud"] .mm-home-hero,body[class*="scheme-twilight-violet"] .mm-home-hero{
    background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.05) 1px,transparent 0),var(--hero-grad);
    background-size:24px 24px,100% 100%;
}

/* Editorial hero: type only, left aligned, rule below */
body[class*="scheme-crimson-navy"] .mm-home-hero,body[class*="scheme-slate-gold"] .mm-home-hero,
body[class*="scheme-burgundy-brass"] .mm-home-hero,body[class*="scheme-rose-quartz"] .mm-home-hero{
    background:transparent;border:none;border-bottom:1px solid var(--bd);border-radius:0;
    text-align:left;padding:56px 0 56px;
}
body[class*="scheme-crimson-navy"] .mm-home-hero-inner,body[class*="scheme-slate-gold"] .mm-home-hero-inner,
body[class*="scheme-burgundy-brass"] .mm-home-hero-inner,body[class*="scheme-rose-quartz"] .mm-home-hero-inner{margin:0;max-width:980px}
body[class*="scheme-crimson-navy"] .mm-home-sub,body[class*="scheme-slate-gold"] .mm-home-sub,
body[class*="scheme-burgundy-brass"] .mm-home-sub,body[class*="scheme-rose-quartz"] .mm-home-sub,
body[class*="scheme-crimson-navy"] .mm-home-search,body[class*="scheme-slate-gold"] .mm-home-search,
body[class*="scheme-burgundy-brass"] .mm-home-search,body[class*="scheme-rose-quartz"] .mm-home-search{margin-left:0}
body[class*="scheme-crimson-navy"] .mm-home-stats,body[class*="scheme-slate-gold"] .mm-home-stats,
body[class*="scheme-burgundy-brass"] .mm-home-stats,body[class*="scheme-rose-quartz"] .mm-home-stats{justify-content:flex-start}
body[class*="scheme-crimson-navy"] .mm-eyebrow,body[class*="scheme-slate-gold"] .mm-eyebrow,
body[class*="scheme-burgundy-brass"] .mm-eyebrow,body[class*="scheme-rose-quartz"] .mm-eyebrow{background:transparent;border:none;padding:0}

/* Soft hero: offset shadow */
body[class*="scheme-forest-copper"] .mm-home-hero,body[class*="scheme-terracotta"] .mm-home-hero,
body[class*="scheme-sage-ivory"] .mm-home-hero,body[class*="scheme-desert-sand"] .mm-home-hero,
body[class*="scheme-graphite-pearl"] .mm-home-hero{border:none;box-shadow:0 4px 0 var(--bd)}

/* Practice area tiles */
.mm-pa-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.mm-pa-grid a{
    display:flex;flex-direction:column;gap:4px;padding:18px 20px;height:100%;
    background:var(--card);border:1px solid var(--bd);border-radius:var(--radius-lg);
    transition:border-color .2s,transform .2s,box-shadow .2s;position:relative;
}
.mm-pa-grid a::after{content:"\2192";position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--mu);transition:transform .2s,color .2s}
.mm-pa-grid a:hover{border-color:var(--ac);transform:translateY(-2px);box-shadow:0 12px 30px -12px var(--glow)}
.mm-pa-grid a:hover::after{color:var(--ac);transform:translate(3px,-50%)}
.mm-pa-name{font-family:var(--fh);font-weight:600;color:var(--tx);font-size:1.05em;padding-right:24px}
.mm-pa-count{font-size:.84em;color:var(--mu)}

/* Featured firms */
.mm-firm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.mm-firm-card{
    display:flex;flex-direction:column;background:var(--card);border:1px solid var(--bd);
    border-radius:var(--radius-lg);overflow:hidden;transition:transform .25s,box-shadow .25s,border-color .25s;
}
.mm-firm-card:hover{transform:translateY(-4px);border-color:var(--ac);box-shadow:0 20px 40px -18px var(--glow)}
.mm-firm-img{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--bg2)}
.mm-firm-img img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .5s}
.mm-firm-card:hover .mm-firm-img img{transform:scale(1.04)}
.mm-firm-body{display:flex;flex-direction:column;gap:4px;padding:16px 18px 18px}
.mm-firm-cat{font-size:.68em;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--ac)}
.mm-firm-name{font-family:var(--fh);font-weight:600;font-size:1.08em;line-height:1.3;color:var(--tx)}
.mm-firm-geo{font-size:.86em;color:var(--mu)}

/* Page copy with "On this page" menu */
.mm-home-article{display:block;max-width:none;margin-left:0;margin-right:0}
.mm-home-article.has-toc{display:grid;grid-template-columns:220px minmax(0,1fr);gap:48px;max-width:none}
.mm-toc{position:sticky;top:96px;align-self:start;border-left:2px solid var(--bd);padding:4px 0 4px 18px}
.mm-toc-title{font-size:.72em;font-weight:600;letter-spacing:.15em;text-transform:uppercase;color:var(--mu);margin:0 0 12px}
.mm-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.mm-toc a{color:var(--tx2);font-size:.9em;line-height:1.35;display:block}
.mm-toc a:hover{color:var(--ac)}
.mm-prose{font-size:1.05em}
.mm-prose > *:first-child{margin-top:0}
.mm-prose p{line-height:1.8;color:var(--tx2);margin:0 0 1.2em}
.mm-home .mm-prose h2{margin:1.5em 0 .45em;scroll-margin-top:96px}
.mm-home .mm-prose h3{margin:1.3em 0 .35em}
.mm-prose ul,.mm-prose ol{margin:1em 0 1.4em 1.3em;color:var(--tx2)}
.mm-prose li{margin-bottom:.55em;line-height:1.7;color:inherit}
.mm-prose li::marker{color:var(--ac)}
.mm-prose a{text-decoration:underline;text-decoration-color:var(--bd);text-underline-offset:3px}
.mm-prose a:hover{text-decoration-color:var(--ac)}

/* Closing call to action */
.mm-home-cta{
    margin:88px 0 16px;padding:56px 40px;text-align:center;border-radius:var(--radius-lg);
    background:var(--card);border:1px solid var(--bd);position:relative;overflow:hidden;
}
.mm-home-cta::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--btn-grad)}
.mm-home-cta h2{margin:0 0 .4em!important}
.mm-home-cta p{max-width:520px;margin:0 auto 24px}

/* Content lists inherit the paragraph color (fixes white bullets) */
.entry-content li{color:inherit}
.entry-content ul,.entry-content ol{color:var(--tx2)}

@media(max-width:900px){
    .mm-home-hero{padding:56px 22px 44px}
    .mm-home-article.has-toc{grid-template-columns:1fr;gap:24px}
    .mm-toc{position:static}
    .mm-home-section{margin-top:56px}
}
@media(max-width:600px){
    .mm-home-search{flex-direction:column}
    .mm-home-search select{border-left:0;border-top:1px solid var(--bd)}
    .mm-home-search .mm-btn{justify-content:center}
    .mm-home-cta{padding:40px 22px}
}


/* ================================================================
   v10 PROFESSIONAL OVERRIDES
   All schemes are light pages now; these undo the old dark-mode effects.
   ================================================================ */
::selection{color:#fff}

/* Corporate (was Linear): solid dark header bar, white text buttons */
body[class*="scheme-deep-blue"] .mm-hd,body[class*="scheme-midnight-plum"] .mm-hd,body[class*="scheme-obsidian"] .mm-hd,
body[class*="scheme-noir-ember"] .mm-hd,body[class*="scheme-storm-cloud"] .mm-hd,body[class*="scheme-twilight-violet"] .mm-hd{
    background:var(--hd);background-image:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid rgba(0,0,0,.12);
}
body[class*="scheme-deep-blue"] .mm-btn,body[class*="scheme-midnight-plum"] .mm-btn,body[class*="scheme-obsidian"] .mm-btn,
body[class*="scheme-noir-ember"] .mm-btn,body[class*="scheme-storm-cloud"] .mm-btn,body[class*="scheme-twilight-violet"] .mm-btn,
body[class*="scheme-deep-blue"] .mm-btn:hover,body[class*="scheme-midnight-plum"] .mm-btn:hover,body[class*="scheme-obsidian"] .mm-btn:hover,
body[class*="scheme-noir-ember"] .mm-btn:hover,body[class*="scheme-storm-cloud"] .mm-btn:hover,body[class*="scheme-twilight-violet"] .mm-btn:hover{
    color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.12);
}
body[class*="scheme-deep-blue"] .mm-post-card:hover,body[class*="scheme-midnight-plum"] .mm-post-card:hover,body[class*="scheme-obsidian"] .mm-post-card:hover,
body[class*="scheme-noir-ember"] .mm-post-card:hover,body[class*="scheme-storm-cloud"] .mm-post-card:hover,body[class*="scheme-twilight-violet"] .mm-post-card:hover{
    box-shadow:0 12px 30px rgba(15,23,42,.08);
}
body[class*="scheme-deep-blue"] .mm-home-hero,body[class*="scheme-midnight-plum"] .mm-home-hero,body[class*="scheme-obsidian"] .mm-home-hero,
body[class*="scheme-noir-ember"] .mm-home-hero,body[class*="scheme-storm-cloud"] .mm-home-hero,body[class*="scheme-twilight-violet"] .mm-home-hero{
    background-image:radial-gradient(circle at 1px 1px,rgba(15,23,42,.05) 1px,transparent 0),var(--hero-grad);
}

/* Modern (was Stripe): calmer buttons */
body[class*="scheme-charcoal-teal"] .mm-btn,body[class*="scheme-ocean-breeze"] .mm-btn,body[class*="scheme-arctic-steel"] .mm-btn,
body[class*="scheme-cobalt-chrome"] .mm-btn,body[class*="scheme-carbon-lime"] .mm-btn{box-shadow:0 4px 12px rgba(15,23,42,.12)}

/* Classic Serif (was Editorial): upright serif, no italics */
body[class*="scheme-crimson-navy"] h1,body[class*="scheme-slate-gold"] h1,body[class*="scheme-burgundy-brass"] h1,body[class*="scheme-rose-quartz"] h1,
body[class*="scheme-crimson-navy"] .mm-logo .site-title,body[class*="scheme-slate-gold"] .mm-logo .site-title,
body[class*="scheme-burgundy-brass"] .mm-logo .site-title,body[class*="scheme-rose-quartz"] .mm-logo .site-title,
body[class*="scheme-crimson-navy"] .mm-post-card h3,body[class*="scheme-slate-gold"] .mm-post-card h3,
body[class*="scheme-burgundy-brass"] .mm-post-card h3,body[class*="scheme-rose-quartz"] .mm-post-card h3,
body[class*="scheme-crimson-navy"] .mm-page-content p:first-of-type::first-letter,body[class*="scheme-slate-gold"] .mm-page-content p:first-of-type::first-letter,
body[class*="scheme-burgundy-brass"] .mm-page-content p:first-of-type::first-letter,body[class*="scheme-rose-quartz"] .mm-page-content p:first-of-type::first-letter{font-style:normal}
body[class*="scheme-crimson-navy"] h1,body[class*="scheme-slate-gold"] h1,body[class*="scheme-burgundy-brass"] h1,body[class*="scheme-rose-quartz"] h1{
    font-size:clamp(2.6em,5.2vw,4.4em);letter-spacing:-.02em;line-height:1.02;
}

/* Modern: calmer homepage headline size */
body[class*="scheme-charcoal-teal"] .mm-home-hero h1,body[class*="scheme-ocean-breeze"] .mm-home-hero h1,body[class*="scheme-arctic-steel"] .mm-home-hero h1,
body[class*="scheme-cobalt-chrome"] .mm-home-hero h1,body[class*="scheme-carbon-lime"] .mm-home-hero h1{font-size:clamp(2.2em,4.2vw,3.4em);line-height:1.08}

/* Page container always spans the full width (it shrank on pages with little content) */
.mm-main{width:100%;box-sizing:border-box}


/* Directory shortcode inside page copy: wider grid, card text unaffected by prose styles */
.mm-prose .mm-directory-grid,.entry-content .mm-directory-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;margin:24px 0 32px}
.mm-prose .mm-listing-card p{margin:0}
.mm-prose .mm-listing-card .mm-category{margin:0 0 8px}
.mm-prose .mm-listing-card h3{margin:0 0 10px!important;font-size:1.05em}
.mm-prose .mm-listing-card a{text-decoration:none}
.mm-prose .mm-listing-card .mm-website{margin-top:auto}


/* Footer menu (Appearance, Menus, "Footer Navigation") */
.mm-ft-nav{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 24px}
.mm-ft-nav a{color:var(--ht);opacity:.75;font-size:.95em}
.mm-ft-nav a:hover{opacity:1}
body[class*="scheme-crimson-navy"] .mm-ft-nav a,body[class*="scheme-slate-gold"] .mm-ft-nav a,
body[class*="scheme-burgundy-brass"] .mm-ft-nav a,body[class*="scheme-rose-quartz"] .mm-ft-nav a{color:var(--tx2)}
@media(max-width:600px){.mm-ft-nav{justify-content:center}}
