/* ============================================================================
   10MinuteMail.now — modern theme
   Loaded AFTER Tailwind 2.x; overrides utility styling on stable ids/classes.
   Structure inspired by the classic temp-mail layout: white nav, teal hero with
   the address + a vertical action rail, inbox table, article cards, dark footer.
   ========================================================================== */

:root {
    --ink-900: #0c2530;
    --ink-700: #29414d;
    --ink-500: #5b7280;
    --teal-900: #07424e;
    --teal-800: #0a5260;
    --teal-700: #0b5e6e;
    --teal-600: #0e7c8f;
    --teal-500: #14a0b0;
    --teal-400: #2cc5d2;
    --teal-050: #e8f7f9;
    --amber-500: #f59e0b;
    --surface: #f4f7f8;
    --card: #ffffff;
    --line: #e3ebee;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(12, 37, 48, .06), 0 1px 8px rgba(12, 37, 48, .05);
    --shadow-md: 0 6px 24px rgba(12, 37, 48, .10);
}

html { scroll-behavior: smooth; }

body.bg-white {
    background: #fff;
    color: var(--ink-700);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- top nav */
.mm-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 60;
}

.mm-nav .mm-nav-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.mm-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.mm-logo svg { width: 34px; height: 34px; }

.mm-logo .mm-logo-word {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -.02em;
    color: var(--ink-900);
    white-space: nowrap;
}

.mm-logo .mm-logo-word em {
    font-style: normal;
    color: var(--teal-600);
}

.mm-nav-links { align-items: center; gap: .25rem; } /* display comes from Tailwind's hidden md:flex */

.mm-nav a.mm-nav-link,
.mm-nav .mm-nav-link {
    color: var(--ink-700);
    font-weight: 600;
    font-size: .925rem;
    padding: .5rem .75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.mm-nav a.mm-nav-link:hover,
.mm-nav .mm-nav-link:hover { background: var(--teal-050); color: var(--teal-700); }

/* dropdowns (reuses existing .features-* hooks) */
.mm-nav .features-menu-container { position: relative; }

.mm-nav .features-button-container {
    display: flex;
    align-items: center;
    background: none;
    border: 0;
    cursor: pointer;
}

.mm-nav .features-button-container .features-link {
    color: var(--ink-700);
    font-weight: 600;
    font-size: .925rem;
}

.mm-nav .features-button-container svg { color: var(--ink-500); }

.mm-nav .features-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    width: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .18s ease;
    overflow: hidden;
    z-index: 70;
}

.mm-nav .features-menu-container:hover .features-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mm-nav .features-dropdown a {
    display: block;
    padding: .55rem .9rem;
    font-size: .875rem;
    color: var(--ink-700) !important;
    text-decoration: none;
}

.mm-nav .features-dropdown a:hover {
    background: var(--teal-050);
    color: var(--teal-700) !important;
}

.mm-tweet-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-700);
    text-decoration: none;
    transition: all .15s ease;
}

.mm-tweet-btn:hover { border-color: var(--teal-400); color: var(--teal-700); background: var(--teal-050); }

.mm-tweet-btn svg { width: 16px; height: 16px; color: var(--teal-500); }

/* mobile menu panel */
.mm-nav .mobile-menu {
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.mm-nav .mobile-menu a { color: var(--ink-700) !important; }

.mm-nav .mobile-menu a:hover { background: var(--teal-050) !important; color: var(--teal-700) !important; }

.mm-nav .mobile-features-container,
.mm-nav .mobile-faq-container { background: transparent; }

.mm-nav .mobile-submenu { background: var(--surface) !important; }

.mm-nav .mobile-submenu a { color: var(--ink-500) !important; }

.mm-nav .mobile-arrow { color: var(--ink-500) !important; }

.mm-nav .mobile-menu-button { color: var(--ink-900); }

/* ------------------------------------------------------------------- hero */
.mm-hero {
    position: relative;
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(44, 197, 210, .35), transparent 60%),
        linear-gradient(135deg, #0b5563 0%, #0e7c8f 55%, #14a0b0 100%);
    color: #fff;
    overflow: hidden;
}

.mm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='2'%3E%3Crect x='12' y='18' width='34' height='24' rx='3'/%3E%3Cpath d='M12 20l17 13 17-13'/%3E%3Ccircle cx='88' cy='84' r='13'/%3E%3Cpath d='M88 76v8l6 3'/%3E%3Cpath d='M70 26h22M70 34h14'/%3E%3Ccircle cx='30' cy='86' r='4'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    pointer-events: none;
}

