/* Climate-specific styling that layers on top of site.css (the
   exchange-rates.org house style copied from the EXR_Data project). */

/* === Home page (Round 8 redesign — a "dispatch screen") ===
   Lead with search + "use my location"; a climate-preference entry for the
   no-city visitor; two action cards. The old featured-city wall is gone. */
.hero { margin: 16px 0 6px; }
.hero-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.14;
    color: var(--c-text);
    margin: 0 0 9px;
}
.hero-sub {
    font-size: 15px;
    color: var(--c-text-secondary);
    max-width: 60ch;
    line-height: 1.45;
    margin: 0 0 16px;
}
.hero-search {
    display: flex;
    gap: 10px;
    margin: 0 0 18px;
}
.hero-search .city-search { flex: 1 1 auto; min-width: 0; }
.hero-search .city-search-input {
    padding: 13px 15px;
    font-size: 15px;
    border-width: 2px;
    border-color: var(--c-primary);
    border-radius: 9px;
}
.loc-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--c-surface);
    border: 1px solid var(--c-primary);
    color: var(--c-primary);
    border-radius: 9px;
    padding: 0 16px;
    font: 700 13.5px/1 inherit;
    cursor: pointer;
    white-space: nowrap;
}
.loc-btn:hover { background: #eef4f3; }
.loc-btn[disabled] { opacity: .6; cursor: default; }

/* Popular cities / Recently viewed — a compact chip row (home.js swaps it) */
.chiprow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}
.chiprow-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.chiprow-chips { display: contents; }
.chiprow-chips a {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primary);
    background: #eef4f3;
    border-radius: 14px;
    padding: 4px 12px;
    text-decoration: none;
}
.chiprow-chips a:hover { background: #e0ecea; text-decoration: none; }

/* Climate-preference entry */
.climate-pref {
    background: #f7faf9;
    border: 1px solid var(--c-border-soft);
    border-radius: 9px;
    padding: 13px 15px;
    margin: 0 0 26px;
}
.cp-lead { font-size: 13.5px; color: var(--c-text-secondary); margin: 0 0 9px; }
.cp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-chips a {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 6px 13px;
    text-decoration: none;
    cursor: pointer;
}
.cp-chips a:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }

/* Action cards */
.home-tasks-h {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
    margin: 0 0 11px;
}
.home-tasks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 26px;
}
.home-task {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-primary);
    border-radius: 10px;
    color: var(--c-text);
    text-decoration: none;
    transition: background .12s;
}
.home-task:hover { background: #f7faf8; text-decoration: none; }
.home-task-ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e6f1ef;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-task-name { display: block; font-size: 15px; font-weight: 800; }
.home-task-desc {
    display: block;
    font-size: 12.5px;
    color: var(--c-text-secondary);
    margin-top: 3px;
    line-height: 1.4;
}

@media (max-width: 37.5em) {
    .hero-title { font-size: 24px; }
    .hero-search { flex-direction: column; }
    .loc-btn { padding: 11px 16px; }
    .home-tasks { grid-template-columns: 1fr; }
}

/* === Continent browse block (home page) — weatherspark-style deep links === */
.continent-browse {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px 22px;
    margin: 8px 0 28px;
}
.continent-block {
    border-top: 2px solid var(--c-text);
    padding-top: 8px;
}
.continent-block-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text);
    margin: 0 0 6px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.continent-block-title a { color: var(--c-text); }
.continent-block-title a:hover { color: var(--c-primary); text-decoration: none; }
.continent-block-count {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--c-text-muted);
}
.country-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.country-link-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 0;
    font-size: 13px;
    border-bottom: 1px dotted var(--c-border-soft);
}
.country-link-list li:last-child { border-bottom: none; }
.country-link-list a { color: var(--c-text); }
.country-link-list a:hover { color: var(--c-primary); text-decoration: none; }
.country-link-count {
    font-size: 11px;
    color: var(--c-text-muted);
    font-variant-numeric: tabular-nums;
}
.country-link-more a {
    font-style: italic;
    color: var(--c-primary) !important;
    font-weight: 700;
}

/* === US state list (home page) === */
.state-link-list {
    list-style: none;
    margin: 6px 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0;
}
.state-link-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    border-bottom: 1px solid var(--c-border-soft);
    font-size: 13px;
}
.state-link-list li:hover { background: #f7faf8; }
.state-link-list a strong { font-weight: 700; }
.state-link-count {
    font-size: 11px;
    color: var(--c-text-muted);
    font-variant-numeric: tabular-nums;
}

/* === 6-month split monthly tables (US Climate Data pattern) ===
   Stacked single column — each half-year gets the full content width,
   so the table reads cleanly without horizontal scrolling on desktop
   or mobile. */
/* Monthly data tables are responsive: a single full 12-month table on
   desktop, two stacked 6-month halves on mobile (a 13-column table cannot
   fit a phone without horizontal scrolling). */
.monthly-full { margin: 12px 0 24px; }
.monthly-split {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 24px;
}
@media (max-width: 640px) {
    .monthly-full { display: none; }
    .monthly-split { display: flex; }
}
.monthly-half .data-table { width: 100%; }
.monthly-half-caption {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
    text-align: left;
}

/* === Climate cards — four Köppen-templated headline verdicts (Overview) === */
.climate-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin: 0 0 28px;
}
@media (max-width: 640px) {
    .climate-cards { grid-template-columns: repeat(2, 1fr); }
}
.climate-card {
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 10px;
    padding: 14px 14px 13px;
}
.climate-card .cc-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.climate-card .cc-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.climate-card .cc-theme {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.climate-card .cc-verdict {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}
.climate-card .cc-desc {
    font-size: 12.5px;
    color: var(--c-text-secondary);
    margin-top: 2px;
}
.climate-card .cc-chip {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid var(--c-border-soft);
    font-size: 11.5px;
    color: var(--c-text-secondary);
    font-variant-numeric: tabular-nums;
}
.climate-card.t-heat  { border-top: 3px solid #d9803f; }
.climate-card.t-cold  { border-top: 3px solid #3f73b8; }
.climate-card.t-water { border-top: 3px solid #2e74b5; }
.climate-card.t-sky   { border-top: 3px solid #6a7a86; }
.climate-card.t-heat  .cc-badge { background: #fbe9dc; }
.climate-card.t-cold  .cc-badge { background: #e1ebf6; }
.climate-card.t-water .cc-badge { background: #e0edf6; }
.climate-card.t-sky   .cc-badge { background: #e9edef; }
.climate-card.t-heat  .cc-verdict { color: #b5631f; }
.climate-card.t-cold  .cc-verdict { color: #2f5e9e; }
.climate-card.t-water .cc-verdict { color: #235f95; }
.climate-card.t-sky   .cc-verdict { color: #4f5e69; }

/* === State-page summary block ===================================== */
.stat--link {
    text-decoration: none;
    color: var(--c-text);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: border-color .12s, background .12s;
}
.stat--link:hover {
    border-color: var(--c-primary);
    background: #f7faf8;
    text-decoration: none;
}
.state-koppen {
    margin: 12px 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    font-size: 12px;
}
.state-koppen-label {
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 8px;
}
.state-koppen-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--c-text);
}
.state-koppen-pill:hover {
    text-decoration: none;
}
.state-koppen-pill:hover .state-koppen-info {
    color: var(--c-primary);
}
.state-koppen-info {
    color: var(--c-text-muted);
}

/* === Compare-page landing + anchor + 2-city ===================== */
.compare-landing-pick {
    margin: 14px 0 22px;
    max-width: 560px;
}
.compare-landing-step {
    margin-bottom: 14px;
}
.compare-landing-step-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
    margin-bottom: 4px;
}

/* One-screen two-city picker on the compare landing page. */
.compare-picker {
    max-width: 620px;
    margin: 16px 0 22px;
}

/* recently-viewed shortcut row — filled by compare-picker.js, hidden when
   the visitor has no history. */
.compare-recent {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 13px;
    margin-bottom: 12px;
    background: #f4f8f7;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--c-radius);
}
.compare-recent[hidden] { display: none; }
.compare-recent-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.compare-recent a {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primary);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 3px 11px;
    cursor: pointer;
}
.compare-recent a:hover { border-color: var(--c-primary); text-decoration: none; }

/* the picker card */
.compare-picker-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(20, 30, 40, .05);
}
.compare-picker-fields {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.compare-picker-field {
    flex: 1;
    min-width: 0;
}
.compare-picker-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
    margin-bottom: 5px;
}
.compare-picker-vs {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-bottom: 6px;
}
.compare-picker-vs-word {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
}
.compare-picker-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-primary);
    cursor: pointer;
}
.compare-picker-swap:hover { border-color: var(--c-primary); }
.compare-picker .city-search-input {
    padding: 11px 14px 11px 38px;
    font-size: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 16 16' fill='none' stroke='%230f7b6c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6.7' cy='6.7' r='4.6'/%3E%3Cline x1='10.3' y1='10.3' x2='15' y2='15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}
.compare-picker-go {
    margin-top: 14px;
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--c-primary);
    border: none;
    border-radius: var(--c-radius);
    cursor: pointer;
    transition: background .12s;
}
.compare-picker-go:hover {
    background: color-mix(in srgb, var(--c-primary) 88%, #000);
}
.compare-picker-go:disabled {
    background: var(--c-border);
    color: var(--c-text-muted);
    cursor: default;
}
.compare-picker-hint {
    margin: 10px 2px 0;
    font-size: 12.5px;
    color: var(--c-text-muted);
}
@media (max-width: 540px) {
    .compare-picker-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .compare-picker-vs {
        flex-direction: row;
        justify-content: center;
        padding: 2px 0;
    }
}

/* Inline second-city suggestions — revealed once a first city is picked. */
.compare-suggestions { margin-top: 18px; }
.compare-suggestions[hidden] { display: none; }
.compare-sugg-group { margin-bottom: 16px; }
.compare-sugg-group:last-child { margin-bottom: 0; }
.compare-sugg-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
    margin-bottom: 8px;
}
.compare-sugg-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.compare-sugg-card {
    display: block;
    padding: 11px 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-primary);
    border-radius: var(--c-radius);
    color: var(--c-text);
    text-decoration: none;
    transition: border-color .12s;
}
.compare-sugg-card:hover {
    border-color: var(--c-primary);
    text-decoration: none;
}
.compare-sugg-name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
}
.compare-sugg-hook {
    display: block;
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 3px;
}
@media (max-width: 540px) {
    .compare-sugg-list { grid-template-columns: 1fr; }
}

/* 2-city auto-narrative paragraph */
.compare-narrative {
    margin: 10px 0 22px;
    padding: 12px 16px;
    background: #f7faf8;
    border-left: 3px solid var(--c-accent);
    font-size: 14px;
    line-height: 1.55;
    max-width: 820px;
}

/* Side-by-side per-city columns (already in climate.css as .compare-grid;
   keeping the existing rule). The matrix table needs special handling: */
.compare-matrix {
    font-size: 11px;
}
.compare-matrix .compare-matrix-head {
    text-align: center;
    font-size: 12px;
    background: #f5f5f5;
    border-bottom: 2px solid var(--c-border);
}
.compare-matrix td.num, .compare-matrix th.num {
    padding: 5px 6px;
    font-variant-numeric: tabular-nums;
}

/* Stacked Köppen-drift comparison */
.koppen-compare {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0 12px;
    padding: 14px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
}
.koppen-compare-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.koppen-compare-label {
    flex: 0 0 140px;
    font-size: 13px;
    font-weight: 700;
}
.koppen-strip-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.koppen-strip-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.koppen-strip-cell.future { opacity: 0.85; }
.koppen-strip-period {
    font-size: 10px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.koppen-strip-sep {
    width: 1px;
    height: 24px;
    background: var(--c-border);
    margin: 0 4px;
}
.koppen-compare-source {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--c-text-muted);
}

/* Two-column twin-cities footer on compare page */
.compare-twins {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 12px 0 24px;
}
@media (max-width: 50em) {
    .compare-twins { grid-template-columns: 1fr; }
    .compare-matrix { font-size: 10px; }
}

/* === Long-term trend module === */
.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
}
.trend-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
}
.trend-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.trend-card-value {
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--c-text);
    line-height: 1.15;
}
.trend-card-value.pos { color: var(--c-pos); }
.trend-card-value.neg { color: var(--c-neg); }
.trend-card-unit {
    font-size: 11px;
    color: var(--c-text-muted);
}
.trend-narrative {
    margin: 8px 0 6px;
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.55;
    max-width: 720px;
}
.trend-source {
    margin: 4px 0 18px;
    font-size: 11px;
    color: var(--c-text-muted);
}

/* === Köppen-drift module (200-year arc + 2099 future) === */
.koppen-drift {
    margin: 8px 0 28px;
}
.koppen-drift-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    padding: 14px 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
}
.koppen-drift-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 110px;
    text-align: center;
}
.koppen-drift-cell.current .koppen-pill--large {
    box-shadow: 0 0 0 2px var(--c-primary);
}
.koppen-drift-cell.future {
    opacity: 0.92;
}
.koppen-drift-period {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.koppen-pill--large {
    font-size: 14px;
    padding: 4px 11px;
}
.koppen-pill--mixed {
    background: #999;
    color: #fff;
    text-transform: none;
    font-style: italic;
    letter-spacing: 0;
}
.koppen-drift-name {
    font-size: 12px;
    color: var(--c-text-secondary);
    max-width: 140px;
    line-height: 1.25;
}
.koppen-drift-scenarios {
    font-size: 10px;
    color: var(--c-text-muted);
    font-style: italic;
}
.koppen-drift-arrow {
    font-size: 16px;
    color: var(--c-text-muted);
    align-self: center;
    padding-bottom: 18px;
}
.koppen-drift-divider {
    width: 1px;
    align-self: stretch;
    background: var(--c-border);
    margin: 0 4px;
}
.koppen-drift-narrative {
    margin: 14px 0 0;
    padding: 0;
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.55;
    max-width: 720px;
}
.koppen-drift-detail {
    margin: 12px 0 0;
    font-size: 13px;
}
.koppen-drift-detail summary {
    cursor: pointer;
    color: var(--c-primary);
    font-weight: 700;
    padding: 4px 0;
}
.koppen-drift-table {
    margin: 8px 0 0;
}
.koppen-drift-table th { font-size: 11px; font-weight: 700; padding: 6px 8px; }
.koppen-drift-table td { padding: 6px 8px; }
.koppen-drift-table .row-label { text-align: left; }
.koppen-drift-source {
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--c-text-muted);
    line-height: 1.45;
}
@media (max-width: 50em) {
    .koppen-drift-strip { gap: 6px; padding: 10px 8px; }
    .koppen-drift-cell { min-width: 80px; }
    .koppen-drift-name { display: none; }
    .koppen-drift-divider { display: none; }
    .koppen-drift-arrow { padding-bottom: 8px; }
}

