:root {
    --bg: #f5f7f8;
    --surface: #ffffff;
    --surface-soft: #f8fafb;

    --navy: #102a3a;
    --navy-2: #173f55;
    --text: #17252e;
    --muted: #667985;
    --border: #dce5ea;

    --blue: #2877a6;
    --blue-soft: #eaf4fa;

    --warning: #b97818;
    --warning-bg: #fff7e8;

    --danger: #ae4038;
    --danger-bg: #fff0ee;

    --success: #3e7359;
    --success-bg: #edf7f1;

    --shadow:
        0 8px 24px rgba(17, 42, 58, 0.07);

    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
}

button,
input,
select {
    font: inherit;
}

.hidden {
    display: none !important;
}


/* TOPO */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    min-height: 66px;
    padding:
        max(11px, env(safe-area-inset-top))
        18px
        11px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    color: var(--navy);

    background:
        rgba(248, 251, 252, .88);

    border-bottom:
        1px solid rgba(16, 42, 58, .06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white;

    background:
        linear-gradient(
            145deg,
            #2f86b6 0%,
            #164866 100%
        );

    box-shadow:
        0 6px 18px rgba(20, 73, 101, .18);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.brand-name {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 780;
    letter-spacing: -.025em;
}

.brand-city {
    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}

.snapshot {
    max-width: 145px;

    padding: 6px 9px;

    color: var(--muted);

    background:
        rgba(255, 255, 255, .72);

    border:
        1px solid rgba(16, 42, 58, .07);

    border-radius: 999px;

    font-size: 9px;
    line-height: 1.25;
    text-align: right;
}


/* ESTRUTURA */

body {
    background:
        radial-gradient(
            circle at 50% -80px,
            rgba(76, 160, 201, .045),
            transparent 520px
        ),
        var(--bg);
}

.page {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    padding:
        16px
        14px
        calc(
            42px +
            env(safe-area-inset-bottom)
        );
}

.card,
.hero-card,
.sources-card,
.alert-card {
    background: var(--surface);

    border:
        1px solid rgba(16, 42, 58, .07);

    border-radius: 22px;

    box-shadow:
        0 10px 32px rgba(16, 42, 58, .055);
}

.card {
    margin-top: 16px;
    padding: 20px;
}


/* LOCALIDADE */

.location-block {
    position: relative;

    padding: 0 2px 8px;

    background: transparent;
    border: 0;
    box-shadow: none;
}

.location-block label {
    display: block;

    margin: 0 0 7px 2px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 780;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.location-block select {
    width: 100%;
    min-height: 52px;

    padding: 0 44px 0 16px;

    color: var(--navy);

    background:
        rgba(255, 255, 255, .84);

    border:
        1px solid rgba(16, 42, 58, .08);

    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(16, 42, 58, .045);

    font-size: 16px;
    font-weight: 700;

    outline: none;
}

.location-block select:focus {
    border-color:
        rgba(40, 119, 166, .45);

    box-shadow:
        0 0 0 4px rgba(40, 119, 166, .08);
}

.location-reference {
    margin:
        8px
        4px
        0;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.4;
}

.location-reference:empty {
    display: none;
}


/* ALERTA */

.alert-card {
    margin-top: 12px;
    padding: 16px 18px;

    background:
        linear-gradient(
            135deg,
            #fff8ea,
            #fffdf7
        );

    border-color:
        rgba(185, 120, 24, .18);

    box-shadow: none;
}

.alert-label {
    color: var(--warning);

    font-size: 9px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: .10em;
}

.alert-title {
    margin-top: 5px;

    color: var(--navy);

    font-size: 17px;
    font-weight: 780;
    line-height: 1.25;
}

.alert-meta {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}


/* HERO */

.hero-card {
    position: relative;
    overflow: hidden;

    margin-top: 8px;
    padding: 24px 20px 20px;

    color: white;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(122, 203, 237, .24),
            transparent 38%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(83, 151, 188, .13),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #102a3a 0%,
            #174966 62%,
            #1d5d7d 100%
        );

    border-color:
        rgba(255, 255, 255, .08);

    border-radius: 28px;

    box-shadow:
        0 18px 42px rgba(16, 42, 58, .18);
}

.hero-card::after {
    content: "";

    position: absolute;
    width: 220px;
    height: 220px;
    right: -105px;
    top: -105px;

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 50%;

    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;

    padding: 5px 9px;

    color:
        rgba(255, 255, 255, .72);

    background:
        rgba(255, 255, 255, .08);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .10em;
}

.hero-card h1 {
    margin: 12px 0 0;

    font-size: 31px;
    line-height: 1.06;
    font-weight: 790;

    letter-spacing: -.045em;
}

.hero-card .clima-highlight {
    max-width: 620px;

    margin-top: 18px;

    color: white;

    font-size: 20px;
    font-weight: 730;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.hero-summary {
    max-width: 600px;

    margin-top: 9px;

    color:
        rgba(255, 255, 255, .68);

    font-size: 12px;
    line-height: 1.5;
}

.clima-attention {
    margin-top: 17px;
    padding: 13px 14px;

    background:
        rgba(255, 255, 255, .08);

    border:
        1px solid rgba(255, 255, 255, .10);

    border-radius: 14px;
}

.clima-attention > strong,
.clima-limitations > strong {
    display: block;

    font-size: 10px;
    font-weight: 820;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.clima-attention ul {
    margin: 8px 0 0 17px;
    padding: 0;
}

.clima-attention li {
    margin-top: 5px;

    color:
        rgba(255, 255, 255, .82);

    font-size: 11px;
    line-height: 1.45;
}

.clima-limitations {
    margin-top: 10px;
    padding: 11px 13px;

    color:
        rgba(255, 255, 255, .64);

    background:
        rgba(255, 255, 255, .045);

    border-radius: 12px;

    font-size: 10px;
    line-height: 1.45;
}

.clima-limitations > div {
    margin-top: 5px;
}

.hero-details-label {
    margin-top: 24px;

    color:
        rgba(255, 255, 255, .45);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .10em;
}

.hero-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    margin-top: 10px;

    border-top:
        1px solid rgba(255, 255, 255, .10);

    border-bottom:
        1px solid rgba(255, 255, 255, .10);
}

.hero-stat {
    min-width: 0;
    padding: 15px 12px;

    background: transparent;

    border: 0;
    border-radius: 0;
}

.hero-stat:nth-child(odd) {
    border-right:
        1px solid rgba(255, 255, 255, .10);
}

.hero-stat:nth-child(-n+2) {
    border-bottom:
        1px solid rgba(255, 255, 255, .10);
}

.hero-stat > span {
    display: block;

    color:
        rgba(255, 255, 255, .48);

    font-size: 9px;
}

.hero-stat strong {
    display: block;

    margin-top: 5px;

    font-size: 22px;
    line-height: 1.05;
    font-weight: 760;

    letter-spacing: -.04em;
}

.hero-stat small {
    display: block;

    margin-top: 5px;

    color:
        rgba(255, 255, 255, .46);

    font-size: 8px;
    line-height: 1.3;
}

.source-line {
    margin-top: 13px;

    color:
        rgba(255, 255, 255, .42);

    font-size: 9px;
}


/* CIDADE */

.city-card {
    position: relative;
    overflow: hidden;

    padding:
        21px
        20px
        18px;
}

.city-card::after {
    content: "";

    position: absolute;
    width: 150px;
    height: 150px;
    right: -90px;
    top: -90px;

    border-radius: 50%;

    background:
        rgba(40, 119, 166, .035);

    pointer-events: none;
}

.city-card .section-head {
    position: relative;
    z-index: 1;

    margin-bottom: 8px;
}

.city-card .clima-highlight {
    position: relative;
    z-index: 1;

    margin:
        13px
        0
        4px;

    padding:
        13px
        15px;

    color: var(--navy);

    background:
        linear-gradient(
            135deg,
            rgba(234, 244, 250, .72),
            rgba(247, 250, 252, .66)
        );

    border-left:
        3px solid rgba(40, 119, 166, .56);

    border-radius:
        4px
        14px
        14px
        4px;

    font-size: 17px;
    font-weight: 710;
    line-height: 1.38;
    letter-spacing: -.025em;
}

.city-facts {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1fr;

    gap: 8px;

    margin-top: 14px;
}

.city-fact {
    min-width: 0;

    padding:
        13px
        14px
        14px;

    background:
        rgba(248, 250, 251, .74);

    border:
        1px solid rgba(16, 42, 58, .055);

    border-radius: 14px;
}

.city-fact-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-fact-icon {
    width: 27px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    color: var(--blue);

    background:
        rgba(40, 119, 166, .08);

    border-radius: 9px;
}

.city-fact-icon .ui-icon {
    width: 14px;
    height: 14px;
}

.city-fact-title {
    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .055em;
}

.city-fact strong {
    display: block;

    margin-top: 10px;

    color: var(--text);

    font-size: 12px;
    font-weight: 610;
    line-height: 1.52;
}

/* CABEÇALHOS */

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 15px;
}

.section-kicker {
    color: var(--blue);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .09em;
}

.section-head h2 {
    margin: 3px 0 0;

    color: var(--navy);

    font-size: 19px;
    line-height: 1.2;

    letter-spacing: -.025em;
}

.source-badge {
    flex: 0 0 auto;

    padding: 5px 8px;

    color: var(--blue);

    background: var(--blue-soft);

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .05em;
}


/* CHUVA OBSERVADA */

.rain-card {
    overflow: hidden;
}

.rain-current {
    display: grid;
    gap: 8px;
}

.rain-reading {
    min-height: 70px;

    padding: 14px 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(234, 244, 250, .72),
            rgba(248, 251, 252, .82)
        );

    border: 0;

    border-radius: 16px;
}

