/* ============================================================
   emf-visual — Premium polish layer
   Loaded AFTER each page's inline styles so these refinements
   win the cascade. Scoped by per-page body classes:
     page-clinical → ehs-body-infographic.html
     page-atlas    → ehs-world-map.html
     page-floor    → ehs-house-floor-plan.html
   ============================================================ */

/* ── 00 · Shared page base ──────────────────────────────────── */
body.page-dark {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: inherit;
}

body.page-dark ::selection {
    background: rgba(212, 162, 76, 0.25);
}

body.page-dark ::-webkit-scrollbar-track {
    background: #0b0f18;
}

body.page-dark ::-webkit-scrollbar-thumb {
    background: #2a3346;
    border-color: #0b0f18;
}

body.page-dark ::-webkit-scrollbar-thumb:hover {
    background: #d4a24c;
}

body.page-clinical :focus-visible,
body.page-atlas :focus-visible {
    outline-color: #d4a24c;
}

body.page-floor :focus-visible {
    outline-color: #1565c0;
}

/* Viewport-triggered entrance — main.js adds .in-view via
   IntersectionObserver on any [data-reveal] element. */
@media (prefers-reduced-motion: no-preference) {
    body.page-dark [data-reveal] {
        opacity: 0;
        transform: translateY(16px);
        transition:
            opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
            transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    body.page-dark [data-reveal].in-view {
        opacity: 1;
        transform: translateY(0);
    }

    /* Gentle stagger between siblings of a group */
    body.page-dark [data-reveal]:nth-child(2) { transition-delay: 0.05s; }
    body.page-dark [data-reveal]:nth-child(3) { transition-delay: 0.10s; }
    body.page-dark [data-reveal]:nth-child(4) { transition-delay: 0.15s; }
    body.page-dark [data-reveal]:nth-child(5) { transition-delay: 0.20s; }
    body.page-dark [data-reveal]:nth-child(6) { transition-delay: 0.25s; }
    body.page-dark [data-reveal]:nth-child(7) { transition-delay: 0.30s; }
    body.page-dark [data-reveal]:nth-child(8) { transition-delay: 0.35s; }

    /* Figure panel rises with the page */
    body.page-clinical .figure-panel {
        opacity: 0;
        transform: translateY(20px);
        transition:
            opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
            transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    body.page-clinical .figure-panel.in-view {
        opacity: 1;
        transform: none;
    }
}

/* ── 01 · Shared dark-page chrome (clinical + atlas) ───────── */
body.page-clinical .shell,
body.page-atlas .shell {
    padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 40px) 88px;
}

body.page-clinical h1,
body.page-atlas h1 {
    max-width: 1000px;
}

body.page-clinical h1 em,
body.page-atlas h1 em {
    background: linear-gradient(120deg, #d4a24c 0%, #eecb8e 60%, #f5dca8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.page-clinical .lede,
body.page-atlas .lede {
    font-size: 16.5px;
    line-height: 1.7;
}

/* Stat bar */
body.page-clinical .meta-row,
body.page-atlas .meta-row {
    gap: 0;
    padding: 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    overflow: hidden;
    margin-bottom: 56px;
}

body.page-clinical .meta-item,
body.page-atlas .meta-item {
    position: relative;
    padding: 14px 30px;
}

body.page-clinical .meta-item + .meta-item::before,
body.page-atlas .meta-item + .meta-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

body.page-clinical .meta-label,
body.page-atlas .meta-label {
    font-size: 9.5px;
    letter-spacing: 0.2em;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.page-clinical .meta-label::before,
body.page-atlas .meta-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4a24c;
    opacity: 0.75;
    flex-shrink: 0;
}

body.page-clinical .meta-value,
body.page-atlas .meta-value {
    font-size: 30px;
    letter-spacing: -0.01em;
}

body.page-clinical .meta-value .unit,
body.page-atlas .meta-value .unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3, #6b7385);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 3px 10px;
    margin-left: 10px;
    vertical-align: 3px;
}

/* Section heads */
body.page-clinical .section-eyebrow,
body.page-atlas .section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.page-clinical .section-eyebrow::before,
body.page-atlas .section-eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: #d4a24c;
    opacity: 0.65;
}

body.page-clinical .section-title,
body.page-atlas .section-title {
    letter-spacing: -0.015em;
}

body.page-clinical .section-sub,
body.page-atlas .section-sub {
    line-height: 1.65;
}

/* Glass tooltips (shared by both dark pages) */
body.page-clinical .tooltip,
body.page-atlas .tooltip {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow:
        0 24px 64px -12px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 16px 18px;
}

body.page-atlas .tt-status {
    border-radius: 999px;
    padding: 4px 10px;
}

/* ── 02 · Clinical page (body infographic) ─────────────────── */
body.page-clinical .figure-panel {
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, #131a2e 0%, #0a0d17 100%);
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 26px;
}

body.page-clinical .figure-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 162, 76, 0.55), transparent);
    z-index: 1;
}