/* === Energy-cost page (ported from Atlas reference impl) === */
.cost-form {
    margin: 14px 0 18px;
    padding: 10px 12px;
    background: #f7f7f7;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
}
.cost-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    font-size: 13px;
}
.cost-form-row label { font-weight: 700; }
.cost-form-row input[type="number"] {
    padding: 5px 8px;
    width: 80px;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    font: inherit;
}
.cost-form-row button {
    padding: 5px 14px;
    background: var(--c-primary);
    color: #fff;
    border: 0;
    border-radius: var(--c-radius);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.cost-form-row button:hover { background: var(--c-primary-hover); }
.cost-form-presets { color: var(--c-text-muted); }
.cost-form-presets a { color: var(--c-primary); font-weight: 700; }

.cost-prices-line {
    margin: 0 0 18px;
    padding: 8px 12px;
    background: #f7faf8;
    border-left: 3px solid var(--c-accent);
    font-size: 12px;
    color: var(--c-text-secondary);
}

/* Heating-fuel comparison table. Default row gets a soft tint + pill. */
.cost-fuel-table .cost-row-default { background: #f7faf8; }
.cost-fuel-table .cost-fuel-today { font-weight: 700; }
.cost-fuel-table .cost-fuel-notes { color: var(--c-text-muted); font-size: 12px; }
.cost-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    background: var(--c-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-radius: 999px;
}
.cost-cooling-line {
    margin: 8px 0 18px;
    font-size: 13px;
    color: var(--c-text-secondary);
}

/* Total-cost summary cards */
.cost-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 12px 0 28px;
}
.cost-card {
    padding: 12px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
}
.cost-card-default {
    border-color: var(--c-primary);
    background: #f7faf8;
}
.cost-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.cost-card-value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.cost-card-sub {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* KV table — for the climate-context section */
.kv-table { width: auto; }
.kv-table td { padding: 5px 18px 5px 0; font-size: 13px; }
.kv-table td:first-child { color: var(--c-text-muted); }

/* Methodology section */
.cost-methodology {
    margin: 24px 0;
    padding: 16px 18px;
    background: #fafafa;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
}
.cost-methodology h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--c-text);
}
.cost-methodology h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 14px 0 4px;
    color: var(--c-text);
}
.cost-methodology p, .cost-methodology ul {
    font-size: 13px;
    line-height: 1.55;
    color: var(--c-text-secondary);
    margin: 0 0 8px;
}
.cost-methodology code { background: #efefef; padding: 1px 5px; border-radius: 2px; }
.cost-methodology .muted { color: var(--c-text-muted); }
.module-empty { font-size: 13px; color: var(--c-text-muted); margin: 8px 0; font-style: italic; }

/* === Tool list (home page) === */
.tool-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 24px;
}
.tool-list li {
    padding: 7px 0;
    border-bottom: 1px solid var(--c-border-soft);
    font-size: 13px;
}
.tool-list li:last-child { border-bottom: none; }
.tool-list strong { color: var(--c-primary); font-weight: 700; }

/* === Header search box (typeahead) === */
.header-search {
    flex: 1 1 320px;
    max-width: 420px;
    min-width: 0;
    margin: 0 24px;
    position: relative;
}
/* Hero search on the /climate directory — finding a city is that page's
   primary job, so the box is centred and noticeably larger than the
   compact header instance. */
.home-search {
    margin: 24px auto 40px;
    max-width: 640px;
    position: relative;
}
.home-search .city-search-input {
    padding: 14px 18px;
    font-size: 17px;
    border-radius: 10px;
}
.city-search { position: relative; }
.city-search-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--c-text);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.city-search-input::placeholder { color: var(--c-text-muted); }
.city-search-input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 15%, transparent);
}
.city-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    max-height: 360px;
    overflow-y: auto;
    z-index: 50;
}
.city-search-results li { display: block; }
.city-search-result {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    color: var(--c-text);
    text-decoration: none;
    cursor: pointer;
}
.city-search-result:hover,
.city-search-result.active {
    background: color-mix(in srgb, var(--c-primary) 8%, transparent);
    color: var(--c-text);
    text-decoration: none;
}
.city-search-result strong { font-weight: 600; }
.city-search-result-meta {
    font-size: 13px;
    color: var(--c-text-muted);
}

/* === Featured city pills (home page) === */
.country-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 28px;
}
.country-pill {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 999px;
    font-size: 13px;
    color: var(--c-text);
    transition: border-color .12s, color .12s;
}
.country-pill:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    text-decoration: none;
}
.country-pill--more {
    font-weight: 600;
    color: var(--c-primary);
    border-color: var(--c-primary);
}

/* === A-Z alpha nav === */
.alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 12px 0 24px;
    padding: 12px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
}
.alpha-nav-letter {
    display: inline-block;
    min-width: 28px;
    padding: 4px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-muted);
    border-radius: 4px;
}
.alpha-nav-letter:hover {
    background: color-mix(in srgb, var(--c-primary) 8%, transparent);
    color: var(--c-primary);
    text-decoration: none;
}
.alpha-nav-letter.active {
    background: var(--c-primary);
    color: #fff;
}

/* === City list (browse pages — country, A-Z, etc) === */
.city-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0;
    margin: 18px 0 36px;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    overflow: hidden;
    background: var(--c-surface);
}
.city-list-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--c-border-soft);
    border-right: 1px solid var(--c-border-soft);
    color: var(--c-text);
    text-decoration: none;
    transition: background .1s;
}
.city-list-row:hover {
    background: color-mix(in srgb, var(--c-primary) 6%, transparent);
    text-decoration: none;
}
.city-list-row strong { font-weight: 700; font-size: 13px; }
.city-list-meta {
    font-size: 12px;
    color: var(--c-text-muted);
}
.city-list-meta .sep { margin: 0 4px; color: var(--c-text-muted); opacity: .6; }

/* === Home-page section labels === */
.home-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 24px 0 6px;
}
.home-section-sub {
    font-size: 12px;
    color: var(--c-text-muted);
    margin: 0 0 8px;
}
.home-section-tail {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 700;
}
.home-section-tail a { color: var(--c-primary); }

/* === Ad slots — see memory/project_ad_layout.md. Hard cap:
   desktop = top banner + sticky right rail;
   mobile  = top banner + bottom-sticky. ============================ */

/* Reserve vertical space so layout doesn't jump when the ad SDK fills the slot. */
.ad-slot {
    display: block;
    background: transparent;
    overflow: hidden;
}

/* Top banner — full-width below header. Desktop 970x90 leaderboard,
   mobile 320x50 banner (NEVER a 300x250 here — eats too much fold).
   Width matches main container so it doesn't overflow. */
.ad-slot--top {
    width: 100%;
    max-width: 1280px;
    margin: 10px auto 0;
    min-height: 90px;
}
@media (max-width: 37.5em) {
    .ad-slot--top { min-height: 50px; margin-top: 6px; }
}

/* Two-column layout: content + right rail. Total 1280px desktop:
   ~940px content + 20px gap + 300px rail. The rail is the single desktop
   ad slot (see memory/project_ad_layout.md); it collapses below ~1024px. */
.page-with-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}
.page-with-rail > main.container {
    /* container already supplies max-width + padding when used standalone;
       inside the grid we let the grid track govern width. */
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}
.ad-slot--rail {
    position: sticky;
    /* sticks just below the sticky header (≈160px tall) so the rail ad and
       the header ad stay on screen together while scrolling */
    top: 172px;
    align-self: start;
    width: 300px;
    margin-top: 24px;
}
/* The desktop rail ad. Image scales to the 300px rail width. */
.rail-ad { display: block; }
.rail-ad img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--c-border);
    border-radius: 8px;
}
/* Collapse the rail under 64em (~1024px) — TaD's break point. */
@media (max-width: 64em) {
    .page-with-rail {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ad-slot--rail { display: none; }
}

/* The mobile bottom anchor is handled by Google AdSense Auto ads (anchor
   enabled in the dashboard) — it floats its own fixed bar with a close
   button — so there's no hand-placed bottom-sticky box or body padding here. */

/* === Country tile grid (browse-by-country and browse-by-koppen) === */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin: 12px 0 8px;
}
.country-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    color: var(--c-text);
    transition: border-color .12s, background .12s;
}
.country-tile:hover {
    border-color: var(--c-primary);
    background: color-mix(in srgb, var(--c-primary) 6%, transparent);
    text-decoration: none;
}
.country-tile-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}
.country-tile-count {
    font-size: 12px;
    color: var(--c-text-muted);
    font-variant-numeric: tabular-nums;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 999px;
}
.country-tile:hover .country-tile-count {
    background: var(--c-surface);
    color: var(--c-primary);
}

/* === City tools directory (the Tools tab) === */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 8px;
    margin: 10px 0 8px;
}
.tool-tile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    color: var(--c-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.tool-tile:hover {
    border-color: var(--c-primary);
    background: color-mix(in srgb, var(--c-primary) 6%, transparent);
    text-decoration: none;
}
.tool-tile-ic { font-size: 18px; line-height: 1; }

/* === Compact climate-type chip row (directory page) === */
.zone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 24px;
}
.zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 4px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text);
    transition: border-color .12s, background .12s;
}
.zone-chip:hover {
    border-color: var(--c-primary);
    background: color-mix(in srgb, var(--c-primary) 6%, transparent);
    text-decoration: none;
}
.zone-chip-all {
    padding: 4px 12px;
    color: var(--c-primary);
}

/* A-Z letter heading — country pages that group a long city list by letter. */
.az-head {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-primary);
    margin: 20px 0 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--c-border);
}

/* Footer language selector — a <details> picker that opens upward, since it
   sits at the bottom of the page. */
.footer-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.footer-lang-label {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
}
.footer-lang .hdr-menu-list {
    top: auto;
    bottom: calc(100% + 4px);
}