.mm-hero-inner {
    position: relative;
    max-width: 1152px;
    margin: 0 auto;
    padding: 3.5rem 1rem 4rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .mm-hero-inner { padding: 4.5rem 150px 5rem; }
}

.mm-hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(7, 66, 78, .35);
}

@media (min-width: 768px) {
    .mm-hero h1 { font-size: 2.35rem; }
}

/* the address pill */
.mm-email-box {
    max-width: 560px;
    margin: 0 auto 1.1rem;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(7, 66, 78, .35), inset 0 -3px 0 var(--amber-500);
    overflow: hidden;
}

.mm-email-box input#temp-email {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 1rem 1.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--teal-800);
    text-align: center;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .mm-email-box input#temp-email { font-size: 1.2rem; }
}

.mm-email-box .mm-copy-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border: 0;
    border-left: 1px solid var(--line);
    background: #fff;
    color: var(--teal-600);
    cursor: pointer;
    transition: background .15s ease;
}

.mm-email-box .mm-copy-inline:hover { background: var(--teal-050); }

.mm-hero .mm-hero-sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: .975rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92);
}

.mm-hero .mm-hero-sub strong { color: #fff; }

.mm-timer-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    background: rgba(7, 66, 78, .45);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
}

.mm-timer-chip svg { width: 15px; height: 15px; }

/* "Get a new address" CTA - swaps in for the timer chip once expired */
.mm-timer-chip-cta {
    background: var(--amber-500);
    border-color: rgba(255, 255, 255, .5);
    cursor: pointer;
    animation: mm-cta-pulse 1.8s ease-in-out infinite;
}

.mm-timer-chip-cta:hover { background: #d97706; }

#timer-chip.hidden, .mm-timer-chip-cta.hidden { display: none !important; }

@keyframes mm-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

/* ------------------------------------------------------------ action rail */
.mm-rail {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.4rem;
    position: relative;
    z-index: 2;
}

.mm-rail-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 86px;
    padding: .8rem .25rem;
    background: rgba(7, 66, 78, .55);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    backdrop-filter: blur(4px);
    position: relative;
}

.mm-rail-btn:hover { background: rgba(7, 66, 78, .85); transform: translateY(-1px); }

.mm-rail-btn svg { width: 21px; height: 21px; }

.mm-rail-btn .mm-badge {
    position: absolute;
    top: -7px;
    right: -6px;
    background: var(--amber-500);
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    padding: .1rem .4rem;
    border-radius: 999px;
    letter-spacing: .05em;
}

@media (min-width: 1024px) {
    .mm-rail {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        flex-wrap: nowrap;
        margin-top: 0;
        gap: 5px;
    }

    .mm-rail-btn {
        width: 88px;
        border-radius: 10px;
        padding: .55rem .25rem;
        font-size: .7rem;
    }

    .mm-rail-btn svg { width: 19px; height: 19px; }
}

/* ------------------------------------------------------------------ inbox */
.mm-inbox-wrap {
    max-width: 1152px;
    margin: -1.6rem auto 0;
    padding: 0 1rem;
    position: relative;
    z-index: 5;
}

.mm-inbox {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mm-inbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.mm-inbox-toolbar .mm-inbox-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    color: var(--ink-900);
    font-size: 1rem;
}

.mm-inbox-toolbar .mm-inbox-title svg { width: 18px; height: 18px; color: var(--teal-600); }

#fetch-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    color: var(--ink-500);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .25rem .75rem;
    margin: 0;
}

.mm-toolbar-actions { display: flex; align-items: center; gap: .5rem; }

.mm-btn-quiet {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-700);
    font-size: .82rem;
    font-weight: 600;
    padding: .42rem .8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s ease;
}

