.second-header #change-cities + #search-header {
    margin-left: auto;
}

.second-header #change-cities + .header-weather + #search-header {
    margin-left: 0;
}

.second-header .header-weather {
    display: flex;
    align-items: center;
    margin: 0 12px;
    min-width: 0;
}

.second-header .header-weather--placeholder {
    min-height: 40px;
    min-width: 120px;
    visibility: hidden;
}

.header-weather__link {
    display: flex;
    align-items: stretch;
    gap: 16px;
    color: inherit;
}

.header-weather__item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    font-size: 13px;
    line-height: 1.15;
    color: #424242;
    text-decoration: none;
    white-space: nowrap;
}

.header-weather__condition,
.header-weather__item svg {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.header-weather__texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.header-weather__texts--temps {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 4px;
    row-gap: 1px;
    align-items: baseline;
    justify-content: start;
}

.header-weather__temp-value {
    font-size: 13px;
    font-weight: 400;
    color: #424242;
    font-variant-numeric: tabular-nums;
}

.header-weather__temp-value--min {
    font-size: 12px;
    color: #757575;
}

.header-weather__temp-label {
    font-size: 12px;
    font-weight: 400;
    color: #757575;
}

.header-weather__item--weather,
.header-weather__item--water {
    gap: 6px;
}

.header-weather__level {
    font-size: 13px;
    font-weight: 400;
    color: #424242;
}

.header-weather__alert {
    font-size: 12px;
    font-weight: 700;
}

/* O menu mobile força height:45px em todo li; este item precisa crescer. */
.nav-mobile .menu-container .menu-sidebar li.list-header-weather,
.menu-sidebar li.list-header-weather {
    height: auto;
    min-height: 0;
    line-height: 1.2;
    padding: 10px 0 12px;
    overflow: visible;
}

.menu-sidebar .header-weather {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 16px;
    min-width: 0;
    box-sizing: border-box;
}

.menu-sidebar .header-weather--placeholder {
    min-height: 48px;
}

.menu-sidebar .header-weather__link {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
}

.menu-sidebar .header-weather__item {
    display: flex;
    align-items: center;
    min-height: 40px;
    width: auto;
    flex: 0 1 auto;
    font-size: 13px;
    line-height: 1.15;
}

.clima-page {
    margin-bottom: 48px;
}

.clima-page__hero {
    margin-bottom: 8px;
}

@media (max-width: 992px) {
    .clima-page__hero {
        margin-top: 16px;
    }
}

.clima-page__section,
.clima-page__module {
    margin-top: 20px;
}

.clima-page__module-title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 600;
}

.clima-page__subtitle {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.clima-page__weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 0;
    align-items: stretch;
}

.clima-page__weather-empty {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 16px;
    color: #fff;
}

.clima-page__sky {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 18px 16px 16px;
    overflow: hidden;
    color: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: #fff;
}

.clima-page__sky-icon {
    position: absolute;
    top: 12px;
    right: 8px;
    bottom: 12px;
    left: 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    pointer-events: none;
    z-index: 0;
}

.clima-page__sky-icon svg,
.clima-page__sky-icon img {
    display: block;
    width: 120px;
    height: 120px;
    max-width: 100%;
    max-height: 100%;
}