/* === Climate-extreme cards (auto-picked from the data) === */
.extreme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 14px 0 32px;
}
.extreme-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    color: var(--c-text);
    transition: border-color .12s, box-shadow .12s;
}
.extreme-card:hover {
    border-color: var(--c-primary);
    box-shadow: 0 1px 6px rgba(33, 111, 91, .08);
    text-decoration: none;
}
.extreme-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-muted);
    letter-spacing: .06em;
}
.extreme-city {
    font-size: 17px;
    font-weight: 600;
    margin-top: 2px;
}
.extreme-country {
    font-size: 13px;
    color: var(--c-text-muted);
}
.extreme-detail {
    font-size: 14px;
    color: var(--c-text-secondary);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

/* === Köppen pill — colour-coded by main letter === */
.koppen-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    background: #6b7280;
    line-height: 1.5;
    vertical-align: middle;
}
.koppen-pill[data-main="A"] { background: #2e8b57; }   /* Tropical — green */
.koppen-pill[data-main="B"] { background: #b8860b; }   /* Arid — gold */
.koppen-pill[data-main="C"] { background: #228b9b; }   /* Temperate — teal */
.koppen-pill[data-main="D"] { background: #4863a0; }   /* Continental — blue */
.koppen-pill[data-main="E"] { background: #6b7e98; }   /* Polar — slate */

/* Köppen tag line directly under the city h1 — pill + plain-language name. */
.koppen-tag { margin: 8px 0 6px; }
.koppen-tag-name {
    margin-left: 8px;
    font-weight: 600;
    color: var(--c-text-secondary);
}

/* === Hardiness zone pill — colour by zone severity === */
.hardiness-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #f3f4f6;
    color: #1f2937;
}

/* === Station summary header === */
.station-meta {
    color: var(--c-text-secondary);
    font-size: 15px;
    margin: -10px 0 20px;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}
.station-meta .sep { color: #c0c0c0; margin: 0 6px; }

/* === Stations grid (home + zone pages) === */
.station-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 16px 0 24px;
}
.station-card {
    display: block;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    padding: 14px 16px;
    color: inherit;
    border-radius: var(--c-radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.station-card:hover {
    border-color: var(--c-primary);
    box-shadow: 0 1px 6px rgba(33, 111, 91, .08);
    text-decoration: none;
}
.station-card .name {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 3px;
    line-height: 1.2;
}
.station-card .meta {
    font-size: 12px;
    color: var(--c-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* === SVG charts === */
.chart-svg {
    width: 100%;
    height: auto;
    display: block;
    background: var(--c-surface);
}
.chart-svg .axis text { font-size: 12px; fill: var(--c-text-muted); font-family: inherit; }
.chart-svg .grid line { stroke: var(--c-border-soft); stroke-width: 1; }
.chart-svg .month-label { font-size: 12px; fill: var(--c-text-secondary); }
.chart-svg .range { fill: #cfe9d6; }       /* tmin–tmax band */
.chart-svg .avg-line { stroke: var(--c-primary); stroke-width: 2; fill: none; }
.chart-svg .avg-dot { fill: var(--c-primary); }
.chart-svg .max-line { stroke: var(--c-neg); stroke-width: 1.5; stroke-dasharray: 2 3; fill: none; }
.chart-svg .min-line { stroke: #2e74b5; stroke-width: 1.5; stroke-dasharray: 2 3; fill: none; }
.chart-svg .precip-bar { fill: #2e74b5; }
.chart-svg .snow-bar { fill: #94a3b8; }
.chart-svg .legend text { font-size: 12px; fill: var(--c-text-secondary); }

/* === Warming stripes === */
.stripes {
    display: flex;
    width: 100%;
    height: 56px;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    margin: 4px 0;
}
.stripes .cell {
    flex: 1;
    position: relative;
    border-right: 1px solid rgba(255,255,255,.4);
}
.stripes .cell:last-child { border-right: 0; }
.stripes .cell .lbl {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: rgba(0,0,0,.55);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.stripes-legend {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* === Section header alignment for module headings === */
.module-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
    gap: 16px;
}
.module-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0;
}
.module-head .module-sub {
    font-size: 12px;
    color: var(--c-text-muted);
}
.module-head .module-cta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-primary);
    font-weight: 700;
    white-space: nowrap;
}

/* === Compare two-column layout === */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col h2 { margin-top: 0; }

/* === Records / anomaly tables === */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}
.record-card {
    border: 1px solid var(--c-border);
    padding: 16px 18px;
    background: var(--c-surface);
    border-radius: var(--c-radius);
}
.record-card .label {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 4px;
}
.record-card .value {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.record-card .when {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 4px;
}

/* === Köppen description card === */
.zone-blurb {
    margin: 0 0 24px;
    padding: 14px 18px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-accent);
    color: var(--c-text-secondary);
    font-size: 14px;
    line-height: 1.5;
    max-width: 820px;
    border-radius: var(--c-radius);
}
.zone-blurb h2 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--c-text);
    font-weight: 700;
}

/* === Zone hub (one card per Köppen code) === */
.zone-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 18px 0 30px;
}
.zone-hub-card {
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: var(--c-radius);
    transition: border-color .15s, box-shadow .15s;
}
.zone-hub-card:hover { border-color: var(--c-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.zone-hub-card .head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.zone-hub-card .head h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--c-text);
}
.zone-hub-card p {
    margin: 0;
    font-size: 12px;
    color: var(--c-text-secondary);
    line-height: 1.45;
}
.zone-hub-card .count {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-muted);
    margin-top: auto;
    padding-top: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* === Topography / lead-paragraph context === */
.topo-callout {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 4px 0 12px;
    font-style: italic;
}
.source-line {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-bottom: 24px;
}
.module-intro {
    font-size: 14px;
    color: var(--c-text);
    margin: 4px 0 16px;
    line-height: 1.5;
}

/* === Humidity comfort strip === */
.comfort-strip {
    display: flex;
    width: 100%;
    height: 50px;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    margin: 4px 0;
}
.comfort-cell {
    flex: 1;
    position: relative;
    border-right: 1px solid rgba(255,255,255,.45);
}
.comfort-cell:last-child { border-right: 0; }
.comfort-cell .lbl {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: rgba(0,0,0,.65);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.comfort-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: #666;
    margin-top: 6px;
}
.comfort-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.comfort-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(0,0,0,.08);
}

/* === Tourism score dual-chart === */
.dual-chart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 8px;
}
@media (max-width: 720px) {
    .dual-chart { grid-template-columns: 1fr; }
}
.dual-chart-caption {
    font-size: 12px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
    font-weight: 700;
}

/* === City page two-tier tab navigation === */
.city-tabs {
    margin: 0 0 24px 0;
}
.city-tabs-row1 {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--c-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.city-tab {
    padding: 10px 18px;
    text-decoration: none;
    color: var(--c-text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.city-tab:hover {
    color: var(--c-text);
    text-decoration: none;
}
.city-tab.active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}
.tab-caret {
    color: var(--c-text-muted);
    font-size: 11px;
    margin-left: 1px;
}
.city-tabs-row2 {
    display: flex;
    gap: 4px;
    padding: 8px 6px;
    flex-wrap: wrap;
    background: #f8fafb;
    border-radius: 0 0 6px 6px;
}
.city-subtab {
    padding: 5px 12px;
    text-decoration: none;
    color: var(--c-text-secondary);
    font-size: 13px;
    border-radius: 14px;
    white-space: nowrap;
}
.city-subtab:hover {
    color: var(--c-text);
    background: white;
    text-decoration: none;
}
.city-subtab.active {
    color: white;
    background: var(--c-primary);
}
@media (max-width: 37.5em) {
    .city-tab { padding: 9px 12px; font-size: 14px; }
    .city-tabs-row2 { padding: 6px 4px; gap: 2px; }
    .city-subtab { padding: 4px 9px; font-size: 12px; }
}

/* === City page "discover more" mid-content link strip === */
.discovery-strip {
    margin: 32px 0;
    padding: 18px 18px 14px;
    background: linear-gradient(to bottom, #f8fafb, #f1f5f7);
    border: 1px solid var(--c-border-soft);
    border-radius: 8px;
}
.discovery-strip-title {
    font-size: 13px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    margin: 0 0 12px;
}
.discovery-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.discovery-link {
    display: block;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.discovery-link:hover {
    border-color: var(--c-primary);
    text-decoration: none;
    transform: translateY(-1px);
}
.discovery-link-icon {
    font-size: 18px;
    margin-bottom: 4px;
    display: block;
}
.discovery-link-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--c-text);
    display: block;
}
.discovery-link-hint {
    font-size: 12px;
    color: var(--c-text-muted);
    display: block;
    margin-top: 2px;
}

/* === Headline charts on Overview — full-width stacked for readability === */
.headline-charts {
    margin: 24px 0;
}
.headline-charts > div {
    margin: 0 0 28px;
}
.headline-charts > div:last-child { margin-bottom: 0; }
.headline-charts h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 4px;
}
.headline-charts .module-sub {
    font-size: 12px;
    color: var(--c-text-muted);
    margin: 0 0 10px;
    display: block;
}

/* === Sunshine chart styles (matches the look of precip chart) === */
.sunshine-bar { fill: #f5b73a; opacity: 0.85; }
.sunshine-bar:hover { fill: #e09c0d; }
.cloud-line { stroke: #4a90c4; stroke-width: 2; fill: none; }
.cloud-dot { fill: #4a90c4; }
.cloud-line-legend { stroke: #4a90c4; stroke-width: 2; fill: none; }
.sunshine-chart .axis-right { fill: #4a90c4; font-size: 10px; }

/* Standalone snowfall chart bars (conditional Overview chart) */
.snow-bar-solo { fill: #b8d4e8; opacity: 0.9; }
.snow-bar-solo:hover { fill: #6fa8d6; }

/* === Custom JS-driven chart tooltip (chart-tooltip.js) === */
.chart-tooltip {
    background: rgba(33, 41, 50, 0.96);
    color: #fff;
    padding: 7px 10px 8px;
    border-radius: 4px;
    font-size: 12.5px;
    line-height: 1.45;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    white-space: nowrap;
    z-index: 1000;
    font-variant-numeric: tabular-nums;
    max-width: 280px;
}

/* Hit-area rectangles in charts — invisible, but capture mouse + show tooltip. */
.chart-hit { fill: transparent; cursor: pointer; }
.chart-hit:hover ~ .chart-month-divider { stroke: var(--c-primary); stroke-width: 1; opacity: .35; }

/* === Wide monthly data table (Overview deep-data section) === */
.data-table-wide {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    margin: 12px 0 4px;
}
.monthly-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.monthly-data-table thead th {
    padding: 8px 6px;
    background: #f4f6f7;
    border-bottom: 2px solid var(--c-border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
    text-align: right;
    white-space: nowrap;
}
.monthly-data-table thead th:first-child {
    text-align: left;
    padding-left: 12px;
}
.monthly-data-table tbody td {
    padding: 6px 6px;
    border-bottom: 1px solid var(--c-border-soft);
    text-align: right;
    white-space: nowrap;
}
.monthly-data-table tbody td.row-label {
    text-align: left;
    padding-left: 12px;
    color: var(--c-text);
    font-weight: 500;
}
.monthly-data-table tbody td.row-label .row-unit {
    color: var(--c-text-muted);
    font-weight: 400;
    font-size: 11px;
}
.monthly-data-table tbody tr:hover td {
    background: #f9fbfb;
}
.monthly-data-table .annual-col {
    background: #fafcfa;
    font-weight: 600;
    border-left: 2px solid var(--c-border);
}
.table-footnote {
    margin: 6px 0 18px;
    font-size: 11px;
    color: var(--c-text-muted);
    line-height: 1.4;
    font-style: italic;
}

/* === Unit-system toggle (°F | °C pill) === */
.unit-toggle {
    display: inline-flex;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 2px;
    background: #f4f6f7;
    font-size: 12px;
    line-height: 1;
    user-select: none;
}
.unit-toggle-opt {
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--c-text-secondary);
    font-weight: 600;
    letter-spacing: .02em;
    transition: background .12s, color .12s;
}
.unit-toggle-opt:hover {
    color: var(--c-text);
    text-decoration: none;
}
.unit-toggle-opt.active {
    background: var(--c-primary);
    color: white;
    cursor: default;
}

/* City page H1 row — title + unit toggle aligned. */
.city-h1-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.city-h1-row h1 { margin-bottom: 4px; }

/* ============================================================
   Two-row site header (overrides site.css single-row header).
   Round 6, Option A:
   Row 1 — logo + leaderboard ad slot.
   Row 2 — teal nav strip: primary menu + search box + unit picker.
   On mobile the leaderboard slot reflows to a full-width banner on top.
   ============================================================ */
header {
    padding: 0;
    /* The whole header — ad slot + nav strip — stays pinned while scrolling,
       on desktop and mobile alike, so the ad keeps earning (timeanddate
       pattern). The right-rail ad is stuck just below it. */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(20, 30, 40, .07);
}

.header-row1 {
    background: var(--c-surface);
    padding: 12px 0;
}
.header-row1-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.header-row1 .navbar-brand { flex-shrink: 0; }

/* Leaderboard ad slot — a placeholder until ad code is wired in. Sits to the
   right of the logo on desktop; reflows to a full-width banner on top of the
   header on mobile (see the media query below). The fixed height reserves
   space so the ad load causes no layout shift. See memory/project_ad_layout.md. */
.ad-slot--header {
    margin-left: auto;
    width: 728px;
    max-width: 100%;
    min-height: 90px;       /* the placeholder-height band (desktop leaderboard) */
    max-height: 90px;       /* hard cap: nothing rendered in the band can grow it */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Fixed-size top unit: explicit width/height (this class) means AdSense serves
   a real banner at exactly that size and does NOT inject height:auto!important
   or break out to full viewport — that override only happens for responsive
   units. This is what keeps the ad inside the placeholder-height band. */
.cz-ad-top { display: inline-block; width: 728px; height: 90px; }
/* The right rail stays responsive; force its ins to fill the 300px column. */
.ad-slot--rail .adsbygoogle { display: block; width: 100%; }
/* Dashed frame + hatch is the empty-state placeholder only (local dev / ads
   off). When a real ad fills the box the label is gone, so this :has() stops
   matching and the frame drops away. */
.ad-slot--header:has(.ad-ph-label) {
    border: 1px dashed #c4ccce;
    background: repeating-linear-gradient(135deg, #eef2f2 0 9px, #e7ecec 9px 18px);
}
.ad-ph-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #9aa3a9;
}

/* Header dropdown menus (units, language) — JS-free <details> disclosure.
   The open list is absolutely positioned so it overlays, never shifts layout. */
.hdr-menu { position: relative; }
.hdr-menu-trigger {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    white-space: nowrap;
}
.hdr-menu-trigger::-webkit-details-marker { display: none; }
.hdr-menu-trigger::marker { content: ""; }
.hdr-menu[open] > .hdr-menu-trigger { border-color: var(--c-primary); }
.hdr-caret { font-size: 9px; color: var(--c-text-muted); }
.hdr-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 60;
    margin: 0;
    padding: 4px;
    list-style: none;
    min-width: 168px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.hdr-menu-list a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--c-text);
    border-radius: 4px;
    white-space: nowrap;
}
.hdr-menu-list a:hover { background: var(--c-surface); text-decoration: none; }
.hdr-menu-list a.active {
    background: color-mix(in srgb, var(--c-primary) 12%, transparent);
    font-weight: 700;
}
.hdr-menu-list--lang { max-height: 340px; overflow-y: auto; }
.hdr-menu-list--lang .lang-native { display: block; }
.hdr-menu-list--lang .lang-english {
    display: block;
    font-size: 11px;
    color: var(--c-text-muted);
}
.hdr-menu-list--lang li[dir="rtl"] a { text-align: right; }

/* Row 2 — teal nav strip: primary menu (left) + search & units (right).
   Brand-green band, ties visually to the footer. */
.header-row2 {
    background: var(--c-primary);
}
.header-row2-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-row2 .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    /* reset the site.css small-screen dropdown treatment */
    position: static;
    min-width: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
.header-row2 .main-nav .nav-item a {
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .05em;
    font-weight: 600;
    padding: 11px 16px;
    transition: background .12s;
}
.header-row2 .main-nav .nav-item a:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
    text-decoration: none;
}
.header-row2 .header-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
.header-row2 .header-search { flex: 0 1 230px; }

/* ── mobile hamburger (JS-free <details> disclosure) ── */
.hdr-burger { display: none; position: relative; }
.hdr-burger-btn {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 3px 0;
    border-radius: 6px;
}
.hdr-burger-btn::-webkit-details-marker { display: none; }
.hdr-burger-btn::marker { content: ""; }
.hdr-burger[open] > .hdr-burger-btn { background: rgba(255,255,255,.16); }
.hdr-burger-ico {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
.hdr-burger-ico::before,
.hdr-burger-ico::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
.hdr-burger-ico::before { top: -6px; }
.hdr-burger-ico::after  { top: 6px; }
.hdr-burger-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 60;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.hdr-burger-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--c-text);
}
.hdr-burger-menu li a:hover { background: var(--c-surface); text-decoration: none; }

/* ── mobile compact logo (desktop logo stays in row 1) ── */
.navbar-brand--compact {
    display: none;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
}
.navbar-brand--compact span { font-weight: 700; opacity: .68; }
.navbar-brand--compact:hover { color: #fff; opacity: .9; text-decoration: none; }

/* ── mobile search disclosure ── */
.hdr-search-m { display: none; position: relative; }
.hdr-search-btn {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    border-radius: 6px;
}
.hdr-search-btn::-webkit-details-marker { display: none; }
.hdr-search-btn::marker { content: ""; }
.hdr-search-m[open] > .hdr-search-btn { background: rgba(255,255,255,.16); }
.hdr-search-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 60;
    width: 280px;
    max-width: 78vw;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.nav-toggle { display: none !important; }

@media (max-width: 50em) {
    /* Row 1 collapses to the ad band — the logo moves into the teal bar. */
    .header-row1 { padding: 0; }
    .header-row1 .navbar-brand { display: none; }
    /* Mobile: a 100px-tall band (taller than the old 72px stub, in line with
       timeanddate's mobile header). The responsive horizontal unit fills it
       with a 320x100 or, when that's unsold, a 320x50 banner centered in the
       band. Placeholder and live ad share this height. Flex/overflow inherited
       from the base rule keep any fill clipped to the band. */
    .ad-slot--header {
        width: 100%;
        margin: 0;
        min-height: 0;
        height: 100px;
        max-height: 100px;   /* hard cap so a misbehaving unit can't blow out the header */
        border-radius: 0;
    }
    .cz-ad-top { width: 320px; height: 100px; }
    .ad-slot--header:has(.ad-ph-label) { border-width: 1px 0; }

    /* Row 2 becomes the compact app bar: hamburger + logo + search + units. */
    .header-row2-inner { gap: 8px; }
    .hdr-burger { display: block; }
    .navbar-brand--compact { display: block; flex: 1; }
    .header-row2 .main-nav { display: none; }
    .header-row2 .header-controls { margin-left: 0; gap: 4px; }
    .header-row2 .header-search { display: none; }
    .hdr-search-m { display: block; }
}

/* ============================================================
   Footer — three-column secondary nav (Browse / Tools / About).
   Base footer (green bg, white text) stays from site.css.
   ============================================================ */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px 32px;
    margin-bottom: 22px;
    max-width: 720px;
}
.footer-col { min-width: 0; }
.footer-col-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    margin: 0 0 8px;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    float: none;
}
.footer-col li { padding: 4px 0; line-height: 1.3; }
.footer-col li a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}
.footer-col li a:hover { text-decoration: underline; }
.footer-legal {
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 14px;
}
.footer-legal span { display: block; color: #fff; font-size: 13px; }
.footer-data-note {
    font-size: 12px !important;
    opacity: .75;
    margin-top: 6px;
    line-height: 1.45;
}

/* === Home-page browse-teaser cards (entry points into /climate/) === */
.browse-teaser {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 10px 0 28px;
}
.browse-teaser-card {
    display: block;
    padding: 14px 16px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    color: var(--c-text);
    transition: border-color .12s, background .12s;
}
.browse-teaser-card:hover {
    border-color: var(--c-primary);
    background: #f7faf8;
    text-decoration: none;
}
.browse-teaser-label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--c-text);
}
.browse-teaser-hint {
    display: block;
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 3px;
}

/* =====================================================================
   City-vs-city compare page (Round 5 design)
   ===================================================================== */
:root {
    --cmp-a: #1f6f8b;          /* city A (first, sorted) — teal */
    --cmp-b: #d98a2c;          /* city B — amber */
    --cmp-a-soft: #e6eff2;
    --cmp-b-soft: #faecd8;
}
.cmp-name-a { color: var(--cmp-a); }
.cmp-name-b { color: var(--cmp-b); }

/* ── header ── */
.compare-h1 { margin-bottom: 10px; }
.compare-h1 .cmp-vs {
    color: var(--c-text-muted);
    font-weight: 600;
    font-size: .72em;
    margin: 0 .25em;
}
.cmp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}
.cmp-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--c-text-secondary);
    padding: 4px 11px 4px 5px;
    border: 1px solid var(--c-border);
    border-radius: 20px;
}
.cmp-chip-a { background: var(--cmp-a-soft); border-color: #cfe1e6; }
.cmp-chip-b { background: var(--cmp-b-soft); border-color: #f0dcc1; }
.cmp-swap {
    font-size: 13px;
    color: var(--c-text-secondary);
    background: #f4f8f7;
    border: 1px solid var(--c-border-soft);
    border-radius: 7px;
    padding: 7px 12px;
    margin: 0 0 18px;
}
.cmp-swap a { color: var(--c-primary); }
.cmp-swap-sep { color: var(--c-text-muted); margin: 0 4px; }

/* ── bottom-line verdict ── */
.cmp-verdict {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdfc, #f4f8f7);
    padding: 15px 17px;
    margin: 0 0 22px;
}
.cmp-verdict-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--c-primary);
    margin-bottom: 5px;
}
.cmp-verdict-head {
    font-size: 16px;
    line-height: 1.42;
    font-weight: 600;
    margin: 0 0 13px;
}
.cmp-dims {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}
.cmp-dim {
    border: 1px solid var(--c-border);
    border-top-width: 3px;
    border-radius: 8px;
    background: #fff;
    padding: 9px 11px;
}
.cmp-dim-a { border-top-color: var(--cmp-a); }
.cmp-dim-b { border-top-color: var(--cmp-b); }
.cmp-dim-tie { border-top-color: #b3bdbf; }
.cmp-dim-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.cmp-dim-city { display: block; font-size: 15px; font-weight: 800; margin: 1px 0; }
.cmp-dim-a .cmp-dim-city { color: var(--cmp-a); }
.cmp-dim-b .cmp-dim-city { color: var(--cmp-b); }
.cmp-dim-tie .cmp-dim-city { color: var(--c-text-secondary); }
.cmp-dim-detail { display: block; font-size: 11.5px; color: var(--c-text-secondary); }

/* ── comparison cards ── */
.cmp-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin: 0 0 30px;
}
.cmp-card {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: var(--c-surface);
    padding: 13px 13px 14px;
}
.cmp-card.t-heat  { border-top: 3px solid #d9803f; }
.cmp-card.t-cold  { border-top: 3px solid #3f73b8; }
.cmp-card.t-water { border-top: 3px solid #2e74b5; }
.cmp-card.t-sky   { border-top: 3px solid #6a7a86; }
.cmp-card-top { display: flex; align-items: center; gap: 8px; }
.cmp-card-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #eef2f3;
}
.t-heat  .cmp-card-icon { background: #fbe9dc; }
.t-cold  .cmp-card-icon { background: #e1ebf6; }
.t-water .cmp-card-icon { background: #e0edf6; }
.t-sky   .cmp-card-icon { background: #e9edef; }
.cmp-card-cat {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.cmp-card-bridge { font-size: 14.5px; font-weight: 800; line-height: 1.2; margin: 8px 0 9px; }
/* The two cities stack inside each card — each gets the full card width, so
   the verdict and its supporting figure share one line. */
.cmp-card-cols { display: flex; flex-direction: column; gap: 6px; }
.cmp-card-side { border-radius: 7px; padding: 8px 10px; }
.cmp-side-a { background: var(--cmp-a-soft); }
.cmp-side-b { background: var(--cmp-b-soft); }
.cmp-card-city {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 1px;
}
.cmp-side-a .cmp-card-city { color: var(--cmp-a); }
.cmp-side-b .cmp-card-city { color: var(--cmp-b); }
.cmp-card-verdict { font-size: 13px; font-weight: 700; }
.cmp-card-verdict::after {
    content: " \00b7 ";
    color: var(--c-text-muted);
    font-weight: 600;
}
.cmp-card-detail { font-size: 11.5px; color: var(--c-text-secondary); line-height: 1.4; }

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

/* ── chart caption ── */
.cmp-cap {
    font-size: 13px;
    color: var(--c-text-secondary);
    margin: 0 0 8px;
}

/* ── month-by-month accordion ── */
.cmp-acc {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.cmp-acc > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 14px;
    background: #fafbfb;
}
.cmp-acc > summary::-webkit-details-marker { display: none; }
.cmp-acc-metric { font-size: 14px; font-weight: 700; flex: none; }
.cmp-acc-sum { font-size: 12.5px; color: var(--c-text-secondary); flex: 1; min-width: 0; }
.cmp-acc-mark {
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--c-text-muted);
    border-bottom: 2px solid var(--c-text-muted);
    transform: rotate(45deg);
    transition: transform .15s;
}
.cmp-acc[open] .cmp-acc-mark { transform: rotate(-135deg); }
.cmp-acc-body { padding: 2px 14px 6px; }
.cmp-acc-body .data-table-wrap { margin: 10px 0 14px; }

/* ── methodology & sources accordion (city / compare / calculator pages) ── */
.method-acc {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    margin: 28px 0 8px;
    overflow: hidden;
}
.method-acc > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: #fafbfb;
}
.method-acc > summary::-webkit-details-marker { display: none; }
.method-acc-title { font-size: 14px; font-weight: 700; flex: 1; }
.method-acc-mark {
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--c-text-muted);
    border-bottom: 2px solid var(--c-text-muted);
    transform: rotate(45deg);
    transition: transform .15s;
}
.method-acc[open] .method-acc-mark { transform: rotate(-135deg); }
.method-acc-body { padding: 6px 14px 12px; }
.method-city {
    margin: 12px 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-secondary);
}
.method-line {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-text-secondary);
}
.method-line strong { color: var(--c-text); }
.method-more { margin: 12px 0 2px; font-size: 14px; }

/* ── two-city tables ── */
.cmp-table { font-size: 13px; }
.cmp-table .cmp-row-a td:first-child { color: var(--cmp-a); font-weight: 700; }
.cmp-table .cmp-row-b td:first-child { color: var(--cmp-b); font-weight: 700; }
.cmp-table .cmp-row-diff td { color: var(--c-text-muted); font-weight: 600; }
.cmp-table .cmp-row-diff td:first-child { color: var(--c-text-secondary); }
.cmp-table .cmp-d-a { color: var(--cmp-a); }
.cmp-table .cmp-d-b { color: var(--cmp-b); }
.cmp-table .cmp-row-b td { border-bottom: 2px solid var(--c-border); }

/* === Round 20 — compare picker & finished comparison ====================
   Port of mockups/2026-05-19 Round 20 - Compare/mockup.css, tokenised to
   the site's --c-* palette. The picker page (cmp-pick / cmp-payoff /
   cmp-contrast-*) and the finished-comparison page (cmp-seasons /
   cmp-acc-section / cmp-charts-sub) share these classes. */

/* ── picker — the search-box card + change-anchor link ── */
.cmp-pick {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    padding: 16px 17px;
    box-shadow: 0 1px 3px rgba(20,30,40,.05);
    margin: 0 0 14px;
}
.cmp-pick-anchor {
    font-size: 13px;
    color: var(--c-text-secondary);
    margin-bottom: 9px;
}
.cmp-pick-change {
    color: var(--c-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 12px;
    margin-left: 4px;
}
.cmp-pick-cue {
    font-size: 12px;
    color: var(--c-text-muted);
    margin: 9px 0 0;
}

/* ── payoff strip — "Pick any city above and you'll get…" ── */
.cmp-payoff {
    background: #f5f9f9;
    border: 1px solid var(--c-border-soft);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 22px;
}
.cmp-payoff-lead {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
    margin: 0 0 11px;
}
.cmp-payoff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.cmp-payoff-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.cmp-payoff-ico {
    font-size: 18px;
    line-height: 1.2;
    flex: none;
}
.cmp-payoff-h { font-size: 12.5px; font-weight: 800; margin: 0 0 2px; }
.cmp-payoff-p {
    font-size: 11.5px;
    color: var(--c-text-secondary);
    margin: 0;
    line-height: 1.4;
}
@media (max-width: 620px) {
    .cmp-payoff-grid { grid-template-columns: 1fr; gap: 11px; }
}

/* ── shared section heading inside the compare flow ── */
.cmp-sec { margin-top: 26px; }
.cmp-sec-h {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 3px;
}
.cmp-sec-sub {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 0 0 12px;
}

/* ── contrast-cities grid (6 cards, one per theme) ── */
.cmp-contrast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.cmp-contrast-card {
    display: block;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    padding: 12px 14px;
    border-left: 3px solid var(--c-primary);
    color: var(--c-text);
}
.cmp-contrast-card:hover {
    border-color: var(--c-primary);
    text-decoration: none;
    color: var(--c-text);
    box-shadow: 0 1px 3px rgba(20,30,40,.08);
}
.cmp-contrast-name {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--c-text);
}
.cmp-contrast-cap {
    display: block;
    font-size: 12px;
    color: var(--c-text-secondary);
    margin-top: 3px;
    line-height: 1.4;
}
@media (max-width: 900px) {
    .cmp-contrast-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .cmp-contrast-grid { grid-template-columns: 1fr; }
}

/* ── finished-comparison: "How the seasons compare" cards ── */
.cmp-seasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}
.cmp-season {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    padding: 12px 14px;
}
.cmp-season-ico { font-size: 19px; line-height: 1.1; flex: none; }
.cmp-season-h { font-size: 13.5px; font-weight: 800; margin: 0 0 3px; }
.cmp-season-p {
    font-size: 12px;
    color: var(--c-text-secondary);
    margin: 0 0 5px;
    line-height: 1.5;
}
.cmp-season-p:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
    .cmp-seasons { grid-template-columns: 1fr; }
}

/* ── top-level section accordions (seasons / charts / cost / future) ──
   Bigger than the per-metric .cmp-acc accordion, with the section title in
   the same weight as <h2>s. All ship collapsed by default — see Compare.razor. */
.cmp-acc-section {
    margin-top: 18px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: var(--c-surface);
    overflow: hidden;
}
.cmp-acc-section > summary {
    list-style: none;
    cursor: pointer;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f9f9;
}
.cmp-acc-section > summary::-webkit-details-marker { display: none; }
.cmp-acc-section .cmp-acc-h { font-size: 15px; font-weight: 800; }
.cmp-acc-section .cmp-acc-note {
    font-size: 12px;
    color: var(--c-text-muted);
    flex: 1;
}
.cmp-acc-section .cmp-acc-mark {
    margin-left: auto;
    width: 9px;
    height: 9px;
    flex: none;
    border-right: 2px solid var(--c-text-muted);
    border-bottom: 2px solid var(--c-text-muted);
    transform: rotate(45deg);
    transition: transform .15s;
}
.cmp-acc-section[open] > summary > .cmp-acc-mark { transform: rotate(-135deg); }
.cmp-acc-section > .cmp-acc-body { padding: 14px 16px 18px; }

/* sub-headings inside the charts accordion */
.cmp-charts-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    margin: 14px 0 4px;
}
.cmp-charts-sub:first-child { margin-top: 0; }

/* === Climate-zone page (Round 19 — rebuilt as a plain-English explainer) ===
   The per-city climate-zone page, rebuilt from
   `mockups/2026-05-19 Round 19 - Climate Zone/`. Declarative H1 + lived-
   experience cards + a teaching block + peer cities + a small "near a
   boundary?" note + a simplified two-node "has the label shifted?" remnant.
   Classes mirror the mockup; ported to the site's --c-* tokens. */

/* H1 + lead — declarative, no question. */
.cz-h1 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0 0 8px;
}
.lead {
    font-size: 14px;
    color: var(--c-text-secondary);
    margin: 0 0 14px;
    max-width: 74ch;
}

/* Zone-identity strip — plain name large, Köppen code as a secondary pill. */
.zone-id {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding: 11px 15px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-primary);
    border-radius: 8px;
    margin: 0 0 6px;
}
.zone-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -.01em;
}
.zone-code {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--c-primary);
    background: #eef4f3;
    border-radius: 20px;
    padding: 3px 11px;
}