body.page-clinical .figure-label {
    margin-bottom: 16px;
    padding-bottom: 14px;
}

body.page-clinical .figure-label .caption {
    font-size: 15px;
}

body.page-clinical .figure-label .plate {
    border: 1px solid rgba(212, 162, 76, 0.35);
    border-radius: 999px;
    padding: 4px 12px;
    background: rgba(212, 162, 76, 0.08);
    color: #e8c07a;
}

body.page-clinical .symptom-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid rgba(212, 162, 76, 0);
    padding: 20px 24px 20px 26px;
    background: linear-gradient(180deg, rgba(25, 32, 52, 0.72), rgba(15, 20, 34, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

@media (hover: hover) {
    body.page-clinical .symptom-card:hover,
    body.page-clinical .symptom-card.active {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, 0.13);
        border-left-color: #d4a24c;
        background: linear-gradient(180deg, rgba(31, 39, 62, 0.88), rgba(18, 23, 40, 0.96));
        box-shadow:
            0 24px 50px -12px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(212, 162, 76, 0.07);
    }
}

body.page-clinical .organ-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border-color: rgba(212, 162, 76, 0.28);
    background: linear-gradient(160deg, rgba(212, 162, 76, 0.16), rgba(212, 162, 76, 0.04));
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
    body.page-clinical .symptom-card:hover .organ-mark,
    body.page-clinical .symptom-card.active .organ-mark {
        border-color: rgba(212, 162, 76, 0.5);
        transform: scale(1.06);
    }
}

body.page-clinical .severity-badge {
    border-radius: 999px;
    padding: 5px 12px;
}

body.page-clinical .card-title {
    font-size: 23px;
}

body.page-clinical .card-system {
    letter-spacing: 0.2em;
}

body.page-clinical .symptom-list {
    gap: 9px 16px;
}

body.page-clinical .symptom-list li {
    font-size: 13.5px;
}

body.page-clinical .mechanism {
    border-top-color: rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}

body.page-clinical .mechanism strong {
    letter-spacing: 0.16em;
}

body.page-clinical .mechanism-note {
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.09);
    padding: 44px 48px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(26, 33, 54, 0.86), rgba(12, 16, 28, 0.95)),
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(79, 179, 191, 0.08), transparent 60%);
}

body.page-clinical .mech-col {
    position: relative;
}

body.page-clinical .mech-col + .mech-col::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

body.page-clinical .mech-col h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e8c07a;
}

body.page-clinical .mech-col h4::before {
    content: '';
    width: 16px;
    height: 1px;
    background: #d4a24c;
    opacity: 0.55;
}

body.page-clinical footer.page-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 28px 32px;
}

body.page-clinical footer.page-footer p {
    max-width: none;
    font-size: 12.5px;
    line-height: 1.7;
}

/* ── 03 · Atlas page (world map) ───────────────────────────── */
body.page-atlas .legend-bar {
    margin-bottom: 20px;
}

