/* ---- Design tokens ---------------------------------------------------- */

:root {
    --bg: #faf8f4;
    --bg-elevated: #ffffff;
    --text: #26241f;
    --text-muted: #6b675f;
    --accent: #a9663f;
    --accent-text: #ffffff;
    --border: #e6e1d8;
    --geometry-stroke: #26241f;
    --geometry-opacity: 0.06;

    --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --nav-height: 4.5rem;
    --content-max: 68rem;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #17150f;
        --bg-elevated: #201d16;
        --text: #ede8de;
        --text-muted: #a29c8e;
        --accent: #d68a5c;
        --accent-text: #17150f;
        --border: #322e25;
        --geometry-stroke: #ede8de;
        --geometry-opacity: 0.08;
    }
}

:root[data-theme="dark"] {
    --bg: #17150f;
    --bg-elevated: #201d16;
    --text: #ede8de;
    --text-muted: #a29c8e;
    --accent: #d68a5c;
    --accent-text: #17150f;
    --border: #322e25;
    --geometry-stroke: #ede8de;
    --geometry-opacity: 0.08;
}

/* ---- Reset & base ------------------------------------------------------ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Header / nav ------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.site-nav {
    max-width: var(--content-max);
    margin: 0 auto;
    height: var(--nav-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
}

.wordmark-mark {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}

.lang-toggle.pulse-attention {
    animation: lang-toggle-pulse 0.9s ease-in-out 3;
}

@keyframes lang-toggle-pulse {
    0%, 100% { border-color: var(--border); color: var(--text-muted); transform: scale(1); }
    50% { border-color: var(--accent); color: var(--text); transform: scale(1.08); }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.theme-toggle.pulse-attention {
    animation: theme-toggle-pulse 0.9s ease-in-out 3;
}

@keyframes theme-toggle-pulse {
    0%, 100% { color: var(--text-muted); transform: scale(1); }
    50% { color: var(--accent); transform: scale(1.15); }
}

.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.theme-toggle .icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: none;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: inline-flex;
    }
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
    display: inline-flex;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 100%;
    height: 1.5px;
    background: var(--text);
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        inset: var(--nav-height) 0 0 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
        padding: 2rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.2s ease;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .lang-toggle,
    .theme-toggle {
        margin-top: 0.5rem;
    }
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100dvh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem;
}

.hero-geometry {
    position: absolute;
    top: 0;
    right: 0;
    width: min(60vw, 32rem);
    height: auto;
    fill: none;
    stroke: var(--geometry-stroke);
    stroke-width: 1;
    opacity: var(--geometry-opacity);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-max);
    margin: 0 auto;
    width: 100%;
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    max-width: 34rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin: 0 0 2.5rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-secondary {
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

/* ---- Shared page-header ambient motif ------------------------------------ */

.page-header-motif {
    position: relative;
}

.page-header-motif-svg {
    position: absolute;
    top: -0.5rem;
    right: 0;
    width: 9rem;
    height: 9rem;
    fill: none;
    stroke: var(--geometry-stroke);
    stroke-width: 1;
    opacity: var(--geometry-opacity);
    pointer-events: none;
}

/* ---- Home bridge ---------------------------------------------------------- */

.home-bridge {
    position: relative;
    overflow: hidden;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

.home-bridge-geometry {
    position: absolute;
    bottom: -4rem;
    left: -4rem;
    width: min(50vw, 26rem);
    height: auto;
    fill: none;
    stroke: var(--geometry-stroke);
    stroke-width: 1;
    opacity: var(--geometry-opacity);
    pointer-events: none;
}

.home-bridge-inner {
    position: relative;
    z-index: 1;
}

.home-bridge h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.5rem;
}

.home-bridge-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 2rem;
    max-width: 34rem;
}

.home-bridge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
}

/* ---- Mantras page ------------------------------------------------------- */

.mantras-page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.mantras-header h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.mantras-subtitle {
    max-width: 40rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.mantras-status {
    color: var(--text-muted);
    margin-top: 3rem;
}

.mantras-content {
    margin-top: 3rem;
}

.mantra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
}