/* Generic section spacing — .sec / .sec-h / .sec-sub mirror the mockup. */
.sec { margin-top: 26px; }
.sec-h {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 4px;
}
.sec-sub {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 0 0 13px;
    max-width: 76ch;
}
.sec-sub a {
    color: var(--c-primary);
    font-weight: 700;
    text-decoration: none;
}

/* "What this climate feels like" — the four lived-experience cards. */
.feel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.feel-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 14px 14px;
}
.feel-ico { font-size: 22px; line-height: 1; margin-bottom: 7px; }
.feel-kicker {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
    margin-bottom: 3px;
}
.feel-verdict {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 5px;
    letter-spacing: -.01em;
}
.feel-p {
    font-size: 12px;
    color: var(--c-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Teaching block — explainer paragraph + letter-by-letter decode card. */
.explainer-p {
    font-size: 13.5px;
    color: var(--c-text-secondary);
    margin: 0 0 14px;
    max-width: 80ch;
}
.explainer-p b { color: var(--c-text); }
.codecard {
    background: #f7f9f9;
    border: 1px solid var(--c-border-soft);
    border-radius: 10px;
    padding: 14px 16px;
}
.codecard-head {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text-secondary);
}
.kcode {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: var(--c-primary);
    border-radius: 6px;
    padding: 1px 9px;
    letter-spacing: .01em;
    margin-left: 2px;
}
.codecard-sub {
    font-size: 12px;
    color: var(--c-text-muted);
    margin: 5px 0 11px;
}
.decode-list { display: flex; flex-direction: column; gap: 8px; }
.decode-row {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}
.decode-letter {
    flex: none;
    width: 30px; height: 30px;
    border-radius: 7px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--c-primary);
}
.decode-txt {
    font-size: 12.5px;
    color: var(--c-text-secondary);
    padding-top: 4px;
}
.decode-txt b { color: var(--c-text); }