.mm-btn-quiet:hover { border-color: #f0b3b3; color: #b91c1c; background: #fef2f2; }

.mm-btn-quiet svg { width: 15px; height: 15px; }

/* header + rows share this grid */
.mm-inbox-grid {
    display: grid;
    grid-template-columns: 44px minmax(0, 3fr) minmax(0, 5fr) 92px 84px;
    align-items: center;
}

.mm-inbox-head {
    background: linear-gradient(90deg, var(--teal-700), var(--teal-500));
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .65rem 0;
}

.mm-inbox-head > div { padding: 0 .6rem; }

.mm-inbox-head .mm-col-check { text-align: center; }

.mm-inbox-body { min-height: 380px; max-height: 480px; overflow-y: auto; position: relative; }

.mm-inbox-body ul { list-style: none; margin: 0; padding: 0; }

li.mm-row {
    border-bottom: 1px solid var(--line);
    transition: background .12s ease;
    padding: .7rem 0;
}

li.mm-row:hover { background: var(--teal-050); }

li.mm-row > div { padding: 0 .6rem; min-width: 0; }

.mm-col-check { text-align: center; }

.mm-col-check input[type="checkbox"],
.mm-inbox-head input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--teal-600);
    cursor: pointer;
}

.mm-row .mm-from a { text-decoration: none; display: block; min-width: 0; }

.mm-row .mm-from .mm-from-name {
    display: block;
    font-weight: 700;
    color: var(--ink-900);
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-row .mm-from .mm-from-addr {
    display: block;
    color: var(--ink-500);
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-row .mm-subj { min-width: 0; }

.mm-row .mm-subj a {
    color: var(--ink-700);
    text-decoration: none;
    font-size: .9rem;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.mm-row .mm-subj a:hover { color: var(--teal-700); text-decoration: underline; }

.mm-row .mm-subj.mm-unread a { font-weight: 700; color: var(--ink-900); }

.mm-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: .45rem;
    border-radius: 999px;
    background: var(--teal-500);
    box-shadow: 0 0 0 3px var(--teal-050);
    vertical-align: middle;
}

li.mm-row .mm-col-time { font-size: .8rem; color: var(--ink-500); white-space: nowrap; }

.mm-inbox-head .mm-col-time { color: #fff; }

.mm-btn-view {
    display: inline-block;
    background: var(--teal-600);
    color: #fff !important;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s ease;
}

.mm-btn-view:hover { background: var(--teal-700); }

/* empty state */
#empty-state { padding: 3rem 1rem; text-align: center; }

#empty-state .mm-empty-art { margin: 0 auto 1rem; width: 96px; height: 96px; color: var(--teal-400); animation: mm-float 3.2s ease-in-out infinite; }

#empty-state .mm-empty-title { font-weight: 700; color: var(--ink-900); margin-bottom: .25rem; }

#empty-state .mm-empty-sub { color: var(--ink-500); font-size: .875rem; margin-bottom: 1rem; }

@keyframes mm-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* small screens: hide time column, tighten grid */
@media (max-width: 639px) {
    .mm-inbox-grid { grid-template-columns: 36px minmax(0, 4fr) minmax(0, 5fr) 64px; }
    .mm-col-time { display: none; }
    .mm-btn-view { padding: .3rem .6rem; font-size: .72rem; }
    .mm-inbox-toolbar { flex-wrap: wrap; }
}

/* ------------------------------------------------------------ section base */
.mm-section { max-width: 1152px; margin: 0 auto; padding: 2.75rem 1rem 0; }

.mm-section-head { text-align: center; margin-bottom: 1.6rem; }

.mm-section-head h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -.01em;
}

.mm-section-head p { color: var(--ink-500); margin-top: .35rem; font-size: .95rem; }

/* --------------------------------------------------------- article cards */
.mm-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 768px) { .mm-cards { grid-template-columns: 1fr 1fr; } }

.mm-card {
    display: flex;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}

.mm-card:hover { transform: translateY(-3px); }

.mm-card .mm-card-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
}