body.page-atlas .legend {
    gap: 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 9px 22px;
    backdrop-filter: blur(10px);
}

body.page-atlas .legend-item {
    font-size: 12.5px;
}

body.page-atlas .legend-sq {
    width: 13px;
    height: 13px;
    border-radius: 4px;
}

body.page-atlas .map-scale {
    font-size: 9.5px;
    letter-spacing: 0.15em;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 9px 18px;
}

body.page-atlas .map-card {
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 64px;
}

body.page-atlas .ocean-label {
    fill: rgba(255, 255, 255, 0.14);
}

body.page-atlas .timeline {
    padding-top: 28px;
}

body.page-atlas .timeline-axis {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 6%, rgba(255, 255, 255, 0.15) 94%, transparent);
}

body.page-atlas .tick {
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

body.page-atlas .tick.tick-current {
    background: #d4a24c;
    box-shadow: 0 0 12px rgba(212, 162, 76, 0.5);
}

body.page-atlas .tick-label {
    font-size: 10.5px;
    letter-spacing: 0.12em;
}

body.page-atlas .event-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid rgba(212, 162, 76, 0.65);
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(25, 32, 52, 0.75), rgba(15, 20, 34, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

@media (hover: hover) {
    body.page-atlas .event-card:hover,
    body.page-atlas .event-card.active {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.13);
        border-left-color: #e8c07a;
        background: linear-gradient(180deg, rgba(30, 38, 60, 0.9), rgba(18, 23, 40, 0.95));
        box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.55);
    }
}

body.page-atlas .event-year {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(212, 162, 76, 0.12);
    border: 1px solid rgba(212, 162, 76, 0.28);
}

body.page-atlas .event-country {
    font-size: 25px;
}

body.page-atlas .shell > footer {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 28px 32px;
}

body.page-atlas .shell > footer p {
    max-width: none;
    font-size: 12.5px;
    line-height: 1.7;
}

/* ── 04 · Floor plan page ──────────────────────────────────── */
body.page-floor {
    --bg-paper: #07090f;
    --bg-paper-2: #0c111b;
    --grid-minor: rgba(125, 165, 255, 0.05);
    --grid-major: rgba(125, 165, 255, 0.10);
    --panel-border: rgba(203, 214, 232, 0.35);
    --divider: rgba(230, 233, 240, 0.09);
    --panel-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
    --panel-shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
}

body.page-floor .page-header {
    border-bottom-color: var(--divider);
}

body.page-floor .header-inner {
    padding-bottom: 28px;
}

body.page-floor .eyebrow {
    letter-spacing: 0.26em;
}

