:root {
    --bg: #000000;
    --surface: #000000;
    --surface-muted: #000000;
    --border: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-muted: #f5f5f5;
    --accent: #1ca350;
    --accent-hover: #29b675;
    --shadow: 0 25px 75px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 35px 100px rgba(0, 0, 0, 0.7);
    font-family: 'Lato', sans-serif;
    --font-heading: 'Instrument Sans', sans-serif;
    --font-body: 'Lato', sans-serif;
    line-height: 1.6;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-primary);
}

h2 {
    font-family: var(--font-heading);
    font-weight: 700;
}

nav {
    position: sticky;
    top: 1rem;
    z-index: 50;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem clamp(1.5rem, 4vw, 3.5rem);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav img.nav-logo {
    height: 22px;
    width: auto;
    display: block;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

nav a {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.map-hero-section {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 4vh, 3rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 2vh, 1.5rem);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.map-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    flex: 1;
    margin-bottom: clamp(1rem, 3vh, 2rem);
}

.map-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.map-text p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.map-controls-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.map-question {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    min-height: 3.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-question:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-primary);
    border-color: rgba(148, 163, 184, 0.4);
}

.map-question.active {
    background: rgba(28, 163, 80, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--accent);
}

.map-visualization {
    width: 100%;
    height: clamp(450px, 50vh, 600px);
    min-height: 450px;
    max-height: 600px;
}

.map-visualization #usMap {
    width: 100%;
    height: 100%;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.75rem, 1.5vh, 1rem);
    margin-top: clamp(2rem, 4vh, 3rem);
    padding-top: 0;
    position: relative;
    bottom: 0;
}

.scroll-question {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(28, 163, 80, 0.1);
    border: 1px solid rgba(28, 163, 80, 0.3);
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    background: rgba(28, 163, 80, 0.2);
    border-color: var(--accent);
    transform: translateY(4px);
    animation: none;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.methodology-footer {
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    margin-top: 10px;
}

.footer-methodology {
    text-align: left;
}

.footer-methodology h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-methodology p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.7;
}

.methodology-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.methodology-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Map Info Icons */
.map-info-icon {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.map-info-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.map-info-icon svg {
    width: 18px;
    height: 18px;
}

.map-info-icon.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Map Popover */
.map-popover {
    position: absolute;
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 20;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(0);
}

.map-popover.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.map-summary {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 30;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
    text-align: center;
}

.map-summary.has-chart {
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.map-summary.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -45%);
}

.map-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.map-summary p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.energy-chart-container {
    width: 100%;
    height: 300px;
    margin-top: 1rem;
    text-align: left;
}

.energy-chart-container.hidden {
    display: none;
}

.energy-chart-container h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.map-manual-trigger {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease, bottom 0.3s ease, top 0.3s ease;
    z-index: 10;
}

#showBarViewLink {
    bottom: 45px; /* Position above Energy In Perspective */
}

/* When bar chart view is active, move links to top right */
.map-visualization.bar-chart-active .map-manual-trigger {
    bottom: auto;
    top: 15px;
}

.map-visualization.bar-chart-active #showBarViewLink {
    top: 45px; /* Position below Energy In Perspective when at top */
    bottom: auto;
}

.map-manual-trigger:hover {
    opacity: 1;
    color: var(--accent);
}

.map-manual-trigger.hidden {
    display: none;
    pointer-events: none;
}

.map-bar-chart-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.map-bar-chart-view.hidden {
    display: none;
}

.map-bar-chart-view canvas {
    flex: 1;
}

.popover-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px;
}

.popover-close:hover {
    color: var(--text-primary);
}

.map-popover h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