.mm-card:nth-child(2) .mm-card-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.mm-card:nth-child(3) .mm-card-icon { background: linear-gradient(135deg, #d97706, #fbbf24); }
.mm-card:nth-child(4) .mm-card-icon { background: linear-gradient(135deg, #059669, #34d399); }

.mm-card .mm-card-icon svg { width: 26px; height: 26px; }

.mm-card .mm-card-title {
    font-weight: 700;
    color: var(--teal-700);
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: .3rem;
}

.mm-card:hover .mm-card-title { text-decoration: underline; }

.mm-card .mm-card-excerpt {
    color: var(--ink-500);
    font-size: .86rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mm-card .mm-card-meta { margin-top: .4rem; font-size: .75rem; color: var(--ink-500); font-weight: 600; }

/* ------------------------------------------------------- visual guide steps */
.mm-steps { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

@media (min-width: 900px) { .mm-steps { grid-template-columns: repeat(3, 1fr); } }

.mm-step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

.mm-step:hover { transform: translateY(-3px); }

.mm-step img { width: 100%; height: 210px; object-fit: cover; object-position: top center; display: block; }

/* step number rendered as an overlay so it is never clipped by the image crop */
.mm-step-num {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--teal-600);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .92), 0 2px 6px rgba(12, 37, 48, .25);
}

.mm-step h3 { font-weight: 700; color: var(--ink-900); font-size: 1rem; padding: 1rem 1.1rem .25rem; }

.mm-step p { color: var(--ink-500); font-size: .875rem; line-height: 1.6; padding: 0 1.1rem 1.2rem; }

/* ==========================================================================
   CONTENT-PAGE SHELL  (breadcrumb band + card + CTA banner + explore grid)
   Applied to every /<lang>/<slug> page so they all match the homepage system.
   ========================================================================== */
.mm-content-top {
    background: linear-gradient(180deg, var(--teal-050), transparent);
    border-bottom: 1px solid var(--line);
}

.mm-crumbs {
    max-width: 880px;
    margin: 0 auto;
    padding: .7rem 1rem;
    font-size: .82rem;
    color: var(--ink-500);
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}

.mm-crumbs a { color: var(--teal-700); text-decoration: none; font-weight: 600; }
.mm-crumbs a:hover { text-decoration: underline; }
.mm-crumb-home { display: inline-flex; align-items: center; }
.mm-crumb-home svg { width: 17px; height: 17px; }
.mm-crumb-home:hover { color: var(--teal-800); }
.mm-crumb-sep { color: var(--ink-500); opacity: .55; display: inline-flex; align-items: center; }
.mm-crumb-sep svg { width: 15px; height: 15px; }
.mm-crumb-here { color: var(--ink-700); font-weight: 600; }

.mm-content-wrap { max-width: 880px; margin: 1.5rem auto 0; padding: 0 1rem; }

.mm-content-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.6rem 1.3rem;
    position: relative;
}

@media (min-width: 768px) { .mm-content-card { padding: 2.5rem 3rem; } }

/* accent bar along the top of the card */
.mm-content-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
}

/* ---- shared prose typography (article.container legacy + new card) ---- */
article.container h1, .mm-content-card h1 { font-size: 2rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.01em; margin-bottom: .5rem; line-height: 1.2; }
.mm-content-card > h1:first-child, .mm-content-card > .container > h1:first-child { margin-top: .2rem; }
article.container h2, .mm-content-card h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink-900); margin: 1.9rem 0 .6rem; scroll-margin-top: 80px; }
article.container h3, .mm-content-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink-900); margin: 1.3rem 0 .5rem; }
article.container p, .mm-content-card p { line-height: 1.75; color: var(--ink-700); margin-bottom: .9rem; }
article.container ul, article.container ol, .mm-content-card ul, .mm-content-card ol { margin: 0 0 1rem 1.4rem; }
article.container ul, .mm-content-card ul { list-style: none; padding-left: 0; }
article.container ul li, .mm-content-card ul li { position: relative; padding-left: 1.6rem; line-height: 1.7; color: var(--ink-700); margin-bottom: .5rem; }
/* teal check bullets */
article.container ul li::before, .mm-content-card ul li::before {
    content: "";
    position: absolute;
    left: 0; top: .45em;
    width: 9px; height: 9px;
    border-radius: 3px;
    background: var(--teal-400);
    box-shadow: 0 0 0 3px var(--teal-050);
}
article.container ol, .mm-content-card ol { list-style: decimal; }
article.container ol li, .mm-content-card ol li { line-height: 1.7; color: var(--ink-700); margin-bottom: .5rem; padding-left: .3rem; }
article.container li strong, .mm-content-card li strong { color: var(--ink-900); }
/* lists nested inside a table cell or FAQ keep default markers off */
.mm-content-card .mm-faq ul li::before { display: none; }

