.weather-page {
  --weather-navy: #123b46;
  --weather-navy-deep: #0b2b34;
  --weather-sky: #4a9fb4;
  --weather-sky-soft: #dff0f3;
  --weather-sun: #f4cd67;
  --weather-rain: #327b90;
  --weather-cloud: #e8eeef;
  --weather-danger: #a94e3b;
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 4% 8%, rgba(74, 159, 180, 0.17), transparent 29rem),
    radial-gradient(circle at 96% 43%, rgba(244, 205, 103, 0.19), transparent 28rem),
    var(--puszek-paper);
  color: var(--puszek-ink);
  font-family: var(--puszek-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.weather-page *,
.weather-page *::before,
.weather-page *::after { box-sizing: border-box; }

.weather-main {
  width: min(calc(100% - 32px), 1460px);
  margin: 0 auto;
  padding: 24px 0 80px;
}

.weather-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(74, 159, 180, 0.25), transparent 54%),
    var(--weather-navy-deep);
  color: #fff;
  box-shadow: var(--puszek-shadow);
}
.weather-hero.is-search-open { z-index: 10; overflow: visible; }

.weather-hero::before {
  content: "";
  width: 330px;
  height: 330px;
  position: absolute;
  right: -80px;
  top: -155px;
  border: 62px solid rgba(244, 205, 103, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.weather-hero::after {
  content: "";
  width: 240px;
  height: 80px;
  position: absolute;
  right: 18%;
  bottom: -42px;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.weather-hero__copy { position: relative; z-index: 1; }

.weather-eyebrow {
  margin: 0 0 10px;
  color: var(--weather-sun);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.weather-hero h1 {
  max-width: 870px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 850;
  letter-spacing: -0.058em;
  line-height: 0.96;
}

.weather-hero__lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
}

.weather-search {
  max-width: 620px;
  margin-top: 14px;
}
.weather-location-picker { max-width: 620px; margin-top: 18px; }
.weather-location-picker summary { width: fit-content; padding: 0; color: var(--weather-sun); cursor: pointer; font-size: 13px; font-weight: 850; list-style: none; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.weather-location-picker summary::-webkit-details-marker { display: none; }
.weather-location-picker summary::after { content: " +"; text-decoration: none; }
.weather-location-picker[open] summary::after { content: " −"; }
.weather-location-picker summary:focus-visible { outline: 3px solid rgba(244, 205, 103, 0.28); outline-offset: 4px; }

.weather-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  position: relative;
}

.weather-search__actions { display: grid; gap: 7px; }

.weather-search input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.weather-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.weather-search input:focus {
  border-color: rgba(244, 205, 103, 0.85);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(244, 205, 103, 0.12);
}

.weather-search__submit,
.weather-search__locate,
.weather-search__set-default,
.weather-install,
.weather-refresh,
.weather-error__retry,
.weather-days-navigation__button,
.weather-preset,
.weather-suggestion {
  font: inherit;
  cursor: pointer;
}

.weather-search__submit {
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--weather-sun);
  color: var(--weather-navy-deep);
  font-weight: 850;
  transition: transform 0.16s ease, background 0.16s ease;
}

.weather-search__submit:hover { transform: translateY(-2px); background: #ffda78; }
.weather-search__locate {
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(244, 205, 103, 0.72);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--weather-sun);
  font-size: 13px;
  font-weight: 800;
}
.weather-search__locate:hover, .weather-search__locate:focus-visible { border-color: var(--weather-sun); background: rgba(244, 205, 103, 0.18); color: #fff; outline: 3px solid rgba(244, 205, 103, 0.22); outline-offset: 2px; }
.weather-search__locate:disabled { cursor: wait; opacity: 0.65; }
.weather-search__set-default {
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.weather-search__set-default[hidden] { display: none; }
.weather-search__set-default:hover { transform: translateY(-1px); border-color: rgba(244, 205, 103, 0.65); background: rgba(244, 205, 103, 0.13); color: var(--weather-sun); }

.weather-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 7px;
  list-style: none;
  border: 1px solid rgba(24, 52, 45, 0.12);
  border-radius: 16px;
  background: #fffdf8;
  color: var(--puszek-ink);
  box-shadow: 0 22px 55px rgba(4, 28, 34, 0.3);
}

.weather-suggestions[hidden] { display: none; }
.weather-suggestions li + li { border-top: 1px solid var(--puszek-line); }

.weather-suggestion {
  width: 100%;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.weather-suggestion:hover,
.weather-suggestion[aria-selected="true"],
.weather-suggestion:focus-visible { background: #edf4f3; outline: none; }
.weather-suggestion strong { font-size: 14px; }
.weather-suggestion small { color: var(--puszek-muted); font-size: 12px; }

.weather-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.weather-preset {
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.77);
  font-size: 12px;
  font-weight: 750;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.weather-preset:hover,
.weather-preset:focus-visible,
.weather-preset[aria-pressed="true"] {
  border-color: rgba(244, 205, 103, 0.55);
  outline: none;
  background: rgba(244, 205, 103, 0.13);
  color: var(--weather-sun);
}

.weather-now {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(150px, 0.7fr) minmax(180px, 1fr) minmax(230px, 1.2fr);
  align-items: center;
  gap: 8px clamp(16px, 2.4vw, 32px);
  margin: 0 auto 12px;
  padding: 16px clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(74, 159, 180, 0.22), transparent 54%), var(--weather-navy-deep);
  backdrop-filter: blur(15px);
}

.weather-hero__now-label {
  grid-column: 1;
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.weather-hero__now-main {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
}

.weather-hero__icon { font-size: 55px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.14)); }
.weather-hero__icon.is-moon { color: #cde6f4; font-family: "Segoe UI Symbol", sans-serif; text-shadow: 0 0 16px rgba(180, 220, 241, 0.42); }
.weather-hero__temperature { color: #fff; font-size: clamp(46px, 5vw, 68px); font-weight: 820; letter-spacing: -0.07em; line-height: 1; }
.weather-hero__condition { grid-column: 2; margin: 0; color: #fff; font-size: 19px; font-weight: 760; }
.weather-hero__range { grid-column: 3; margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 15.5px; line-height: 1.5; white-space: pre-line; }
.weather-hero__rain { grid-column: 4; margin: 0; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.13); color: var(--weather-sun); font-size: 15.5px; font-weight: 760; line-height: 1.5; white-space: pre-line; }
.weather-hero__rain-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.weather-hero__rain-line:first-child { font-size: 18.6px; }
.weather-hero__rain-line + .weather-hero__rain-line { display: block; margin-top: 3px; }
.weather-hero__antistorm {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(2, 21, 27, 0.2);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.4;
}
.weather-hero__antistorm[hidden] { display: none; }
.weather-hero__antistorm-source { color: rgba(255, 255, 255, 0.62); font-size: 13px; font-weight: 750; }
.weather-hero__antistorm-source a { color: var(--weather-sun); text-underline-offset: 2px; }
.weather-hero__antistorm-status { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 17px; }
.weather-hero__antistorm-warning {
  width: 24px;
  height: 24px;
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #d92f3d;
  color: #fff;
  box-shadow: 0 4px 10px rgba(122, 10, 25, 0.32);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.weather-hero__antistorm-details, .weather-hero__antistorm-meta { display: block; }
.weather-hero__antistorm-meta { color: rgba(255, 255, 255, 0.56); }
.weather-hero__antistorm[data-kind="elevated"] { border-color: rgba(244, 205, 103, 0.45); }
.weather-hero__antistorm[data-kind="high"] {
  padding: 14px;
  border: 2px solid rgba(255, 153, 164, 0.92);
  background: linear-gradient(135deg, rgba(151, 24, 43, 0.92), rgba(105, 16, 34, 0.9));
  box-shadow: 0 12px 28px rgba(83, 8, 23, 0.32);
}
.weather-hero__antistorm[data-kind="high"] .weather-hero__antistorm-source,
.weather-hero__antistorm[data-kind="high"] .weather-hero__antistorm-meta { color: rgba(255, 255, 255, 0.76); }
.weather-hero__antistorm[data-kind="high"] .weather-hero__antistorm-status { font-size: 20.5px; }
.weather-hero__antistorm[data-kind="high"] .weather-hero__antistorm-details { color: #fff; font-size: 17px; font-weight: 780; line-height: 1.5; }
.weather-hero__antistorm[data-kind="unavailable"] { opacity: 0.78; }
.weather-now.is-rain-likely {
  border-color: rgba(114, 191, 208, 0.75);
  background: linear-gradient(135deg, rgba(74, 159, 180, 0.42), rgba(11, 43, 52, 0.96)), var(--weather-navy-deep);
  box-shadow: inset 4px 0 0 var(--weather-sky), 0 14px 34px rgba(2, 21, 27, 0.22);
}
.weather-now.is-rain-likely .weather-hero__rain-line:first-child {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--weather-sky-soft);
  color: var(--weather-navy-deep);
}
.weather-now.has-antistorm-warning {
  border-color: rgba(255, 125, 141, 0.86);
  box-shadow: inset 4px 0 0 #d92f3d, 0 16px 38px rgba(67, 7, 19, 0.3);
}

.weather-rain-amount { display: inline-flex; align-items: center; min-height: 15px; color: #327b90; font-weight: 850; line-height: 1; white-space: nowrap; }
.weather-rain-amount.is-none { color: var(--puszek-muted); }
.weather-rain-amount.is-missing { color: var(--puszek-muted); }
.weather-rain-drops { display: inline-flex; align-items: center; gap: 3px; }
.weather-rain-drop {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  background: transparent;
  transform: rotate(135deg);
}
.weather-rain-drop.is-filled { background: currentColor; box-shadow: 0 1px 2px rgba(36, 95, 112, 0.16); }
.weather-rain-drop.is-empty { border-width: 3px; opacity: 0.3; box-shadow: none; }
.weather-hero__rain .weather-rain-amount { color: var(--weather-sun); }
.weather-rain-range { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; vertical-align: middle; }
.weather-rain-range__separator { color: var(--puszek-muted); }

.weather-hourly {
  margin-top: 17px;
  padding: 22px clamp(18px, 3vw, 30px);
  border: 1px solid rgba(50, 123, 144, 0.2);
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(223, 240, 243, 0.92), rgba(255, 253, 248, 0.96));
  box-shadow: 0 14px 38px rgba(30, 61, 51, 0.06);
}

.weather-hourly[hidden] { display: none; }
.weather-hourly__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.weather-hourly__eyebrow { margin: 0 0 4px; color: var(--weather-rain); font-size: 10px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.weather-hourly__title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; }
.weather-hourly h2 { margin: 0; color: var(--puszek-ink); font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; }
.weather-hourly__count { flex: 0 0 auto; padding: 6px 10px; border: 1px solid rgba(50, 123, 144, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.72); color: #245f70; font-size: 11px; font-weight: 850; line-height: 1; }
.weather-hourly__count[hidden] { display: none; }
.weather-hourly__note { max-width: 540px; margin: 0; color: var(--puszek-muted); font-size: 12px; line-height: 1.55; text-align: right; }
.weather-hourly__days { min-width: 0; }
.weather-hourly__slots {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  padding: 1px;
}

.weather-hourly__slot {
  position: relative;
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 9px;
  border: 1px solid rgba(50, 123, 144, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.weather-hourly__slot.is-rain-likely {
  border-color: rgba(50, 123, 144, 0.62);
  background: linear-gradient(180deg, rgba(223, 240, 243, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 4px 0 var(--weather-rain), 0 10px 24px rgba(36, 95, 112, 0.12);
}
.weather-hourly__slot.is-rain-likely .weather-hourly__consensus {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--weather-rain);
}
.weather-hourly__slot.is-rain-likely .weather-hourly__chance {
  color: #fff;
}
.weather-hourly__slot.is-rain-likely .weather-hourly__label { color: rgba(255, 255, 255, 0.9); }
.weather-hourly__slot.is-rain-likely .weather-hourly__consensus[data-kind="all"] .weather-hourly__chance,
.weather-hourly__slot.is-rain-likely .weather-hourly__consensus[data-kind="all"] .weather-hourly__label { color: var(--weather-sun); }
.weather-hourly__slot.is-rain-likely .weather-hourly__meter { height: 6px; background: rgba(50, 123, 144, 0.2); }

.weather-hourly__slot.starts-new-day::before {
  content: "";
  width: 4px;
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -6px;
  border-radius: 999px;
  background: #1f7184;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(31, 113, 132, 0.28);
}
.weather-hourly__slot.is-tomorrow .weather-hourly__slot-day {
  padding: 3px 6px;
  border-radius: 999px;
  background: #dff0f3;
  color: #174f5d;
}

.weather-hourly__slot-day { margin-bottom: 3px; color: var(--weather-rain); font-size: 9px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.weather-hourly__time { color: var(--puszek-ink); font-size: 13px; font-weight: 850; }
.weather-hourly__icon { margin-top: 7px; font-size: 23px; line-height: 1; }
.weather-hourly__icon.is-moon { color: #72a9c1; font-family: "Segoe UI Symbol", sans-serif; text-shadow: 0 0 10px rgba(114, 169, 193, 0.28); }
.weather-hourly__temperature { margin-top: 6px; color: var(--puszek-ink); font-size: 25px; font-weight: 880; letter-spacing: -0.045em; line-height: 1; }
.weather-hourly__consensus { display: grid; justify-items: center; gap: 3px; margin-top: 8px; }
.weather-hourly__chance { color: #245f70; font-size: 14px; font-weight: 850; letter-spacing: -0.015em; line-height: 1.15; }
.weather-hourly__label { color: var(--puszek-muted); font-size: 12px; font-weight: 750; line-height: 1.3; }
.weather-hourly__amount { min-height: 20px; margin-top: 7px; color: #245f70; font-size: 12px; font-weight: 820; line-height: 1.3; }
.weather-hourly__amount .weather-rain-amount { justify-content: center; }
.weather-hourly__meter { width: 100%; height: 4px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: rgba(50, 123, 144, 0.12); }
.weather-hourly__meter-fill { width: calc(var(--rain-chance, 0) * 1%); height: 100%; border-radius: inherit; background: var(--weather-rain); }

.weather-content { padding-top: 34px; }

.weather-content__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 18px;
}

.weather-content__head-copy { min-width: 0; }
.weather-kicker { margin: 0 0 6px; color: var(--weather-rain); font-size: 11px; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.weather-content h2 { margin: 0; color: var(--puszek-ink); font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.045em; line-height: 1; }
.weather-location-meta { margin: 11px 0 0; color: var(--puszek-muted); font-size: 13px; line-height: 1.55; }
.weather-location-meta a { color: var(--weather-rain); font-weight: 780; text-underline-offset: 3px; }

.weather-content__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.weather-refresh,
.weather-set-default,
.weather-install {
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #cbd9da;
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--puszek-ink);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.weather-set-default { border-color: rgba(50, 123, 144, 0.34); background: var(--weather-sky-soft); color: #245f70; }
.weather-install { border-color: transparent; background: var(--weather-navy); color: #fff; }
.weather-set-default[hidden], .weather-install[hidden] { display: none; }
.weather-refresh:hover,
.weather-set-default:hover { transform: translateY(-2px); border-color: var(--weather-sky); background: #fff; }
.weather-install:hover { transform: translateY(-2px); background: var(--weather-navy-deep); }
.weather-refresh:disabled { cursor: wait; opacity: 0.58; transform: none; }
.weather-location-feedback { flex-basis: 100%; margin: 0; color: #245f70; font-size: 12px; font-weight: 750; line-height: 1.4; text-align: right; }

.weather-status-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.weather-status { margin: 0; color: var(--puszek-muted); font-size: 13px; line-height: 1.5; }
.weather-status[data-kind="error"] { color: var(--weather-danger); font-weight: 750; }
.weather-status[data-kind="warning"] { color: #876018; font-weight: 750; }

.weather-source-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.weather-source-badge {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--puszek-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: #53615d;
  font-size: 12px;
  font-weight: 800;
}

.weather-source-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--source-color, #81918d); }
.weather-source-badge.is-offline { opacity: 0.55; }
.weather-source-badge.is-offline::before { background: #a9afad; }
.weather-source-badge.is-stale { border-style: dashed; color: #876018; opacity: 1; }
.weather-source-badge.is-stale::before { background: #c49332; }

.weather-data-quality {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--puszek-line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.58);
}
.weather-data-quality summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; color: var(--puszek-ink); font-size: 13px; font-weight: 820; }
.weather-data-quality summary::-webkit-details-marker { display: none; }
.weather-data-quality summary::after { content: "+"; color: var(--weather-rain); font-size: 20px; line-height: 1; }
.weather-data-quality[open] summary::after { content: "−"; }
.weather-data-quality summary small { margin-left: auto; color: var(--puszek-muted); font-size: 12px; font-weight: 650; text-align: right; }
.weather-data-quality .weather-source-badges { justify-content: flex-start; margin-top: 12px; }

.weather-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.weather-days-navigation { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.weather-days-navigation[hidden] { display: none; }
.weather-days-navigation p, .weather-day-selection { margin: 0; color: var(--puszek-muted); font-size: 12px; line-height: 1.45; }
.weather-day-selection { min-height: 18px; margin-top: 8px; font-weight: 700; }
.weather-day-selection__details { margin: 0; padding: 0; border: 0; background: transparent; color: #245f70; cursor: pointer; font: inherit; font-weight: 850; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.weather-day-selection__details:hover, .weather-day-selection__details:focus-visible { color: var(--weather-rain); outline: 2px solid rgba(74, 159, 180, 0.35); outline-offset: 3px; }
.weather-days-navigation__button {
  width: 36px;
  height: 34px;
  margin-left: 6px;
  border: 1px solid #cbd9da;
  border-radius: 10px;
  background: #fffdf8;
  color: var(--weather-rain);
  font-size: 18px;
  font-weight: 850;
}
.weather-days-navigation__button:hover, .weather-days-navigation__button:focus-visible { border-color: var(--weather-sky); outline: none; }

.weather-day {
  min-width: 0;
  min-height: 270px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--puszek-line);
  border-radius: 19px;
  background: rgba(255, 253, 248, 0.87);
  color: var(--puszek-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 61, 51, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.weather-day:hover,
.weather-day:focus-visible { transform: translateY(-4px); border-color: rgba(50, 123, 144, 0.48); outline: none; box-shadow: 0 15px 30px rgba(30, 61, 51, 0.1); }
.weather-day[aria-pressed="true"] { border-color: var(--weather-sky); background: #fff; box-shadow: 0 16px 36px rgba(30, 61, 51, 0.12); }
.weather-day[aria-pressed="true"]::after { content: ""; height: 4px; position: absolute; left: 17px; right: 17px; bottom: -1px; border-radius: 5px 5px 0 0; background: var(--weather-sky); }

.weather-day__weekday { margin: 0; color: var(--puszek-ink); font-size: 14px; font-weight: 850; text-transform: capitalize; }
.weather-day__date { margin: 4px 0 0; color: var(--puszek-muted); font-size: 12px; }
.weather-day__icon { margin: 22px 0 14px; font-size: 38px; line-height: 1; }
.weather-day__temps { display: flex; align-items: baseline; gap: 7px; }
.weather-day__high { font-size: 27px; font-weight: 850; letter-spacing: -0.055em; }
.weather-day__low { color: var(--puszek-muted); font-size: 15px; font-weight: 700; }
.weather-day__condition { min-height: 38px; margin: 8px 0 0; color: #40524d; font-size: 12px; font-weight: 720; line-height: 1.45; }
.weather-day__footer { min-width: 0; display: grid; gap: 7px; overflow: hidden; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--puszek-line); }
.weather-day__count { min-width: 0; max-width: 100%; color: var(--puszek-muted); font-size: 10px; font-weight: 780; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.weather-day__rain { min-width: 0; max-width: 100%; display: grid; gap: 2px; color: var(--weather-rain); font-size: 11px; font-weight: 800; line-height: 1.35; white-space: normal; }
.weather-day__rain > span,
.weather-day__rain > strong { min-width: 0; max-width: 100%; display: block; overflow-wrap: anywhere; white-space: normal; }
.weather-day__rain-share { font-size: 13px; line-height: 1.25; }
.weather-day .weather-agreement { width: 100%; box-sizing: border-box; }

.weather-agreement {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 8px;
  background: #edf3ef;
  color: #386250;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
  text-transform: uppercase;
}

.weather-agreement--medium { background: #f6edcf; color: #76591a; }
.weather-agreement--low { background: #f4dfda; color: #8c493a; }

.weather-details {
  margin-top: 17px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--puszek-line);
  border-radius: 25px;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 14px 38px rgba(30, 61, 51, 0.07);
}

.weather-details[hidden] { display: none; }
.weather-details__models { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--puszek-line); }
.weather-details__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--puszek-ink);
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.weather-details__toggle::-webkit-details-marker { display: none; }
.weather-details__toggle::after { content: "+"; flex: 0 0 auto; color: var(--weather-rain); font-size: 24px; line-height: 1; }
.weather-details__models[open] .weather-details__toggle::after { content: "−"; }
.weather-details__toggle small { color: var(--puszek-muted); font-size: 12px; font-weight: 700; }
.weather-details__content { margin-top: 18px; }
.weather-details__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.weather-details__eyebrow { margin: 0 0 6px; color: var(--weather-rain); font-size: 10px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.weather-details h3 { margin: 0; color: var(--puszek-ink); font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; }
.weather-details__summary { max-width: 530px; margin: 7px 0 0; color: var(--puszek-muted); font-size: 13px; line-height: 1.55; }
.weather-details__spread {
  width: min(570px, 100%);
  flex: 0 1 570px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: var(--weather-sky-soft);
  color: #245f70;
}
.weather-details__score {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #245f70;
  color: #fff;
}
.weather-details__score-label { color: rgba(255, 255, 255, 0.78); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.weather-details__score-value { font-size: 20px; letter-spacing: -0.03em; }
.weather-details__score-description { justify-self: end; }
.weather-details__score--empty { display: block; font-size: 14px; }
.weather-details__metric {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(50, 123, 144, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}
.weather-details__metric > span { display: block; margin-bottom: 9px; color: #55747c; font-size: 11px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.weather-details__metric strong { color: #245f70; font-size: 14px; line-height: 1.35; }
.weather-details__temperature { display: grid; gap: 7px; }
.weather-details__temperature > span,
.weather-details__precipitation > span { display: grid; gap: 2px; }
.weather-details__temperature small,
.weather-details__precipitation small { color: #55747c; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.weather-details__precipitation { display: grid; gap: 8px; }
.weather-details__precipitation > span + span { padding-top: 7px; border-top: 1px solid rgba(50, 123, 144, 0.13); }
.weather-details__precipitation .weather-rain-amount { margin-top: 3px; }
.weather-details__wind { display: block; margin-top: 2px; font-size: 18px !important; letter-spacing: -0.02em; }
.weather-details__rain-range { display: block; margin-bottom: 5px; }
.weather-table__precipitation { display: inline-flex; align-items: center; gap: 9px; }
.weather-table__precipitation-chance { color: #245f70; font-weight: 850; }
.weather-table-wrap { overflow-x: auto; border: 1px solid var(--puszek-line); border-radius: 16px; }
.weather-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; font-size: 13px; }
.weather-table th,
.weather-table td { padding: 14px 16px; border-bottom: 1px solid var(--puszek-line); text-align: left; vertical-align: middle; }
.weather-table tr:last-child td { border-bottom: 0; }
.weather-table thead th { background: #f1f5f2; color: #53615d; font-size: 11px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.weather-table tbody th { color: var(--puszek-ink); font-weight: 850; }
.weather-source-name { display: inline-flex; align-items: center; gap: 8px; }
.weather-source-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--source-color); }
.weather-source-meta { display: block; max-width: 230px; margin-top: 5px; color: var(--puszek-muted); font-size: 11px; font-weight: 650; line-height: 1.5; }
.weather-table__condition { display: inline-flex; align-items: center; gap: 7px; }

.weather-ensembles {
  margin-top: 17px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(66, 111, 159, 0.25);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(232, 240, 249, 0.9), rgba(255, 253, 248, 0.96));
  box-shadow: 0 14px 38px rgba(30, 61, 51, 0.06);
}
.weather-ensembles[hidden] { display: none; }
.weather-ensembles__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; }
.weather-ensembles__head::-webkit-details-marker { display: none; }
.weather-ensembles__head::after { content: "+"; flex: 0 0 auto; color: #426f9f; font-size: 25px; line-height: 1; }
.weather-ensembles[open] > .weather-ensembles__head::after { content: "−"; }
.weather-ensembles__eyebrow { display: block; margin: 0 0 6px; color: #426f9f; font-size: 10px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.weather-ensembles__title { display: block; color: var(--puszek-ink); font-size: clamp(26px, 3vw, 36px); font-weight: 850; letter-spacing: -0.035em; }
.weather-ensembles__note { max-width: 620px; margin: 0; color: var(--puszek-muted); font-size: 12px; line-height: 1.55; text-align: right; }
.weather-ensembles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.weather-ensemble-card { min-width: 0; padding: 16px; border: 1px solid var(--puszek-line); border-top: 4px solid var(--source-color); border-radius: 15px; background: rgba(255, 255, 255, 0.92); }
.weather-ensemble-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.weather-ensemble-card h4 { margin: 0; color: var(--puszek-ink); font-size: 15px; line-height: 1.3; }
.weather-ensemble-card__tag { margin: 4px 0 0; color: #426f9f; font-size: 11px; font-weight: 800; line-height: 1.45; }
.weather-ensemble-card__metrics { display: grid; gap: 8px; margin-top: 13px; }
.weather-ensemble-card__metric { padding-top: 8px; border-top: 1px solid var(--puszek-line); }
.weather-ensemble-card__metric > span { display: block; color: var(--puszek-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.045em; text-transform: uppercase; }
.weather-ensemble-card__metric strong { display: block; margin-top: 3px; color: var(--puszek-ink); font-size: 14px; line-height: 1.4; }
.weather-ensemble-card__metric small { display: block; margin-top: 5px; color: var(--puszek-muted); font-size: 11px; line-height: 1.4; }
.weather-ensemble-card__time { margin: 11px 0 0; color: var(--puszek-muted); font-size: 10px; line-height: 1.55; }

.weather-verification {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(50, 123, 144, 0.28);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(233, 246, 249, 0.78), rgba(255, 253, 248, 0.95));
  box-shadow: 0 14px 38px rgba(30, 61, 51, 0.06);
}

.weather-verification[hidden],
.weather-verification__results[hidden] { display: none; }
.weather-verification__head { display: flex; align-items: center; justify-content: space-between; gap: 22px; cursor: pointer; list-style: none; }
.weather-verification__head::-webkit-details-marker { display: none; }
.weather-verification__head::after { content: "+"; flex: 0 0 auto; color: var(--weather-rain); font-size: 25px; line-height: 1; }
.weather-verification[open] > .weather-verification__head::after { content: "−"; }
.weather-verification__eyebrow { display: block; margin: 0 0 6px; color: var(--weather-rain); font-size: 10px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.weather-verification__title { display: block; color: var(--puszek-ink); font-size: clamp(24px, 3vw, 32px); font-weight: 850; letter-spacing: -0.035em; }
.weather-verification__date { flex: 0 0 auto; margin: 0; padding: 9px 12px; border-radius: 11px; background: #fff; color: #245f70; font-size: 12px; font-weight: 800; }
.weather-verification__content { margin-top: 16px; }
.weather-verification__horizon { width: max-content; display: flex; align-items: center; gap: 9px; color: var(--puszek-muted); font-size: 12px; font-weight: 800; }
.weather-verification__horizon select { min-height: 38px; padding: 0 34px 0 11px; border: 1px solid var(--puszek-line); border-radius: 10px; background: #fff; color: var(--puszek-ink); font: inherit; }
.weather-verification__horizon[hidden] { display: none; }
.weather-verification__message { margin: 12px 0 0; color: var(--puszek-muted); font-size: 13px; line-height: 1.65; }
.weather-verification__method { margin-top: 10px; color: var(--puszek-muted); font-size: 12px; }
.weather-verification__method summary { width: max-content; color: var(--weather-rain); font-weight: 800; cursor: pointer; }
.weather-verification__method p { max-width: 760px; margin: 8px 0 0; line-height: 1.55; }
.weather-verification__overall {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(125px, 0.34fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 17px;
  background: var(--weather-navy);
  color: #fff;
}
.weather-verification__overall[hidden] { display: none; }
.weather-verification__overall-copy { align-self: center; padding: 6px 8px; }
.weather-verification__overall-eyebrow { margin: 0; color: var(--weather-sun); font-size: 10px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.weather-verification__overall h4 { margin: 4px 0 0; color: #fff; font-size: 21px; letter-spacing: -0.025em; }
.weather-verification__overall-summary { margin: 6px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 12px; line-height: 1.5; }
.weather-verification__overall-score { padding: 13px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 13px; background: rgba(255, 255, 255, 0.08); }
.weather-verification__overall-score span { display: block; color: rgba(255, 255, 255, 0.72); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.weather-verification__overall-score strong { display: block; margin-top: 5px; color: #fff; font-size: 27px; letter-spacing: -0.04em; line-height: 1; }
.weather-verification__overall-score small { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.74); font-size: 12px; line-height: 1.4; }
.weather-verification__actual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 14px; }
.weather-verification__metric { padding: 14px 16px; border: 1px solid var(--puszek-line); border-radius: 14px; background: rgba(255, 255, 255, 0.9); }
.weather-verification__metric span { display: block; color: var(--puszek-muted); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.weather-verification__metric strong { display: block; margin-top: 5px; color: var(--puszek-ink); font-size: 22px; }
.weather-verification__reference { margin: 0 0 14px; color: var(--puszek-muted); font-size: 12px; line-height: 1.55; }
.weather-verification__history { margin: 22px 0 18px; }
.weather-verification__history[hidden] { display: none; }
.weather-verification__history-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.weather-verification__history-eyebrow { margin: 0 0 4px; color: var(--weather-rain); font-size: 10px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.weather-verification__history h4 { margin: 0; color: var(--puszek-ink); font-size: 21px; letter-spacing: -0.025em; }
.weather-verification__history-note { margin: 8px 0 12px; color: var(--puszek-muted); font-size: 12px; line-height: 1.55; }
.weather-verification__legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 11px; color: var(--puszek-muted); font-size: 10px; font-weight: 800; }
.weather-verification__legend span { display: inline-flex; align-items: center; gap: 5px; }
.weather-verification__legend i { width: 10px; height: 10px; display: inline-block; border-radius: 3px; }
.weather-verification__legend i[data-tone="excellent"] { background: #bfe3d4; }
.weather-verification__legend i[data-tone="good"] { background: #cfe3e7; }
.weather-verification__legend i[data-tone="average"] { background: #f2dfa5; }
.weather-verification__legend i[data-tone="poor"] { background: #edc4ba; }
.weather-verification__heatmap-wrap { overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; scrollbar-color: rgba(50, 123, 144, 0.35) transparent; }
.weather-verification__heatmap { width: 100%; min-width: 880px; border-spacing: 5px; table-layout: fixed; }
.weather-verification__heatmap th,
.weather-verification__heatmap td { border: 0; }
.weather-verification__heatmap thead th { padding: 7px 5px; background: transparent; color: var(--puszek-muted); font-size: 10px; line-height: 1.25; text-align: center; }
.weather-verification__heatmap thead th:first-child { width: 190px; text-align: left; }
.weather-verification__heatmap thead strong,
.weather-verification__heatmap thead span,
.weather-verification__heatmap thead small { display: block; }
.weather-verification__heatmap thead strong { color: var(--puszek-ink); font-size: 12px; text-transform: capitalize; }
.weather-verification__heatmap thead small { margin-top: 3px; font-size: 9px; font-weight: 700; }
.weather-verification__heatmap tbody th { position: sticky; left: 0; z-index: 2; padding: 10px 11px; border-left: 4px solid var(--source-color, var(--weather-navy)); border-radius: 10px; background: #fffdfa; box-shadow: 7px 0 12px rgba(30, 61, 51, 0.05); text-align: left; }
.weather-verification__heatmap tbody th strong,
.weather-verification__heatmap tbody th small { display: block; }
.weather-verification__heatmap tbody th strong { color: var(--puszek-ink); font-size: 12px; line-height: 1.3; }
.weather-verification__heatmap tbody th small { margin-top: 3px; color: var(--puszek-muted); font-size: 9px; font-weight: 650; line-height: 1.35; }
.weather-verification__heatmap-cell { height: 72px; padding: 8px 6px; border-radius: 10px; background: #eef1f0; color: var(--puszek-ink); text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.weather-verification__heatmap-cell[data-tone="excellent"] { background: #bfe3d4; color: #174f3f; }
.weather-verification__heatmap-cell[data-tone="good"] { background: #cfe3e7; color: #315f68; }
.weather-verification__heatmap-cell[data-tone="average"] { background: #f2dfa5; color: #745814; }
.weather-verification__heatmap-cell[data-tone="poor"] { background: #edc4ba; color: #7e392c; }
.weather-verification__heatmap-cell:focus-visible { outline: 3px solid var(--weather-sky); outline-offset: 1px; }
.weather-verification__heatmap-cell:hover { transform: translateY(-2px); box-shadow: 0 7px 14px rgba(30, 61, 51, 0.12); }
.weather-verification__heatmap-cell strong,
.weather-verification__heatmap-cell span,
.weather-verification__heatmap-cell small { display: block; }
.weather-verification__heatmap-cell strong { font-size: 22px; font-weight: 900; line-height: 1; }
.weather-verification__heatmap-cell span { margin-top: 4px; font-size: 10px; font-weight: 820; }
.weather-verification__heatmap-cell small { margin-top: 3px; font-size: 9px; font-weight: 760; line-height: 1.2; }
.weather-verification__heatmap-cell.is-actual { background: var(--weather-navy); color: #fff; }
.weather-verification__heatmap-cell.is-actual strong { font-size: 14px; }
.weather-verification__heatmap-cell.is-actual small { color: rgba(255, 255, 255, 0.74); }
.weather-verification__heatmap-actual th { border-left-color: var(--weather-sun) !important; background: #edf4f3 !important; }
.weather-verification__table-score { font-weight: 850; }
.weather-verification__table-score[data-tone="excellent"] { color: #28755f; }
.weather-verification__table-score[data-tone="good"] { color: #4d7278; }
.weather-verification__table-score[data-tone="average"] { color: #8a681d; }
.weather-verification__table-score[data-tone="poor"] { color: #994c3c; }
.weather-verification .weather-table { min-width: 710px; }

.weather-method {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.65fr);
  gap: 20px;
  margin-top: 36px;
}

.weather-method__card {
  padding: 24px;
  border: 1px solid var(--puszek-line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.75);
}

.weather-method__card--dark { border-color: transparent; background: var(--weather-navy); color: rgba(255, 255, 255, 0.73); }
.weather-method summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--puszek-ink); cursor: pointer; list-style: none; }
.weather-method summary::-webkit-details-marker { display: none; }
.weather-method summary::after { content: "+"; flex: 0 0 auto; color: var(--weather-rain); font-size: 25px; line-height: 1; }
.weather-method__card[open] summary::after { content: "−"; }
.weather-method summary span { font-size: 19px; font-weight: 850; letter-spacing: -0.025em; }
.weather-method summary small { color: var(--puszek-muted); font-size: 12px; font-weight: 700; text-align: right; }
.weather-method__card--dark summary span { color: #fff; }
.weather-method__card--dark summary small { color: rgba(255, 255, 255, 0.55); }
.weather-method__body { margin-top: 16px; }
.weather-method p { margin: 12px 0 0; color: var(--puszek-muted); font-size: 15px; line-height: 1.7; }
.weather-method__rules { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.weather-method__rules li { padding: 12px 14px; border-radius: 12px; background: #f1f5f2; color: #40524d; font-size: 15px; line-height: 1.55; }
.weather-method__rules strong { color: var(--puszek-ink); }
.weather-method__card--dark p { color: rgba(255, 255, 255, 0.67); }
.weather-method__card--dark strong { color: var(--weather-sun); }
.weather-attribution { margin-top: 15px !important; font-size: 13px !important; }
.weather-attribution a { color: var(--weather-rain); font-weight: 800; text-underline-offset: 3px; }
.weather-method__card--dark a { color: var(--weather-sun); }

.weather-error {
  margin-top: 16px;
  padding: 26px;
  border: 1px solid #e2b7ac;
  border-radius: 20px;
  background: #fff2ee;
  color: #733b30;
}

.weather-error[hidden] { display: none; }
.weather-error h3 { margin: 0; font-size: 20px; }
.weather-error p { margin: 8px 0 0; line-height: 1.6; }
.weather-error__retry { min-height: 42px; margin: 16px 0 0; padding: 0 16px; border: 0; border-radius: 12px; background: var(--weather-danger); color: #fff; font-weight: 850; }
.weather-error__retry:hover, .weather-error__retry:focus-visible { background: #8c3d2f; outline: 3px solid rgba(169, 78, 59, 0.25); outline-offset: 2px; }

.weather-skeleton {
  min-height: 270px;
  border: 1px solid var(--puszek-line);
  border-radius: 19px;
  background: linear-gradient(100deg, rgba(255, 253, 248, 0.78) 20%, #fff 42%, rgba(255, 253, 248, 0.78) 64%);
  background-size: 260% 100%;
  animation: weather-loading 1.25s ease-in-out infinite;
}

@keyframes weather-loading { to { background-position-x: -160%; } }

@media (max-width: 1160px) {
  .weather-hero { grid-template-columns: 1fr; }
  .weather-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-hero__now-label, .weather-hero__now-main, .weather-hero__range { grid-column: 1; }
  .weather-hero__condition, .weather-hero__rain { grid-column: 2; }
  .weather-hourly__slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .weather-days { grid-auto-flow: column; grid-auto-columns: minmax(165px, 1fr); grid-template-columns: none; overflow-x: auto; padding: 2px 2px 17px; scroll-snap-type: x proximity; }
  .weather-day, .weather-skeleton { scroll-snap-align: start; }
  .weather-days-navigation { display: flex; }
}

@media (max-width: 820px) {
  .weather-hero { min-height: 0; grid-template-columns: 1fr; align-items: start; }
  .weather-now { grid-template-columns: 1fr; }
  .weather-hero__now-label, .weather-hero__now-main, .weather-hero__condition, .weather-hero__range, .weather-hero__rain { grid-column: 1; }
  .weather-hero__rain { padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.13); border-left: 0; }
  .weather-hourly__head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .weather-hourly__note { max-width: none; text-align: left; }
  .weather-hourly__slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .weather-method { grid-template-columns: 1fr; }
  .weather-details__head { flex-direction: column; gap: 14px; }
  .weather-details__spread { width: 100%; flex-basis: auto; align-self: flex-start; }
  .weather-ensembles__head { align-items: center; flex-direction: row; gap: 12px; }
  .weather-ensembles__note { display: none; }
  .weather-ensembles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-verification__head { flex-direction: column; gap: 12px; }
  .weather-verification__date { align-self: flex-start; }
  .weather-verification__history-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .weather-verification__legend { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .weather-main { width: min(calc(100% - 20px), 1460px); max-width: calc(100vw - 20px); padding-top: 10px; }
  .weather-hero { min-height: 0; padding: 22px 20px; border-radius: 24px; }
  .weather-hero h1 { font-size: clamp(34px, 11vw, 42px); }
  .weather-hero__lead { margin-top: 12px; line-height: 1.5; }
  .weather-now { grid-template-columns: minmax(124px, 0.82fr) minmax(0, 1.18fr); column-gap: 14px; row-gap: 6px; margin-bottom: 10px; padding: 16px; }
  .weather-hero__now-label, .weather-hero__now-main { grid-column: 1; }
  .weather-hero__condition { grid-column: 2; grid-row: 1; align-self: end; }
  .weather-hero__range { grid-column: 2; grid-row: 2; align-self: start; }
  .weather-hero__rain { grid-column: 1 / -1; }
  .weather-hero__icon { font-size: 52px; }
  .weather-hero__temperature { font-size: 44px; }
  .weather-hero__range, .weather-hero__rain { line-height: 1.35; }
  .weather-hero__rain { padding-top: 10px; }
  .weather-day { min-height: 267px; padding: 15px; }
  .weather-day__icon { margin: 16px 0 10px; }
  .weather-day__condition { min-height: 33px; margin-top: 6px; }
  .weather-day__footer { gap: 5px; padding-top: 10px; }
  .weather-search { margin-top: 17px; }
  .weather-hero__copy, .weather-now, .weather-search, .weather-search__row, .weather-search__actions { width: 100%; min-width: 0; }
  .weather-hourly { padding: 19px 14px 14px; border-radius: 19px; }
  .weather-hourly__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weather-search__row { grid-template-columns: 1fr; }
  .weather-search__submit { width: 100%; }
  .weather-search__locate { width: 100%; }
  .weather-suggestions { top: 62px; }
  .weather-content { padding-top: 24px; }
  .weather-content__head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 8px; }
  .weather-location-meta { margin-top: 5px; }
  .weather-content__actions { justify-content: flex-start; }
  .weather-status-row { min-height: 24px; align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 6px; }
  .weather-source-badges { justify-content: flex-start; }
  .weather-data-quality summary { align-items: flex-start; }
  .weather-data-quality summary small { max-width: 190px; }
  .weather-details { padding: 20px 14px; }
  .weather-details__toggle small, .weather-method summary small { display: none; }
  .weather-details__spread { grid-template-columns: 1fr; }
  .weather-details__score { grid-template-columns: 1fr auto; }
  .weather-details__score-description { grid-column: 1 / -1; justify-self: start; }
  .weather-details__score { font-size: 18px; }
  .weather-ensembles { padding: 20px 14px; }
  .weather-ensembles__grid { grid-template-columns: 1fr; }
  .weather-verification { padding: 20px 14px; }
  .weather-verification__overall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-verification__overall-copy { grid-column: 1 / -1; }
  .weather-verification__actual { grid-template-columns: 1fr; }
  .weather-verification__heatmap { min-width: 810px; }
  .weather-method__card { padding: 20px; }
  .weather-page .puszek-back-to-top { display: none; }
  .weather-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .weather-table { display: block; min-width: 0; background: transparent; }
  .weather-table thead { display: none; }
  .weather-table tbody { display: grid; gap: 12px; }
  .weather-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--puszek-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(30, 61, 51, 0.05);
  }
  .weather-table tbody th {
    grid-column: 1 / -1;
    padding: 13px 14px;
    border-bottom: 1px solid var(--puszek-line);
    background: #f1f5f2;
  }
  .weather-table tbody td {
    min-width: 0;
    padding: 11px 14px;
    border-bottom: 1px solid var(--puszek-line);
    color: var(--puszek-ink);
    line-height: 1.4;
  }
  .weather-table tbody td:nth-of-type(odd) { border-right: 1px solid var(--puszek-line); }
  .weather-table tbody tr:last-child td { border-bottom: 1px solid var(--puszek-line); }
  .weather-table tbody td:last-child:nth-of-type(odd) { grid-column: 1 / -1; border-right: 0; }
  .weather-table tbody td:last-child { border-bottom: 0; }
  .weather-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--puszek-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
  }
  .weather-table tbody td[colspan] { grid-column: 1 / -1; border-right: 0; }
  .weather-table tbody td[colspan]::before { display: none; }
}

@media (max-width: 410px) {
  .weather-content__actions { width: 100%; }
  .weather-verification__overall { grid-template-columns: 1fr; }
  .weather-verification__overall-copy { grid-column: auto; }
  .weather-table tbody tr { grid-template-columns: 1fr; }
  .weather-table tbody td,
  .weather-table tbody td:nth-of-type(odd) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .weather-page *, .weather-page *::before, .weather-page *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .weather-search, .weather-install, .weather-refresh, .weather-presets { display: none !important; }
  .weather-main { width: 100%; padding: 0; }
  .weather-hero { min-height: 0; grid-template-columns: 1fr 220px; border-radius: 0; box-shadow: none; }
  .weather-days { grid-template-columns: repeat(4, 1fr); }
  .weather-day { min-height: 220px; break-inside: avoid; }
}