/* Peer-cities module — recognizable cities sharing the same Köppen group. */
.peer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.peer-chip {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    border-left: 3px solid var(--c-primary);
    padding: 10px 13px;
    text-decoration: none;
    color: inherit;
    display: block;
}
.peer-chip:hover { background: #f7faf9; }
.peer-name {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--c-text);
}
.peer-country {
    display: block;
    font-size: 11.5px;
    color: var(--c-text-muted);
    margin-top: 1px;
}

/* "Near a boundary" note — present only when the city is genuinely close. */
.boundary-note {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    background: #eef4f7;
    border: 1px solid #d4e2e8;
    border-radius: 10px;
    padding: 14px 16px;
}
.boundary-ico { font-size: 22px; flex: none; line-height: 1; }
.boundary-p {
    font-size: 13px;
    color: #355460;
    margin: 0;
    line-height: 1.55;
}

/* "Has the label shifted?" — the simplified two-node remnant. */
.shift-flow {
    display: flex;
    align-items: stretch;
    gap: 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 16px 18px;
}
.shift-node {
    flex: 1;
    text-align: center;
    background: #f7f9f9;
    border: 1px solid var(--c-border-soft);
    border-radius: 9px;
    padding: 13px 12px;
}
.shift-node.is-now {
    background: #fbf3e3;
    border-color: #ecd9b0;
}
.shift-node-k {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
}
.shift-node.is-now .shift-node-k { color: #b5651b; }
.shift-node-n {
    font-size: 15px;
    font-weight: 800;
    color: var(--c-text);
    margin-top: 5px;
    letter-spacing: -.01em;
}
.shift-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: 22px;
    color: #c2cccd;
}
.shift-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 13px;
}
.shift-tile {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    border-left: 3px solid #b5651b;
    padding: 12px 14px;
}
.shift-num {
    font-size: 21px;
    font-weight: 800;
    color: #b5651b;
    letter-spacing: -.01em;
}
.shift-lbl {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text);
    margin-top: 3px;
}
.shift-sub {
    font-size: 11.5px;
    color: var(--c-text-muted);
    margin-top: 1px;
}

/* Trends CTA — the prominent link to the full warming/trends page. */
.trends-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    background: linear-gradient(180deg, #f1f7f6, #fff);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 14px 16px;
}
.trends-cta-txt {
    flex: 1;
    font-size: 13px;
    color: var(--c-text-secondary);
}
.trends-cta-txt b { color: var(--c-text); }
.trends-btn {
    flex: none;
    background: var(--c-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
    padding: 11px 17px;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}
.trends-btn:hover { background: #0c6357; }

/* "What this climate means for you" — three short bullet cards. */
.fy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.fy-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 13px 15px;
}
.fy-ico { font-size: 19px; line-height: 1; margin-bottom: 6px; }
.fy-head { font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.fy-p {
    font-size: 12px;
    color: var(--c-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Sources block — short and reassuring. */
.src-sec .sec-h { font-size: 15px; }
.src-p {
    font-size: 12px;
    color: var(--c-text-secondary);
    margin: 0 0 8px;
    line-height: 1.55;
    max-width: 86ch;
}
.src-p--muted { color: var(--c-text-muted); }

/* Mobile collapses — match the mockup. */
@media (max-width: 720px) {
    .feel-grid { grid-template-columns: 1fr 1fr; }
    .peer-grid { grid-template-columns: 1fr 1fr; }
    .fy-grid { grid-template-columns: 1fr; }
    .shift-flow { flex-direction: column; }
    .shift-arrow { transform: rotate(90deg); padding: 2px 0; }
    .shift-tiles { grid-template-columns: 1fr; }
    .trends-cta { flex-direction: column; align-items: stretch; gap: 11px; }
}
@media (max-width: 560px) {
    .cz-h1 { font-size: 22px; }
}

/* === Trends page (Round 10 redesign — verdict-first warming page) =========
   Leads with a plain-language warming verdict, proves it with a year-by-year
   chart, translates every number into lived experience. */
.tr-verdict { margin: 6px 0 4px; }
.tr-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-muted);
    margin: 0 0 7px;
}
.tr-verdict-h1 {
    font-size: 30px;
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -.015em;
    color: var(--c-text);
    margin: 0;
}
.tr-verdict-h1 .hot { color: #c8431a; }
.tr-verdict-h1 .warm { color: #c8431a; }
.tr-verdict-h1 .cool { color: #2c6da3; }
.tr-verdict-sub {
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.5;
    max-width: 62ch;
    margin: 10px 0 0;
}

/* "Is that a lot?" calibration — sits below the verdict sub, names the
   exact peer set being compared to (country / continent / global). */
.tr-bench {
    margin: 13px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f6f6;
    border: 1px solid var(--c-border-soft);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 13px;
    color: var(--c-text-secondary);
    line-height: 1.45;
}
.tr-bench b { color: var(--c-text); }
.tr-bench .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-text-muted);
    flex: none;
}

.tr-glance { display: flex; gap: 12px; margin: 22px 0 24px; }
.tr-fig {
    flex: 1;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 3px solid #c8431a;
    border-radius: 9px;
    padding: 13px 15px;
}
.tr-fig.cool { border-left-color: #2c6da3; }
.tr-fig-num { font-size: 24px; font-weight: 800; color: var(--c-text); letter-spacing: -.01em; }
.tr-fig-num .u { font-size: 14px; font-weight: 700; color: var(--c-text-muted); }
.tr-fig-lbl { font-size: 12.5px; color: var(--c-text-secondary); margin-top: 2px; }

.tr-chart {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    padding: 17px 19px;
    margin: 0 0 20px;
}
.tr-chart-h2 { font-size: 17px; font-weight: 800; margin: 0 0 3px; letter-spacing: -.01em; }
.tr-chart-cap { font-size: 12.5px; color: var(--c-text-muted); margin: 0 0 13px; }
.tr-chart .chart-svg { width: 100%; height: auto; display: block; }
.tr-chart-note {
    font-size: 13px;
    color: var(--c-text-secondary);
    line-height: 1.5;
    margin: 13px 0 0;
    padding-top: 11px;
    border-top: 1px solid var(--c-border-soft);
}
.tr-chart-note b { color: var(--c-text); }
.tr-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--c-text-muted);
}
.tr-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tr-legend i { width: 11px; height: 11px; border-radius: 2px; }
.tr-legend i.line { height: 0; width: 16px; border-radius: 0; border-top: 2px solid; }

.tr-section-h2 { font-size: 19px; font-weight: 800; margin: 26px 0 3px; letter-spacing: -.01em; }
.tr-section-intro { font-size: 13px; color: var(--c-text-muted); margin: 0 0 13px; line-height: 1.5; }

.tr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tr-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 14px 15px;
}
.tr-card-lbl { font-size: 13.5px; font-weight: 700; color: var(--c-text); }
.tr-card-delta { font-size: 21px; font-weight: 800; margin: 7px 0 9px; letter-spacing: -.01em; }
.tr-card-delta.warm { color: #c8431a; }
.tr-card-delta.cool { color: #2c6da3; }
.tr-card-delta.flat { color: var(--c-text-secondary); }
.tr-thennow { display: flex; align-items: center; gap: 10px; }
.tr-tn-when {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-muted);
}
.tr-tn-val { font-size: 15px; font-weight: 700; color: var(--c-text-secondary); }
.tr-tn-arrow { color: var(--c-text-muted); font-size: 14px; }
.tr-card-note {
    font-size: 12px;
    color: var(--c-text-secondary);
    line-height: 1.45;
    margin: 10px 0 0;
    padding-top: 9px;
    border-top: 1px solid var(--c-border-soft);
}

.tr-plain {
    background: #f4f8f7;
    border: 1px solid var(--c-border-soft);
    border-radius: 9px;
    padding: 13px 16px;
    margin: 18px 0;
    font-size: 13.5px;
    color: var(--c-text-secondary);
    line-height: 1.5;
}
.tr-plain b { color: var(--c-text); }

.tr-records-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tr-rec {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    padding: 12px;
    text-align: center;
}
.tr-rec-val { font-size: 19px; font-weight: 800; color: var(--c-text); }
.tr-rec-lbl { font-size: 11px; color: var(--c-text-muted); margin-top: 3px; }
.tr-rec-when { font-size: 11px; color: var(--c-text-secondary); margin-top: 3px; }

.tr-method {
    font-size: 11.5px;
    color: var(--c-text-muted);
    line-height: 1.5;
    margin: 22px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--c-border);
}

/* ── "When in the year the change shows up" — native <details> accordion
   that holds the 12-bar monthly tavg-change chart. Collapsed by default
   (no `open` attribute); the chevron rotates when open. Styling mirrors
   the methodology accordion (`.method-acc`) but with a section-h2-sized
   summary so it reads as a peer of the year-by-year chart. ─────────────── */
.tr-month-acc {
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: var(--c-surface);
    margin: 18px 0 6px;
    overflow: hidden;
}
.tr-month-acc > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-secondary);
}
.tr-month-acc > summary::-webkit-details-marker { display: none; }
.tr-month-acc-mark {
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--c-text-muted);
    border-bottom: 2px solid var(--c-text-muted);
    transform: rotate(45deg);
    transition: transform .15s;
}
.tr-month-acc[open] .tr-month-acc-mark { transform: rotate(-135deg); }
.tr-month-acc-body {
    padding: 4px 15px 14px;
    border-top: 1px solid var(--c-border-soft);
}
.tr-acc-intro {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 10px 0 12px;
    line-height: 1.5;
}
.tr-month-acc-body .chart-svg { width: 100%; height: auto; display: block; }