.mantra-card,
.breathwork-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.mantra-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.6rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.mantra-card-head,
.breathwork-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mantra-card-head {
    justify-content: space-between;
}

.mantra-sanskrit {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0;
    line-height: 1;
}

.mantra-play-btn,
.breathwork-play-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mantra-play-btn:hover,
.breathwork-play-btn:hover {
    border-color: var(--accent);
    background: var(--bg);
}

.mantra-play-btn.has-count,
.breathwork-play-btn.has-count {
    width: auto;
    padding: 0 0.75rem;
}

.mantra-play-icon,
.breathwork-play-icon {
    width: 0.9rem;
    height: 0.9rem;
    fill: currentColor;
}

.mantra-play-count,
.breathwork-play-count {
    font-size: 0.8rem;
    font-weight: 600;
}

.mantra-translit,
.breathwork-name {
    font-size: 1.15rem;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.mantra-meta,
.breathwork-meta {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0 0 0.4rem;
    line-height: 1.5;
}

.mantra-meta-label,
.breathwork-meta-label {
    color: var(--text-muted);
    font-weight: 400;
}

.mantra-intention-box,
.breathwork-highlight-box {
    margin: 0.9rem 0 0.5rem;
    padding: 0.7rem 0.9rem;
    border-left: 2px solid var(--accent);
    border-radius: 0.3rem;
    background: var(--bg);
}

.mantra-intention-label,
.breathwork-highlight-label {
    margin: 0 0 0.25rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.mantra-intention-text,
.breathwork-highlight-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mantra-divider,
.breathwork-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0 0.85rem;
}

.mantra-watch-link,
.breathwork-watch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--accent);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.mantra-watch-link .mantra-play-icon,
.breathwork-watch-link .breathwork-play-icon {
    width: 0.75rem;
    height: 0.75rem;
}

/* ---- Video picker list (inside the shared video modal) ------------------ */

.video-picker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.video-picker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.video-picker-item:hover {
    border-color: var(--accent);
    background: var(--bg);
}

.video-picker-icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--text-muted);
}

.video-picker-thumb {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    object-fit: cover;
    border-radius: 0.35rem;
}

.video-picker-title {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.video-picker-meta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.video-picker-platform-icon {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
}

.video-picker-duration {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}


/* ---- Video modal -------------------------------------------------------- */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.video-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 40rem;
    max-height: 90vh;
    overflow: auto;
    background: var(--bg-elevated);
    border-radius: 0.75rem;
    padding: 1rem;
}

.video-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.video-modal-body {
    margin-top: 1rem;
}

.video-modal-body .video-embed-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-modal-body .video-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-body .tiktok-embed {
    margin: 0 auto;
}

/* ---- Breathwork page ----------------------------------------------------- */

.breathwork-page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.breathwork-header h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.breathwork-subtitle {
    max-width: 40rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.breathwork-status {
    color: var(--text-muted);
    margin-top: 3rem;
}

.breathwork-content {
    margin-top: 3rem;
}

.breathwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
}

.breathwork-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.6rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.breathwork-subtitle-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.6rem;
    font-style: italic;
}

/* ---- Sacred geometry page ------------------------------------------------ */

.sg-page {
    max-width: 38rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.sg-header h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.sg-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 1.25rem;
}

.sg-teaser {
    display: inline-flex;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    margin: 0 0 3rem;
    transition: border-color 0.15s ease;
}

.sg-teaser:hover {
    border-color: var(--accent);
}

.sg-next-card {
    max-width: 22rem;
    margin: 0 0 3rem;
}

.sg-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0 0 1.85rem;
}

.sg-content .sg-closing {
    margin: 3rem auto;
    max-width: 30rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
    font-family: var(--font-heading);
    color: var(--text);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.5;
}

.sg-figure {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-radius: 1rem;
    text-align: center;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 70%);
}

.sg-diagram {
    width: 100%;
    max-width: 15rem;
    height: auto;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    opacity: 0.85;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent));
}

