.cg-weather-widget {
    --weather-blue: #0849a2;
    --weather-navy: #0c254f;
    --weather-sky: #d6e9fe;
    --weather-pale: #f2f8ff;
    --weather-line: rgba(8, 73, 162, 0.18);
    --weather-muted: #526783;
    padding: clamp(3.75rem, 6vw, 6.5rem) 0;
    overflow: clip;
    color: var(--weather-navy);
    background: #fff;
}

.cg-weather-widget__top {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(24rem, 0.58fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.cg-weather-widget__intro h2 {
    max-width: 13ch;
    margin: 0;
    color: var(--weather-blue);
}

.cg-weather-widget__intro > p:last-child {
    max-width: 44rem;
    margin: 1.2rem 0 0;
    color: var(--weather-muted);
    font-size: clamp(1rem, 0.96rem + 0.12vw, 1.08rem) !important;
    line-height: 1.7 !important;
}

.cg-weather-now {
    display: grid;
    align-content: start;
    min-width: 0;
    color: #fff;
    background: var(--weather-blue);
}

.cg-weather-now__primary {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.8rem);
    padding: clamp(1.35rem, 2.4vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.cg-weather-icon {
    flex: 0 0 auto;
    color: var(--weather-sky);
    font-family: Georgia, serif;
    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 0.8;
}

.cg-weather-now__primary strong {
    display: block;
    color: #fff;
    font-family: var(--cg-font-display);
    font-size: clamp(4rem, 7vw, 6.8rem);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.07em;
}

.cg-weather-now__primary p {
    margin: 0.8rem 0 0;
    color: #fff;
    font-size: 0.92rem !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

.cg-weather-now__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.cg-weather-now__facts div {
    padding: 0.9rem 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cg-weather-now__facts div:nth-child(2n) {
    border-right: 0;
}

.cg-weather-now__facts dt,
.cg-weather-now__facts dd {
    margin: 0;
}

.cg-weather-now__facts dt {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cg-weather-now__facts dd {
    margin-top: 0.22rem;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 850;
}

.cg-weather-updated {
    margin: 0;
    padding: 0.75rem 1.1rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.73rem !important;
    font-weight: 650 !important;
}

.cg-weather-unavailable {
    align-self: stretch;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: #fff;
    background: var(--weather-blue);
}

.cg-weather-unavailable strong {
    color: #fff;
    font-family: var(--cg-font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
}

.cg-weather-unavailable p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.86);
}

.cg-weather-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid var(--weather-line);
    border-left: 1px solid var(--weather-line);
}

.cg-weather-day {
    min-width: 0;
    padding: 1rem;
    border-right: 1px solid var(--weather-line);
    border-bottom: 1px solid var(--weather-line);
    background: #fff;
}

.cg-weather-day:nth-child(-n + 2) {
    background: var(--weather-pale);
}

.cg-weather-day header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.cg-weather-day header strong {
    color: var(--weather-blue);
    font-size: 0.86rem;
}

.cg-weather-day time {
    color: var(--weather-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.cg-weather-day__icon {
    display: block;
    min-height: 3.3rem;
    margin-top: 1rem;
    color: var(--weather-blue);
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.cg-weather-day__condition {
    min-height: 2.7em;
    margin: 0.35rem 0 0;
    color: var(--weather-muted);
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.cg-weather-day__temperature {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0.75rem 0 0;
}

.cg-weather-day__temperature strong {
    color: var(--weather-navy);
    font-family: var(--cg-font-display);
    font-size: 1.85rem;
    font-weight: 400;
}

.cg-weather-day__temperature span {
    color: var(--weather-muted);
    font-weight: 750;
}

.cg-weather-day dl {
    display: grid;
    gap: 0.35rem;
    margin: 0.7rem 0 0;
    padding-top: 0.7rem;
    border-top: 1px solid var(--weather-line);
}

.cg-weather-day dl div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.cg-weather-day dt,
.cg-weather-day dd {
    margin: 0;
    color: var(--weather-muted);
    font-size: 0.68rem;
}

.cg-weather-day dd {
    color: var(--weather-navy);
    font-weight: 800;
}

.cg-weather-source {
    max-width: 70rem;
    margin: 1rem 0 0;
    color: var(--weather-muted);
    font-size: 0.74rem !important;
    line-height: 1.55 !important;
}

.cg-page-builder--weather .cg-builder-text-image__copy h2,
.cg-page-builder--weather .cg-builder-faq h2 {
    color: var(--cg-color-blue, #0849a2);
}

@media (max-width: 74rem) {
    .cg-weather-days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 62rem) {
    .cg-weather-widget__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .cg-weather-widget__intro h2 {
        max-width: 18ch;
    }

    .cg-weather-now,
    .cg-weather-unavailable {
        max-width: 42rem;
    }
}

@media (max-width: 42rem) {
    .cg-weather-widget {
        padding: 3.25rem 0;
    }

    .cg-weather-widget__top {
        gap: 2rem;
    }

    .cg-weather-now__primary {
        align-items: flex-end;
    }

    .cg-weather-icon {
        font-size: 3.8rem;
    }

    .cg-weather-now__primary strong {
        font-size: clamp(4rem, 20vw, 5.8rem);
    }

    .cg-weather-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cg-weather-day {
        padding: 0.9rem;
    }
}

@media (max-width: 24rem) {
    .cg-weather-days,
    .cg-weather-now__facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .cg-weather-now__facts div {
        border-right: 0;
    }
}
