.pt-climate-year {
    --pt-climate-text: #243244;
    --pt-climate-link: #295875;
    --pt-climate-line: #dce5ec;
    --pt-climate-surface: #f2f5f7;
    --pt-climate-cool: #e5eff7;
    --pt-climate-warm: #f8e8d3;
    margin: 32px 0;
    color: var(--pt-climate-text);
}

.pt-climate-year .pt-climate-year__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 22px;
}

.pt-climate-year h2.pt-climate-year__heading {
    margin: 0;
    color: inherit;
    font-size: clamp(20px, 1.75vw, 27px);
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.pt-climate-year .pt-climate-year__unit {
    color: #637281;
    font-size: .8em;
    font-weight: 500;
    white-space: nowrap;
}

.pt-climate-year .pt-climate-year__switch {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    border-radius: 10px;
    background: #eff3f5;
}

.pt-climate-year .pt-climate-year__switch button {
    min-height: 42px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #394f5e;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.pt-climate-year .pt-climate-year__switch button[aria-pressed="true"] {
    border-color: #d4e1ed;
    background: #fff;
    color: #235374;
}

.pt-climate-year .pt-climate-year__view a {
    color: var(--pt-climate-link);
    text-decoration: underline;
    text-decoration-color: #8daabf;
    text-underline-offset: .22em;
}

.pt-climate-year :is(a, summary, button):focus-visible {
    outline: 2px solid var(--pt-climate-link);
    outline-offset: 2px;
}

.pt-climate-year [data-climate-source][hidden] {
    display: none !important;
}

.pt-climate-year .pt-climate-year__desktop {
    max-width: 100%;
    overflow-x: auto;
}

.pt-climate-year table.pt-climate-year__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.pt-climate-year .pt-climate-year__table :is(th, td) {
    padding: 9px 5px;
    border: 0;
    border-bottom: 1px solid var(--pt-climate-line);
    color: var(--pt-climate-text);
    text-align: center;
    white-space: nowrap;
}

.pt-climate-year .pt-climate-year__table thead th {
    padding-block: 13px;
    border-top: 1px solid var(--pt-climate-line);
    background: var(--pt-climate-surface);
    font-weight: 600;
}

.pt-climate-year .pt-climate-year__table th:first-child {
    width: 19%;
    padding-inline: 9px 12px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pt-climate-year .pt-climate-year__table tbody th {
    background: #fff;
    font-weight: 400;
}

.pt-climate-year .pt-climate-year__table td,
.pt-climate-year .pt-climate-year__month {
    background: var(--pt-climate-surface);
}

.pt-climate-year .pt-climate-year__view [data-temperature] {
    background: color-mix(in srgb, var(--pt-climate-warm) var(--pt-climate-warmth), var(--pt-climate-cool));
}

.pt-climate-year .pt-climate-year__screenreader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.pt-climate-year .pt-climate-year__mobile {
    display: none;
}

@media (max-width: 767px) {
    .pt-climate-year .pt-climate-year__header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .pt-climate-year .pt-climate-year__desktop {
        display: none;
    }

    .pt-climate-year .pt-climate-year__mobile {
        display: block;
        border-block-start: 1px solid var(--pt-climate-line);
    }

    .pt-climate-year .pt-climate-year__mobile details {
        border-block-end: 1px solid var(--pt-climate-line);
    }

    .pt-climate-year .pt-climate-year__mobile summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        padding: 10px 8px;
        color: var(--pt-climate-link);
        font-weight: 600;
        cursor: pointer;
        overflow-wrap: anywhere;
    }

    .pt-climate-year .pt-climate-year__mobile summary::-webkit-details-marker {
        display: none;
    }

    .pt-climate-year .pt-climate-year__mobile summary::after {
        content: "";
        flex: 0 0 8px;
        height: 8px;
        margin-right: 4px;
        border: solid currentColor;
        border-width: 0 1.5px 1.5px 0;
        transform: rotate(45deg);
    }

    .pt-climate-year .pt-climate-year__mobile details[open] summary::after {
        transform: rotate(225deg);
    }

    .pt-climate-year .pt-climate-year__months {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        margin: 0 0 8px;
    }

    .pt-climate-year .pt-climate-year__month {
        min-width: 0;
        padding: 6px 1px;
        border-radius: 4px;
        text-align: center;
        line-height: 1.35;
    }

    .pt-climate-year .pt-climate-year__month :is(a, span) {
        display: block;
    }

    .pt-climate-year .pt-climate-year__month > :first-child {
        font-size: 13px;
    }

    .pt-climate-year .pt-climate-year__temperature {
        font-size: 14px;
        font-variant-numeric: tabular-nums;
    }

    .pt-climate-year .pt-climate-year__resort-link {
        display: inline-block;
        padding: 4px 8px 12px;
        font-size: 14px;
    }
}
