.js-weather {
    --eu: #00c697;
    --eu-dark: #07936e;
    --ink: #121812;
    --muted: #4c524c;
    --line: #e3e8e5;
    --alert: #e21c4a;
    --sun: #f0a202;
    --rain: #2f6fdb;
    color: var(--ink);
    font-family: Roboto, sans-serif;
    font-size: 16px;
}

.js-weather h2,
.js-weather .wx-temp,
.js-weather .wx-dayname,
.js-weather .wx-aqi-num,
.js-weather .wx-cond,
.js-weather .wx-hour strong,
.js-weather .wx-hi,
.js-weather .wx-lo,
.js-weather .wx-sun strong {
    font-family: "Roboto Condensed", sans-serif;
}

.js-weather a { color: var(--eu-dark); }

.js-weather .wx-hero,
.js-weather .wx-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.js-weather .wx-hero { padding: 28px 28px 8px; }

.js-weather .wx-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.js-weather .wx-place {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}

.js-weather .wx-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #e7f8f3;
    color: var(--eu-dark);
}

.js-weather .wx-badge.is-alert { background: #fde8ed; color: var(--alert); margin-bottom: 10px; }

.js-weather .wx-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr);
    gap: 16px 28px;
    align-items: start;
    margin-bottom: 8px;
}

.js-weather .wx-lead-now {
    margin: 0;
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--ink);
}

.js-weather .wx-lead-more {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.45;
}

.js-weather .wx-outlook {
    margin-top: 16px;
    padding: 10px 14px 12px;
    border-radius: 14px;
    background: #e7f8f3;
}

.js-weather .wx-summary > .wx-lead-next { margin-top: 16px; }

.js-weather .wx-lead-next {
    display: block;
    margin: 0;
    color: var(--eu-dark);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
}

.js-weather .wx-outlook-label {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--eu-dark);
}

.js-weather .wx-summary .wx-now { margin-top: 22px; }

.js-weather .wx-today .wx-facts {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 0 18px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.js-weather .wx-today .wx-fact,
.js-weather .wx-today .wx-fact + .wx-fact {
    padding: 12px 0;
}

.js-weather .wx-now-facts {
    grid-template-columns: repeat(4, 1fr);
    gap: 0 18px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 4px;
}

.js-weather .wx-now-facts .wx-fact,
.js-weather .wx-now-facts .wx-fact + .wx-fact {
    padding: 12px 0;
}

.js-weather a.wx-fact-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.js-weather a.wx-fact-link:hover b { text-decoration: underline; }

.js-weather .wx-section { scroll-margin-top: 96px; }

.js-weather .wx-today {
    background: #f7f9f8;
    border-radius: 16px;
    padding: 14px 16px 4px;
}

.js-weather .wx-today .wx-head h2 { font-size: 1.25rem; }
.js-weather .wx-today .wx-sun strong { font-size: 1.7rem; }

.js-weather .wx-lead {
    color: var(--muted);
    margin: 0 0 8px;
    line-height: 1.45;
}

.js-weather .wx-hero-body {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 8px 28px;
    align-items: center;
    margin-top: 8px;
}

.js-weather .wx-now {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 22px;
    align-items: center;
}

.js-weather .wx-temp {
    font-size: clamp(5rem, 12vw, 7.4rem);
    line-height: .8;
    font-weight: 700;
    letter-spacing: -.04em;
}

.js-weather .wx-temp span {
    font-size: .42em;
    vertical-align: super;
    letter-spacing: 0;
}

.js-weather .wx-cond {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.js-weather .wx-feel { color: var(--muted); margin: 6px 0 0; display: flex; flex-direction: column; gap: 2px; }
.js-weather .wx-icon svg { width: 92px; height: 92px; display: block; }

.js-weather .wx-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.js-weather .wx-hero-body .wx-facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 24px;
    align-content: center;
}

.js-weather .wx-fact { padding: 16px 14px 16px 0; }
.js-weather .wx-fact + .wx-fact { padding-left: 14px; }

.js-weather .wx-fact b {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}

.js-weather .wx-fact span { font-weight: 700; }
.js-weather .wx-section { margin-top: 22px; }

.js-weather .wx-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 12px;
}

.js-weather .wx-head h2 { margin: 0; font-size: 1.55rem; font-weight: 700; }
.js-weather .wx-head p { margin: 0; color: var(--muted); font-size: 14px; }
.js-weather .wx-panel { padding: 18px; }

.js-weather .wx-hourbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.js-weather .wx-hours {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    cursor: grab;
    user-select: none;
}