@media (max-width: 760px) {
    .tr-verdict-h1 { font-size: 22px; }
    .tr-glance { flex-direction: column; gap: 8px; }
    .tr-cards { grid-template-columns: 1fr; }
    .tr-records-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   WEATHER-EXTREMES PAGE — Round 18 rebuild of the per-city records page.
   Ported from mockups/2026-05-19 Round 18 - Records/mockup.css, adapted
   to the site design tokens.
   ===================================================================== */

/* eyebrow above the H1 */
.eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-accent);
    margin: 0 0 4px;
}

/* trust / record-span line, moved up under the lead */
.trustline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f3f7f6;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--c-radius);
    padding: 10px 13px;
    margin: 14px 0 22px;
    max-width: 820px;
    font-size: 12.5px;
    color: var(--c-text-secondary);
    line-height: 1.5;
}
.trustline .ti-ico { color: var(--c-primary); flex: none; margin-top: 2px; }
.trustline b { color: var(--c-text); }

/* generic section heading + sub-line on the extremes page */
.ex-section { margin: 28px 0 0; }
.ex-section .sec-h {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 3px;
}
.ex-section .sec-sub {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 0 0 14px;
    max-width: 760px;
    line-height: 1.5;
}

/* the four extreme cards (top-3 each) */
.ex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 720px) { .ex-grid { grid-template-columns: 1fr; } }
.ex-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    border-top: 3px solid var(--ex-c, #c77b1f);
    padding: 15px 16px;
}
.ex-card.hot  { --ex-c: #d8602e; }
.ex-card.cold { --ex-c: #3f7fc0; }
.ex-card.wet  { --ex-c: #2f8f8f; }
.ex-card.snow { --ex-c: #6f7fa6; }
.ex-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}
.ex-ico { font-size: 17px; line-height: 1; }
.ex-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
}
.ex-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ex-val {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ex-c);
    font-variant-numeric: tabular-nums;
}
.ex-when { font-size: 12.5px; color: var(--c-text-secondary); }
.ex-ctx {
    font-size: 13px;
    color: var(--c-text-secondary);
    margin: 9px 0 0;
    line-height: 1.5;
}
.ex-ctx b { color: var(--c-text); }
.ex-runners {
    margin: 12px 0 0;
    border-top: 1px solid var(--c-border-soft);
    padding-top: 10px;
}
.ex-rl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
    margin: 0 0 5px;
}
.ex-row {
    display: flex;
    align-items: baseline;
    font-size: 12.5px;
    padding: 2px 0;
}
.ex-rank { width: 18px; flex: none; color: var(--c-text-muted); font-weight: 700; }
.ex-rval {
    width: 76px;
    flex: none;
    font-weight: 800;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}
.ex-rdate { color: var(--c-text-secondary); }
.ex-recent {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #e6f3eb;
    color: #2f8f5b;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 7px;
}

/* the year-round temperature-envelope chart */
.envchart {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 16px 17px;
}
.envchart svg { display: block; width: 100%; height: auto; }
.env-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 10px 0 0;
    font-size: 11.5px;
    color: var(--c-text-muted);
}
.env-legend span { display: inline-flex; align-items: center; gap: 6px; }
.env-key { width: 14px; height: 11px; border-radius: 3px; flex: none; }
.env-key.dot { width: 11px; height: 11px; border-radius: 50%; }
.env-cap {
    font-size: 12.5px;
    color: var(--c-text-secondary);
    margin: 11px 0 0;
    line-height: 1.55;
}
.env-cap b { color: var(--c-text); }

/* "in plain terms" summary band */
.plainband {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    border-left: 3px solid var(--c-primary);
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--c-text-secondary);
    line-height: 1.6;
    max-width: 820px;
}
.plainband b { color: var(--c-text); }

/* =====================================================================
   ROUND 13 — Cities directory ("discovery launchpad") page.
   Ported from `mockups/2026-05-19 Round 13 - Cities/mockup.css`. The
   mockup's neutral palette is adapted to the live site's `--c-*` design
   tokens; class names are prefixed `dir-` where they would otherwise
   collide with the home-page hero (`.hero`, `.hero-search`).
   ===================================================================== */
.dir-h1 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0 0 5px;
}
.dir-scope {
    font-size: 13.5px;
    color: var(--c-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}
.dir-scope b { color: var(--c-text-secondary); font-weight: 700; }

/* ---- Search hero (directory) ---- */
.dir-hero {
    background: linear-gradient(180deg, #f1f7f6, #ffffff);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(20,30,40,.05);
    margin: 0 0 6px;
}
.dir-hero-row { display: flex; gap: 10px; align-items: stretch; }
.dir-hero-search { flex: 1 1 auto; min-width: 0; }
.dir-hero-search .city-search { width: 100%; }
.dir-hero-search .city-search-input {
    padding: 13px 15px;
    font-size: 15px;
    border-width: 2px;
    border-color: var(--c-primary);
    border-radius: 9px;
}
.hero-compare {
    margin: 11px 0 0;
    font-size: 13px;
    color: var(--c-text-secondary);
}
.hero-compare a {
    color: var(--c-primary);
    font-weight: 700;
    text-decoration: none;
}
.hero-compare a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .dir-hero-row { flex-direction: column; }
    .dir-hero-search .city-search-input { padding: 12px 14px; }
    .loc-btn { padding: 12px 16px; }
    .dir-h1 { font-size: 22px; }
}

/* ---- Generic section heading on the directory ---- */
.sec { margin-top: 26px; }
.sec-h {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 3px;
    color: var(--c-text);
}
.sec-sub {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 0 0 12px;
}

/* ---- Climate-led discovery cards ---- */
.climate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}
@media (max-width: 720px) {
    .climate-grid { grid-template-columns: 1fr 1fr; }
}
.climate-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    padding: 13px 14px;
    color: var(--c-text);
    position: relative;
    overflow: hidden;
    transition: transform .08s ease, box-shadow .08s ease;
}
.climate-card:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20,30,40,.08);
}
.climate-card .cc-ico { font-size: 19px; line-height: 1; }
.climate-card .cc-h {
    font-size: 13.5px; font-weight: 800; margin: 6px 0 2px;
    color: var(--c-text);
}
.climate-card .cc-d {
    font-size: 11.5px; color: var(--c-text-secondary);
    margin: 0; line-height: 1.4;
}
.cc-warm { background: linear-gradient(135deg, #fdeede, #fff7f0); border-color: #f0d9c0; }
.cc-mild { background: linear-gradient(135deg, #e7f4ec, #f5fbf7); border-color: #cfe6d6; }
.cc-sun  { background: linear-gradient(135deg, #fdf2d4, #fffaeb); border-color: #efe1b4; }
.cc-dry  { background: linear-gradient(135deg, #f6efe2, #fdfaf2); border-color: #e6dcc4; }
.cc-snow { background: linear-gradient(135deg, #e8f1f7, #f6fafc); border-color: #d2e2ec; }
.cc-rain { background: linear-gradient(135deg, #e6eef3, #f4f8fa); border-color: #cfdde6; }

/* ---- Popular destinations ---- */
.pop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 900px) {
    .pop-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .pop-grid { grid-template-columns: 1fr; }
}
.pop-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    padding: 10px 12px;
    color: var(--c-text);
    transition: border-color .1s, box-shadow .1s;
}
.pop-card:hover {
    text-decoration: none;
    border-color: var(--c-primary);
    box-shadow: 0 2px 6px rgba(20,30,40,.06);
}
.pop-swatch { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.pop-name { display: block; font-size: 13px; font-weight: 800; color: var(--c-text); }
.pop-feel { display: block; font-size: 10.5px; color: var(--c-text-muted); margin-top: 1px; }

/* ---- Browse by place — country panels ---- */
.place-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 720px) {
    .place-grid { grid-template-columns: 1fr; }
}
.place-panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 13px 15px;
    border-left: 4px solid var(--cclr, var(--c-primary));
}
.place-flag { font-size: 16px; margin-right: 6px; }
.place-name { font-size: 14px; font-weight: 800; display: inline; color: var(--c-text); }
.place-sub {
    font-size: 11.5px; color: var(--c-text-muted);
    margin: 3px 0 9px;
}
.place-links {
    display: flex; flex-wrap: wrap; gap: 4px 14px;
    font-size: 12.5px;
}
.place-links a { color: var(--c-primary); text-decoration: none; }
.place-links a:hover { text-decoration: underline; }
.place-disc {
    margin-top: 9px;
    border-top: 1px solid var(--c-border-soft);
    padding-top: 9px;
}
.place-disc summary {
    font-size: 12.5px; font-weight: 700; color: var(--c-primary);
    cursor: pointer; list-style: none;
}
.place-disc summary::-webkit-details-marker { display: none; }
.place-disc summary::before { content: "\25B8 "; color: var(--c-text-muted); }
.place-disc[open] summary::before { content: "\25BE "; }
.state-cols {
    margin-top: 9px;
    columns: 4;
    column-gap: 14px;
    font-size: 12.5px;
}
.state-cols a {
    color: var(--c-primary);
    text-decoration: none;
    display: block;
    padding: 1.5px 0;
    break-inside: avoid;
}
.state-cols a:hover { text-decoration: underline; }
@media (max-width: 720px) {
    .state-cols { columns: 2; }
}

/* ---- Browse the world — continent blocks (desktop) ---- */
.world-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cont-block {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 15px;
}
.cont-h {
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--c-text-muted);
    margin: 0 0 7px;
}
.cont-links { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 13px; }
.cont-links a { color: var(--c-primary); text-decoration: none; }
.cont-links a:hover { text-decoration: underline; }
.cont-all {
    display: inline-block; margin-top: 8px;
    font-size: 11.5px; font-weight: 700;
    color: var(--c-text-secondary); text-decoration: none;
}
.cont-all:hover { color: var(--c-primary); text-decoration: underline; }

/* Mobile only — continent blocks become accordions. */
.world-acc { display: none; }
.cont-acc {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 15px;
}
.cont-acc + .cont-acc { margin-top: 9px; }
.cont-acc summary {
    font-size: 13.5px; font-weight: 800;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--c-text);
}
.cont-acc summary::-webkit-details-marker { display: none; }
.cont-acc summary .chev { color: var(--c-text-muted); font-size: 12px; }
.cont-acc .cont-links { margin-top: 9px; }

@media (max-width: 720px) {
    .world-grid { display: none; }
    .world-acc { display: block; }
}

/* ---- A-Z utility strip (demoted) ---- */
.az-foot {
    margin-top: 26px;
    font-size: 12.5px;
    color: var(--c-text-muted);
    line-height: 1.55;
}
.az-foot b { color: var(--c-text-secondary); }
.az-strip {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 3px;
}
.az-strip a {
    font-size: 12px;
    color: var(--c-primary);
    text-decoration: none;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eef4f3;
}
.az-strip a:hover { background: #dce9e7; text-decoration: none; }

/* =====================================================================
   /climate/discover/{slug} — ranked-list pages linked from the directory.
   ===================================================================== */
.disc-list {
    margin: 18px 0 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    overflow: hidden;
}
.disc-head, .disc-row {
    display: grid;
    grid-template-columns: 48px 1fr 160px 220px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}
.disc-head {
    background: #fafbfb;
    border-bottom: 1px solid var(--c-border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
}
.disc-row {
    border-bottom: 1px solid var(--c-border-soft);
    color: var(--c-text);
    text-decoration: none;
    transition: background .1s;
}
.disc-row:last-child { border-bottom: none; }
.disc-row:hover {
    background: color-mix(in srgb, var(--c-primary) 6%, transparent);
    text-decoration: none;
}
.disc-rank {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-text-muted);
    text-align: right;
}
.disc-city strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
}
.disc-city .disc-place {
    display: block;
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 1px;
}
.disc-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.disc-feel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--c-text-secondary);
}
.disc-koppen-name {
    color: var(--c-text-secondary);
}
.disc-note {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 12px 0 24px;
    line-height: 1.55;
}
.disc-note a { color: var(--c-primary); }

@media (max-width: 720px) {
    .disc-head { display: none; }
    .disc-row {
        grid-template-columns: 36px 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 2px;
        padding: 10px 12px;
    }
    .disc-rank { grid-row: 1 / span 2; align-self: center; }
    .disc-val {
        grid-column: 3;
        grid-row: 1;
        font-size: 14px;
        text-align: right;
    }
    .disc-feel {
        grid-column: 2 / span 2;
        grid-row: 2;
        font-size: 11.5px;
    }
}

/* =====================================================================
   /climate/continents and /climate/continents/{slug} — Round 12 rebuild.
   Cards-led, climate-cued, recognisable-places-first. No SVG world map
   (cut by the site owner — the cards do all the navigation).
   ===================================================================== */

/* ---- Continent cards (3x2 desktop, single column mobile) ----------- */
.cont-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin: 4px 0 6px;
}
@media (max-width: 900px) {
    .cont-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .cont-grid { grid-template-columns: 1fr; }
}
.cont-card {
    display: block;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-top: 4px solid var(--c-primary);
    border-radius: 10px;
    padding: 15px 16px;
    color: var(--c-text);
    transition: border-color .12s, box-shadow .12s;
}
.cont-card:hover {
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(20,30,40,.07);
}
.cont-card .cont-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -.01em;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cont-card .cont-name .arr {
    color: var(--c-primary);
    font-size: 15px;
}
.cont-climate {
    font-size: 12.5px;
    color: var(--c-text-secondary);
    margin: 0 0 9px;
    line-height: 1.45;
}
.cont-anchors {
    font-size: 12px;
    color: var(--c-text-muted);
    margin: 0;
    padding-top: 9px;
    border-top: 1px solid var(--c-border-soft);
    line-height: 1.5;
}
.cont-anchors b {
    color: var(--c-text-secondary);
    font-weight: 700;
}

/* ---- Popular-cities strip (continents index) ----------------------- */
.popcities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.popcity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text);
    text-decoration: none;
}
.popcity:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    text-decoration: none;
}
.popcity .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.popcity .dot.warm { background: var(--c-warm); }
.popcity .dot.mild { background: #5aa84e; }
.popcity .dot.cool { background: var(--c-cool); }

/* ---- Page-level footnote (Antarctica + Other demoted) -------------- */
.pagefoot {
    margin-top: 22px;
    font-size: 12px;
    color: var(--c-text-muted);
    border-top: 1px solid var(--c-border-soft);
    padding-top: 12px;
}
.pagefoot a {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
}
.pagefoot a:hover { text-decoration: underline; }

/* ---- In-page search bar (continents pages) ------------------------- */
.pgsearch {
    margin: 0 0 22px;
    max-width: 540px;
}
.pgsearch .city-search { width: 100%; }
.pgsearch .city-search-input {
    padding: 11px 14px;
    font-size: 14px;
    border-width: 1.5px;
    border-color: var(--c-primary);
    border-radius: 9px;
}
@media (max-width: 640px) {
    .pgsearch { max-width: none; }
}

/* ---- Continent-detail: featured-country tiles ---------------------- */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin: 4px 0 6px;
}
@media (max-width: 720px) {
    .feat-grid { grid-template-columns: 1fr; }
}
.feat-card {
    display: block;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-primary);
    border-radius: 10px;
    padding: 13px 15px;
    color: var(--c-text);
    transition: box-shadow .12s;
}
.feat-card:hover {
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(20,30,40,.07);
}
.feat-top {
    display: flex;
    align-items: center;
    gap: 9px;
}
.feat-flag {
    flex: none;
    width: 26px;
    height: 19px;
    border-radius: 3px;
    background: #e6efee;
    border: 1px solid #d2dedc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: .03em;
}
.feat-name {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--c-text);
}
.feat-climate {
    font-size: 12px;
    color: var(--c-text-secondary);
    margin: 7px 0 0;
    line-height: 1.45;
}
.feat-meta {
    font-size: 11px;
    color: #aab2b6;
    margin-top: 6px;
}
.feat-meta .arr {
    color: var(--c-primary);
    font-weight: 700;
}