.clima-page__sky-caption {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 54%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.clima-page__sky-temp {
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
}

.clima-page__sky-text {
    font-size: 15px;
    opacity: 0.95;
    text-transform: capitalize;
}

.clima-page__sky-meta {
    font-size: 13px;
    line-height: 1.35;
    opacity: 0.92;
}

.clima-page__sky--clear {
    background: linear-gradient(160deg, #4fc3f7 0%, #0288d1 55%, #0277bd 100%);
}

.clima-page__sky--cloudy {
    background: linear-gradient(160deg, #90a4ae 0%, #607d8b 55%, #546e7a 100%);
}

.clima-page__sky--fog {
    background: linear-gradient(160deg, #b0bec5 0%, #78909c 100%);
}

.clima-page__sky--rain {
    background: linear-gradient(160deg, #546e7a 0%, #37474f 60%, #263238 100%);
}

.clima-page__sky--storm {
    background: linear-gradient(160deg, #455a64 0%, #263238 55%, #1a237e 100%);
}

.clima-page__sky--night-clear {
    background: linear-gradient(160deg, #1a237e 0%, #0d47a1 45%, #000051 100%);
}

.clima-page__sky--night-cloudy {
    background: linear-gradient(160deg, #37474f 0%, #263238 55%, #102027 100%);
}

.clima-page__weather-split {
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.clima-page__weather-split--today {
    grid-column: 2;
    grid-row: 1;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.clima-page__weather-split--days {
    grid-column: 2;
    grid-row: 2;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
}

.clima-page__summary {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 1px solid #e8eef5;
    border-radius: 0 0 10px 10px;
}

.clima-page__summary--empty {
    min-height: 1px;
}

.clima-page__summary-item {
    min-width: 0;
    padding: 10px;
    background: #f7f9fc;
    border: 1px solid #e8eef5;
    border-radius: 8px;
}

.clima-page__summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #757575;
}

.clima-page__summary-item strong {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
    word-break: break-word;
}

.clima-page__periods,
.clima-page__days {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.clima-page__period,
.clima-page__day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 156px;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.3;
}

.clima-page__period img,
.clima-page__day img {
    display: block;
}

.clima-page__day-temps {
    font-weight: 600;
}

.clima-page__day-rain {
    font-size: 12px;
    color: #616161;
}

.clima-page__featured {
    padding: 16px 18px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.clima-page__featured-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.clima-page__featured-head {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clima-page__featured-river {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
}

.clima-page__featured-station,
.clima-page__featured-meta {
    margin: 0;
    color: #616161;
    font-size: 13px;
    line-height: 1.35;
}

.clima-page__level-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    text-align: right;
    flex-shrink: 0;
}

.clima-page__level {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    color: #212121;
}

.clima-page__alert {
    display: inline-block;
    margin: 0;
    padding: 3px 10px;
    border: 2px solid currentColor;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.clima-page__outdated {
    margin: 12px 0;
    padding: 12px 16px;
    background: #f5f5f5;
    border-left: 4px solid #9e9e9e;
    border-radius: 0 8px 8px 0;
}

.clima-page__outdated--inline {
    margin: 8px 0 12px;
}

.clima-page__outdated p {
    margin: 4px 0 0;
}

.clima-page__chart-panel {
    margin-top: 12px;
    width: 100%;
}

.clima-page__chart-wrap {
    position: relative;
    width: 100%;
    padding-top: 48px;
    margin-top: -12px;
}

.clima-page__chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.clima-page__chart {
    display: block;
    width: 100%;
    min-width: 640px;
    height: auto;
}

.clima-page__chart-band-labels {
    position: absolute;
    left: 8px;
    top: 48px;
    bottom: 0;
    z-index: 2;
    width: 0;
    pointer-events: none;
}

.clima-page__chart-band-label {
    position: absolute;
    left: 0;
    transform: translateY(-100%);
    margin-top: -4px;
    padding: 2px 7px;
    border: 1px solid;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.clima-page__chart-axis {
    font-size: 11px;
    fill: #757575;
}

.clima-page__chart-hit {
    cursor: crosshair;
}

.clima-page__chart-tooltip {
    position: absolute;
    z-index: 3;
    min-width: 110px;
    padding: 8px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    color: #212121;
    font-size: 12px;
    line-height: 1.35;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 12px));
}

.clima-page__chart-tooltip strong {
    display: block;
    font-size: 14px;
}

.clima-page__bands {
    margin-top: 20px;
}

.clima-page__band-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.clima-page__band {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.clima-page__band-swatch {
    width: 8px;
    flex-shrink: 0;
    border-radius: 4px;
}

.clima-page__band-name {
    display: block;
    font-size: 15px;
}

.clima-page__band-meters {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #424242;
}

.clima-page__band-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: #757575;
}

.clima-page__other-stations {
    margin-top: 10px;
}

.clima-page__station-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 12px;
}

.clima-page__station-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    width: 280px;
    max-width: 100%;
    padding: 14px 14px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.clima-page__station-card-main {
    min-width: 0;
    flex: 1;
}

.clima-page__station-card-river {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.clima-page__station-card-name,
.clima-page__station-card-meta {
    margin: 3px 0 0;
    font-size: 12px;
    color: #757575;
    line-height: 1.3;
}

.clima-page__station-card-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 3px 8px;
    border: 1px solid;
    border-radius: 4px;
    background: rgba(67, 160, 71, 0.08);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.clima-page__station-card-chip--muted {
    color: #757575;
    border-color: #bdbdbd;
    background: #f5f5f5;
}

.clima-page__station-card-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.clima-page__station-card-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 6px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.clima-page__station-card-gauge {
    display: flex;
    align-items: stretch;
    gap: 3px;
    height: 54px;
}

.clima-page__station-card-gauge-bars {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    width: 10px;
    height: 100%;
}

.clima-page__station-card-gauge-bar {
    flex: 1;
    margin-top: 2px;
    border-radius: 2px;
    background: #e0e0e0;
}

.clima-page__station-card-gauge-bar.is-active {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.clima-page__station-card-gauge-ruler {
    width: 6px;
    border-right: 1px solid #bdbdbd;
    background:
        linear-gradient(to bottom, #9e9e9e 0 1px, transparent 1px) 0 0 / 100% 25%,
        linear-gradient(to bottom, #9e9e9e 0 1px, transparent 1px) 0 0 / 100% 12.5%;
}

.clima-page__credit {
    margin-top: 16px;
    font-size: 12px;
    color: #757575;
}

.clima-page__credit--weather,
.clima-page__credit--water {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.clima-page__credit-logo {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.clima-page__credit--weather img,
.clima-page__credit--water img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.clima-page__credit a,
.clima-page .faq-answer-content a {
    color: #1565c0;
    text-decoration: underline;
}

.clima-page__credit a:hover,
.clima-page .faq-answer-content a:hover {
    color: #0d47a1;
}

/* FAQ: mesmo padrão visual das categorias do guia */
.clima-page .faq-section {
    margin-top: 48px;
}

.clima-page .faq-accordion {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.clima-page .faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.clima-page .faq-question {
    width: 100%;
    text-align: left;
    background: #fff;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #424242;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.clima-page .faq-question:focus,
.clima-page .faq-question:active {
    background: #fff;
    outline: none;
}

.clima-page .faq-question:hover {
    background: #f5f5f5;
}

.clima-page .faq-question .fa {
    margin-left: 16px;
    transition: transform .2s ease;
}

.clima-page .faq-item.is-open .faq-question .fa {
    transform: rotate(180deg);
}

.clima-page .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.clima-page .faq-question-text p {
    margin: 0;
}

.clima-page .faq-answer-content {
    padding: 0 20px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #616161;
}

.clima-page .faq-answer-content p {
    margin: 0 0 10px;
}

.clima-page .faq-answer-content p:last-child {
    margin-bottom: 0;
}

.clima-page__contacts-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
    gap: 0;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.clima-page__contacts-panel--solo {
    grid-template-columns: 1fr;
}

.clima-page__contacts-national,
.clima-page__contacts-local {
    padding: 16px 18px;
}

.clima-page__contacts-local {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f7f9fc;
    border-left: 1px solid #e0e0e0;
}

.clima-page__contacts-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #757575;
}

.clima-page__contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.clima-page__contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 14px 10px;
    background: #f7f9fc;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: background-color .15s ease, border-color .15s ease;
}

.clima-page__contact-card:hover,
.clima-page__contact-card:focus {
    background: #eef4fb;
    border-color: #c5d8ef;
    outline: none;
}

.clima-page__contact-card--local {
    align-items: flex-start;
    text-align: left;
    min-height: 88px;
    padding: 16px 18px;
    background: #fff;
    border-color: #c5d8ef;
}

.clima-page__contact-card--local:hover,
.clima-page__contact-card--local:focus {
    background: #eef4fb;
}

.clima-page__contact-label {
    font-size: 13px;
    line-height: 1.3;
    color: #616161;
}

.clima-page__contact-number {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #1565c0;
    white-space: nowrap;
}

.clima-page__contact-card--local .clima-page__contact-number {
    font-size: 20px;
}

.clima-page__notice {
    margin-top: 28px;
    padding: 16px 18px;
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: 10px;
    color: #8a1f1a;
}

.clima-page__notice p {
    margin: 0 0 8px;
}

.clima-page__notice p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .clima-page__contacts-panel {
        grid-template-columns: 1fr;
    }

    .clima-page__contacts-local {
        border-left: 0;
        border-top: 1px solid #e0e0e0;
    }

    .clima-page__weather-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        row-gap: 0;
    }

    .clima-page__sky,
    .clima-page__weather-split--today,
    .clima-page__summary,
    .clima-page__weather-split--days {
        grid-column: 1;
        grid-row: auto;
    }

    .clima-page__summary {
        order: 1;
        margin-bottom: 16px;
        border-radius: 0 0 10px 10px;
    }

    .clima-page__weather-split--today {
        order: 2;
        border-bottom: none;
        border-radius: 10px 10px 0 0;
    }

    .clima-page__weather-split--days {
        order: 3;
        border-top: 1px solid #e0e0e0;
        border-radius: 0 0 10px 10px;
    }

    .clima-page__sky-caption {
        max-width: 58%;
    }
}

@media (max-width: 600px) {
    .clima-page__level {
        font-size: 32px;
    }

    .clima-page__featured {
        padding: 16px;
    }

    .clima-page__chart-wrap {
        padding-top: 52px;
    }

    .clima-page__chart {
        /* Zoom horizontal: dias espalhados; JS rola até o dia de hoje. */
        min-width: 920px;
    }

    .clima-page__periods,
    .clima-page__days {
        grid-template-columns: 1fr;
    }

    .clima-page__contacts-national,
    .clima-page__contacts-local {
        padding: 14px;
    }

    .clima-page__contact-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .clima-page__contact-card {
        align-items: center;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        min-height: 72px;
        padding: 12px 6px;
    }

    .clima-page__contact-label {
        font-size: 11px;
        line-height: 1.25;
    }

    .clima-page__contact-number {
        font-size: 18px;
    }

    .clima-page__contact-card--local {
        align-items: flex-start;
        text-align: left;
        min-height: 0;
        padding: 14px 16px;
    }

    .clima-page__contact-card--local .clima-page__contact-label {
        font-size: 13px;
    }

    .clima-page__contact-card--local .clima-page__contact-number {
        font-size: 18px;
        white-space: normal;
        word-break: break-word;
    }
}
