:root {
  color-scheme: light;
  --ink: #122033;
  --muted: #5b6b7c;
  --line: #d7e2ee;
  --sheet: #eef3f8;
  --paper: #ffffff;
  --accent: #0f7cab;
  --accent-soft: #dff2fa;
  --shadow: 0 14px 36px rgba(18, 48, 78, 0.10);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  /* clip keeps horizontal overflow cut off without breaking position:sticky */
  overflow-x: clip;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: "Plus Jakarta Sans", Manrope, "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Naskh Arabic", "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 10% -10%, rgba(18, 181, 201, 0.18), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(15, 124, 171, 0.16), transparent 50%),
    linear-gradient(180deg, #e8f1f8 0%, var(--sheet) 42%, #e9eef4 100%);
  touch-action: pan-x pan-y;
}
/* Plus Jakarta Sans Cyrillic metrics are broken on some mobile browsers. */
html[lang="ru"] body,
html[lang="uk"] body {
  font-family: Manrope, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
::selection { background: #bfe7f5; color: #122033; }
.sr, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 0.8rem;
  clip: auto;
  background: white;
  border-radius: 999px;
}

.desk {
  min-height: 100dvh;
  width: min(100%, 52rem);
  margin: 0 auto;
}
.site-topbar {
  display: none;
}
.search-dock {
  position: relative;
  z-index: 6;
  margin: 0 0 0.85rem;
  padding: 0.8rem 0.85rem 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.search-dock .tool-row { margin-top: 0.75rem; }
.search-dock .locate-error:empty { display: none; }
.search-dock-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.4rem;
}
.search-dock-bar .search {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
}
.search-dock-bar .search-field {
  flex: 1 1 auto;
  min-width: 0;
}
.search-dock-bar .search button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.dock-fav {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #122033;
  box-shadow: none;
  cursor: pointer;
}
.dock-fav__ico {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  color: inherit;
}
.dock-fav__ico svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.dock-fav__count {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dock-fav__count[hidden] { display: none; }
.dock-fav__label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  max-width: none;
  white-space: nowrap;
  text-align: center;
}
.city-tools { display: none; }
.fav-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: end center;
  padding: 0.85rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  background: rgba(18, 32, 51, 0.48);
  box-sizing: border-box;
}
.fav-modal[hidden] { display: none; }
.fav-modal-card {
  width: min(28rem, 100%);
  max-height: min(72vh, 34rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0.95rem 1rem 1.1rem;
  border-radius: 1.2rem 1.2rem 0.85rem 0.85rem;
  background: #fff;
  color: #122033;
  box-shadow: 0 -12px 40px rgba(12, 28, 48, 0.22);
  box-sizing: border-box;
}
.fav-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}
.fav-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.fav-modal-close {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: #eef3f8;
  color: #122033;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.fav-modal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.fav-modal li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding: 0.65rem 2rem 0.65rem 0.8rem;
  border-radius: 0.95rem;
  background: #f7fafc;
  border: 1px solid #dce8f2;
}
.fav-modal a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.fav-modal a > span { font-weight: 700; }
.fav-modal small { color: #5c6b7a; font-size: 0.82rem; }
.fav-modal .fav-now {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.fav-modal .fav-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7a8796;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.fav-modal .empty { margin: 0.35rem 0 0; color: #5c6b7a; }
html.is-fav-open,
html.is-fav-open body {
  overflow: hidden;
}
.hero-fav { display: block; }
.hero {
  --hero-ink: #0f2438;
  --hero-muted: rgba(15, 36, 56, 0.72);
  position: relative;
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  overflow: hidden;
  padding: 1.35rem 1.25rem 4.5rem;
  color: var(--hero-ink);
  /* inline-size only: size containment collapses height to padding and hides the forecast. */
  container-type: inline-size;
}
.hero-top, .brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-top { position: relative; z-index: 2; flex-wrap: wrap; }
.hero-side { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.55rem 0.8rem; }
.units { display: flex; gap: 0.3rem; margin: 0; }
.units a {
  text-decoration: none;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.units a.is-on { background: color-mix(in srgb, currentColor 14%, transparent); }
.country a { color: inherit; text-decoration: none; }
.country a:hover { text-decoration: underline; }
.page-country h2 a,
.page-home h2 a { color: inherit; }
.brand {
  position: relative;
  z-index: 1;
  width: max-content;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  text-decoration: none;
}
.page-home .hero { justify-content: flex-start; }
.page-home .hero-foot { margin-top: auto; }
.precip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.brand span { margin-left: 0.28rem; font-weight: 500; letter-spacing: 0; opacity: 0.8; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.8rem; }
.lang-switch a { text-decoration: none; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; padding: 0.12rem 0.55rem; font-size: 0.82rem; }
.lang-switch a.is-on { font-weight: 700; }
.tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.15rem 1.35rem;
  margin: 1.05rem 0 0.15rem;
}
.tool, .tool-lang > button {
  flex: 0 0 4.6rem;
  width: 4.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.tool-ico {
  display: grid;
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
  border: 1px solid #d5e3ef;
  box-shadow: 0 8px 18px rgba(18, 48, 78, 0.08);
  color: #241f1a;
}
.tool:hover .tool-ico, .tool-lang > button:hover .tool-ico {
  border-color: #d9c9b6;
  box-shadow: 0 10px 22px rgba(18, 48, 78, 0.12);
  transform: translateY(-1px);
}
.tool-ico svg { width: 1.72rem; height: 1.72rem; display: block; }
.tool-label {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #5c554c;
  letter-spacing: -0.02em;
}
.tool-lang { position: relative; flex: 0 0 4.6rem; width: 4.6rem; }
@media (max-width: 1100px) {
  .tool-row { gap: 0.85rem 0.7rem; }
  .tool, .tool-lang > button, .tool-lang { flex-basis: 3.9rem; width: 3.9rem; }
  .tool-ico { width: 3.25rem; height: 3.25rem; }
  .tool-ico svg { width: 1.55rem; height: 1.55rem; }
}
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: end center;
  padding: 0.85rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  background: rgba(18, 32, 51, 0.48);
  box-sizing: border-box;
}
.lang-modal[hidden] { display: none; }
.lang-modal-card {
  width: min(100%, 22rem);
  max-height: min(72vh, 28rem);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.95rem 0.95rem 0.85rem;
  border-radius: 1.25rem 1.25rem 1.1rem 1.1rem;
  background: #fff;
  color: #122033;
  box-shadow: 0 22px 55px rgba(12, 28, 48, 0.28);
  box-sizing: border-box;
}
.lang-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.lang-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.lang-modal-close {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: #eef3f8;
  color: #122033;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lang-modal-list {
  display: grid;
  gap: 0.25rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}
.lang-modal-list a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}
.lang-modal-list a.is-on,
.lang-modal-list a:hover {
  background: #e7f3fa;
}
@media (min-width: 720px) {
  .lang-modal { place-items: center; }
  .lang-modal-card {
    border-radius: 1.25rem;
    max-height: min(70vh, 30rem);
  }
}
.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
  margin: 1.3rem 0 0;
  font-size: 0.86rem;
}
.site-links a { color: var(--muted); text-decoration: none; }
.site-links a:hover { color: var(--ink); }
.legal { font-size: 1.02rem; line-height: 1.6; }
.legal h2 { margin: 1.4rem 0 0.45rem; font-size: 1.15rem; letter-spacing: -0.03em; }
.legal p, .legal ul { margin: 0.45rem 0; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--accent); }
.map-frame {
  position: relative;
  margin-top: 0.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #d5e3ef;
}
.map-frame--live {
  height: 28rem;
  background: #e8eef4;
}
.map-frame iframe,
.map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
}
.map-frame--live .map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.map-loading {
  position: absolute;
  z-index: 500;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #122033;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(18, 48, 78, 0.12);
  pointer-events: none;
}
.map-loading[hidden] { display: none; }
.w24-map-pin-wrap {
  background: transparent !important;
  border: 0 !important;
}
.w24-map-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.45rem 0.18rem 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 48, 78, 0.12);
  box-shadow: 0 4px 14px rgba(18, 48, 78, 0.12);
  color: #122033;
  font: 600 0.78rem/1.2 Manrope, "Plus Jakarta Sans", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.w24-map-pin:hover {
  background: #fff;
  border-color: rgba(15, 124, 171, 0.35);
}
.w24-map-pin.is-focus {
  border-color: #0f7cab;
  box-shadow: 0 6px 18px rgba(15, 124, 171, 0.22);
}
.w24-map-pin.is-lg {
  font-size: 0.86rem;
  padding: 0.22rem 0.5rem 0.22rem 0.3rem;
}
.w24-map-pin.is-lg .w24-map-pin__name { font-weight: 700; }
.w24-map-pin.is-sm {
  font-size: 0.68rem;
  padding: 0.12rem 0.35rem 0.12rem 0.22rem;
  gap: 0.18rem;
  opacity: 0.96;
}
.w24-map-pin.is-sm .w24-map-pin__ico {
  width: 0.95rem;
  height: 0.95rem;
}
.w24-map-pin.is-sm .w24-map-pin__ico svg {
  width: 0.88rem;
  height: 0.88rem;
}
.w24-map-pin__ico {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: #3a4a5c;
}
.w24-map-pin__ico svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}
.w24-map-pin__name { font-weight: 600; }
.w24-map-pin__temp {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.map-out { margin: 0.7rem 0 0; }
.map-out a { color: var(--accent); font-weight: 700; }
.map-countries {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin: 1.15rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.map-countries-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}
.map-countries-links {
  margin: 0;
  font-size: 0.95rem;
}
.map-countries-links a { color: var(--accent); font-weight: 700; text-decoration: none; }
.map-frame .leaflet-container {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  font: inherit;
  background: #e8eef4;
}
.map-frame .leaflet-control-attribution {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.82);
}
.map-frame .leaflet-attribution-flag {
  display: none !important;
}
.cookie-note {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(42rem, calc(100% - 1.5rem));
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.95rem 0.9rem 1.05rem;
  background: #fff;
  color: var(--ink);
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgba(18, 48, 78, 0.16);
}
.cookie-note p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.cookie-note a { color: var(--accent); }
.cookie-note button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.7rem;
  background: var(--accent);
  color: #fff;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 640px) {
  .map-frame--live { height: 20rem; }
  .map-frame iframe,
  .map-canvas { min-height: 20rem; }
  .map-frame--live .map-canvas { min-height: 0; }
  .w24-map-pin { font-size: 0.72rem; }
  .map-countries { flex-direction: column; align-items: flex-start; }
  .cookie-note { align-items: stretch; flex-direction: column; }
  .cookie-note button { align-self: flex-end; }
}
.country { margin: 0; font-size: 0.95rem; color: var(--hero-muted); }
.hero-copy { position: relative; z-index: 1; max-width: 18em; }
.h1-prefix {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hero-muted);
}
.city-name {
  display: block;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
h1 { margin: 0; font-weight: inherit; }
.subtitle, .lead, .feels { color: var(--hero-muted); }
.subtitle { margin: 0.7rem 0 0; font-size: 1.05rem; }
.lead { margin: 1rem 0 0; font-size: 1.15rem; line-height: 1.45; max-width: 28rem; }
.hero-teaser { color: inherit; text-decoration: none; display: block; }
.teaser-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin-top: 1rem;
}
.teaser-kicker { color: var(--hero-muted); font-weight: 600; text-decoration: none; min-width: 0; }
.home-city-pick {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.12rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.home-city-pick:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.pwa-modal .search-field { margin-bottom: 0.9rem; }
.pwa-modal .search-field input {
  width: 100%;
  border: 1px solid #d0dde9;
  background: #fff;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: #122033;
  font: inherit;
  font-size: 1rem;
}
.pwa-modal .suggest { color: var(--ink); }
.hero-temp {
  display: flex;
  align-items: flex-start;
  gap: 0.12em;
  margin: 0.2rem 0 0;
  font-size: clamp(6.5rem, 24vw, 10rem);
  font-weight: 500;
  line-height: 0.86;
}
.hero-digits { letter-spacing: -0.04em; }
.hero-degree { margin-top: 0.06em; font-size: 0.38em; line-height: 1; letter-spacing: 0; }
@supports (font-size: 1cqw) {
  .hero-temp { font-size: clamp(6.75rem, 22cqw, 14rem); }
}
.condition {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
}
.condition svg, .day-label svg, .hours svg { width: 1.45rem; height: 1.45rem; flex: none; }
.feels { margin: 0.35rem 0 0; font-size: 1.15rem; }
.day-phrase {
  display: block;
  margin: 0.8rem 0 0;
  max-width: 22em;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
}
.hero-alerts {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 28rem;
}
.hero-alerts li {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, #ffb020 22%, transparent);
  border: 1px solid color-mix(in srgb, #ffb020 40%, transparent);
  color: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.7rem;
  max-width: 26rem;
}
.hero-fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.hero-fact__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hero-muted);
  line-height: 1.2;
}
.hero-fact__value {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.outfit, .wind-line, .vs-yesterday, .feels { margin: 0.4rem 0 0; font-size: 1.05rem; color: var(--hero-muted); }
@media (max-width: 480px) {
  .hero-facts { grid-template-columns: 1fr; }
}
.now-kicker {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--hero-muted);
}
.tomorrow {
  display: block;
  margin: 0.35rem 0 0;
  max-width: 18em;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.day-range {
  align-self: flex-end;
  margin: 0 0 0.55em 0.2em;
  font-size: 0.16em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: var(--hero-muted);
}
.sun-times {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-width: 0;
}
.sun-times p { margin: 0; min-width: 0; }
.sun-times span { display: block; color: var(--hero-muted); font-size: 0.85rem; }
.sun-times b {
  display: block;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  white-space: nowrap;
}
.hero-foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "sun share"
    "tz tz";
  align-items: end;
  column-gap: 0.85rem;
  row-gap: 0.45rem;
  width: 100%;
  min-width: 0;
}
.sun-times { grid-area: sun; }
.hero-foot:not(:has(.tz-line)) { row-gap: 0; }
.tz-line {
  grid-area: tz;
  margin: 0;
  max-width: 36rem;
  color: var(--hero-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.share {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  grid-area: share;
  align-self: end;
  margin: 0;
  flex-shrink: 0;
}
/* When the hero column is narrow (desktop split / side rails), keep times and share from overlapping. */
@container (max-width: 34rem) {
  .hero-foot {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sun"
      "share"
      "tz";
  }
  .sun-times { gap: 1rem; }
  .sun-times b { font-size: 1.5rem; }
  .share {
    justify-content: flex-start;
    margin: 0;
  }
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
@supports (background: color-mix(in srgb, black 10%, transparent)) {
  .share-btn {
    background: color-mix(in srgb, currentColor 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 34%, transparent);
  }
}
.share-btn svg { width: 1.22rem; height: 1.22rem; display: block; }
.share-btn .copy-check { display: none; }
.share-btn:hover { transform: translateY(-1px); background: color-mix(in srgb, currentColor 22%, transparent); }
.share-btn.is-done .copy-sheets { display: none; }
.share-btn.is-done .copy-check { display: block; }
.fav-add, .fav-remove {
  border: 0;
  border-radius: 999px;
  background: #122033;
  color: #f3f8fc;
  padding: 0.48rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.fav-add:hover, .fav-remove:hover { background: #fff; color: #122033; }
.fav-add { margin-top: 0.9rem; }
.fav-add.is-on { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.favorites { margin-top: 1rem; }
.favorites h2 { margin-top: 0; }
.favorites ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.favorites li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.favorites a {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  text-decoration: none;
}
.page-home .favorites a {
  flex-direction: row;
  align-items: baseline;
  gap: 0.45rem;
}
.page-home .favorites a > span { flex: 0 1 auto; }
.page-home .favorites small { flex: 1 1 auto; min-width: 0; }
.favorites a > span,
.favorites small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.favorites small { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.fav-now[hidden] { display: none; }
.fav-now {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.28rem;
  max-width: 46%;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fav-now svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; display: block; }
.fav-now b { font-weight: 700; }
.fav-now .fav-cond {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orb, .clouds, .stars, .precip span { position: absolute; }
.orb, .clouds, .stars { pointer-events: none; }
.orb, .clouds, .stars { display: none; }
.orb {
  top: 6%;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 248, 220, 0.95) 0%, rgba(255, 206, 110, 0.45) 32%, transparent 68%);
}
.hero[data-sky="clear-day"] .orb { display: block; }
.hero[data-sky="clear-night"] .orb {
  top: 12%;
  right: 8%;
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  background: radial-gradient(circle at 38% 38%, #f8f4ea 0%, #d5e0f0 46%, transparent 72%);
  box-shadow: 0 0 48px rgba(214, 224, 245, 0.35);
}
.clouds {
  inset: 0;
  background:
    radial-gradient(ellipse 42% 24% at 18% 28%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 26% at 72% 20%, rgba(255, 255, 255, 0.38), transparent 72%),
    radial-gradient(ellipse 36% 20% at 46% 72%, rgba(255, 255, 255, 0.22), transparent 70%);
}
.hero[data-sky="cloudy-day"] .clouds, .hero[data-sky="fog"] .clouds { display: block; }
.hero[data-sky="cloudy-night"] .clouds { display: block; opacity: 0.35; }
.stars {
  top: 14%;
  left: 10%;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: white;
  box-shadow: 18px 30px 0 white, 70px 8px 0 white, 120px 46px 0 white, 40px 90px 0 white, 160px 24px 0 white, 200px 70px 0 white, 90px 120px 0 white, 240px 16px 0 white, 280px 88px 0 white, 24px 160px 0 white;
  opacity: 0.85;
}
.hero[data-sky="clear-night"] .stars { display: block; }
.precip span {
  display: none;
  top: -12%;
  width: 1.5px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  animation: fall linear infinite;
}
.hero[data-sky="rain"] .precip span, .hero[data-sky="thunder"] .precip span, .hero[data-sky="snow"] .precip span { display: block; }
.hero[data-sky="snow"] .precip span { width: 5px; height: 5px; background: white; }
@keyframes fall { from { transform: translateY(0); } to { transform: translateY(120vh); } }
@media (prefers-reduced-motion: reduce) {
  .precip span { animation: none; opacity: 0.35; }
  html { scroll-behavior: auto; }
}

.hero[data-sky="clear-day"] { background: radial-gradient(46% 42% at 86% 14%, rgba(255, 230, 150, 0.95), transparent 68%), linear-gradient(168deg, #c9ecf8 0%, #3f9fc8 55%, #7ed0de 100%); }
.hero[data-sky="clear-night"] {
  --hero-ink: #f6f3ec;
  --hero-muted: rgba(246, 243, 236, 0.74);
  background: radial-gradient(28% 28% at 78% 18%, rgba(190, 208, 235, 0.28), transparent 70%), linear-gradient(180deg, #070b16 0%, #1b2950 62%, #10182e 100%);
}
.hero[data-sky="cloudy-day"] { background: radial-gradient(48% 32% at 18% 18%, rgba(255, 255, 255, 0.55), transparent 70%), linear-gradient(180deg, #d5e0ea 0%, #93a8ba 100%); }
.hero[data-sky="cloudy-night"] {
  --hero-ink: #f4f1ea;
  --hero-muted: rgba(244, 241, 234, 0.74);
  background: linear-gradient(185deg, #151c28 0%, #3c4a5c 100%);
}
.hero[data-sky="fog"] { background: linear-gradient(180deg, #eceff2 0%, #b7c1c9 100%); }
.hero[data-sky="rain"], .hero[data-sky="thunder"] {
  --hero-ink: #f6f3ec;
  --hero-muted: rgba(246, 243, 236, 0.75);
}
.hero[data-sky="rain"] { background: linear-gradient(180deg, #1b2836 0%, #3d5368 100%); }
.hero[data-sky="snow"] { background: radial-gradient(70% 42% at 72% 0%, rgba(255, 255, 255, 0.9), transparent 62%), linear-gradient(180deg, #eef3f8 0%, #a9bfd2 100%); }
.hero[data-sky="thunder"] { background: linear-gradient(180deg, #140f1e 0%, #3a2a52 58%, #22182f 100%); }

.sheet {
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
  background: var(--paper);
  padding: 1.4rem 1.15rem 2.5rem;
  box-shadow: var(--shadow);
}
.sheet h2, .catalog h2 { margin: 1.4rem 0 0.7rem; font-size: 1.15rem; letter-spacing: -0.03em; }
.search {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-field { position: relative; z-index: 1; flex: 1 1 16rem; min-width: min(100%, 16rem); }
.search input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d0dde9;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  color: var(--ink);
}
.suggest {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(18, 48, 78, 0.14);
  max-height: 22rem;
  overflow: auto;
}
.suggest a, .suggest span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.suggest a.is-on, .suggest a:hover { background: #e7f3fa; }
.suggest small { color: var(--muted); font-size: 0.82rem; }
.suggest .is-empty { color: var(--muted); cursor: default; }
.search button, .pager a, .more a {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: #122033;
  color: #f3f8fc;
  text-decoration: none;
  cursor: pointer;
}
.search button[data-locate] { background: transparent; color: var(--ink); border: 1px solid #d9cec0; }
.locate-error { min-height: 1.2em; margin: 0.4rem 0 0; color: var(--accent); font-size: 0.92rem; }
.lead-sheet { color: var(--muted); line-height: 1.5; }
.metrics, .days, .hours, .chips, .city-list { list-style: none; margin: 0; padding: 0; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.metrics li, .days li, .city-list a {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.metrics li { padding: 0.8rem 0.9rem; }
.metrics span, .day-pop, .hour-pop, .credits, .meta-line, .updated, .crumbs { color: var(--muted); }
.metrics b {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hours { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.4rem; scroll-snap-type: x mandatory; }
.hours li {
  flex: 0 0 4.6rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.7rem 0.3rem;
  background: var(--paper);
  border-radius: 1rem;
}
.hour-temp, .day-temps b { font-weight: 600; }
.weekend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.weekend li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.weekend-name { text-transform: capitalize; color: var(--muted); font-size: 0.95rem; }
.weekend-range { font-size: clamp(1.85rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.page-home .favorites ul { display: flex; flex-direction: column; }
.days { display: flex; flex-direction: column; gap: 0.45rem; }
.days li {
  display: grid;
  grid-template-columns: 7.6rem 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
}
.day-name, .weekend-name { display: inline-flex; align-items: baseline; gap: 0.32rem; }
.day-name { text-transform: capitalize; white-space: nowrap; }
.day-num {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.days li.is-weekend,
.days li.is-weekend .day-temps b { font-weight: 700; }
.days li.is-weekend .day-num { font-weight: 500; }
.day-label { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.day-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-temps { display: flex; gap: 0.45rem; }
.climate { margin: 0.2rem 0 0; font-size: 1.05rem; line-height: 1.45; }
.climate-year { margin: 1.1rem 0 0.2rem; }
.climate-year h2 { margin-bottom: 0.35rem; }
.climate-year p { margin: 0 0 0.7rem; color: var(--muted); }
.year-temps {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
}
.year-temps li {
  flex: 0 0 4.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem;
  border-radius: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.year-temps span { color: var(--muted); font-size: 0.78rem; text-transform: capitalize; }
.year-temps b { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.03em; }
.year-temps .is-now { border-color: #122033; }
.year-temps .is-warm b { color: #0f7cab; }
.year-temps .is-cold b { color: #24557d; }
.prose { font-size: 1.05rem; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips a, .letters a {
  display: inline-flex;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
}
.chips a:hover, .letters a:hover, .city-list a:hover { border-color: #c9b8a4; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.9rem; font-size: 0.92rem; }
.crumbs a { color: var(--accent); }
.credits, .meta-line, .updated { font-size: 0.9rem; }
.credits { margin: 2.35rem 0 0; }
.credits a { color: var(--accent); }
.ad-slot { margin: 0.9rem 0; overflow: hidden; }
.rail .ad-slot,
.rail--ads .ad-slot {
  margin: 0;
  width: 100%;
}
.ad-slot--preview {
  border: 1px dashed currentColor;
  border-radius: 0.8rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
}
.hero .ad-slot { position: relative; z-index: 1; }

.pwa-install {
  position: relative;
  z-index: 3;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.12rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.pwa-install:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.pwa-slot { position: relative; display: inline-flex; z-index: 4; }
.pwa-nudge {
  /* Fixed so hero/desk overflow:hidden cannot clip the balloon on narrow screens. */
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: min(17.5rem, calc(100vw - 1.6rem));
  max-width: calc(100vw - 1.6rem);
  padding: 0.85rem 0.95rem 0.75rem;
  border-radius: 1rem;
  background: #ffffff;
  color: #122033;
  text-align: start;
  box-shadow: 0 16px 40px rgba(18, 48, 78, 0.18);
  animation: pwa-nudge-in 0.28s ease;
  box-sizing: border-box;
}
.pwa-nudge[hidden] { display: none; }
.pwa-nudge::before {
  content: "";
  position: absolute;
  top: -0.38rem;
  left: var(--nudge-arrow, calc(100% - 1.8rem));
  width: 0.75rem;
  height: 0.75rem;
  margin-left: -0.38rem;
  background: #ffffff;
  transform: rotate(45deg);
  border-radius: 0.12rem;
}
.pwa-nudge p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.pwa-nudge button {
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  background: #122033;
  color: #f3f8fc;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .pwa-nudge { animation: none; }
}
@keyframes pwa-nudge-in {
  from { opacity: 0; transform: translateY(-0.35rem); }
  to { opacity: 1; transform: none; }
}
.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(23, 32, 51, 0.48);
}
.pwa-modal[hidden] { display: none; }
.pwa-modal-card {
  width: min(100%, 22rem);
  margin-bottom: 0.5rem;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1.2rem;
  background: #ffffff;
  color: #122033;
  box-shadow: 0 18px 50px rgba(18, 48, 78, 0.20);
}
.pwa-modal-card h2 { margin: 0 0 0.45rem; font-size: 1.25rem; letter-spacing: -0.03em; }
.pwa-modal-card p { margin: 0 0 1rem; line-height: 1.45; }
.pwa-modal-card button {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #122033;
  color: #f3f8fc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (min-width: 720px) {
  .pwa-modal { place-items: center; }
  .pwa-modal-card { margin-bottom: 0; }
}
.catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.catalog-top .brand-line,
.catalog-top .units { margin: 0; }
.catalog { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.15rem 3rem; }
.catalog h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.04em; }
@media (min-width: 720px) {
  .page-widget .catalog h1,
  .page-map .catalog h1 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    max-width: 28rem;
  }
}
.brand-line { margin: 0 0 0.4rem; }
.brand-line a { font-weight: 700; text-decoration: none; letter-spacing: -0.04em; }
.country-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0.2rem; }
.country-pick label { font-size: 0.92rem; color: var(--muted); }
.country-pick select {
  flex: 1 1 16rem;
  min-width: min(100%, 16rem);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #d0dde9;
  border-radius: 999px;
  padding: 0.85rem 1rem;
}
.country-pick button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: #122033;
  color: #f3f8fc;
  cursor: pointer;
}
.letters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1rem 0; }
.letters a.is-on { background: #122033; color: #f3f8fc; border-color: #122033; }
.city-list { display: flex; flex-direction: column; gap: 0.45rem; }
.city-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
}
.city-list small { color: var(--muted); text-align: right; }
.empty { line-height: 1.5; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 1.2rem; }
.more { margin: 1.2rem 0 0; }

@media (min-width: 720px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekend { grid-template-columns: 1fr 1fr; }
  .days li { grid-template-columns: 8.2rem 1fr 3rem auto; }
}
@media (min-width: 1024px) {
  /* Main content: one vertical column between ads and favorites rails. */
  .desk {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 1.4rem;
    gap: 0.9rem;
  }
  .hero {
    height: auto;
    min-height: auto;
    overflow: visible !important;
    padding: 1.25rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
    container-type: inline-size;
    box-shadow: var(--shadow);
  }
  .desk .sun-times { gap: 1.25rem; }
  .desk .sun-times b { font-size: clamp(1.55rem, 3.5cqw, 2.2rem); }
  .sheet {
    height: auto;
    margin: 0 !important;
    overflow: visible;
    border-radius: 1.35rem;
    border: 1px solid var(--line);
    padding: 1.5rem 1.6rem 2rem;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
  }
  .hero-temp { font-size: clamp(5.4rem, 18cqw, 8.2rem); }
  .page-home .hero,
  .page-city .hero {
    gap: 0.7rem;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: 1.25rem 1.5rem 1.5rem;
  }
  .page-city .hero-foot,
  .page-home .hero-foot {
    margin-top: 0.85rem;
  }
  .page-home .hero-copy,
  .page-city .hero-copy { max-width: 36rem; }
  .page-home .city-name { font-size: clamp(1.85rem, 2.6vw, 2.45rem); }
  .page-city .city-name { font-size: clamp(1.95rem, 2.8vw, 2.55rem); }
  .page-home .day-phrase,
  .page-city .day-phrase { margin-top: 0.4rem; max-width: 30em; font-size: 1.22rem; }
  .page-home .hero-temp,
  .page-city .hero-temp { margin-top: 0.15rem; font-size: clamp(5.8rem, 20cqw, 9rem); }
  .page-home .tomorrow,
  .page-city .tomorrow { max-width: 26em; margin-top: 0.2rem; font-size: 1.25rem; }
  .page-home .condition,
  .page-city .condition { margin-top: 0.2rem; font-size: 1.3rem; }
  .page-city .hero-facts {
    max-width: 34rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-city .subtitle { margin-top: 0.35rem; }
  .page-city .fav-add { margin-top: 0.65rem; }
  .page-city .hero-facts { margin-top: 0.55rem; }
}
@media (max-width: 1023px) {
  .page-home .hero-copy { max-width: none; }
  .page-home .city-name,
  .page-home .hero-teaser,
  .page-home .lead { max-width: 18em; }
  .hero {
    container-type: inline-size;
    min-height: 0;
    overflow: visible;
    padding: 1rem 1.1rem 1.15rem;
  }
  .hero-temp { font-size: clamp(4.6rem, 20vw, 6.2rem); max-width: 100%; }
  .day-range { white-space: nowrap; }
  .hero-foot { row-gap: 0.4rem; }
  .sun-times { gap: 0.9rem; }
  .sun-times b { font-size: 1.45rem; }
  .tz-line { font-size: 0.78rem; }
  .share { flex-wrap: wrap; max-width: 100%; }
  .sheet { margin-top: 0; }
  .search button { padding: 0.72rem 0.85rem; }
}
@media (max-width: 640px) {
  .fav-now .fav-cond { display: none; }
  .days li { grid-template-columns: 7.2rem 1fr auto; }
  .day-pop { display: none; }
  .city-list a { flex-direction: column; gap: 0.15rem; }
  .city-list small { text-align: left; }
}

.page-widget h1 { margin-top: 0.2rem; }
.widget-lead { margin: 0.45rem 0 0; max-width: 40rem; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.widget-promo { margin: 0.35rem 0 0; font-size: 0.95rem; }
.widget-promo a { color: var(--accent); font-weight: 700; }
.widget-stage {
  background: #e7dfd2;
  border-radius: 1.25rem;
  padding: 1.1rem;
  margin: 0.3rem 0 0.2rem;
}
.widget-stage iframe { display: block; width: 100%; border: 0; background: transparent; }
.widget-label, .widget-picks legend {
  display: block;
  width: 100%;
  margin: 0.95rem 0 0.4rem;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}
.widget-studio .search-field { max-width: 28rem; }
.widget-studio .search-field input {
  width: 100%;
  border: 1px solid #d0dde9;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  color: var(--ink);
}
.page-widget .chips { margin-top: 0.15rem; }
.page-widget .chips a.is-on { background: #122033; color: #f3f8fc; border-color: #122033; }
.widget-picks { border: 0; margin: 0; padding: 0; min-width: 0; }
.widget-picks div { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.widget-picks label {
  position: relative;
  border: 1px solid #d0dde9;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
}
.widget-picks label.is-on { background: #122033; color: #f3f8fc; border-color: #122033; }
.widget-picks input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.widget-picks label:focus-within { outline: 2px solid #0f7cab; outline-offset: 2px; }
.widget-studio textarea {
  display: block;
  width: 100%;
  min-height: 7.5rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #d0dde9;
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}
.widget-copy {
  margin-top: 0.7rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: #122033;
  color: #f3f8fc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.widget-steps { display: grid; gap: 0.7rem; }
.widget-steps article, .widget-faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem 1rem;
}
.widget-steps h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.widget-steps p, .widget-faq p { margin: 0.55rem 0 0; color: var(--muted); line-height: 1.45; }
.widget-faq details { margin: 0.45rem 0; }
.widget-faq p { margin-top: 0.55rem; }
.widget-faq summary { cursor: pointer; font-weight: 700; }
@media (min-width: 800px) {
  .widget-steps { grid-template-columns: repeat(3, 1fr); }
}
.push-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.push-bell[hidden] { display: none; }
.push-bell:hover,
.push-bell.is-on { background: color-mix(in srgb, currentColor 14%, transparent); }
.push-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(23, 32, 51, 0.48);
}
.push-modal[hidden] { display: none; }
.push-card {
  width: min(100%, 24rem);
  margin-bottom: 0.5rem;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1.2rem;
  background: #ffffff;
  color: #122033;
  box-shadow: 0 18px 50px rgba(18, 48, 78, 0.20);
}
.push-card h2 { margin: 0 0 0.45rem; font-size: 1.25rem; letter-spacing: -0.03em; }
.push-card p { margin: 0 0 0.75rem; line-height: 1.45; }
.push-enable,
.push-close,
.push-off {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #122033;
  color: #f3f8fc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.push-close,
.push-off {
  margin-top: 0.75rem;
  background: transparent;
  color: #122033;
  padding-inline: 0;
}
.push-check,
.push-hour {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
  font-weight: 600;
}
.push-hour select {
  font: inherit;
  border: 1px solid #d0dde9;
  border-radius: 0.6rem;
  background: #fff;
  color: #122033;
  padding: 0.25rem 0.4rem;
}
.push-status:empty { display: none; }
@media (min-width: 720px) {
  .push-modal { place-items: center; }
  .push-card { margin-bottom: 0; }
}

/* Fixed desktop top bar: logo | search | tools */
@media (min-width: 720px) {
  body.has-topbar {
    --topbar-h: 4.35rem;
    padding-top: var(--topbar-h);
  }
  .site-topbar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(18, 48, 78, 0.08);
  }
  body.has-topbar .map-frame {
    position: relative;
    z-index: 1;
    isolation: isolate;
  }
  .site-topbar__inner {
    width: min(100%, calc(300px + 40rem + 300px + 2.3rem));
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: grid;
    grid-template-columns: auto minmax(11rem, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1rem;
    box-sizing: border-box;
  }
  .site-topbar__brand {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .site-topbar__search {
    min-width: 0;
  }
  .site-topbar__search .search {
    margin: 0;
    flex-wrap: nowrap;
  }
  .site-topbar__search .search-field {
    min-width: 0;
    flex: 1 1 auto;
  }
  .site-topbar__search .search input {
    width: 100%;
    padding: 0.62rem 0.85rem;
  }
  .site-topbar__search .search button {
    flex: 0 0 auto;
    padding: 0.62rem 0.9rem;
  }
  .site-topbar__tools {
    min-width: 0;
  }
  .site-topbar .tool-row--top {
    margin: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.35rem 0.55rem;
  }
  .site-topbar .tool-row--top .locate-error,
  .site-topbar .tool-row--top + .locate-error {
    display: none;
  }
  .site-topbar .tool,
  .site-topbar .tool-lang,
  .site-topbar .tool-lang > button {
    flex: 0 0 auto;
    width: auto;
    min-width: 3.1rem;
  }
  .site-topbar .tool-ico {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
  }
  .site-topbar .tool-ico svg {
    width: 1.28rem;
    height: 1.28rem;
  }
  .site-topbar .tool-label {
    font-size: 0.68rem;
  }
  body.has-topbar .search-dock {
    display: none !important;
  }
  body.has-topbar .city-tools {
    display: none !important;
  }
  body.has-topbar .catalog-top .brand-line {
    display: none;
  }
  body.has-topbar .sheet > .search,
  body.has-topbar .sheet > .tool-row,
  body.has-topbar .sheet > .locate-error,
  body.has-topbar .sheet > .favorites--inline,
  body.has-topbar .catalog > .search,
  body.has-topbar .catalog > .tool-row,
  body.has-topbar .catalog > .locate-error,
  body.has-topbar .catalog > .favorites--inline,
  body.has-topbar .catalog .tool-row--page,
  body.has-topbar .catalog-top + .search,
  body.has-topbar .catalog h1 + .search,
  body.has-topbar .catalog h1 + .search + .tool-row,
  body.has-topbar .catalog h1 + .search + .tool-row + .locate-error,
  body.has-topbar .catalog h1 + .search + .tool-row + .locate-error + .favorites--inline,
  body.has-topbar .catalog .lead + .search,
  body.has-topbar .catalog .lead + .search + .tool-row,
  body.has-topbar .catalog .lead + .search + .tool-row + .locate-error,
  body.has-topbar .catalog .lead + .search + .tool-row + .locate-error + .favorites--inline,
  body.has-topbar .catalog .widget-lead + .tool-row,
  body.has-topbar .catalog .widget-lead + .tool-row + .locate-error,
  body.has-topbar .catalog .widget-lead + .tool-row + .locate-error + .favorites--inline {
    display: none !important;
  }
}
@media (min-width: 720px) and (max-width: 1100px) {
  .site-topbar__inner {
    grid-template-columns: auto minmax(8rem, 1fr) auto;
    gap: 0.55rem 0.7rem;
  }
  .site-topbar .tool-label { display: none; }
  .site-topbar .tool-row--top { gap: 0.25rem; }
}

/* Three columns on desktop: ads | single center | favorites */
.site-layout {
  width: min(100%, 52rem);
  max-width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem 1.5rem;
}
.site-main {
  min-width: 0;
  width: 100%;
}
.site-main .desk {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.rail {
  display: none;
}
.rail--ads .ad-slot {
  min-height: 18rem;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.rail--ads .ad-slot--placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(
      -45deg,
      rgba(15, 124, 171, 0.05) 0 8px,
      rgba(15, 124, 171, 0.02) 8px 16px
    );
  border-style: dashed;
}
.favorites--inline,
.favorites--rail {
  margin-top: 1rem;
  padding: 0.95rem 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}
.favorites--rail {
  margin-top: 0;
}
.favorites--inline h2,
.favorites--rail h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.favorites--inline ul,
.favorites--rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.favorites--inline li,
.favorites--rail li {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.2rem;
  padding: 0.65rem 2rem 0.65rem 0.8rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid #dce8f2;
  max-width: none;
}
.favorites--inline a,
.favorites--rail a {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.1rem;
  width: 100%;
  min-width: 0;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  color: inherit;
}
.favorites--inline a > span,
.favorites--inline small,
.favorites--rail a > span,
.favorites--rail small {
  display: block;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  word-break: break-word;
  flex: none !important;
}
.favorites--rail a > span {
  font-size: 0.95rem;
}
.favorites--inline small,
.favorites--rail small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}
.favorites--inline .fav-now,
.favorites--rail .fav-now {
  display: flex !important;
  max-width: 100% !important;
  flex-wrap: wrap;
  white-space: normal !important;
  overflow: visible;
  font-size: 0.88rem;
}
.favorites--inline .fav-now .fav-cond,
.favorites--rail .fav-now .fav-cond {
  display: inline !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}
.favorites--inline .fav-remove,
.favorites--rail .fav-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7a8796;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.favorites--inline .fav-remove:hover,
.favorites--rail .fav-remove:hover {
  background: #eef3f8;
  color: #122033;
}
.favorites--inline .fav-remove span,
.favorites--rail .fav-remove span {
  display: block;
  transform: translateY(-0.05em);
}
@media (min-width: 1200px) {
  /* Equal side rails, narrower center — tops aligned. */
  .site-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 40rem) 300px;
    justify-content: center;
    align-items: stretch;
    column-gap: 1.15rem;
    row-gap: 0;
    width: min(100%, calc(300px + 40rem + 300px + 2.3rem));
    padding: 1rem 1rem 1.5rem;
  }
  .site-main {
    min-width: 0;
    width: 100%;
    max-width: none;
    overflow: visible;
  }
  .site-main > .ad-slot {
    margin: 0 0 0.9rem;
  }
  .site-main .desk,
  .site-main .hero,
  .site-main .sheet {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .site-main .desk {
    padding-top: 0;
  }
  .rail {
    display: block;
    position: relative;
    align-self: stretch;
    width: 100%;
    min-height: 100%;
    overflow: visible;
  }
  .rail-pin {
    position: sticky;
    top: calc(var(--topbar-h, 4.35rem) + 0.75rem);
    width: 100%;
    max-height: calc(100dvh - var(--topbar-h, 4.35rem) - 1.5rem);
    overflow: auto;
    box-sizing: border-box;
  }
  .rail--ads .ad-slot,
  .favorites--rail {
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }
  .rail--ads .ad-slot {
    min-height: 22rem;
  }
  .favorites--inline {
    display: none !important;
  }
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hours {
    gap: 0.55rem;
  }
  .hours li {
    flex: 0 0 5rem;
  }
}

/* Mobile: Apple Weather–inspired app UI (desktop layout unchanged) */
@media (max-width: 719px) {
  :root {
    --glass: rgba(255, 255, 255, 0.28);
    --glass-strong: rgba(255, 255, 255, 0.38);
    --glass-line: rgba(255, 255, 255, 0.42);
    --glass-ink: rgba(18, 32, 51, 0.92);
    --glass-muted: rgba(18, 32, 51, 0.62);
  }

  body.page-city,
  body.page-home {
    background:
      radial-gradient(120% 70% at 50% -8%, rgba(120, 190, 230, 0.55), transparent 55%),
      linear-gradient(180deg, #9ec7de 0%, #d7e7f2 42%, #e8eef4 100%);
  }
  body.page-city:has(.hero[data-sky="clear-night"]),
  body.page-city:has(.hero[data-sky="cloudy-night"]),
  body.page-city:has(.hero[data-sky="rain"]),
  body.page-city:has(.hero[data-sky="thunder"]) {
    background: linear-gradient(180deg, #152033 0%, #24344a 48%, #1b2636 100%);
    --glass: rgba(20, 28, 40, 0.42);
    --glass-strong: rgba(28, 38, 54, 0.55);
    --glass-line: rgba(255, 255, 255, 0.14);
    --glass-ink: rgba(246, 248, 252, 0.96);
    --glass-muted: rgba(220, 228, 238, 0.72);
  }

  .site-layout {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .site-main { width: 100%; }
  .rail { display: none !important; }

  .desk {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0 0 5.5rem;
    gap: 0;
  }
  .page-city .desk {
    padding-bottom: calc(4.1rem + env(safe-area-inset-bottom, 0px));
  }
  .page-city .hero-fav {
    display: block;
  }
  .page-city .search-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: block;
    margin: 0;
    padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    background: rgba(244, 248, 252, 0.55);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    box-shadow: 0 -10px 28px rgba(12, 28, 48, 0.08);
  }
  .page-city .search-dock-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
  }
  .page-city .search-dock .search {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
    padding: 0.35rem;
    border-radius: 1.15rem;
    background: var(--glass-strong);
    border: 0;
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .page-city .search-dock .search-field {
    flex: 1 1 auto;
    min-width: 0;
  }
  .page-city .search-dock .search input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--glass-ink);
    padding: 0.62rem 0.8rem;
    font-size: 0.92rem;
    border-radius: 0.9rem;
  }
  .page-city .search-dock .search input::placeholder {
    color: var(--glass-muted);
  }
  .page-city .search-dock .search button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 0.9rem;
    padding: 0.62rem 0.9rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .page-city .dock-fav {
    flex: 0 0 auto;
    gap: 0.1rem;
    min-width: 2.1rem;
    min-height: 2.6rem;
    padding: 0.2rem 0.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .page-city .dock-fav__ico {
    width: 1.35rem;
    height: 1.35rem;
    color: #111;
  }
  .page-city .dock-fav__ico svg {
    width: 1.3rem;
    height: 1.3rem;
  }
  .page-city .dock-fav__count {
    color: #111;
    font-size: 0.8rem;
  }
  .page-city .search-dock .suggest {
    top: auto;
    bottom: calc(100% + 0.35rem);
    max-height: min(40vh, 16rem);
  }
  .page-city .city-tools {
    display: block;
    margin: 0;
    padding: 0.85rem 0.85rem 0.35rem;
  }
  .page-city .city-tools .tool-row--city {
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-city .city-tools .locate-error:empty {
    display: none;
  }
  .page-city .fav-modal {
    place-items: end center;
    z-index: 130;
  }
  .page-city .fav-modal-card {
    margin-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
  }
  .hero {
    min-height: 58vh;
    min-height: 58dvh;
    padding: 0.85rem 1rem 1.6rem;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
  .page-city .hero,
  .page-home .hero {
    position: relative;
    z-index: 0;
    min-height: 52vh;
    min-height: 52dvh;
    padding: 0.85rem 1rem 1.75rem;
    gap: 0.85rem;
  }
  .hero-top {
    margin-bottom: 0.35rem;
  }
  .brand { font-size: 1rem; opacity: 0.9; }
  .page-city .hero-copy,
  .page-home .hero-copy {
    max-width: none;
    width: 100%;
    margin: 0.4rem auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-city .h1-prefix {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.15rem;
  }
  .page-city .city-name,
  .page-home .city-name {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.03em;
  }
  .page-city .subtitle {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    opacity: 0.8;
  }
  .page-city .day-phrase,
  .page-home .day-phrase {
    margin-top: 0.55rem;
    max-width: 18em;
    font-size: 1.05rem;
    font-weight: 500;
    opacity: 0.92;
  }
  .page-city .now-kicker {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    opacity: 0.7;
  }
  .page-city .hero-temp,
  .page-home .hero-temp {
    justify-content: center;
    margin-top: 0.1rem;
    font-size: clamp(5.8rem, 22vw, 7.4rem);
  }
  .hero-digits {
    letter-spacing: -0.06em;
  }
  .page-city .tomorrow,
  .page-home .tomorrow {
    margin-top: 0.15rem;
    max-width: 18em;
    font-size: 1.05rem;
    font-weight: 500;
  }
  .page-city .condition,
  .page-home .condition {
    margin-top: 0.35rem;
    font-size: 1.15rem;
    justify-content: center;
  }
  .page-city .hero-facts {
    width: 100%;
    max-width: 22rem;
    margin-top: 0.85rem;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem;
  }
  .page-city .hero-fact {
    background: color-mix(in srgb, currentColor 10%, transparent);
    border-color: color-mix(in srgb, currentColor 14%, transparent);
    text-align: left;
  }
  .page-city .fav-add {
    margin-top: 0.75rem;
  }
  .page-city .hero-foot,
  .page-home .hero-foot {
    margin-top: 0.9rem;
    width: 100%;
  }
  .page-home .teaser-head {
    justify-content: center;
  }
  .page-home .hero-teaser {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sheet {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0.55rem 0.85rem 1.4rem !important;
    color: var(--glass-ink);
  }
  .sheet .crumbs,
  .sheet .hour-pop,
  .sheet .day-num,
  .sheet .day-pop,
  .sheet .credits,
  .sheet .meta-line,
  .sheet .updated,
  .sheet .hour-time,
  .sheet .weekend-name {
    color: var(--glass-muted);
  }
  .sheet .crumbs {
    margin: 0.15rem 0 0.65rem;
    font-size: 0.78rem;
  }
  .sheet h2 {
    margin: 0.95rem 0 0.55rem;
    padding: 0 0.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--glass-muted);
  }
  .sheet .search {
    position: relative;
    z-index: 8;
    margin-top: 0.15rem;
    padding: 0.35rem;
    border-radius: 1.15rem;
    background: var(--glass-strong);
    border: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .sheet .search input {
    background: transparent;
    border-color: transparent;
    color: var(--glass-ink);
  }
  .sheet .search input::placeholder { color: var(--glass-muted); }
  .sheet .search button {
    border-radius: 0.9rem;
    padding: 0.7rem 0.95rem;
  }
  .tool-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    align-items: start;
    gap: 0.35rem;
    margin: 0.85rem 0 0.35rem;
    padding: 0.55rem 0.25rem;
    border-radius: 1.15rem;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: visible;
  }
  .tool,
  .tool-lang {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .tool-lang {
    display: flex;
    justify-content: center;
  }
  .tool,
  .tool-lang > button {
    flex: none;
    width: 100%;
    min-width: 0;
    align-items: center;
  }
  .tool-ico {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
  }
  .tool-label {
    font-size: 0.62rem;
    color: var(--glass-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metrics,
  .hours,
  .days,
  .weekend,
  .favorites--inline,
  .sheet .prose,
  .sheet .climate,
  .sheet .credits,
  .sheet .updated,
  .sheet .chips {
    background: var(--glass-strong);
    border: 1px solid var(--glass-line);
    border-radius: 1.25rem;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 10px 28px rgba(12, 28, 48, 0.08);
  }
  .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.1rem 0;
    overflow: hidden;
  }
  .metrics li {
    margin: 0;
    padding: 0.85rem 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .metrics li:nth-child(odd) { border-right: 1px solid var(--glass-line); }
  .metrics li:nth-child(n+3) { border-top: 1px solid var(--glass-line); }
  .metrics li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .metrics span { color: var(--glass-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .metrics b { color: var(--glass-ink); font-size: 1.15rem; }

  .hours {
    display: flex;
    gap: 0.15rem;
    overflow-x: auto;
    padding: 0.85rem 0.55rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .hours li {
    flex: 0 0 4.4rem;
    min-width: 4.4rem;
    scroll-snap-align: start;
    padding: 0.35rem 0.2rem;
    background: transparent;
    border: 0;
    border-radius: 0.8rem;
    color: var(--glass-ink);
  }
  .hour-temp { font-size: 1.05rem; }

  .days {
    gap: 0;
    padding: 0.25rem 0.55rem 0.45rem;
    overflow: hidden;
  }
  .days li {
    grid-template-columns: 5.4rem 1fr auto;
    gap: 0.45rem;
    margin: 0;
    padding: 0.72rem 0.35rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--glass-line);
    border-radius: 0;
    color: var(--glass-ink);
  }
  .days li:last-child { border-bottom: 0; }
  .day-pop { display: none; }
  .day-temps b { color: var(--glass-ink); }
  .day-temps span { color: var(--glass-muted); }

  .weekend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.75rem;
    list-style: none;
  }
  .weekend li {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid var(--glass-line);
  }

  .favorites--inline {
    position: relative;
    z-index: 5;
    margin-top: 0.85rem;
    padding: 0.85rem 0.75rem 0.95rem;
  }
  .favorites--inline h2 {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--glass-muted);
  }
  .favorites--inline ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .favorites--inline li {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 0.55rem;
    padding: 0.75rem 2rem 0.75rem 0.85rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(18, 48, 78, 0.12);
    color: #122033;
  }
  .favorites--inline a {
    grid-column: 1;
    color: inherit;
  }
  .favorites--inline a > span {
    font-size: 1.15rem;
    font-weight: 700;
  }
  .favorites--inline small {
    color: rgba(18, 32, 51, 0.62) !important;
  }
  .favorites--inline .fav-now {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: inherit;
    font-size: 1.55rem;
  }
  .favorites--inline .fav-remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    grid-column: auto;
    color: rgba(18, 32, 51, 0.55);
  }

  .sheet .prose,
  .sheet .climate,
  .sheet .credits,
  .sheet .updated {
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
    color: var(--glass-muted);
  }
  .sheet .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.75rem;
    list-style: none;
  }
  .sheet .chips a {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
  }

  .ad-slot[data-slot="mobile_mid"],
  .ad-slot[data-slot="top"] {
    margin: 0.75rem 0;
    border-radius: 1.15rem;
    overflow: hidden;
  }

  html.is-lang-open,
  html.is-lang-open body {
    overflow: hidden;
  }
  .pwa-nudge {
    width: min(16.5rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
  }
  .cookie-note {
    left: max(0.65rem, env(safe-area-inset-left, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    transform: none;
    box-sizing: border-box;
  }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .sheet,
  .catalog {
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom));
  }
}