/* ---- Continent-detail: directory section headings ------------------ */
.dir-h {
    font-size: 14px;
    font-weight: 800;
    color: var(--c-text);
    margin: 22px 0 4px;
    letter-spacing: -.005em;
}
.dir-h:first-of-type { margin-top: 6px; }
.dir-sub {
    font-size: 12px;
    color: var(--c-text-muted);
    margin: 0 0 9px;
}

/* ---- Country tiles (enriched: flag + name + climate cue + count) --- */
.ctry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 4px 0 6px;
}
@media (max-width: 720px) {
    .ctry-grid { grid-template-columns: 1fr; }
}
.ctry-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 9px 13px;
    color: var(--c-text);
    transition: border-color .12s, background .12s;
}
.ctry-tile:hover {
    text-decoration: none;
    border-color: var(--c-primary);
    background: #f5faf9;
}
.ctry-flag {
    flex: none;
    width: 22px;
    height: 16px;
    border-radius: 2.5px;
    background: #e6efee;
    border: 1px solid #d2dedc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: .02em;
}
.ctry-body {
    flex: 1;
    min-width: 0;
}
.ctry-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
}
.ctry-cue {
    display: block;
    font-size: 11px;
    color: var(--c-text-muted);
    margin-top: 1px;
}
.ctry-count {
    font-size: 11px;
    color: #aeb6ba;
    flex: none;
    font-variant-numeric: tabular-nums;
}

/* ---- Compact chip list (the long-tail islands & territories) ------- */
.chiplist {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 4px 0 6px;
}
@media (max-width: 900px) {
    .chiplist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .chiplist { grid-template-columns: 1fr; }
}
.chiplist .chip {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: #f7f9f9;
    border: 1px solid var(--c-border-soft);
    border-radius: 7px;
    padding: 7px 10px;
    color: var(--c-text-secondary);
    font-size: 12px;
}
.chiplist .chip:hover {
    text-decoration: none;
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: var(--c-surface);
}
.chiplist .chip .cflag {
    flex: none;
    width: 19px;
    height: 14px;
    border-radius: 2px;
    background: #eaeeed;
    border: 1px solid #d8e0df;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.5px;
    font-weight: 800;
    color: #5b6c6a;
}
.chiplist .chip .cname { flex: 1; font-weight: 600; }
.chiplist .chip .ccount {
    font-size: 10.5px;
    color: #aeb6ba;
    flex: none;
}

/* ---- Collapsible island block (native <details>) ------------------- */
.island-block {
    margin: 4px 0 6px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: var(--c-surface);
}
.island-block > summary {
    list-style: none;
    cursor: pointer;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text);
}
.island-block > summary::-webkit-details-marker { display: none; }
.island-block > summary .chev {
    color: var(--c-text-muted);
    transition: transform .15s;
}
.island-block[open] > summary .chev { transform: rotate(90deg); }
.island-block > summary .isub {
    font-weight: 500;
    color: var(--c-text-muted);
    font-size: 12px;
}
.island-inner { padding: 2px 12px 12px; }

/* Open by default on desktop, collapsed by default on mobile. Pure CSS
   solution: render the section twice — one <details open> for desktop,
   one <details> (closed) for mobile — and swap by media query so the
   visitor sees the right default for their screen, with no JS. The
   `.island-block-desktop` and `.island-block-mobile` modifier classes
   control which copy is visible. */
.island-block-desktop { display: block; }
.island-block-mobile  { display: none; }
@media (max-width: 720px) {
    .island-block-desktop { display: none; }
    .island-block-mobile  { display: block; }
}


/* =====================================================================
   REGION PAGE (state / province / constituent country) — rebuilt
   finder-first, Round 14 → Round 27.
   Each section here is self-contained; the page composes them by class.
   ===================================================================== */

/* ── H2 sub-line that follows the H1, and the regional "lead" card ──── */
.rg-h2sub {
    font-size: 14px;
    color: var(--c-text-secondary);
    margin: 4px 0 16px;
    max-width: 72ch;
}
.rg-lead {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 14px 18px;
    margin: 0 0 22px;
}
.rg-lead-p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-text);
}
.rg-lead-p b { font-weight: 700; color: var(--c-text); }
.rg-lead-meta {
    margin: 0;
    font-size: 12px;
    color: var(--c-text-muted);
}

/* ── "Largest cities" — quick-jump chip row + the cards underneath ──── */
.rg-popular { margin: 0 0 8px; }
.rg-pop-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 6px;
}
.rg-pop-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rg-pop-chip {
    display: inline-block;
    padding: 5px 11px;
    background: #eef4f3;
    color: var(--c-primary);
    border-radius: 14px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--c-primary) 16%, transparent);
}
.rg-pop-chip:hover {
    background: color-mix(in srgb, var(--c-primary) 12%, transparent);
    text-decoration: none;
}

.rg-section-h {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 22px 0 4px;
    color: var(--c-text);
}
.rg-section-sub {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 0 0 12px;
    max-width: 72ch;
}

.rg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 26px;
}
.rg-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 13px 14px;
    color: var(--c-text);
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.rg-card:hover {
    background: color-mix(in srgb, var(--c-primary) 5%, transparent);
    border-color: color-mix(in srgb, var(--c-primary) 25%, var(--c-border));
    text-decoration: none;
}
.rg-card-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
}
.rg-card-pop {
    font-size: 11.5px;
    color: var(--c-text-muted);
    margin: 0 0 6px;
}
.rg-card-climate {
    font-size: 12.5px;
    color: var(--c-text-secondary);
    margin: 0 0 6px;
    font-style: italic;
}
.rg-card-temp {
    font-size: 12.5px;
    color: var(--c-text);
    margin: 0;
}
.rg-card-temp b { font-weight: 700; }

/* ── City finder + conditional A–Z jump bar + alphabetical directory ── */
.rg-finder {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 12px 14px;
    margin: 0 0 18px;
}
.rg-filter {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: var(--c-text);
}
.rg-filter:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 16%, transparent);
}
.rg-az {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.rg-az a, .rg-az span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.rg-az a { color: var(--c-primary); background: #eef4f3; }
.rg-az a:hover {
    background: color-mix(in srgb, var(--c-primary) 16%, transparent);
    text-decoration: none;
}
.rg-az span { color: #c3cbcd; }

.rg-dir { margin: 0 0 30px; }
.rg-letter {
    font-size: 18px;
    font-weight: 800;
    color: var(--c-primary);
    margin: 18px 0 6px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.rg-backtop {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-muted);
    text-decoration: none;
}
.rg-backtop:hover { color: var(--c-primary); text-decoration: none; }

/* Reuse the existing .city-list / .city-list-row layout for the rows
   inside each letter group — just a slight margin tweak so the letter
   heading sits closer than the section heading does. */
.rg-letter-grid { margin: 6px 0 12px; }

.rg-empty {
    margin: 16px 0;
    font-size: 13px;
    color: var(--c-text-muted);
    font-style: italic;
}
.rg-empty a { color: var(--c-primary); font-weight: 600; margin-left: 6px; }

/* The demoted extremes — same .stats-grid as before, just a top margin
   so they sit clearly below the directory rather than crowding it. */
.rg-extremes { margin-top: 22px; }

@media (max-width: 600px) {
    .rg-cards { grid-template-columns: 1fr; }
    .rg-az { gap: 3px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .rg-az a, .rg-az span { flex: 0 0 auto; min-width: 22px; }
}

/* =====================================================================
   ROUND 15 — Country page. Navigation-first, climate-cued directory.
   Ported from `mockups/2026-05-19 Round 15 - Countries/mockup.css` with
   .spark-grid / .spark-card and the temperature-bar decoration on
   .reg-tile dropped per the owner's explicit cuts (state-tile sparklines
   removed; city-card sparklines removed). Colour-by-token (--c-*).
   ===================================================================== */

/* Page head — H1 + plain lead. */
.cp-h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0 0 8px;
}
.cp-lead {
    font-size: 14px;
    color: var(--c-text-secondary);
    margin: 0 0 14px;
    max-width: 78ch;
    line-height: 1.55;
}
.cp-lead b { color: var(--c-text); font-weight: 700; }

/* In-page country search wrapper — uses the existing CitySearchBox
   styling; the wrapper sets width + margin so it lines up with the lead. */
.cp-search-wrap {
    max-width: 620px;
    margin: 0 0 8px;
}
.cp-search-wrap .city-search { width: 100%; }

/* "Popular cities:" line below the search. */
.cp-popular {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 4px 0 8px;
}
.cp-popular b { color: var(--c-text-secondary); font-weight: 700; }
.cp-popular a { color: var(--c-primary); text-decoration: none; }
.cp-popular a:hover { text-decoration: underline; }

/* Section heading on the country page. */
.cp-sec { margin-top: 26px; }
.cp-sec-h {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 3px;
    color: var(--c-text);
}
.cp-sec-sub {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 0 0 12px;
    line-height: 1.45;
}
.cp-sec-sub b { color: var(--c-text-secondary); }

/* === Region-tile grid (state / province / nation / territory) ===
   No sparkline, no temperature bar — only name + faint city count. */
.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin: 4px 0 0;
}
.reg-tile {
    display: block;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    padding: 11px 13px 12px;
    color: var(--c-text);
    transition: border-color .12s, background .12s;
}
.reg-tile:hover {
    border-color: var(--c-primary);
    background: color-mix(in srgb, var(--c-primary) 5%, transparent);
    text-decoration: none;
}
.reg-name {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
    color: var(--c-text);
}
.reg-count {
    font-size: 11px;
    color: var(--c-text-muted);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .reg-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .reg-name { font-size: 12.5px; }
}

/* === Representative cities — climate-chosen, no sparkline ===
   Each card = name + state (where applicable) + plain-English Köppen cue. */
.rep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 11px;
}
.rep-card {
    display: block;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    padding: 13px 14px;
    color: var(--c-text);
    transition: border-color .12s, background .12s;
}
.rep-card:hover {
    border-color: var(--c-primary);
    background: color-mix(in srgb, var(--c-primary) 5%, transparent);
    text-decoration: none;
}
.rep-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--c-text);
}
.rep-state {
    font-size: 11.5px;
    color: var(--c-text-muted);
    margin-top: 2px;
}
.rep-climate {
    font-size: 12px;
    color: var(--c-text-secondary);
    margin-top: 6px;
    line-height: 1.45;
}

/* === Köppen-grouped city list (Thailand-style) === */
.cg-group {
    margin-top: 18px;
}
.cg-group:first-child { margin-top: 4px; }
.cg-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--c-border-soft);
    flex-wrap: wrap;
}
.cg-head h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    color: var(--c-text);
}
.cg-head .cg-n {
    font-size: 11.5px;
    color: var(--c-text-muted);
    font-weight: 700;
    margin-left: auto;
}
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 7px;
}
.city-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 7px;
    padding: 9px 12px;
    text-decoration: none;
    color: var(--c-text);
    transition: border-color .1s;
}
.city-row:hover { border-color: var(--c-primary); text-decoration: none; }
.city-row-l { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.city-row .city-name { font-size: 13px; font-weight: 700; color: var(--c-text); }
.city-row .city-meta { font-size: 11px; color: var(--c-text-muted); }
.cg-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary);
    text-decoration: none;
    margin-top: 8px;
}
.cg-more:hover { text-decoration: underline; }

