.gbw9,
.gbw9 * {
    box-sizing: border-box;
}

.gbw9 {
    --gbw9-ink: #0f172a;
    --gbw9-muted: #64748b;
    --gbw9-line: #dbe4ee;
    --gbw9-card: #fff;
    --gbw9-soft: #f6f8fb;
    --gbw9-red: #d71920;
    --gbw9-blue: #2563eb;
    width: 100%;
    max-width: 1120px;
    margin: 22px auto;
    padding: clamp(16px, 2.4vw, 26px);
    overflow: hidden;
    color: var(--gbw9-ink);
    border: 1px solid var(--gbw9-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 94% 0, rgba(249, 115, 22, .14), transparent 24%),
        linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.4;
    container-type: inline-size;
}

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

.gbw9__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--gbw9-red);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gbw9 h2 {
    margin: 0;
    color: var(--gbw9-ink);
    font-size: clamp(21px, 4cqw, 31px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.gbw9__stale {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: #fff;
    border-radius: 999px;
    background: #92400e;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.gbw9__now {
    display: grid;
    grid-template-columns: minmax(155px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    padding: 18px;
    color: #fff;
    border-radius: 17px;
    background: linear-gradient(125deg, #111827 0%, #1e293b 58%, #334155 100%);
}

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

.gbw9__condition div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gbw9__condition strong {
    font-size: 15px;
}

.gbw9__condition span:not(.gbw9__icon) {
    overflow: hidden;
    color: #cbd5e1;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gbw9__mobile-place {
    display: none;
}

.gbw9__icon {
    font-size: 34px;
    line-height: 1;
}

.gbw9__temperature {
    font-size: clamp(42px, 8cqw, 64px);
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    letter-spacing: -.07em;
    line-height: .9;
    white-space: nowrap;
}

.gbw9__temperature small {
    margin-left: 3px;
    font-size: .42em;
    letter-spacing: -.02em;
}

.gbw9__now-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.gbw9__now-meta div {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    background: rgba(255, 255, 255, .07);
}

.gbw9__now-meta dt {
    margin: 0;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.gbw9__now-meta dd {
    margin: 1px 0 0;
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
}

.gbw9__day {
    margin-top: 9px;
    padding: 13px;
    border: 1px solid var(--gbw9-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, .86);
}

.gbw9__day-summary {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
}

.gbw9__day-summary > div:first-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gbw9__day-label {
    color: var(--gbw9-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.gbw9__day-summary strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gbw9__range {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 23px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.gbw9__range .max {
    color: #dc2626;
}

.gbw9__range .min {
    color: var(--gbw9-blue);
    font-size: .8em;
}

.gbw9__rain {
    padding: 6px 9px;
    color: #075985;
    border-radius: 999px;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.gbw9__hours {
    display: grid;
    grid-template-columns: repeat(8, minmax(58px, 1fr));
    gap: 7px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gbw9__hour {
    display: flex;
    min-width: 58px;
    padding: 8px 5px;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    border-radius: 10px;
    background: var(--gbw9-soft);
    text-align: center;
}

.gbw9__hour time,
.gbw9__hour small {
    color: var(--gbw9-muted);
    font-size: 10px;
    font-weight: 750;
}

.gbw9__hour strong {
    font-size: 15px;
}

.gbw9__chart-block {
    margin-top: 13px;
    padding: 13px;
    border: 1px solid var(--gbw9-line);
    border-radius: 15px;
    background: #fff;
}

.gbw9__section-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.gbw9__section-title strong {
    font-size: 14px;
}

.gbw9__section-title span {
    color: var(--gbw9-muted);
    font-size: 11px;
}

.gbw9__chart {
    width: 100%;
    min-height: 220px;
    overflow: hidden;
}

.gbw9__chart svg {
    display: block;
    width: 100%;
    height: 220px;
    overflow: visible;
}

.gbw9__chart text {
    fill: var(--gbw9-muted);
    font-family: inherit;
    font-size: 10px;
}

.gbw9__chart .gbw9-grid {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.gbw9__chart .gbw9-area {
    fill: url("#gbw9-area-gradient");
}

.gbw9__chart .gbw9-line {
    fill: none;
    stroke: var(--gbw9-red);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.gbw9__chart .gbw9-now-line {
    stroke: #0f172a;
    stroke-dasharray: 4 4;
    stroke-width: 1.5;
}

.gbw9__chart .gbw9-point {
    fill: #fff;
    stroke: var(--gbw9-red);
    stroke-width: 2;
}

.gbw9__chart .gbw9-point--now {
    fill: #0f172a;
    stroke: #fff;
    stroke-width: 3;
}

.gbw9__legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 5px;
    color: var(--gbw9-muted);
    font-size: 10px;
    font-weight: 750;
}

.gbw9__legend span::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: #94a3b8;
    content: "";
}

.gbw9__legend .is-now::before {
    background: #0f172a;
}

.gbw9__legend .is-future::before {
    background: var(--gbw9-red);
}

.gbw9__credit {
    margin-top: 10px;
    color: var(--gbw9-muted);
    font-size: 10.5px;
    text-align: right;
}

.gbw9--banner {
    display: grid;
    grid-template-columns: minmax(180px, .75fr) minmax(300px, 1.2fr) minmax(190px, .8fr);
    align-items: center;
    gap: 12px 18px;
    padding: 16px 20px;
}

.gbw9--banner .gbw9__head,
.gbw9--banner .gbw9__now,
.gbw9--banner .gbw9__day {
    margin: 0;
}

.gbw9--banner .gbw9__head {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.gbw9--banner .gbw9__now {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(120px, 1fr) auto;
}

.gbw9--banner .gbw9__now-meta {
    display: none;
}

.gbw9--banner .gbw9__day {
    grid-column: 3;
}

.gbw9--banner .gbw9__credit {
    grid-column: 1 / -1;
}

.gbw9--banner.gbw9--compact.gbw9--no-chart h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gbw9--banner.gbw9--compact.gbw9--no-chart .gbw9__day-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.gbw9--banner.gbw9--compact.gbw9--no-chart .gbw9__rain {
    display: none;
}

.gbw9--banner.gbw9--today,
.gbw9--banner.gbw9--tomorrow,
.gbw9--banner.gbw9--full,
.gbw9--banner.gbw9--has-chart:not(.gbw9--height-slim) {
    display: block;
    max-width: 920px;
}

.gbw9--banner.gbw9--today .gbw9__head,
.gbw9--banner.gbw9--tomorrow .gbw9__head,
.gbw9--banner.gbw9--full .gbw9__head,
.gbw9--banner.gbw9--has-chart:not(.gbw9--height-slim) .gbw9__head {
    margin-bottom: 14px;
}

.gbw9--banner.gbw9--today .gbw9__now,
.gbw9--banner.gbw9--tomorrow .gbw9__now,
.gbw9--banner.gbw9--full .gbw9__now,
.gbw9--banner.gbw9--has-chart:not(.gbw9--height-slim) .gbw9__now {
    margin-bottom: 10px;
}

.gbw9--banner.gbw9--today .gbw9__day,
.gbw9--banner.gbw9--tomorrow .gbw9__day,
.gbw9--banner.gbw9--full .gbw9__day,
.gbw9--banner.gbw9--has-chart:not(.gbw9--height-slim) .gbw9__day {
    margin: 9px 0 0;
}

.gbw9--banner.gbw9--today .gbw9__chart-block,
.gbw9--banner.gbw9--tomorrow .gbw9__chart-block,
.gbw9--banner.gbw9--full .gbw9__chart-block,
.gbw9--banner.gbw9--has-chart:not(.gbw9--height-slim) .gbw9__chart-block {
    width: 100%;
}

.gbw9--minimal {
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.gbw9--minimal .gbw9__head {
    margin-bottom: 10px;
}

.gbw9--minimal .gbw9__eyebrow,
.gbw9--minimal .gbw9__credit {
    display: none;
}

.gbw9--minimal .gbw9__now {
    grid-template-columns: minmax(100px, 1fr) auto;
    padding: 13px;
}

.gbw9--minimal .gbw9__now-meta {
    display: none;
}

.gbw9--minimal .gbw9__day-summary {
    grid-template-columns: minmax(100px, 1fr) auto;
}

.gbw9--minimal .gbw9__rain {
    display: none;
}

.gbw9--height-slim {
    display: flex;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    padding: 9px 12px;
    align-items: stretch;
    gap: 9px;
    overflow: hidden;
    border-radius: 14px;
}

.gbw9--height-slim .gbw9__head,
.gbw9--height-slim .gbw9__now,
.gbw9--height-slim .gbw9__day {
    min-width: 0;
    height: 76px;
    margin: 0;
}

.gbw9--banner.gbw9--height-slim .gbw9__head,
.gbw9--banner.gbw9--height-slim .gbw9__now,
.gbw9--banner.gbw9--height-slim .gbw9__day {
    grid-column: auto;
    grid-row: auto;
}

.gbw9--height-slim .gbw9__head {
    display: flex;
    flex: .9 1 0;
    align-items: center;
}

.gbw9--height-slim .gbw9__now {
    flex: 1.25 1 0;
}

.gbw9--height-slim .gbw9__day {
    flex: .8 1 0;
}

.gbw9--height-slim .gbw9__eyebrow,
.gbw9--height-slim .gbw9__stale,
.gbw9--height-slim .gbw9__now-meta,
.gbw9--height-slim .gbw9__hours,
.gbw9--height-slim .gbw9__chart-block,
.gbw9--height-slim .gbw9__credit {
    display: none;
}

.gbw9--height-slim h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(15px, 2.1cqw, 20px);
    line-height: 1.08;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gbw9--height-slim .gbw9__now {
    grid-template-columns: minmax(90px, 1fr) auto;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 12px;
}

.gbw9--height-slim .gbw9__icon {
    font-size: 25px;
}

.gbw9--height-slim .gbw9__condition {
    gap: 7px;
}

.gbw9--height-slim .gbw9__condition strong {
    font-size: 13px;
}

.gbw9--height-slim .gbw9__condition span:not(.gbw9__icon) {
    font-size: 11px;
}

.gbw9--height-slim .gbw9__temperature {
    font-size: clamp(31px, 4.5cqw, 45px);
}

.gbw9--height-slim .gbw9__day {
    display: flex;
    padding: 9px 10px;
    align-items: center;
    border-radius: 12px;
}

.gbw9--height-slim .gbw9__day-summary {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
}

.gbw9--height-slim .gbw9__day-summary > div:first-child {
    display: block;
}

.gbw9--height-slim .gbw9__day-label {
    display: block;
}

.gbw9--height-slim .gbw9__day-summary strong {
    display: block;
    font-size: 12px;
}

.gbw9--height-slim .gbw9__range {
    gap: 6px;
    font-size: 18px;
}

.gbw9--height-slim .gbw9__rain {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.gbw9--height-compact {
    display: block;
    max-height: 170px;
    padding: 12px 14px;
    overflow: hidden;
}

.gbw9--height-compact .gbw9__head {
    margin-bottom: 8px;
}

.gbw9--height-compact .gbw9__eyebrow,
.gbw9--height-compact .gbw9__now-meta,
.gbw9--height-compact .gbw9__hours,
.gbw9--height-compact .gbw9__chart-block,
.gbw9--height-compact .gbw9__credit {
    display: none;
}

.gbw9--height-compact h2 {
    font-size: clamp(18px, 3cqw, 24px);
}

.gbw9--height-compact .gbw9__now {
    grid-template-columns: minmax(120px, 1fr) auto;
    margin-bottom: 7px;
    padding: 10px 12px;
}

.gbw9--height-compact .gbw9__temperature {
    font-size: clamp(34px, 5cqw, 46px);
}

.gbw9--height-compact .gbw9__day {
    display: inline-block;
    width: calc(50% - 5px);
    margin: 0 6px 0 0;
    padding: 8px 10px;
    vertical-align: top;
}

.gbw9--height-compact .gbw9__day + .gbw9__day {
    margin-right: 0;
}

.gbw9--height-compact .gbw9__day-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.gbw9--height-compact .gbw9__rain {
    display: none;
}

.gbw9--height-custom {
    max-height: var(--gbw9-custom-height, 240px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.gbw9-placement--top {
    width: min(1120px, calc(100% - 24px));
    margin-inline: auto;
}

.gbw9-error {
    max-width: 1120px;
    margin: 16px auto;
    padding: 14px;
    color: #7f1d1d;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    font: 650 14px/1.4 system-ui, sans-serif;
}

@container (max-width: 650px) {
    .gbw9--height-slim .gbw9__head {
        display: none;
    }

    .gbw9--height-slim .gbw9__now {
        flex: 1 1 100%;
        width: 100%;
    }

    .gbw9--height-slim .gbw9__day {
        display: none;
    }

    .gbw9--height-slim .gbw9__mobile-place {
        display: block;
        max-width: 150px;
        overflow: hidden;
        color: #fff;
        font-size: 12px;
        font-weight: 850;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gbw9--height-slim .gbw9__condition > div {
        display: grid;
        grid-template-columns: auto auto;
        column-gap: 7px;
        align-items: baseline;
    }

    .gbw9--height-slim .gbw9__mobile-place {
        grid-column: 1 / -1;
    }

    .gbw9--height-slim .gbw9__condition-label {
        max-width: 92px;
    }

    .gbw9--height-compact {
        max-height: 170px;
    }

    .gbw9--height-compact .gbw9__day {
        display: none;
    }

    .gbw9__now {
        grid-template-columns: minmax(120px, 1fr) auto;
    }

    .gbw9__now-meta {
        grid-column: 1 / -1;
    }

    .gbw9__hours {
        grid-template-columns: repeat(8, 64px);
    }

    .gbw9__day-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .gbw9__rain {
        grid-column: 1 / -1;
        justify-self: start;
        max-width: 100%;
    }
}

@container (max-width: 390px) {
    .gbw9--height-slim .gbw9__now {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .gbw9--height-slim .gbw9__mobile-place {
        max-width: 135px;
    }

    .gbw9--height-slim .gbw9__condition-label {
        display: none;
    }

    .gbw9__day {
        padding: 11px;
    }

    .gbw9__day-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .gbw9__day-summary strong {
        font-size: 14px;
    }

    .gbw9__range {
        gap: 7px;
        font-size: 21px;
    }

    .gbw9__rain {
        display: inline-flex;
        width: auto;
        padding: 5px 8px;
    }

    .gbw9__chart-block {
        padding: 11px;
    }

    .gbw9__chart,
    .gbw9__chart svg {
        min-height: 190px;
        height: 190px;
    }

    .gbw9__section-title {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 900px) {
    .gbw9--banner:not(.gbw9--height-slim) {
        display: block;
    }

    .gbw9--banner:not(.gbw9--height-slim) .gbw9__head,
    .gbw9--banner:not(.gbw9--height-slim) .gbw9__now,
    .gbw9--banner:not(.gbw9--height-slim) .gbw9__day {
        margin-bottom: 10px;
    }
}

@media (max-width: 680px) {
    .gbw9 {
        margin: 15px auto;
        padding: 13px;
        border-radius: 17px;
    }

    .gbw9--height-slim {
        margin: 15px auto;
        padding: 9px 12px;
        border-radius: 14px;
    }

    .gbw9__head {
        margin-bottom: 11px;
    }

    .gbw9__now {
        grid-template-columns: minmax(115px, 1fr) auto;
        gap: 12px;
        padding: 14px;
    }

    .gbw9__now-meta {
        grid-column: 1 / -1;
    }

    .gbw9__day-summary {
        grid-template-columns: minmax(110px, 1fr) auto;
        gap: 9px;
    }

    .gbw9__rain {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .gbw9__hours {
        grid-template-columns: repeat(8, 62px);
    }

    .gbw9__section-title {
        flex-direction: column;
        gap: 1px;
    }

    .gbw9__chart,
    .gbw9__chart svg {
        min-height: 190px;
        height: 190px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .gbw9 *,
    .gbw9 *::before,
    .gbw9 *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