.rain-reading > div {
    min-width: 0;
}

.rain-reading strong {
    display: block;

    color: var(--navy);

    font-size: 23px;
    font-weight: 760;
    letter-spacing: -.04em;
}

.rain-reading span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
}

.rain-reading small {
    flex: 0 0 auto;

    color: var(--muted);

    font-size: 9px;
    text-align: right;
}

.rain-history {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 6px;

    margin-top: 10px;
}

.history-stat {
    padding: 10px 6px;

    text-align: center;

    background:
        rgba(40, 119, 166, .055);

    border-radius: 12px;
}

.history-stat span {
    display: block;

    color: var(--muted);

    font-size: 8px;
}

.history-stat strong {
    display: block;

    margin-top: 4px;

    color: var(--navy);

    font-size: 13px;
    font-weight: 720;
}

/* NOTAS */

.note {
    margin-top: 13px;

    padding-top: 12px;

    color: var(--muted);

    border-top:
        1px solid var(--border);

    font-size: 10px;
    line-height: 1.5;
}


/* MODELOS */

.model-table-wrap {
    width: 100%;
    overflow-x: auto;

    margin:
        0 -4px;

    padding:
        0 4px 5px;

    -webkit-overflow-scrolling: touch;
}

.model-table {
    width: 100%;
    min-width: 650px;

    border-collapse: collapse;

    font-size: 11px;
}