/* === Demoted extremes footnote === */
.ex-foot {
    margin-top: 24px;
    background: #f7f9f9;
    border: 1px solid var(--c-border-soft);
    border-radius: 8px;
    padding: 11px 14px;
}
.ex-foot summary {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text-secondary);
    cursor: pointer;
    list-style: none;
}
.ex-foot summary::-webkit-details-marker { display: none; }
.ex-foot summary::before { content: "\25B8  "; color: var(--c-text-muted); }
.ex-foot[open] summary::before { content: "\25BE  "; }
.ex-line {
    font-size: 12px;
    color: var(--c-text-secondary);
    margin: 9px 0 0;
    line-height: 1.6;
}
.ex-line a { color: var(--c-primary); text-decoration: none; }
.ex-line a:hover { text-decoration: underline; }
.ex-line .ex-note {
    display: block;
    color: var(--c-text-muted);
    font-style: italic;
    margin-top: 5px;
}

/* =====================================================================
   Round 16 — climate-zone pages (zones index + zone detail)
   Ports the `zx-*` mockup classes from
   mockups/2026-05-19 Round 16 - Zones/mockup.css, adapted to --c-* tokens.
   ===================================================================== */

/* Köppen family colours — five plain-language families, reused on cards,
   pills, family-section headers and the climate-belt strip. */
:root {
    --k-tropical: #2e8b57;   /* Tropical — green */
    --k-arid:     #b8860b;   /* Arid — gold */
    --k-temperate:#228b9b;   /* Temperate — teal */
    --k-cont:     #4863a0;   /* Continental — blue */
    --k-polar:    #6b7e98;   /* Polar — slate */
}

/* Round 16 "kpill" — coloured climate-code badge (replaces the long-form
   ".koppen-pill" usage on the redesigned zone pages). Same colour mapping
   as .koppen-pill but driven off data-fam (the family letter). */
.kpill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
    letter-spacing: .03em; color: #fff; flex: none;
    background: #6b7280; line-height: 1.4;
}
.kpill--big { font-size: 14px; padding: 5px 13px; }
.kpill[data-fam="A"] { background: var(--k-tropical); }
.kpill[data-fam="B"] { background: var(--k-arid); }
.kpill[data-fam="C"] { background: var(--k-temperate); }
.kpill[data-fam="D"] { background: var(--k-cont); }
.kpill[data-fam="E"] { background: var(--k-polar); }

/* shared header bits */
.zx-eyebrow {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--c-accent); margin: 0 0 4px;
}
.zx-h1 {
    font-size: 27px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 10px;
    color: var(--c-text);
}
.zx-h1-row { display: flex; align-items: center; gap: 11px; margin: 0 0 10px; flex-wrap: wrap; }
.zx-h1-row .zx-h1 { margin: 0; }
.zx-lead {
    font-size: 14px; color: var(--c-text-secondary); margin: 0 0 16px;
    max-width: 78ch; line-height: 1.55;
}
.zx-codelabel { font-size: 12px; color: var(--c-text-muted); font-weight: 600; }
.zx-methnote {
    font-size: 11.5px; color: var(--c-text-muted); margin: 24px 0 0;
    padding-left: 11px; border-left: 2px solid var(--c-border);
    font-style: italic; line-height: 1.55;
}
.zx-methnote a { color: var(--c-primary); text-decoration: none; }
.zx-methnote a:hover { text-decoration: underline; }

/* zones-index: city search panel */
.zx-search {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 11px;
    padding: 15px 18px; margin: 0 0 22px;
}
.zx-search-h { font-size: 14px; font-weight: 800; margin: 0 0 8px; color: var(--c-text); }
.zx-search-row { display: flex; gap: 9px; align-items: stretch; }
.zx-search-row .city-search { flex: 1 1 auto; min-width: 0; }
.zx-search-row .city-search-input {
    padding: 10px 13px; font-size: 14px;
    border: 1px solid var(--c-border); border-radius: 7px;
    background: #f9fafa;
}

/* climate-family map — five horizontal climate belts (no SVG; static
   labelled bands) */
.zx-map {
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 11px;
    padding: 14px 16px; margin: 0 0 24px;
}
.zx-map-h {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    color: var(--c-text-muted); margin: 0 0 9px;
}
.zx-map-canvas {
    height: 188px; border-radius: 8px; overflow: hidden; position: relative;
    background: linear-gradient(180deg, #eaf1f3 0%, #eaf1f3 100%);
    border: 1px solid var(--c-border-soft, var(--c-border));
}
.zx-belt { position: absolute; left: 0; right: 0; }
.zx-belt span {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    font-size: 10px; font-weight: 800; color: #fff; text-transform: uppercase;
    letter-spacing: .05em; text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.zx-map-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; }
.zx-map-legend span {
    font-size: 10.5px; color: var(--c-text-secondary);
    display: inline-flex; align-items: center; gap: 5px;
}
.zx-map-sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }

/* family-jump chips */
.zx-chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 20px; }
.zx-chip {
    font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--c-border); background: var(--c-surface);
    color: var(--c-text-secondary); text-decoration: none;
}
.zx-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* family section + zone cards */
.zx-fam { margin: 26px 0 0; }
.zx-fam-head { display: flex; align-items: baseline; gap: 9px; margin: 0 0 4px; }
.zx-fam-dot { width: 13px; height: 13px; border-radius: 4px; flex: none; align-self: center; }
.zx-fam-h {
    font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 0;
    color: var(--c-text);
}
.zx-fam-sub { font-size: 12.5px; color: var(--c-text-muted); margin: 0 0 13px; }

.zx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 720px) {
    .zx-cards { grid-template-columns: 1fr; }
}
.zx-card {
    display: flex; flex-direction: column; gap: 5px; text-decoration: none;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--c-radius); padding: 15px 16px; color: var(--c-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zx-card:hover {
    border-color: var(--c-primary); box-shadow: 0 1px 4px rgba(33,111,91,.07);
    text-decoration: none;
}
.zx-card.is-rare { background: #fafbfb; }
.zx-card-head { display: flex; align-items: center; gap: 8px; }
.zx-card-name { font-size: 15px; font-weight: 800; margin: 0; color: var(--c-text); }
.zx-card-rare {
    margin-left: auto; font-size: 9px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .05em; color: var(--c-text-muted); background: #eef1f2;
    padding: 2px 7px; border-radius: 4px;
}
.zx-card-desc { font-size: 12px; color: var(--c-text-secondary); margin: 0; line-height: 1.45; }
.zx-card-eg { font-size: 11.5px; color: var(--c-text-muted); margin: 4px 0 0; }
.zx-card-eg b { color: var(--c-text-secondary); font-weight: 600; }
.zx-card-cta {
    margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 800; color: var(--c-primary);
}

/* index closing prompt + footnote */
.zx-prompt {
    margin-top: 28px; background: #f1f7f6; border: 1px solid #cde3df;
    border-radius: 10px; padding: 15px 18px; font-size: 13px; color: var(--c-text-secondary);
}
.zx-prompt b { color: var(--c-text); }
.zx-prompt a { color: var(--c-primary); font-weight: 700; text-decoration: none; }

/* zone-detail: orientation + example strip */
.zx-orient {
    font-size: 14px; color: var(--c-text-secondary); margin: 0 0 14px;
    max-width: 80ch; line-height: 1.55;
}
.zx-orient b { color: var(--c-text); }
.zx-egstrip {
    background: #f4f8f8; border: 1px solid var(--c-border);
    border-radius: 10px; padding: 12px 15px; margin: 0 0 22px;
}
.zx-egstrip-lbl {
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    color: var(--c-text-muted); margin: 0 0 7px;
}
.zx-egstrip-row { display: flex; gap: 9px; flex-wrap: wrap; }
.zx-egcity {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 8px; padding: 9px 12px; text-decoration: none; color: var(--c-text);
    flex: 1 1 180px; min-width: 150px;
}
.zx-egcity:hover { border-color: var(--c-primary); text-decoration: none; }
.zx-egcity-n { font-size: 13px; font-weight: 800; color: var(--c-text); }
.zx-egcity-m { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }

/* generic section */
.zx-sec { margin-top: 28px; }
.zx-sec-h {
    font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 3px;
    color: var(--c-text);
}
.zx-sec-sub { font-size: 12.5px; color: var(--c-text-muted); margin: 0 0 13px; }

/* explainer sub-blocks (temperatures / rainfall / where in the world) */
.zx-explain {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 10px; padding: 4px 18px 14px;
}
.zx-eb {
    padding: 14px 0; border-bottom: 1px solid var(--c-border);
    display: flex; gap: 13px;
}
.zx-eb:last-child { border-bottom: 0; }
.zx-eb-ico { font-size: 21px; line-height: 1.1; flex: none; width: 26px; text-align: center; }
.zx-eb-h { font-size: 13.5px; font-weight: 800; margin: 0 0 3px; color: var(--c-text); }
.zx-eb-p { font-size: 12.5px; color: var(--c-text-secondary); margin: 0; line-height: 1.5; }

/* snapshot mini-table — two contrasting cities */
.zx-snap { display: flex; gap: 11px; margin-top: 13px; }
@media (max-width: 720px) {
    .zx-snap { flex-direction: column; }
}
.zx-snap-card {
    flex: 1; background: #f7f9f9; border: 1px solid var(--c-border);
    border-radius: 9px; padding: 12px 14px;
}
.zx-snap-card a { color: inherit; text-decoration: none; }
.zx-snap-card a:hover .zx-snap-city { color: var(--c-primary); }
.zx-snap-city { font-size: 13px; font-weight: 800; color: var(--c-text); }
.zx-snap-city small { color: var(--c-text-muted); font-weight: 600; }
.zx-snap-grid { display: flex; gap: 16px; margin-top: 8px; }
.zx-snap-fig { display: flex; flex-direction: column; }
.zx-snap-fig .n { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.zx-snap-fig .l { font-size: 10px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.zx-snap-rain { font-size: 11.5px; color: var(--c-text-secondary); margin-top: 7px; }

/* "what it means for you" cards (living / gardening / travel) */
.zx-means { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 820px) {
    .zx-means { grid-template-columns: 1fr; }
}
.zx-means-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 9px; border-left: 3px solid var(--c-primary); padding: 13px 15px;
}
.zx-means-h { font-size: 13px; font-weight: 800; margin: 0 0 4px;
    display: flex; align-items: center; gap: 6px; color: var(--c-text); }
.zx-means-p { font-size: 12px; color: var(--c-text-secondary); margin: 0; line-height: 1.5; }

/* "where in the world" chip pills */
.zx-regions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.zx-region {
    font-size: 12px; font-weight: 700; color: var(--c-text-secondary);
    background: #eef1f2; border-radius: 999px; padding: 5px 12px;
}

/* popular-cities strip above the directory */
.zx-popgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 820px) {
    .zx-popgrid { grid-template-columns: 1fr 1fr; }
}
.zx-popcity {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 9px; padding: 11px 13px; text-decoration: none; color: var(--c-text);
}
.zx-popcity:hover { border-color: var(--c-primary); text-decoration: none; }
.zx-popcity-n { font-size: 13px; font-weight: 800; color: var(--c-text); }
.zx-popcity-c { font-size: 11px; color: var(--c-text-muted); margin-top: 1px; }

/* country-grouped directory accordion */
.zx-acc {
    border: 1px solid var(--c-border); border-radius: 9px;
    overflow: hidden; background: var(--c-surface);
}
.zx-acc-item { border-bottom: 1px solid var(--c-border); }
.zx-acc-item:last-child { border-bottom: 0; }
.zx-acc-sum {
    display: flex; align-items: center; gap: 9px; padding: 11px 14px; cursor: pointer;
    font-size: 13px; font-weight: 700; color: var(--c-text);
    list-style: none;
}
.zx-acc-sum::-webkit-details-marker { display: none; }
.zx-acc-sum::marker { content: ""; }
.zx-acc-sum .chev {
    color: var(--c-text-muted); font-size: 11px; transition: transform .1s; flex: none;
    width: 11px; display: inline-block;
}
.zx-acc-item[open] > .zx-acc-sum .chev { transform: rotate(90deg); }
.zx-acc-count {
    margin-left: auto; font-size: 11px; color: var(--c-text-muted);
    font-variant-numeric: tabular-nums; font-weight: 600;
}
.zx-acc-body { padding: 4px 14px 13px; }
.zx-citygrid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2px 14px;
}
@media (max-width: 820px) { .zx-citygrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .zx-citygrid { grid-template-columns: 1fr; } }
.zx-cityrow {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    padding: 7px 2px; font-size: 12.5px; text-decoration: none; color: var(--c-text);
    border-bottom: 1px dotted var(--c-border);
}
.zx-cityrow:hover { color: var(--c-primary); text-decoration: none; }
.zx-cityrow b { font-weight: 700; }
.zx-cityrow-meta {
    font-size: 11px; color: var(--c-text-muted);
    font-variant-numeric: tabular-nums; flex: none;
}
.zx-showmore {
    display: inline-block; margin-top: 10px;
    font-size: 12px; font-weight: 700; color: var(--c-primary); text-decoration: none;
}
.zx-showmore:hover { text-decoration: underline; }

/* explore-further cross-links */
.zx-explore { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 720px) { .zx-explore { grid-template-columns: 1fr; } }
.zx-xlink {
    display: block; text-decoration: none; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: 9px;
    padding: 12px 14px; color: var(--c-text);
}
.zx-xlink:hover { border-color: var(--c-primary); text-decoration: none; }
.zx-xlink-t { font-size: 13px; font-weight: 800; color: var(--c-primary); }
.zx-xlink-d { font-size: 11.5px; color: var(--c-text-muted); margin-top: 2px; }

/* honesty note */
.zx-honest {
    background: #eef4f7; border: 1px solid #d4e2e8; border-radius: 9px;
    padding: 11px 14px; font-size: 12px; color: #355460; margin-top: 16px;
    line-height: 1.5;
}
.zx-honest b { color: #1f3d49; }