/* lead paragraph: the first paragraph after the H1 */
.mm-content-card h1 + p, article.container h1 + p { font-size: 1.1rem; color: var(--ink-700); line-height: 1.7; }

.mm-link, article.container a.mm-link, .mm-content-card a.mm-link { color: var(--teal-700); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(14, 124, 143, .3); }
.mm-link:hover, article.container a.mm-link:hover, .mm-content-card a.mm-link:hover { border-bottom-color: var(--teal-700); }

/* Re-skin legacy Tailwind buttons/inputs inside content cards to the teal brand */
.mm-content-card .bg-blue-500, .mm-content-card .bg-blue-600, .mm-content-card .bg-blue-700, .mm-content-card .bg-blue-800,
.mm-content-card .bg-green-600, .mm-content-card .bg-green-700 {
    background: var(--teal-600) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    transition: background .15s ease;
}
.mm-content-card .hover\:bg-blue-600:hover, .mm-content-card .hover\:bg-blue-700:hover, .mm-content-card .hover\:bg-blue-800:hover,
.mm-content-card .hover\:bg-blue-900:hover, .mm-content-card .hover\:bg-green-700:hover { background: var(--teal-700) !important; }
.mm-content-card .text-blue-600, .mm-content-card .text-blue-500 { color: var(--teal-700) !important; }
.mm-content-card input[type="text"], .mm-content-card textarea {
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: var(--surface);
    color: var(--ink-700);
}

/* ---- bottom CTA banner ---- */
.mm-cta-banner {
    max-width: 880px;
    margin: 1.4rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: radial-gradient(900px 300px at 100% 0%, rgba(44,197,210,.35), transparent 60%), linear-gradient(135deg, var(--teal-800), var(--teal-600));
    color: #fff;
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-md);
}

.mm-cta-banner h2 { color: #fff; font-size: 1.2rem; font-weight: 800; margin: 0 0 .2rem; }
.mm-cta-banner p { color: rgba(255,255,255,.9); margin: 0; font-size: .9rem; }

.mm-cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    color: var(--teal-800) !important;
    font-weight: 800;
    padding: .7rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(7,66,78,.3);
    transition: transform .15s ease;
}
.mm-cta-banner-btn:hover { transform: translateY(-2px); }
.mm-cta-banner-btn svg { width: 18px; height: 18px; }

/* ---- explore-more grid ---- */
.mm-explore { max-width: 880px; margin: 1.6rem auto 0; }
.mm-explore-title { font-size: 1rem; font-weight: 800; color: var(--ink-900); margin-bottom: .7rem; }
.mm-explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 700px) { .mm-explore-grid { grid-template-columns: repeat(3, 1fr); } }
.mm-explore-grid a {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .7rem .9rem;
    color: var(--ink-700);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .15s ease;
}
.mm-explore-grid a:hover { border-color: var(--teal-400); background: var(--teal-050); color: var(--teal-800); }
.mm-explore-ic {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex: 0 0 auto;
    border-radius: 8px;
    background: var(--teal-050);
    color: var(--teal-600);
    font-size: .9rem;
}

/* duration comparison table */
.mm-ladder-scroll { overflow-x: auto; margin: .5rem 0 1rem; }