.js-weather .wx-hours.is-drag { cursor: grabbing; scroll-snap-type: none; }
.js-weather .wx-hours::-webkit-scrollbar { height: 8px; }
.js-weather .wx-hours::-webkit-scrollbar-thumb { background: #d5dbd7; border-radius: 99px; }

.js-weather .wx-arrow {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.js-weather .wx-arrow svg { width: 18px; height: 18px; display: block; }
.js-weather .wx-arrow:disabled { opacity: .35; cursor: default; }

.js-weather .wx-tip {
    position: absolute;
    z-index: 4;
    transform: translate(-50%, -100%);
    background: #121812;
    color: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.35;
    pointer-events: none;
    width: max-content;
    max-width: 230px;
    box-shadow: 0 8px 24px rgba(18, 24, 18, .18);
}

.js-weather .wx-tip-top { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.js-weather .wx-tip strong { font-family: "Roboto Condensed", sans-serif; font-size: 15px; }
.js-weather .wx-tip-temp { font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.js-weather .wx-tip .wx-deg { font-style: normal; font-size: .55em; font-weight: 600; vertical-align: super; margin-left: 1px; }
.js-weather .wx-tip span { display: block; color: #d7ddd9; }
.js-weather .wx-tip span .wx-deg { color: inherit; }
.js-weather .wx-hour:focus-visible { outline: 2px solid var(--eu); outline-offset: 2px; }

.js-weather .wx-hour {
    flex: 0 0 84px;
    scroll-snap-align: start;
    border: 1px solid transparent;
    background: #f7f9f8;
    border-radius: 14px;
    text-align: center;
    padding: 10px 6px 12px;
}

.js-weather .wx-hour.is-now { border-color: var(--eu); background: #f3fbf8; }
.js-weather .wx-hour time { display: block; font-size: 13px; color: var(--muted); }
.js-weather .wx-hour strong { display: block; font-size: 1.35rem; }
.js-weather .wx-hour em { display: block; font-style: normal; font-size: 12px; color: var(--rain); font-weight: 700; }
.js-weather .wx-hour svg { width: 36px; height: 36px; margin: 6px auto; }

.js-weather .wx-table { overflow-x: auto; }
.js-weather .wx-days { width: 100%; border-collapse: collapse; }

.js-weather .wx-days th {
    text-align: left;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    padding: 0 10px 10px;
}

.js-weather .wx-days td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.js-weather .wx-days tr.is-today td { background: #f3fbf8; }

.js-weather .wx-dayname { font-size: 1.2rem; font-weight: 700; display: block; line-height: 1; }
.js-weather .wx-date { color: var(--muted); font-size: 13px; }
.js-weather .wx-daywx { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.js-weather .wx-daywx svg { width: 32px; height: 32px; flex: none; }
.js-weather .wx-hi { font-size: 1.35rem; font-weight: 700; }
.js-weather .wx-lo { color: var(--muted); font-size: 1.35rem; }

.js-weather .wx-side { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.js-weather .wx-side .wx-facts { grid-template-columns: 1fr 1fr; }

.js-weather .wx-aqi { display: flex; align-items: center; gap: 16px; }
.js-weather .wx-aqi-num { font-size: 4.2rem; line-height: .8; font-weight: 700; }
.js-weather .wx-aqi-text strong { display: block; font-size: 1.15rem; }
.js-weather .wx-pm { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.js-weather .wx-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 14px; }
.js-weather .wx-scale i { display: block; height: 7px; border-radius: 99px; background: #e6ebe8; }
.js-weather .wx-scale i.on { background: var(--aq, var(--eu)); }

.js-weather .wx-pollens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.js-weather .wx-pollen { background: #f7f9f8; border-radius: 12px; padding: 10px 12px; }
.js-weather .wx-pollen b { display: block; font-size: 13px; }
.js-weather .wx-pollen span { color: var(--muted); font-size: 13px; }

.js-weather .wx-sun { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.js-weather .wx-sun strong { font-size: 2rem; display: block; line-height: 1; }
.js-weather .wx-note { color: var(--muted); font-size: 13px; margin: 28px 0 0; }
.js-weather .wx-error { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }

@media (max-width: 860px) {
    .js-weather .wx-now-facts,
    .js-weather .wx-facts { grid-template-columns: 1fr 1fr; }
    .js-weather .wx-hero-top,
    .js-weather .wx-hero-body { grid-template-columns: 1fr; }
    .js-weather .wx-hero-body .wx-facts {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        margin-top: 8px;
        padding-top: 4px;
    }
    .js-weather .wx-side { grid-template-columns: 1fr; }
    .js-weather .wx-hide-s { display: none; }
    .js-weather .wx-hero { padding: 22px 18px 4px; }
}
