:root {
    --bg: #FAFAFA;
    --surface: #ffffff;
    --text: #333333;
    --text-muted: #999999;
    --border: #EEEEEE;
    --accent: #2F80ED;
    --accent-hover: #1A6DD4;
    --green: #27AE60;
    --orange: #F2994A;
    --red: #EB5757;
    --max-width: 1100px;
}
body {
    font-family: "Lato", -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

/* === Typography: High jump ratio, ultra-light weight === */
h1, h2, h3 { font-family: "Lato", sans-serif; }
h1 {
    font-size: 48px;
    font-weight: 200;
    letter-spacing: -1.5px;
    line-height: 1.15;
}
.title-accent {
    color: var(--accent);
}
h2 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.5px;
}
h3 {
    font-size: 20px;
    font-weight: 400;
}
.tldr {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.6;
}
.logo {
    font-size: 26px;
    font-weight: 200;
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}

td { padding: 10px 14px; }
th { padding: 12px 14px; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
thead { background: transparent; border-bottom: 2px solid var(--border); }
table { border: none; box-shadow: none; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: #F5F7FA; }
.filters { border: none; background: transparent; padding: 12px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.score-item, .score-card { border: none; box-shadow: none; border-bottom: 2px solid var(--accent); border-radius: 0; }
.nav-bar { border: none; }
header { border-bottom: 1px solid var(--border); background: transparent; }
footer { border-top: 1px solid var(--border); }

/* === World map hero with wind particles === */
.map-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: -60px;
    padding: 0;

}
.world-map {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleY(1.4);
    transform-origin: center center;
}
.world-map circle {
    transform-origin: center;
    transform: scaleY(0.714);


}

/* Wind particles — thin lines drifting across the map */
.wind-particle {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(47, 128, 237, 0.12), rgba(47, 128, 237, 0.06), transparent);
    border-radius: 2px;
    animation: wind-drift linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation-fill-mode: backwards;
}

@keyframes wind-drift {
    0% { transform: translateX(110%); opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { transform: translateX(-110%); opacity: 0; }
}

/* === Stats section: bar charts === */
.stats-section { margin-top: -140px; margin-bottom: 32px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stat-block h3 { margin-bottom: 16px; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bar-label { width: 100px; font-size: 13px; color: var(--text-muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.bar-good { background: #27AE60; }
.bar-bad { background: #EB5757; }
.bar-value { width: 30px; font-size: 13px; font-weight: 600; }

/* === Pollutant layout with donut chart === */
.pollutant-layout {
    display: flex;
    gap: 5px;
    align-items: stretch;
}
.pollutant-table-wrapper {
    flex: 0 0 68%;
}
.pollutant-chart-wrapper {
    flex: 0 0 30%;
    background: white;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.donut-chart {
    width: 120%;
    max-width: 220px;
    height: auto;
}
.color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.donut-segment {
    stroke-dasharray: 0 440;
    transition: stroke-dasharray 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.donut-center-label {
    font-family: "Lato", sans-serif;
    font-weight: 300;
}

/* === Mobile === */
@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 22px; }
    .stats-grid { grid-template-columns: 1fr; }
    .bar-label { width: 80px; }
    .pollutant-layout {
        flex-direction: column;
    }
    .pollutant-table-wrapper,
    .pollutant-chart-wrapper {
        flex: 1 1 100%;
    }
}

/* === Score value typography === */
.score-value {
    font-size: 36px;
    font-weight: 200;
    letter-spacing: -1px;
    font-family: 'Lato', sans-serif;
}

/* === Rank badges === */
.rank-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.02em;
    margin-top: 4px;
}
.rank-gold {
    color: #D4A017;
    font-weight: 700;
}
.rank-silver {
    color: #8E8E8E;
    font-weight: 700;
}
.rank-bronze {
    color: #B87333;
    font-weight: 700;
}

.rank-worst {
    color: #1C1C1C;
    font-weight: 700;
}