body.page-floor h1.page-title em {
    background: linear-gradient(120deg, #d4a24c 0%, #e8c07a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.page-floor .stats-strip {
    border: 1px solid var(--divider);
    border-radius: 16px;
    background: rgba(13, 18, 32, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: var(--panel-shadow);
    overflow: hidden;
}

body.page-floor .stat-cell {
    padding: 16px 26px;
    border-right: 1px solid var(--divider);
    min-width: 96px;
}

body.page-floor .stat-value {
    font-size: 32px;
}

body.page-floor .stat-label {
    font-size: 9px;
    letter-spacing: 0.18em;
    margin-top: 8px;
}

body.page-floor .filter-bar {
    gap: 8px;
    margin-bottom: 20px;
}

body.page-floor .filter-bar-label {
    font-size: 9.5px;
    letter-spacing: 0.2em;
}

body.page-floor .filter-btn {
    border-radius: 999px;
    border-width: 1px;
    padding: 8px 16px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    box-shadow: 0 2px 10px -6px rgba(26, 26, 26, 0.2);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

@media (hover: hover) {
    body.page-floor .filter-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px -6px rgba(26, 26, 26, 0.28);
    }
}

body.page-floor .plan-wrap {
    border: 1.5px solid var(--panel-border);
    border-radius: 10px;
    box-shadow:
        var(--panel-shadow),
        inset 0 0 140px rgba(100, 149, 237, 0.04);
}

body.page-floor .plan-wrap::before,
body.page-floor .plan-wrap::after {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
    border-color: rgba(203, 214, 232, 0.5);
}

body.page-floor .plan-wrap::before {
    top: 10px;
    left: 10px;
}

body.page-floor .plan-wrap::after {
    bottom: 10px;
    right: 10px;
}

body.page-floor .legend-box {
    bottom: 20px;
    left: 20px;
    border: 1px solid var(--divider);
    border-radius: 12px;
    background: rgba(13, 18, 32, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: var(--panel-shadow);
    padding: 14px 18px;
}

body.page-floor .legend-title {
    border-bottom-color: rgba(230, 233, 240, 0.12);
}

body.page-floor .legend-item {
    font-size: 10.5px;
}

body.page-floor .legend-dot {
    box-shadow: 0 0 0 1.5px rgba(230, 233, 240, 0.08), 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.page-floor .title-block {
    border-top-left-radius: 10px;
}

body.page-floor .title-block td {
    border-color: rgba(255, 255, 255, 0.08);
}

body.page-floor .tb-project {
    font-size: 17px;
}

body.page-floor .panel {
    border: 1px solid var(--divider);
    border-radius: 14px;
    box-shadow: var(--panel-shadow);
    overflow: hidden;
}

body.page-floor .panel-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 14px 18px;
}

body.page-floor .panel-title {
    font-size: 10.5px;
    letter-spacing: 0.2em;
}

body.page-floor .panel-count {
    color: rgba(255, 255, 255, 0.55);
}

body.page-floor .panel-body {
    padding: 8px 0;
}

body.page-floor .room-row {
    padding: 11px 18px;
    border-bottom-color: var(--divider);
    transition: background 0.2s ease, padding-left 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    body.page-floor .room-row:hover,
    body.page-floor .room-row.active {
        background: rgba(212, 162, 76, 0.06);
        padding-left: 22px;
        box-shadow: inset 3px 0 0 #d4a24c;
    }
}

body.page-floor .room-row-name {
    font-size: 11px;
    letter-spacing: 0.08em;
}

body.page-floor .room-row-level {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 8.5px;
    letter-spacing: 0.1em;
}

body.page-floor .room-row-level.high {
    background: rgba(229, 57, 53, 0.09);
}

body.page-floor .room-row-level.medium {
    background: rgba(245, 124, 0, 0.1);
}

body.page-floor .room-row-level.low {
    background: rgba(251, 192, 45, 0.16);
    color: #ffd666;
}

body.page-floor .room-row-devices {
    font-size: 11.5px;
}

body.page-floor .tip-item {
    padding: 14px 18px;
}

body.page-floor .tip-title {
    font-size: 10px;
    letter-spacing: 0.14em;
}

body.page-floor .tip-title::before {
    width: 3.5px;
    height: 13px;
    border-radius: 2px;
}

body.page-floor .tooltip {
    border-radius: 12px;
    border-color: rgba(203, 214, 232, 0.18);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
    padding: 14px 16px;
}

body.page-floor .tooltip .tt-name {
    font-size: 17px;
}

body.page-floor .tooltip .tt-level {
    border-radius: 999px;
    padding: 3px 10px;
}

body.page-floor .detail-panel {
    width: 420px;
    right: -100%;
    border-left: 1px solid rgba(203, 214, 232, 0.14);
    border-radius: 18px 0 0 18px;
    box-shadow: -24px 0 70px -20px rgba(0, 0, 0, 0.7);
    padding-top: 64px;
}

body.page-floor .detail-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a24c 0%, #4fb3bf 100%);
}

body.page-floor .detail-panel.open {
    right: 0;
}

body.page-floor .dp-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border-color: rgba(203, 214, 232, 0.25);
    background: rgba(230, 233, 240, 0.06);
    font-size: 16px;
}

body.page-floor .dp-badge {
    border-radius: 999px;
    padding: 6px 14px;
}

body.page-floor .dp-name {
    font-size: 32px;
}

body.page-floor .dp-stats {
    gap: 12px;
}

body.page-floor .dp-stat {
    border-radius: 12px;
    border-color: var(--divider);
    padding: 14px 16px;
}

body.page-floor .dp-mitigation {
    border-radius: 12px;
    border: 1px solid rgba(102, 187, 106, 0.25);
    border-left: 3px solid #66bb6a;
    background: rgba(46, 125, 50, 0.12);
    padding: 16px 18px;
}

body.page-floor .page-footer p {
    font-size: 13.5px;
}

/* ── 04B · Fixes & polish pass (Aug 2026) ─────────────────── */

/* Clinical figure panel must not slide under the fixed navbar */
body.page-clinical .figure-panel {
    top: calc(var(--nav-h) + 18px);
}

/* Floor-plan page clears the fixed navbar */
body.page-floor .page-header {
    padding-top: var(--nav-h);
}

body.page-floor .sidebar {
    top: calc(var(--nav-h) + 14px);
    max-height: calc(100vh - var(--nav-h) - 28px);
}

/* Dark-theme scrollbars on the blueprint floor plan */
body.page-floor ::-webkit-scrollbar-track {
    background: #0c111b;
}

body.page-floor ::-webkit-scrollbar-thumb {
    background: #2a3550;
    border-color: #0c111b;
}

body.page-floor ::-webkit-scrollbar-thumb:hover {
    background: #d4a24c;
}

/* Legend icons keep their slot beside the label text */
body.page-floor .legend-item svg {
    flex-shrink: 0;
    width: 22px;
    height: 14px;
}

/* Device name plates only appear on hover/focus — keeps the plan clean */
body.page-floor .dev-label-bg {
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.page-floor .device-group:hover .dev-label-bg,
body.page-floor .device-group:focus-visible .dev-label-bg {
    opacity: 1;
}

/* Atlas footer: two paragraphs share row 1, meta block gets its own row.
   (The base 1fr/auto grid squeezed the second paragraph into an
   auto-sized column — one word per line.) */
@media (min-width: 901px) {
    body.page-atlas .shell > footer {
        grid-template-columns: 1fr 1fr;
    }

    body.page-atlas .shell > footer > p {
        grid-row: 1;
    }

    body.page-atlas .shell > footer .footer-meta {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: end;
    }
}

/* ── 05 · Motion safety ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    body.page-clinical .emf-wave,
    body.page-clinical .lung-group,
    body.page-clinical .heart-group {
        animation: none !important;
    }

    body.page-dark [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    body.page-clinical .figure-panel {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    body.page-clinical .symptom-card,
    body.page-atlas .event-card,
    body.page-floor .stat-cell {
        animation: none;
    }

    body.page-clinical .symptom-card:hover,
    body.page-clinical .symptom-card.active,
    body.page-atlas .event-card:hover,
    body.page-atlas .event-card.active {
        transform: none;
    }
}

/* ── 06 · Responsive refinements ───────────────────────────── */
@media (max-width: 700px) {
    body.page-clinical .meta-item,
    body.page-atlas .meta-item {
        padding: 12px 18px;
    }

    body.page-clinical .meta-row,
    body.page-atlas .meta-row {
        margin-bottom: 40px;
    }

    body.page-clinical .mechanism-note {
        padding: 28px 24px;
        gap: 24px;
    }

    body.page-clinical footer.page-footer,
    body.page-atlas .shell > footer {
        grid-template-columns: 1fr;
        padding: 20px 22px;
    }

    body.page-floor .detail-panel {
        width: 100%;
    }

    body.page-floor .stat-cell {
        min-width: 84px;
        padding: 14px 18px;
    }

    body.page-atlas .legend,
    body.page-atlas .map-scale {
        border-radius: 14px;
    }
}