.model-table th {
    padding: 9px 8px;

    color: var(--muted);

    background: var(--surface-soft);

    border-bottom:
        1px solid var(--border);

    font-size: 9px;
    font-weight: 750;

    text-align: right;
    white-space: nowrap;
}

.model-table th:first-child {
    text-align: left;
}

.model-table td {
    padding: 10px 8px;

    border-bottom:
        1px solid var(--border);

    text-align: right;
    white-space: nowrap;
}

.model-table tr:last-child td {
    border-bottom: 0;
}

.model-table td:first-child {
    text-align: left;
}

.model-name {
    color: var(--navy);
    font-weight: 750;
}


/* RIOS */

.rivers-card {
    padding-bottom: 14px;
}

.river-summary {
    margin:
        -2px
        0
        10px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}

.river-compact-list {
    display: grid;
    gap: 0;

    border-top:
        1px solid rgba(16, 42, 58, .07);
}

.river-compact-row {
    padding: 13px 2px;

    background: transparent;

    border: 0;
    border-bottom:
        1px solid rgba(16, 42, 58, .07);

    border-radius: 0;

    box-shadow: none;
}

.river-compact-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.river-compact-head strong {
    display: block;

    color: var(--navy);

    font-size: 13px;
    font-weight: 730;
    line-height: 1.25;
}

.river-compact-head span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
}

.river-compact-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;

    margin-top: 7px;
}

.river-compact-facts span {
    padding: 0;

    color: var(--muted);

    background: transparent;

    border: 0;
    border-radius: 0;

    font-size: 9px;
    line-height: 1.35;
}

.river-variation {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.river-variation-icon {
    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--navy);

    background:
        rgba(40, 119, 166, .08);

    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;
}

.river-details {
    margin-top: 11px;

    border: 0;
    border-radius: 0;

    overflow: hidden;

    background: transparent;
}

.river-details > summary {
    position: relative;

    padding: 12px 34px 8px 2px;

    color: var(--blue);

    cursor: pointer;

    list-style: none;

    font-size: 11px;
    font-weight: 720;
    line-height: 1.35;
}

