body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 10px;
    max-width: 1100px;
}

/* Tabs */
.tabs {
    margin-bottom: 10px;
    border-bottom: 2px solid #e1e4e8;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #0366d6;
    background-color: #f1f8ff;
}

.tab-button.active {
    color: #0366d6;
    border-bottom: 3px solid #0366d6;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*!* Content Layout *!*/
/*.overview-hero {*/
/*    background: white;*/
/*    padding: 30px;*/
/*    border-radius: 8px;*/
/*    box-shadow: 0 2px 4px rgba(0,0,0,0.05);*/
/*    margin-bottom: 30px;*/
/*}*/

/*!* *!*/

.overview-hero {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.overview-hero .explainer {
    flex: 0 0 35%;
    margin-bottom: 0;
}

.overview-hero .hero-chart {
    flex: 1;
}

.overview-hero .hero-chart .chart-iframe {
    margin: 0 -10px;
    width: calc(100% + 20px);
}

/* Hero Metrics Section */
.hero-metrics {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.metrics-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    border-bottom: 2px solid #0366d6;
    padding-bottom: 10px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metric-card {
    display: block;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #0366d6;
}

.metric-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #0366d6;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.metric-year {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 8px;
}

.metric-description {
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .overview-hero {
        flex-direction: column;
    }

    .overview-hero .explainer {
        flex: 1;
    }
}
/* */

.explainer {
    margin-bottom: 30px;
    color: #444;
}

.section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.section-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

.tab-explainer {
    background: #e8f4fd;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #0366d6;
}

/* Charts Grid */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.chart-container, .full-width-chart {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
}

.full-width-chart {
    width: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.chart-title {
    margin: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-explainer {
    width: 100%;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.chart-placeholder {
    background: #f8f9fa;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    border-radius: 4px;
    border: 2px dashed #dee2e6;
    text-align: center;
    padding: 20px;
}

.chart-iframe {
    width: 100%;
    height: 620px;
    border: none;
    border-radius: 4px;
}

/* News Cards */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.news-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    line-height: 1.4;
}

.news-content {
    padding: 20px;
}

.news-header {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.news-date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.news-summary {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: #0366d6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.news-link:hover {
    text-decoration: underline;
}

/* Info Icon (now opens modal) */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #eee;
    border-radius: 50%;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.info-icon:hover {
    background: #ddd;
}

.info-popup {
    display: none;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: #2c3e50;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: left;
    line-height: 1.4;
}

.info-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.info-icon:hover .info-popup {
    display: block;
}

.info-popup strong {
    display: block;
    color: #a8d1ff;
    margin-bottom: 2px;
    margin-top: 8px;
}

.info-popup strong:first-child {
    margin-top: 0;
}

.info-popup p {
    margin: 0;
}

.info-popup a {
    color: #fff;
    text-decoration: underline;
}

/* Modal overlay styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

/* Metadata grid */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
}

.metadata-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metadata-value {
    font-size: 14px;
    color: #333;
}

/* Collapsible sections */
.collapsible-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    user-select: none;
}

.collapsible-header:hover {
    background-color: #f0f0f0;
}

.collapsible-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.collapsible-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.collapsible-section.open .collapsible-arrow {
    transform: rotate(180deg);
}

.collapsible-content {
    display: none;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: white;
}

.collapsible-section.open .collapsible-content {
    display: block;
}

.collapsible-content h4 {
    font-size: 13px;
    color: #555;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.collapsible-content p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.collapsible-content p:last-child {
    margin-bottom: 0;
}

/* Source table in modal */
.source-table {
    width: 100%;
    font-size: 14px;
}

.source-table tr {
    border-bottom: 1px solid #eee;
}

.source-table tr:last-child {
    border-bottom: none;
}

.source-table td {
    padding: 8px 0;
    vertical-align: top;
}

.source-table td:first-child {
    font-weight: 500;
    color: #666;
    width: 120px;
}

.source-table td:last-child {
    color: #333;
}

/* List styling in modal */
.collapsible-content ul {
    margin: 10px 0 15px 0;
    padding-left: 20px;
}

.collapsible-content li {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
}

.collapsible-content li:last-child {
    margin-bottom: 0;
}

/* Citation styling */
.source-citation {
    font-style: italic;
    background-color: #f9f9f9;
    padding: 10px 12px;
    border-left: 3px solid #4CAF50;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #555;
}

/* Link styling in source table */
.source-table a {
    color: #2196F3;
    text-decoration: none;
    word-break: break-all;
}

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


/* Mobile Responsive */
@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }
}



