.destination-weather {
    margin-block: 1.5rem;
    scroll-margin-top: 7rem;
}

.destination-weather__body {
    container-type: inline-size;
    padding: clamp(.7rem, 2vw, 1.15rem);
    background: #eff5f6;
    border: 1px solid #cbd9dc;
    border-radius: 1.15rem;
}

.destination-weather__summary {
    display: grid;
    gap: 1rem;
    padding: clamp(.9rem, 3vw, 1.5rem);
    background: radial-gradient(ellipse at left top, #326879, transparent 72%), #173b50;
    color: #f6fbff;
    border-radius: .85rem;
}

.destination-weather__meta,
.destination-weather__current {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.destination-weather__meta {
    justify-content: space-between;
}

.destination-weather__meta small {
    color: #e1edf3;
}

.destination-weather__source {
    flex: none;
    padding: .1rem .6rem;
    border: 1px solid #8caebd;
    border-radius: 1rem;
    color: #fff;
    font-size: .75rem;
    text-underline-offset: .2em;
}

.destination-weather__source:hover,
.destination-weather__source:focus-visible {
    background: #f4fafb;
    color: #173b50;
}

.destination-weather__current .destination-weather__icon {
    flex: none;
    width: clamp(3.5rem, 13vw, 5.5rem);
    height: auto;
}

.destination-weather__temperature {
    display: inline-flex;
    align-items: baseline;
    gap: .25rem;
    font-size: clamp(2.4rem, 7vw, 3.6rem);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.destination-weather__temperature span {
    color: #d7e9ef;
    font-size: .44em;
}

.destination-weather__current p,
.destination-weather__body > p:only-child {
    margin: 0;
}

.destination-weather__facts {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0;
}

.destination-weather__facts > div {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .45rem;
    padding: .25rem .5rem;
    border-radius: .45rem;
    background: #ffffff14;
    font-size: .8rem;
}

.destination-weather__facts dt {
    color: #d7e9ef;
}

.destination-weather__facts dd {
    margin: 0;
    font-weight: 700;
}

@container (min-width: 41rem) {
    .destination-weather__summary {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .destination-weather__meta {
        grid-column: 1 / -1;
    }

    .destination-weather__facts {
        align-self: end;
    }
}

.destination-weather__days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
    gap: .5rem;
    margin: .65rem 0 0;
    padding: 0;
    list-style: none;
}

.destination-weather__days li {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .25rem;
    padding: .6rem .2rem;
    background: #fff;
    color: #173b50;
    border: 1px solid #d7e6e9;
    border-radius: .7rem;
    text-align: center;
}

.destination-weather__days .destination-weather__icon {
    width: 2.65rem;
    height: 2.65rem;
}

.destination-weather__day-name {
    font-size: .83rem;
    font-weight: 700;
}

.destination-weather__condition {
    color: #3e5868;
    font-size: .8rem;
}

.destination-weather__range {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .1rem .55rem;
    font-size: .75rem;
}

.destination-weather__range bdi {
    font-weight: 700;
}