.river-details > summary::-webkit-details-marker {
    display: none;
}

.river-details > summary::after {
    content: "+";

    position: absolute;
    top: 50%;
    right: 5px;

    transform: translateY(-50%);

    color: var(--muted);

    font-size: 18px;
    font-weight: 400;
}

.river-details[open] > summary::after {
    content: "−";
}

.river-details[open] > summary {
    border-bottom:
        1px solid rgba(16, 42, 58, .07);
}

.river-list {
    display: grid;
    gap: 8px;

    padding: 10px 0 0;
}

.river-row {
    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;

    padding: 13px;

    background:
        rgba(248, 250, 251, .72);

    border: 0;

    border-radius: 14px;
}

.river-main strong {
    display: block;

    color: var(--navy);

    font-size: 13px;
}

.river-main span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
}

.river-detail-text {
    color: var(--text);

    font-size: 10px;
    line-height: 1.5;
}

.river-measures {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 6px;
}

.river-measures > div {
    min-width: 0;

    padding: 8px;

    background: white;

    border: 0;

    border-radius: 10px;
}

.river-measures span {
    display: block;

    min-height: 22px;

    color: var(--muted);

    font-size: 8px;
    line-height: 1.2;
}

.river-measures strong {
    display: block;

    margin-top: 4px;

    color: var(--navy);

    font-size: 13px;
    line-height: 1.1;
}

.river-meta {
    padding-top: 8px;

    border-top:
        1px solid rgba(16, 42, 58, .06);
}

.river-meta small {
    display: block;

    color: var(--muted);

    font-size: 8px;
}


/* INMET — VISUAL PREMIUM */

.inmet-list {
    display: grid;
    gap: 0;
}

.inmet-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 2px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}

.inmet-row:last-child {
    border-bottom: 0;
    padding-bottom: 5px;
}

.inmet-row > div:first-child strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.inmet-row > div:first-child span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    text-transform: capitalize;
}

.inmet-summary {
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 450;
}

.inmet-temp {
    color: var(--navy);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: -.02em;
    white-space: nowrap;
}

@media (max-width: 619px) {
    .inmet-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 16px 2px;
    }

    .inmet-temp {
        grid-column: 2;
        grid-row: 1;
    }

    .inmet-summary {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


/* FONTES — ACABAMENTO PREMIUM */

.sources-card {
    margin-top: 16px;
    padding: 20px;
    box-shadow: none;
}

.sources-card > strong {
    display: block;
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.source-item {
    display: grid;
    grid-template-columns:
        minmax(105px, .4fr)
        minmax(0, 1fr);
    align-items: baseline;
    gap: 10px 18px;
    padding: 12px 0;
    border-bottom:
        1px solid rgba(16, 42, 58, .08);
}

.source-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.source-item strong {
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.source-item span {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
    text-align: left;
}

/* AVISO DE USO */

#usage-card {
    background: var(--surface-soft);
    border: 1px solid rgba(16, 42, 58, .07);
    box-shadow: none;
}

#usage-card > strong {
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 750;
}

#usage-text.note {
    white-space: pre-line;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
}

/* FONTES EM CELULARES */

@media (max-width: 619px) {
    .sources-card {
        padding: 18px;
    }

    .source-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .source-item strong {
        font-size: 12px;
    }

    .source-item span {
        font-size: 11.5px;
    }
}


/* ICONOGRAFIA */

.ui-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.ui-icon {
    width: 16px;
    height: 16px;

    flex: 0 0 auto;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* LOCALIDADE */

.location-block label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-block label .ui-icon {
    width: 13px;
    height: 13px;

    color: var(--blue);
}


/* MÉTRICAS DO HERO */

.metric-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.metric-label .ui-icon {
    width: 14px;
    height: 14px;

    color:
        rgba(176, 224, 246, .9);
}

.hero-stat:hover .metric-label .ui-icon {
    color: white;
}


/* TÍTULOS DE SEÇÃO */

.section-kicker-icon {
    display: flex;
    align-items: center;
    gap: 7px;

    letter-spacing: .075em;
}

.section-icon {
    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--blue);

    background:
        linear-gradient(
            145deg,
            rgba(234, 244, 250, .95),
            rgba(224, 240, 248, .72)
        );

    border-radius: 8px;
}

.section-icon .ui-icon {
    width: 13px;
    height: 13px;
}