.sg-diagram-vesica { max-width: 14rem; }
.sg-diagram-seed { max-width: 16rem; }
.sg-diagram-flower { max-width: 20rem; }
.sg-diagram-metatron { max-width: 22rem; }
.sg-diagram-goldenspiral { max-width: 18rem; }
.sg-diagram-sriyantra { max-width: 18rem; }
.sg-diagram-monochord { max-width: 20rem; }
.sg-diagram-cymatics { max-width: 16rem; }
.sg-diagram-colorwheel { max-width: 16rem; }

.sg-backlink {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.15s ease;
}

.sg-backlink:hover {
    color: var(--accent);
}

.sg-solids-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.sg-diagram-solid {
    max-width: 5.5rem;
    stroke-width: 1.2;
}

.sg-diagram-metatron .mc-lines line {
    stroke: var(--accent);
    stroke-width: 1;
    opacity: 0.4;
}

.sg-diagram-metatron .mc-nodes circle {
    fill: var(--accent);
    stroke: none;
    opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
    .sg-figure {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .sg-figure.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /* Traces each shape's outline in as it scrolls into view, echoing the
       page's own language of circles and lines being drawn one by one.
       pathLength="1" on every circle/line/polygon/path (set in markup)
       normalizes stroke length so one dasharray/duration works for all of
       them regardless of actual size. */
    .sg-diagram :is(circle, line, polygon, path) {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        transition: stroke-dashoffset 1.2s ease 0.15s;
    }

    .sg-figure.is-visible .sg-diagram :is(circle, line, polygon, path) {
        stroke-dashoffset: 0;
    }

    /* drop-shadow forces a blur recompute on every frame the SVG's rendered
       pixels change, so it's off while the draw-on transition is actively
       reshaping the strokes and only re-enabled once a diagram is fully
       drawn (.sg-drawn, added in js/sacred-geometry.js). Scrolling fast
       enough to reveal several diagrams at once was pegging the compositor
       and freezing the page before this. */
    .sg-diagram {
        filter: none;
    }

    .sg-figure.sg-drawn .sg-diagram {
        filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent));
    }
}

.sg-figure figcaption {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sg-figure-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.sg-apps {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.sg-apps h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.sg-apps-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 1.5rem;
}

.sg-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

.app-card:hover {
    border-color: var(--accent);
}

.app-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.app-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.app-card-cta {
    margin-top: 0.25rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.sg-figure-caption {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.sg-draw-link {
    display: inline-flex;
    margin-top: 0.35rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    transition: border-color 0.15s ease;
}

.sg-draw-link:hover {
    border-color: var(--accent);
}

/* ---- Visitor map page ----------------------------------------------------
   Not linked from nav yet — direct-URL preview only. Countries default to
   a flat --border fill (reads as an intentional base map, not a broken
   one) and pick up --accent at varying opacity once js/visitor-map.js has
   country counts to paint, so a near-empty dataset still looks deliberate. */

.vm-page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.vm-content {
    max-width: 42rem;
    margin: 0 auto;
}

.vm-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0 0 1.85rem;
}

.vm-map-wrap {
    margin: 2.5rem 0 1.25rem;
}

.vm-map {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.vm-map-svg {
    display: block;
    width: 100%;
    height: auto;
    fill: var(--border);
    stroke: var(--bg);
    stroke-width: 0.5;
}

.vm-map-svg path[id],
.vm-map-svg g[id] {
    transition: fill 0.2s ease, stroke 0.15s ease;
}

.vm-map-svg .vm-has-data {
    cursor: pointer;
}

.vm-map-svg .vm-has-data:hover,
.vm-map-svg path:focus-visible,
.vm-map-svg g:focus-visible {
    stroke: var(--accent);
    stroke-width: 1;
    outline: none;
}

.vm-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
    text-align: center;
}

.vm-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.5rem 0 2.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vm-legend-steps {
    display: flex;
    gap: 0.2rem;
}

.vm-legend-step {
    width: 1.4rem;
    height: 0.7rem;
    border-radius: 0.15rem;
}

.vm-tooltip {
    position: fixed;
    z-index: 50;
    pointer-events: none;
    background: var(--text);
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.4rem;
    white-space: nowrap;
}

.vm-attribution {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.vm-attribution a {
    color: var(--text-muted);
    text-decoration: underline;
}