.mm-ladder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.mm-ladder-table th {
    background: linear-gradient(90deg, var(--teal-700), var(--teal-500));
    color: #fff;
    text-align: left;
    padding: .65rem .9rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mm-ladder-table td { padding: .7rem .9rem; border-top: 1px solid var(--line); vertical-align: middle; }

.mm-ladder-table tr.is-current { background: var(--teal-050); }

.mm-ladder-table a { color: var(--teal-700); font-weight: 700; text-decoration: none; white-space: nowrap; }

.mm-ladder-table a:hover { text-decoration: underline; }

.mm-here { color: var(--ink-500); font-weight: 700; font-size: .82rem; }

/* stat tiles: a row of big-number highlights */
.mm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.3rem 0; }
@media (min-width: 640px) { .mm-stats { grid-template-columns: repeat(4, 1fr); } }
.mm-stat {
    background: linear-gradient(160deg, var(--teal-050), #fff);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem .8rem;
    text-align: center;
}
.mm-stat .mm-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--teal-700); line-height: 1.1; }
.mm-stat .mm-stat-label { font-size: .78rem; color: var(--ink-500); margin-top: .2rem; }

/* key-takeaways / summary box */
.mm-keys {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal-500);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 1.3rem 0;
}
.mm-keys h3, .mm-keys .mm-keys-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-800); font-weight: 800; margin: 0 0 .6rem; }
.mm-keys ul { margin: 0; }
.mm-keys li { padding-left: 1.7rem; position: relative; margin-bottom: .4rem; }
.mm-keys li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: #fff; background: var(--teal-500); width: 18px; height: 18px;
    border-radius: 999px; font-size: .7rem; display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* "See also" related-links line (contextual cluster cross-links) */
.mm-seealso {
    background: var(--teal-050);
    border-radius: 10px;
    padding: .7rem 1rem;
    margin: 1.3rem 0;
    font-size: .92rem;
    color: var(--ink-700);
}
.mm-seealso strong { color: var(--teal-800); }

/* icon section header: a small teal chip beside an H2 */
.mm-h2-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--teal-050); color: var(--teal-600); margin-right: .55rem; vertical-align: -6px; }
.mm-h2-ic svg { width: 18px; height: 18px; }

/* callout / tip box */
.mm-tip {
    background: var(--teal-050);
    border-left: 4px solid var(--teal-500);
    border-radius: 8px;
    padding: .9rem 1.1rem;
    margin: 1.2rem 0;
    color: var(--ink-700);
    font-size: .93rem;
    line-height: 1.65;
}

.mm-tip strong { color: var(--teal-800); }

/* FAQ list on content pages */
.mm-faq { margin: .5rem 0 1rem; }

.mm-faq details {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: .6rem;
    background: var(--card);
    overflow: hidden;
}

.mm-faq summary {
    cursor: pointer;
    padding: .8rem 1rem;
    font-weight: 700;
    color: var(--ink-900);
    list-style: none;
    position: relative;
}

.mm-faq summary::-webkit-details-marker { display: none; }

.mm-faq summary::after { content: "+"; position: absolute; right: 1rem; color: var(--teal-600); font-size: 1.2rem; }

.mm-faq details[open] summary::after { content: "\2013"; }

.mm-faq details[open] summary { border-bottom: 1px solid var(--line); }

.mm-faq .mm-faq-a { padding: .8rem 1rem; color: var(--ink-700); line-height: 1.7; font-size: .93rem; }

/* ------------------------------------------------------------------ prose */
.mm-prose {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) { .mm-prose { padding: 2.5rem 3rem; } }

.mm-prose h2 { font-size: 1.35rem; font-weight: 800; color: var(--ink-900); margin: 1.6rem 0 .7rem; }

.mm-prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink-900); margin: 1.4rem 0 .6rem; }

.mm-prose h2:first-child { margin-top: 0; }

.mm-prose p { font-size: .95rem; line-height: 1.75; color: var(--ink-700); margin-bottom: .9rem; }

.mm-prose ul, .mm-prose ol { margin: 0 0 1rem 1.25rem; }

.mm-prose ul { list-style: disc; }

.mm-prose ol { list-style: decimal; }

.mm-prose li { font-size: .95rem; line-height: 1.7; color: var(--ink-700); margin-bottom: .4rem; }

.mm-prose li strong { color: var(--ink-900); }

/* ---------------------------------------------------------------- reviews */
.mm-reviews { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 768px) { .mm-reviews { grid-template-columns: repeat(3, 1fr); } }