/* LEITURA MUNICIPAL */

.city-card .section-icon {
    color: #226f9a;

    background:
        linear-gradient(
            145deg,
            #eaf5fb,
            #f5fafc
        );
}


/* CHUVA */

.rain-card .section-icon {
    color: #247da9;

    background:
        linear-gradient(
            145deg,
            #e8f5fb,
            #f2f9fc
        );
}


/* RIOS */

.rivers-card .section-icon {
    color: #237697;

    background:
        linear-gradient(
            145deg,
            #e6f3f7,
            #f2f9fa
        );
}


/* PEQUENO REFINO NAS MÉTRICAS */

.hero-stat {
    transition:
        background .18s ease,
        transform .18s ease;
}

@media (hover: hover) {
    .hero-stat:hover {
        background:
            rgba(255, 255, 255, .035);
    }
}


/* MOBILE */

@media (max-width: 380px) {

    .section-icon {
        width: 23px;
        height: 23px;
    }

    .metric-label {
        gap: 5px;
    }

    .metric-label .ui-icon {
        width: 13px;
        height: 13px;
    }
}


/* RODAPÉ */

.site-footer {
    padding:
        8px
        18px
        calc(24px + env(safe-area-inset-bottom));

    color: var(--muted);
}

.site-footer-inner {
    max-width: 760px;
    margin: 0 auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 7px;

    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}

.site-footer a {
    color: var(--blue);
    text-decoration: none;
}

.site-footer-separator {
    opacity: .45;
}

/* TELAS UM POUCO MAIORES */

@media (min-width: 620px) {

    .topbar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .page {
        padding:
            24px
            20px
            58px;
    }

    .card {
        padding: 22px;
    }

    .location-block {
        padding:
            0
            2px
            10px;
    }

    .hero-card {
        padding:
            29px
            26px
            23px;
    }

    .hero-card h1 {
        font-size: 38px;
    }

    .hero-card .clima-highlight {
        font-size: 22px;
    }

    .hero-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .hero-stat {
        padding:
            17px
            14px;
    }

    .hero-stat:nth-child(odd),
    .hero-stat:nth-child(-n+2) {
        border-bottom: 0;
    }

    .hero-stat:not(:last-child) {
        border-right:
            1px solid rgba(255, 255, 255, .10);
    }

    .city-facts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .city-fact {
        min-height: 132px;
    }

    .river-row {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(100px, .5fr)
            110px;

        align-items: center;
    }
}


/* CELULARES ESTREITOS */

@media (max-width: 380px) {

    .topbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-name {
        font-size: 14px;
    }

    .snapshot {
        max-width: 115px;
        font-size: 8px;
    }

    .page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-card {
        padding:
            21px
            16px
            18px;
    }

    .hero-card h1 {
        font-size: 28px;
    }

    .hero-stat strong {
        font-size: 19px;
    }

    .rain-history {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .inmet-row {
        grid-template-columns:
            76px minmax(0, 1fr);
    }

    .inmet-temp {
        grid-column: 2;
    }

    .site-footer-separator {
        display: none;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 2px;
    }
}


/* RESUMO MULTIMODELO — CIDADAO */

.models-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 4px 0 14px;
    background: var(--surface-soft);
    border-radius: 14px;
    overflow: hidden;
}

.models-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 12px;
    padding: 15px 16px;
}

.models-summary-item + .models-summary-item {
    border-top: 1px solid var(--border);
}

.models-summary-item span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.models-summary-item strong {
    grid-column: 2;
    grid-row: 1 / 3;
    color: var(--navy);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.models-summary-item small {
    grid-column: 1;
    color: var(--muted);
    font-size: 10px;
}

.models-details {
    margin-top: 7px;
    border-top: 1px solid var(--border);
}

.models-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.models-details summary::-webkit-details-marker {
    display: none;
}

.models-details summary::after {
    content: "+";
    font-size: 19px;
    font-weight: 400;
}

.models-details[open] summary::after {
    content: "−";
}

.models-details summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.models-details .model-table-wrap {
    margin-top: 5px;
}

.models-details .model-table {
    font-size: 12px;
}

.models-details .model-table th {
    font-size: 10px;
}

@media (min-width: 620px) {
    .models-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .models-summary-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 18px 15px;
    }

    .models-summary-item + .models-summary-item {
        border-top: 0;
        border-left: 1px solid var(--border);
    }

    .models-summary-item strong {
        font-size: 19px;
    }
}