#popoverContent {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.popover-btn {
    width: 100%;
    background: rgba(28, 163, 80, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.popover-btn:hover {
    background: var(--accent);
    color: #fff;
}
    padding: clamp(2rem, 4vh, 3rem) clamp(1.5rem, 4vw, 3.5rem);
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.charts-section .scroll-indicator {
    margin-top: 4rem;
}

.charts-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.charts-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.charts-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.charts-text p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.charts-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.charts-controls label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.charts-controls select {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.charts-controls select:hover {
    border-color: rgba(83, 209, 137, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

.charts-controls select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(28, 163, 80, 0.15);
}

.charts-visualization {
    width: 100%;
    height: 450px;
    min-height: 400px;
    position: relative;
    /* Removed border and padding for clean look */
}

.chart-wrapper {
    width: 100%;
    height: 100%;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-wrapper.hidden {
    display: none;
}

@media (max-width: 1024px) {
    .map-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .map-visualization {
        height: clamp(400px, 45vh, 500px);
        min-height: 400px;
    }
    
    .map-hero-section {
        min-height: calc(100vh - 100px);
        padding: clamp(1.5rem, 3vh, 2.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(0.75rem, 1.5vh, 1rem);
    }

    .charts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .charts-visualization {
        height: 400px;
    }
}

@media (max-height: 800px) {
    .map-visualization {
        height: clamp(350px, 40vh, 450px);
        min-height: 350px;
    }
    
    .map-hero-section {
        min-height: calc(100vh - 80px);
    }
    
    .scroll-indicator {
        gap: 0.5rem;
    }
}

.filter-section {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow);
    max-width: calc(1400px - 2 * clamp(1.5rem, 4vw, 3.5rem));
    width: calc(100% - 2 * clamp(1.5rem, 4vw, 3.5rem));
    margin-left: auto;
    margin-right: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-header h2 {
    margin-top: 0.15rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 600;
}

.filter-note {
    color: var(--text-muted);
    margin-top: 0.35rem;
    max-width: 800px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--accent);
}

.filter-reset {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-reset:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.5);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-field label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-field input {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field input:focus {
    border-color: rgba(83, 209, 137, 0.5);
    box-shadow: 0 0 0 3px rgba(83, 209, 137, 0.15);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
}

.apply-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(41, 182, 117, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(41, 182, 117, 0.45);
}

.filter-status {
    color: var(--text-muted);
    margin: 0.5rem 0 1rem 0;
}

.results-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.result-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.result-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pill {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(192, 197, 194, 0.15);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(83, 209, 137, 0.3);
    white-space: nowrap;
}

.result-meta {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.result-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.25rem;
}

.result-link:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.result-link.disabled {
    color: var(--text-muted);
}

.no-results {
    color: var(--text-muted);
    font-style: italic;
}

.result-card.selected {
    outline: 2px solid rgba(28,163,80,0.9);
    box-shadow: 0 18px 40px rgba(28,163,80,0.06);
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: -24px 0 60px rgba(2,6,23,0.7);
    overflow: auto;
    padding: 20px;
    z-index: 80;
}

.drawer.hidden { display: none; }

.pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-end;
    color: var(--text-muted);
}

.page-btn {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.55rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.5);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.why-this-matters {
    background: #ffffff;
    color: #0b1220;
    border: 1px solid rgba(11,18,32,0.06);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.06);
    margin-top: 12px;
}
.why-this-matters h3 {
    margin: 0 0 8px 0;
    color: #071028;
    font-size: 1.05rem;
}
.why-this-matters p {
    margin: 0 0 8px 0;
    color: #263544;
    line-height: 1.45;
}
.why-this-matters ul {
    margin: 8px 0 0 1.1rem;
    color: #10202b;
}
.why-this-matters .disclaimer {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 10px;
}


.why-link-wrap {
    text-align: center;
}
.why-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(2,6,23,0.82); }
.modal-content { position: relative; width: min(92%, 720px); background: rgba(4,8,12,0.98); color: var(--text-primary); border-radius: 12px; padding: 22px; box-shadow: 0 30px 100px rgba(2,6,23,0.85); z-index: 210; border: 1px solid rgba(255,255,255,0.04); }
.modal-close { background: transparent; border: none; font-size: 1.1rem; color: var(--text-primary); cursor: pointer; }
.modal-content p { color: #e9f1f5; }
.modal-content ul { margin-left: 1.1rem; color: #dbeef0; }
.modal-content .disclaimer { color: rgba(235,245,250,0.7); font-size: 0.88rem; }
.modal-content a { color: var(--accent-hover); text-decoration: underline; }

.dashboard-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.why-link-wrap {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.modal-title {
    margin: 0;
}

.modal-body {
    margin-top: 10px;
}

/* Drawer styles for JS content */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.drawer-title {
    margin: 0;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.drawer-subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.drawer-hr {
    border: none;
    border-top: 1px solid rgba(148,163,184,0.08);
    margin: 12px 0;
}

.source-citation {
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Provider Chart Section */
.provider-chart-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 90vh;
}

.provider-chart-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provider-chart-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.provider-chart-text p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.provider-chart-container {
    width: 100%;
    position: relative;
    height: 500px;
}

/* Chart Overlay Tooltip */
.chart-tooltip-trigger {
    position: absolute;
    top: 5%; 
    right: 5%; /* Positioned in top right */
    left: auto; /* Override any left positioning */
    background: rgba(28, 163, 80, 0.15); /* Subtle green tint */
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 20px; /* Pill shape */
    padding: 0.4rem 0.8rem;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
}

.chart-tooltip-trigger:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 163, 80, 0.3);
}

.chart-tooltip-trigger svg {
    width: 16px;
    height: 16px;
}

.chart-overlay-popup {
    position: absolute;
    top: 15%;
    left: 16%; /* To the right of the trigger */
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
}

.chart-overlay-popup.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chart-overlay-popup p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Large Multi-panel Popup */
.large-chart-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 20, 0.98);
    border-radius: 12px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.large-chart-popup.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.popup-panels {
    width: 100%;
    max-width: 600px;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.popup-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.popup-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.popup-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.popup-panel p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}

.popup-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.nav-arrow:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-dots {
    display: flex;
    gap: 0.5rem;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .provider-chart-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .provider-chart-container {
        height: 400px;
    }
}

/* Core Data Assertions Section */
.assertions-section {
    margin-top: 4rem;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.assertions-header {
    margin-bottom: 3rem;
}

.assertions-grid.assertions-horizontal-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .assertions-grid.assertions-horizontal-stack {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.assertion-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.assertion-header-row {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.assertion-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.assertion-card.active .assertion-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.assertion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.6);
    border-color: rgba(28, 163, 80, 0.4);
}

.assertion-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    line-height: 1.3;
}

.assertion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.assertion-card.active .assertion-content {
    grid-template-rows: 1fr;
}

.assertion-inner {
    overflow: hidden;
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.assertion-explanation {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

.assertion-evidence {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.assertion-sources {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.sources-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sources-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .assertions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .assertion-card {
        padding: 1.5rem;
    }
}

/* Discover Card */
.discover-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(28, 163, 80, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    margin-top: 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(28, 163, 80, 0.2);
}

.discover-card:hover {
    background: rgba(28, 163, 80, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(28, 163, 80, 0.3);
    border-color: var(--accent-hover);
}

.discover-text {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 600;
    color: var(--accent);
}

.discover-card:hover .discover-text {
    color: var(--accent-hover);
}

.discover-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.discover-card:hover .discover-arrow {
    transform: translateY(4px);
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .discover-card {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .discover-card:hover .discover-arrow {
        transform: translateY(6px);
    }
}