.mm-review {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.mm-review .mm-review-stars { color: var(--amber-500); letter-spacing: .12em; font-size: .85rem; }

.mm-review .mm-review-name { font-weight: 700; color: var(--ink-900); margin-top: .15rem; font-size: .925rem; }

.mm-review p { color: var(--ink-500); font-size: .875rem; line-height: 1.6; margin-top: .6rem; }

/* --------------------------------------------------------------- QR modal */
#qr-modal { backdrop-filter: blur(3px); }

#qr-modal > div {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
    text-align: center;
}

#qr-modal #close-qr-modal {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ink-500);
    width: 32px;
    height: 32px;
    border-radius: 999px;
}

#qr-modal #close-qr-modal:hover { background: var(--surface); color: var(--ink-900); }

#qr-modal .mm-qr-mail { font-weight: 700; color: var(--teal-700); margin-bottom: .75rem; word-break: break-all; }

/* -------------------------------------------------------- features strip */
.mm-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (min-width: 1024px) { .mm-features { grid-template-columns: repeat(4, 1fr); } }

.mm-feature { text-align: center; padding: 1.25rem .75rem; }

.mm-feature .mm-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .8rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-050);
    color: var(--teal-600);
}

.mm-feature .mm-feature-icon svg { width: 26px; height: 26px; }

.mm-feature h3 { font-weight: 700; color: var(--ink-900); font-size: .975rem; margin-bottom: .25rem; }

.mm-feature p { color: var(--ink-500); font-size: .85rem; line-height: 1.5; }

/* ----------------------------------------------------------------- footer */
.mm-footer { background: var(--ink-900); color: #b9c9d1; margin-top: 3rem; }

.mm-footer-inner { max-width: 1152px; margin: 0 auto; padding: 2.75rem 1rem 1.5rem; }

.mm-footer h4 {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .9rem;
}

.mm-footer a { color: #b9c9d1; text-decoration: none; font-size: .875rem; line-height: 1.9; }

.mm-footer a:hover { color: var(--teal-400); }

.mm-footer select {
    width: 100%;
    background: rgba(255, 255, 255, .08);
    color: #e6eef2;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .875rem;
}

.mm-footer select option { color: var(--ink-900); }

.mm-footer .mm-footer-post {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: .45rem;
}

.mm-langs-wrap {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.mm-langs { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }

.mm-langs a { font-size: .8rem; color: #8ba4af; white-space: nowrap; }

.mm-langs a:hover { color: var(--teal-400); }

/* nav language picker */
.mm-lang-menu .mm-lang-flag { font-size: 1rem; margin-right: .3rem; }

.mm-lang-menu .mm-lang-name { font-size: .875rem; font-weight: 600; color: var(--ink-700); }

.mm-lang-dropdown { max-height: 360px; overflow-y: auto; right: 0; left: auto; width: auto; min-width: 168px; }

/* flag-only grid: 3 columns of flags, no text (kept as title/aria-label) */
.mm-lang-dropdown .py-1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: .35rem; }

.mm-lang-dropdown a { display: flex; align-items: center; justify-content: center; padding: .4rem .5rem; border-radius: 8px; }

.mm-lang-dropdown a:hover { background: var(--teal-050); }

.mm-lang-dropdown .mm-lang-flag { font-size: 1.4rem; margin: 0; line-height: 1; }

/* per-page language strip */
.mm-page-langs {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: .9rem 1.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .9rem;
}

.mm-page-langs .mm-page-langs-label {
    font-weight: 700;
    color: var(--ink-900);
    font-size: .85rem;
    margin-right: .3rem;
}

.mm-page-langs a {
    font-size: .82rem;
    color: var(--ink-500);
    text-decoration: none;
    white-space: nowrap;
}

.mm-page-langs a:hover { color: var(--teal-700); text-decoration: underline; }

.mm-page-langs a span { text-decoration: inherit; }

.mm-footer .mm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: .8rem;
    color: #8ba4af;
}

/* --------------------------------------------------------------- spinners */
.refresh-icon { animation: mm-spin 1s linear infinite; }

@keyframes mm-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
