:root {
  color-scheme: only dark;
  --home-bg: #030506;
  --home-panel: #0a0d0f;
  --home-panel-2: #101417;
  --home-line: rgba(220, 237, 248, .13);
  --home-line-strong: rgba(229, 242, 250, .24);
  --home-text: #f4f7f9;
  --home-muted: #9daab3;
  --home-accent: #f2f5f7;
  /* Shared Sketch wordmark palette: WEATHER fades only across its final third,
     while NOW keeps the clean blue-to-violet signature. */
  --home-logo-name-gradient: linear-gradient(90deg, #fff 0%, #fff 66.36%, #606060 97.42%, #606060 100%);
  --home-logo-now-color: #5ba9ff;
  --home-logo-now-gradient: linear-gradient(90deg, #5ba9ff 0%, #a56cff 100%);
  --home-glass: rgba(8, 12, 15, .62);
  --radius-control: 999px;
  --radius-content: 20px;
  --home-max: 1320px;
  --duration-fast: 120ms;
  --duration-default: 200ms;
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --type-caption: 12px;
  --type-ui: 14px;
  --type-body: 16px;
  --type-lead: 20px;
  --type-title: 26px;
  --type-display: 58px;
  --type-hero: 64px;
  --section-gap: 80px;
  --content-card-padding: 56px;
  --store-badge-height: 64px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --tracking-ui: .015em;
  --tracking-caps: .08em;
  --text-primary: #f4f7f9;
  --text-secondary: #c5d0d6;
  --text-tertiary: #93a3ac;
}

/* Match Safari's native status area to the WebGL clear color. In an ordinary
   tab Safari owns those pixels; in standalone mode black-translucent lets the
   page paint behind them. */
html.home-v2-root { background: #02060a; }

/* Three remaining current-condition metrics share one clean row. */
body.home-v2 .wx-current-panel .wx-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

/* Rebuilt current-conditions card: one reading hierarchy, no dashboard grid. */
body.home-v2 .wx-main > .wx-current-panel {
  background: rgba(10, 18, 23, .80) !important;
  border-color: rgba(224, 239, 246, .15) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 10px 26px rgba(0, 0, 0, .16) !important;
}

body.home-v2 .wx-current-panel .wx-top {
  display: flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(224, 239, 246, .10) !important;
}

body.home-v2 .wx-current-panel .wx-place .name {
  color: #f4f7f9 !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}
body.home-v2 .wx-current-panel .wx-place .meta {
  color: #91a4ae !important;
  margin-top: 2px !important;
}

body.home-v2 .wx-current-panel .wx-hero {
  padding: 12px 14px !important;
  background: radial-gradient(circle at 92% 18%, rgba(128, 205, 240, .10), transparent 42%) !important;
}
body.home-v2 .wx-current-panel .wx-temp {
  color: #f7fafb !important;
  text-shadow: none !important;
}
body.home-v2 .wx-current-panel .wx-desc { color: #e1e9ed !important; font-weight: 500 !important; }
body.home-v2 .wx-current-panel .wx-feels { color: #92a5ae !important; }
body.home-v2 .wx-current-panel .wx-icon { filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .18)); }

body.home-v2 .wx-current-panel .wx-grid {
  display: grid !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 8px !important;
  border-top: 1px solid rgba(224, 239, 246, .10) !important;
  background: rgba(255, 255, 255, .018) !important;
}
body.home-v2 .wx-current-panel .wx-grid > * {
  display: grid !important;
  grid-template-columns: 14px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  column-gap: 6px !important;
  padding: 0 7px !important;
  border: 0 !important;
  background: transparent !important;
}
body.home-v2 .wx-current-panel .kv-ico {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 14px !important;
  height: 14px !important;
  color: #9ecfe5 !important;
}
body.home-v2 .wx-current-panel .kv-copy { display: contents !important; }
body.home-v2 .wx-current-panel .kv-val {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  color: #f2f6f8 !important;
  white-space: nowrap;
}
body.home-v2 .wx-current-panel .kv-val strong { font-size: 15px !important; line-height: 1.05 !important; }
body.home-v2 .wx-current-panel .kv-val span { color: #b7c5cc !important; font-size: 10px !important; }
body.home-v2 .wx-current-panel .kv-label {
  grid-column: 2 !important;
  grid-row: 2 !important;
  color: #93a5ae !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
}

body.home-v2 {
  padding-top: 0 !important;
  margin: 0;
  overflow-x: hidden;
  color: var(--home-text);
  background: var(--home-bg) !important;
  font-family: var(--font-ui);
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

body.home-v2 *,
body.home-v2 *::before,
body.home-v2 *::after {
  font-family: var(--font-ui) !important;
}

body.home-v2 button,
body.home-v2 input,
body.home-v2 select,
body.home-v2 textarea { font-family: var(--font-ui); }
body.home-v2 small,
body.home-v2 .small,
body.home-v2 .muted,
body.home-v2 footer small { font-size: var(--type-ui) !important; line-height: 1.4; }

body.home-v2 .bg-blobs { display: none !important; }
body.home-v2 main { position: relative; z-index: 1; }

body.home-v2 .site-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 2000 !important;
  height: 92px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
  visibility: hidden;
}

body.home-v2 .site-header.is-morph-visible { visibility: visible; }

body.home-v2 .site-header .wrap {
  width: calc(100% - 24px) !important;
  height: 64px !important;
  max-width: calc(var(--home-max) + 160px) !important;
  margin: 14px auto 0 !important;
  padding: 0 24px !important;
  border: 1px solid var(--home-line) !important;
  border-radius: var(--radius-control) !important;
  background: var(--home-glass) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.065),
    0 2px 6px rgba(0,0,0,.14),
    0 9px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  pointer-events: auto;
  opacity: var(--header-shell-opacity, 0);
  transform: translate3d(0, var(--header-shell-y, -14px), 0) scale(var(--header-shell-scale, .99));
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

/* The SVG box is mathematically centered, while the visible capitals sit
   1.4px high because of the font metrics. Center the painted wordmark. */
body.home-v2 .site-header .brand-wordmark { transform: translateY(1.5px); }

/* One typography box is shared by the hero, travelling mark and header.
   The parent owns the size, tracking and gap so they interpolate together. */
body.home-v2 .brand,
body.home-v2 .home-hero-brand,
body.home-v2 .home-brand-morph {
  display: inline-flex !important;
  align-items: center !important;
  font-family: var(--font-ui) !important;
  font-size: var(--wordmark-size) !important;
  font-weight: var(--weight-semibold) !important;
  line-height: 1 !important;
  white-space: nowrap;
}

body.home-v2 .brand-wordmark {
  display: block;
  width: calc(var(--wordmark-size) * 7.52);
  height: calc(var(--wordmark-size) * 1.0405);
  overflow: visible;
}

body.home-v2 .brand-wordmark-name,
body.home-v2 .brand-wordmark-now {
  font-family: var(--font-ui);
  font-size: 88px;
  line-height: 1;
  dominant-baseline: alphabetic;
  font-kerning: normal;
  letter-spacing: 0;
}

body.home-v2 .brand-wordmark-name {
  fill: var(--brand-name-fill, url(#weatherNowLogoNameGradient));
  font-weight: 600;
}

body.home-v2 .brand-wordmark-now {
  fill: var(--brand-now-fill, url(#weatherNowLogoGradient));
  font-weight: 900;
}

body.home-v2 .brand {
  --wordmark-size: var(--type-title);
  animation: none !important;
  filter: none !important;
  opacity: var(--header-brand-opacity, 0);
  will-change: opacity;
}

body.home-v2 .header-links {
  opacity: var(--header-nav-opacity, 0);
  transform: translate3d(0, var(--header-nav-y, -6px), 0);
  will-change: transform, opacity;
}

body.home-v2 .header-links { gap: clamp(18px, 2.5vw, 38px) !important; }
body.home-v2 .header-links a {
  margin: 0 !important;
  color: #b5c1ca !important;
  font-size: var(--type-ui) !important;
  font-weight: var(--weight-semibold) !important;
  letter-spacing: var(--tracking-caps) !important;
  text-transform: uppercase;
}

body.home-v2 .header-links a:hover { color: white !important; }

body.home-v2 .home-v2-hero {
  position: relative;
  isolation: isolate;
  min-height: max(720px, 100svh) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  background: #010204 !important;
}

/* The Earth scene must remain unobscured. A full-hero overlay can become a
   rectangular band/haze in Safari after a responsive resize, so contrast is
   handled by the copy's own shadow instead. */
body.home-v2 .home-v2-hero::after { content: none !important; }

body.home-v2 .home-earth-stage,
body.home-v2 .home-earth-fallback {
  position: absolute;
  inset: 0;
}

body.home-v2 .home-earth-stage { z-index: 1; opacity: 0; transition: opacity 600ms var(--ease-out); }
body.home-v2 .home-earth-stage[data-state="ready"] { opacity: 1; }
body.home-v2 .home-earth-stage canvas { display: block; width: 100%; height: 100%; }
body.home-v2 .home-earth-fallback {
  z-index: 0;
  opacity: 1;
  background: transparent;
  transition: opacity 600ms var(--ease-out);
}
body.home-v2 .home-earth-fallback[data-state="hidden"] { opacity: 0; }

body.home-v2 .home-v2-hero .hero-inner {
  position: relative !important;
  z-index: 4 !important;
  width: 100% !important;
  height: max(720px, 100svh) !important;
  max-width: calc(var(--home-max) + 48px) !important;
  margin: 0 auto !important;
  padding: clamp(130px, 17vh, 175px) 24px 110px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  pointer-events: none;
}

body.home-v2 .home-v2-hero .hero-inner a,
body.home-v2 .home-v2-hero .hero-inner button,
body.home-v2 .home-v2-hero .hero-inner input,
body.home-v2 .home-v2-hero .hero-inner select,
body.home-v2 .home-v2-hero .hero-inner textarea {
  pointer-events: auto;
}

body.home-v2 .home-hero-copy {
  display: block !important;
  width: min(580px, 46vw);
  margin-top: -2vh;
  text-align: left !important;
  text-shadow: 0 2px 22px rgba(0,0,0,.68);
}

body.home-v2 .home-hero-kicker {
  display: block;
  margin: 0 0 20px;
  color: #aeb8c0;
  opacity: var(--hero-kicker-morph-opacity, 1);
  font-size: var(--type-ui);
  font-weight: var(--weight-semibold);
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
  will-change: opacity;
}

body.home-v2 .home-v2-hero h1 {
  max-width: 580px !important;
  margin: 0 !important;
  color: var(--home-text) !important;
  font-size: var(--type-hero) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.02 !important;
  text-align: left !important;
  text-wrap: balance;
}

body.home-v2 .home-hero-brand {
  --wordmark-size: var(--type-hero);
  max-width: none !important;
  margin: 0 !important;
  color: var(--home-text) !important;
  /* Exact visual copy of header logo. It is kept in normal flow so Safari
     always paints the hero wordmark before the morph begins. */
  opacity: 1;
}

body.home-v2 .home-hero-brand:hover .brand-wordmark {
  filter: none !important;
}

body.home-v2 .home-brand-morph {
  position: fixed;
  z-index: 2400;
  top: 0;
  left: 0;
  margin: 0 !important;
  pointer-events: none;
  opacity: 0;
  transform-origin: 0 0;
  --wordmark-size: var(--morph-brand-size, var(--type-title));
  will-change: transform, opacity;
  text-shadow: 0 2px 22px rgba(0,0,0,.5);
}

body.home-v2 .home-hero-subtitle {
  display: block;
  max-width: 470px;
  margin-top: 17px;
  color: #e0e7eb;
  font-size: var(--type-title);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  line-height: 1.16;
}

body.home-v2 .home-v2-hero .lead {
  max-width: 510px !important;
  margin: 27px 0 0 !important;
  color: #cdd5da !important;
  font-size: var(--type-lead) !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

body.home-v2 .home-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 31px;
  margin-right: auto;
  margin-left: 0;
  flex-wrap: wrap;
  width: auto;
  max-width: max-content;
  align-items: center;
  align-self: flex-start;
}

body.home-v2 .home-primary-action,
body.home-v2 .home-secondary-action {
  flex: 0 0 auto;
  width: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius-control);
  font-size: var(--type-ui);
  font-weight: var(--weight-semibold);
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
  text-decoration: none !important;
  white-space: nowrap;
}

body.home-v2 .home-primary-action span,
body.home-v2 .home-secondary-action span {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.home-v2 .home-primary-action {
  position: relative;
  min-height: 58px;
  gap: 17px;
  overflow: hidden;
  isolation: isolate;
  padding: 0 22px 0 25px;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: var(--radius-control);
  color: #07111d;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 48%, #e3eeff 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(76, 125, 184, .18),
    0 4px 12px rgba(0,0,0,.22),
    0 14px 32px rgba(67, 132, 220, .2);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-ui);
  text-transform: none;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}
body.home-v2 .home-primary-action::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,.72), transparent 38%, transparent 72%, rgba(105,166,245,.11));
}
body.home-v2 .home-primary-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration-fast) var(--ease-out);
}
body.home-v2 .home-secondary-action {
  gap: 13px;
  color: #edf8ff;
  border: 1px solid var(--home-line-strong);
  background: rgba(8, 15, 20, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
body.home-v2 .home-secondary-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration-fast) var(--ease-out);
}
body.home-v2 .home-primary-action:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #f9fbff 44%, #edf4ff 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(76, 125, 184, .15),
    0 6px 16px rgba(0,0,0,.24),
    0 18px 38px rgba(73, 143, 235, .27);
}
body.home-v2 .home-primary-action:hover svg { transform: translateX(3px); }
body.home-v2 .home-secondary-action:hover { transform: translateY(-2px); }
body.home-v2 .home-secondary-action:hover svg { transform: translateX(3px); }
body.home-v2 .home-primary-action:active,
body.home-v2 .home-secondary-action:active { transform: scale(.98); }
body.home-v2 a:focus-visible,
body.home-v2 button:focus-visible,
body.home-v2 input:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 3px;
}

body.home-v2 #weather-live.section {
  max-width: calc(var(--home-max) + 48px) !important;
  min-height: calc(100svh - 20px);
  margin: 0 auto !important;
  padding: 36px 24px clamp(112px, 12vh, 152px) !important;
  /* Anchor the map directly below the compact header, not below an empty gap. */
  scroll-margin-top: 16px;
  background: transparent !important;
}

body.home-v2 .mw-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 12px !important;
  background: #070a0c !important;
  box-shadow: 0 30px 100px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

body.home-v2 .mw-head {
  min-height: 74px;
  padding: 12px 14px 12px 18px !important;
  border-bottom: 1px solid var(--home-line) !important;
  background: #0a0d0f !important;
}

body.home-v2 #searchForm {
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
body.home-v2 .city-search-field {
  min-width: 0;
  min-height: 48px;
  padding: 0 2px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(210, 228, 239, .22);
  transition: border-color var(--duration-fast) var(--ease-out);
}
body.home-v2 .city-search-field:focus-within { border-color: #8fc7ea; }
body.home-v2 .city-search-field > svg {
  width: 20px;
  height: 20px;
  color: #81919b;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
body.home-v2 #cityInput {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: white !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: var(--type-body) !important;
  font-weight: var(--weight-regular) !important;
  outline: 0 !important;
}
body.home-v2 #cityInput::placeholder { color: #68747c; opacity: 1; }
body.home-v2 #searchForm button {
  width: auto !important;
  min-width: 132px !important;
  min-height: 48px !important;
  padding: 0 16px 0 20px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.86) !important;
  border-radius: 8px !important;
  color: #080a0c !important;
  background: #f2f4f5 !important;
  box-shadow: none !important;
  font-size: var(--type-caption) !important;
  font-weight: var(--weight-semibold) !important;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
body.home-v2 #searchForm button .icon {
  width: 18px;
  height: 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
}
body.home-v2 #searchForm button .icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home-v2 .mw-body { height: 640px !important; min-height: 640px !important; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr) !important; gap: 0 !important; }
body.home-v2 .map-wrap { height: 640px !important; min-height: 640px !important; border-right: 1px solid var(--home-line) !important; }
body.home-v2 #map { height: 640px !important; min-height: 640px !important; border-radius: 0 !important; }
body.home-v2 .wx-wrap { min-width: 0; height: 640px; padding: 0 !important; display: grid; grid-template-rows: 86px minmax(0, 1fr); background: #080b0d !important; }
body.home-v2 .wx-top { min-height: 86px; padding: 16px 22px !important; border-bottom: 1px solid rgba(205, 228, 240, .14) !important; background: rgba(255,255,255,.008); }
body.home-v2 .wx-place {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  gap: 6px !important;
}
body.home-v2 .wx-place .name { color: white !important; font-size: 22px !important; font-weight: var(--weight-semibold) !important; letter-spacing: -.015em; }
body.home-v2 .wx-place .meta { color: var(--text-tertiary) !important; font-size: var(--type-ui) !important; line-height: 1.35; }
body.home-v2 .unit-toggle { flex: 0 0 auto; gap: 2px; border: 0; border-radius: 0; padding: 0; background: transparent; }
body.home-v2 .unit-toggle button { min-width: 38px; padding: 9px 7px 8px; border-radius: 0 !important; border-bottom: 1px solid transparent !important; color: #87969e !important; background: transparent !important; font-family: var(--font-ui); font-size: var(--type-ui); font-weight: var(--weight-semibold); }
body.home-v2 .unit-toggle button.active { color: #f5f7f8 !important; border-bottom-color: #8fc7ea !important; background: transparent !important; }
body.home-v2 .wx-main {
  min-height: 0;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.05fr) !important;
  grid-template-rows: 220px 180px 110px !important;
  gap: 10px !important;
  overflow: hidden;
}
body.home-v2 .wx-hero {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 0;
  height: 100%;
  margin: 0 !important;
  padding: 24px 22px !important;
  display: block !important;
  border: 1px solid rgba(205, 228, 240, .13) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 92% 14%, rgba(106, 181, 222, .13), transparent 30%),
    linear-gradient(145deg, rgba(24, 39, 47, .34), rgba(8, 11, 13, 0) 72%) !important;
}
body.home-v2 .wx-summary-label {
  display: block;
  margin-bottom: 10px;
  color: #7f96a3;
  font-size: var(--type-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
body.home-v2 .wx-summary-copy {
  min-width: 0;
  display: block;
}
body.home-v2 .wx-temp {
  color: white !important;
  font-size: clamp(64px, 4.5vw, 78px) !important;
  font-weight: var(--weight-regular) !important;
  line-height: .92 !important;
  letter-spacing: -.045em;
  text-shadow: none !important;
}
body.home-v2 .wx-desc { margin: 22px 0 0 !important; color: #e5ebee !important; font-size: var(--type-body) !important; font-weight: var(--weight-medium) !important; white-space: nowrap; }
body.home-v2 .wx-feels { margin: 7px 0 0 !important; color: var(--text-tertiary) !important; font-size: var(--type-ui) !important; white-space: nowrap; }
body.home-v2 .wx-icon {
  position: absolute;
  top: 24px;
  right: 18px;
  width: 66px !important;
  height: 66px !important;
  display: grid;
  place-items: center;
  justify-self: center;
  font-size: 0 !important;
  line-height: 1 !important;
  filter: drop-shadow(0 12px 24px rgba(55, 130, 205, .16)) !important;
}
body.home-v2 .wx-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
body.home-v2 .chart-card { min-height: 0; margin: 0 !important; padding: 20px 20px 12px !important; overflow: hidden; border: 1px solid rgba(205, 228, 240, .13) !important; border-radius: 14px !important; background: rgba(255,255,255,.012) !important; box-shadow: none !important; }
body.home-v2 .wx-main > .chart-card:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
body.home-v2 .wx-main > .chart-card:nth-child(3) { grid-column: 1; grid-row: 2; padding: 18px 18px 10px !important; }
body.home-v2 .chart-head { margin-bottom: 8px !important; color: #a7b6be !important; font-size: var(--type-caption) !important; font-weight: var(--weight-medium); letter-spacing: var(--tracking-ui) !important; text-transform: none !important; }
body.home-v2 .chart-head .ch-unit { color: #b5e1f8 !important; font-size: var(--type-caption); font-weight: var(--weight-semibold); }
body.home-v2 #tempChart { height: 350px !important; }
body.home-v2 #rainChart { height: 120px !important; }
body.home-v2 .wx-grid { grid-column: 1 / 3; grid-row: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; gap: 0; overflow: hidden; border: 1px solid rgba(205, 228, 240, .13); border-radius: 14px; background: rgba(255,255,255,.012); }
body.home-v2 .wx-grid > * { min-height: 0; padding: 16px 18px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; border: 0 !important; border-right: 1px solid rgba(205, 228, 240, .1) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body.home-v2 .wx-grid > *:last-child { border-right: 0 !important; }
body.home-v2 .kv-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.home-v2 .kv-label { order: 2; color: #9aabb4 !important; font-size: var(--type-caption); font-weight: var(--weight-medium); letter-spacing: var(--tracking-ui) !important; text-transform: none !important; white-space: nowrap; }
body.home-v2 .kv-val { order: 1; margin: 0; display: flex; align-items: baseline; gap: 4px; color: #f2f6f8 !important; line-height: 1; white-space: nowrap; }
body.home-v2 .kv-val strong { font-size: 19px; font-weight: var(--weight-semibold); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
body.home-v2 .kv-val span { color: #c0cbd0; font-size: var(--type-caption); font-weight: var(--weight-medium); }
body.home-v2 .kv-ico { width: 18px; height: 18px; color: #8fd0f1 !important; }

body.home-v2 .legend {
  padding: 14px 15px !important;
  border: 1px solid rgba(223, 238, 247, .16) !important;
  border-radius: 7px !important;
  color: #e7eef2 !important;
  background: rgba(7, 11, 14, .86) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.26) !important;
  backdrop-filter: blur(15px) saturate(125%);
  -webkit-backdrop-filter: blur(15px) saturate(125%);
}
body.home-v2 .legend h4 { font-family: var(--font-ui); font-size: var(--type-ui) !important; font-weight: var(--weight-semibold); }
body.home-v2 .legend .labels { font-family: var(--font-ui); font-size: var(--type-caption) !important; color: #b5c2c9 !important; }
body.home-v2 .legend .scale { border-radius: 2px !important; }
body.home-v2 .layer-pills .pill {
  border-radius: 7px !important;
  background: rgba(7, 11, 14, .86) !important;
  box-shadow: none !important;
}

body.home-v2 .home-app-showcase {
  width: calc(100% - 48px);
  max-width: var(--home-max);
  min-height: 760px;
  margin: 0 auto 120px;
  padding: clamp(62px, 7vw, 105px) clamp(30px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-content);
  background: var(--home-panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  scroll-margin-top: 96px;
}

body.home-v2 .home-app-copy h2 {
  max-width: 720px;
  margin: 0;
  color: white;
  font-size: var(--type-hero);
  font-weight: var(--weight-regular);
  letter-spacing: -.025em;
  line-height: 1.03;
}
body.home-v2 .home-app-details {
  max-width: 640px;
  margin-top: 30px;
  display: grid;
  gap: 14px;
}
body.home-v2 .home-app-details p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}
body.home-v2 .home-app-showcase .store-badges { margin-top: 31px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 16px !important; margin-inline: auto !important; }
body.home-v2 .home-app-showcase .store-badge,
body.home-v2 .home-app-showcase .store-badge a,
body.home-v2 .home-app-showcase .android-version-link {
  width: 190px !important;
  height: 64px !important;
  min-height: 64px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
body.home-v2 .home-app-showcase .store-badge,
body.home-v2 .home-app-showcase .store-badge a,
body.home-v2 .home-app-showcase .android-version-link { display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; line-height: 0 !important; }
body.home-v2 .home-app-showcase .store-badge img,
body.home-v2 .home-app-showcase .android-version-link img { display: block !important; width: 100% !important; height: 100% !important; object-fit: contain !important; }
body.home-v2 .home-app-device { width: 300px !important; margin: 0 auto !important; transform: none !important; filter: drop-shadow(0 34px 50px rgba(0,0,0,.38)); }

body.home-v2 .seo-wrap {
  max-width: calc(var(--home-max) + 48px) !important;
  margin: 0 auto !important;
  padding: 0 24px 72px !important;
  border-top: 0 !important;
}
body.home-v2 .seo-box { padding: 56px !important; border: 1px solid var(--home-line) !important; border-radius: var(--radius-content) !important; background: var(--home-panel) !important; box-shadow: none !important; }
body.home-v2 .seo-box h2 { max-width: 850px; margin: 0 0 42px !important; color: white !important; font-size: var(--type-display) !important; font-weight: 500 !important; letter-spacing: -.02em; line-height: 1.06; }
body.home-v2 .seo-grid strong { font-weight: var(--weight-semibold) !important; }
body.home-v2 .seo-grid { gap: 26px 46px !important; }
body.home-v2 .seo-grid p { color: #aebbc2 !important; font-size: var(--type-body) !important; line-height: 1.65 !important; text-wrap: pretty; }
body.home-v2 .popular-cities { max-width: calc(var(--home-max) + 48px) !important; margin: 0 auto 80px !important; padding: 0 24px !important; }
body.home-v2 .popular-cities > div { max-width: none !important; padding: 32px !important; border: 1px solid var(--home-line); border-radius: var(--radius-content); background: var(--home-panel); text-align: left !important; }
body.home-v2 .popular-cities > div > div { justify-content: flex-start !important; }
body.home-v2 .popular-cities a { color: #c2cdd2 !important; border-radius: var(--radius-control); font-family: var(--font-ui); font-size: var(--type-ui); font-weight: var(--weight-medium); }
body.home-v2 .popular-cities > div > span,
body.home-v2 .popular-cities > div > div:first-child { font-size: var(--type-ui); color: var(--text-secondary); }

body.home-v2 > footer {
  padding: 0 24px !important;
  border: 0 !important;
  border-top: 1px solid var(--home-line) !important;
  background: var(--home-bg) !important;
}
body.home-v2 .footer-wrap {
  width: 100% !important;
  max-width: var(--home-max) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 34px 0 38px !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 24px 48px !important;
  align-items: center !important;
  color: var(--home-muted) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-family: var(--font-ui) !important;
}
body.home-v2 .footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0 !important;
}
body.home-v2 .footer-links .dot {
  height: 1em;
  margin: 0 8px !important;
  display: inline-flex;
  align-items: center;
  align-self: center;
  color: #727d84;
  font-size: var(--type-ui);
  line-height: 1;
  opacity: .7;
  transform: translateY(-1px);
}
body.home-v2 .footer-links a {
  min-height: 24px;
  padding: 3px 0 !important;
  display: inline-flex !important;
  align-items: center;
  color: #c6cdd2 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-ui);
  text-decoration: none !important;
  transition: color var(--duration-fast);
}
body.home-v2 .footer-links a:hover { color: white !important; text-decoration: underline !important; text-underline-offset: 4px; }
body.home-v2 .footer-meta {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  color: #727d84;
  border: 0;
  font-size: var(--type-ui);
  letter-spacing: var(--tracking-ui);
}
body.home-v2 .footer-meta a,
body.home-v2 .footer-meta a:visited,
body.home-v2 .footer-meta a:hover,
body.home-v2 .footer-meta a:active {
  color: inherit !important;
  font: inherit;
  text-decoration: none !important;
}

/* Live Weather: map-first composition based on the iOS product screen. */
body.home-v2 #weather-live.section {
  max-width: calc(var(--home-max) + 48px) !important;
  min-height: 0;
  padding: 36px 24px 112px !important;
}
body.home-v2 .mw-card {
  position: relative;
  height: 680px;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.home-v2 .mw-head {
  position: absolute;
  z-index: 600;
  top: 18px;
  left: 50%;
  width: min(620px, calc(100% - 36px));
  min-height: 58px;
  padding: 5px 6px 5px 18px !important;
  transform: translateX(-50%);
  border: 1px solid rgba(220, 237, 248, .16) !important;
  border-radius: 16px !important;
  background: rgba(4, 9, 13, .72) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
body.home-v2 #searchForm { gap: 8px; }
body.home-v2 .city-search-field { min-height: 46px; border-bottom: 0; }
body.home-v2 #cityInput { min-height: 46px !important; }
body.home-v2 #searchForm button { min-width: 110px !important; min-height: 46px !important; border-radius: 12px !important; }
body.home-v2 .mw-body {
  position: relative;
  width: 100%;
  height: 680px !important;
  min-height: 680px !important;
  display: block !important;
}
body.home-v2 .map-wrap,
body.home-v2 #map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 680px !important;
  min-height: 680px !important;
  border: 0 !important;
  border-radius: 18px !important;
}
body.home-v2 .wx-wrap {
  position: absolute;
  z-index: 450;
  inset: 0;
  width: 100%;
  height: 680px;
  padding: 0 !important;
  display: block;
  pointer-events: none;
  background: transparent !important;
}
body.home-v2 .wx-main {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0 !important;
  display: block !important;
  overflow: visible;
}
body.home-v2 .wx-current-panel,
body.home-v2 .chart-card,
body.home-v2 .wx-grid {
  pointer-events: auto;
  border: 1px solid rgba(220, 237, 248, .16) !important;
  border-radius: 16px !important;
  background: rgba(4, 9, 13, .62) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}
body.home-v2 .wx-current-panel {
  position: absolute;
  top: 92px;
  left: 18px;
  width: 286px;
  height: 188px;
  overflow: hidden;
}
body.home-v2 .wx-top {
  position: static;
  width: 100%;
  min-height: 60px;
  height: 60px;
  padding: 11px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(220, 237, 248, .1) !important;
  background: transparent !important;
}
body.home-v2 .wx-place .name { font-size: 16px !important; }
body.home-v2 .wx-place .meta { font-size: 12px !important; }
body.home-v2 .unit-toggle button { min-width: 31px; padding: 7px 5px 6px; font-size: 12px; }
body.home-v2 .wx-hero {
  position: relative;
  width: 100%;
  height: 128px;
  padding: 16px 18px !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body.home-v2 .wx-summary-copy { display: block; }
body.home-v2 .wx-temp { font-size: 58px !important; }
body.home-v2 .wx-desc { margin: 7px 0 0 !important; font-size: 14px !important; }
body.home-v2 .wx-feels { margin: 3px 0 0 !important; font-size: 12px !important; }
body.home-v2 .wx-icon {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 56px !important;
  height: 56px !important;
  margin: 0;
}
body.home-v2 .chart-card { margin: 0 !important; overflow: hidden; }
body.home-v2 .wx-main > .chart-card:nth-child(2) {
  position: absolute;
  top: 92px;
  right: 18px;
  width: 420px;
  height: 220px;
  padding: 16px 18px 10px !important;
}
body.home-v2 .wx-main > .chart-card:nth-child(3) {
  position: absolute;
  top: 326px;
  right: 18px;
  width: 292px;
  height: 112px;
  padding: 13px 16px 8px !important;
}
body.home-v2 .chart-head { margin-bottom: 4px !important; }
body.home-v2 #tempChart { height: 160px !important; }
body.home-v2 #rainChart { height: 54px !important; }
body.home-v2 .wx-grid {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(720px, calc(100% - 260px));
  height: 84px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 10px;
  overflow: hidden;
}
body.home-v2 .wx-grid > * {
  min-height: 0;
  padding: 12px 4px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0 !important;
  background: transparent !important;
}
body.home-v2 .kv-val strong { font-size: 18px; }
body.home-v2 .kv-label,
body.home-v2 .kv-val span { font-size: 12px; }
body.home-v2 .kv-ico { width: 16px; height: 16px; }

@media (max-width: 980px) and (min-width: 681px) {
  body.home-v2 .mw-card,
  body.home-v2 .mw-body,
  body.home-v2 .wx-wrap,
  body.home-v2 .map-wrap,
  body.home-v2 #map { height: 720px !important; min-height: 720px !important; }
  body.home-v2 .wx-main > .chart-card:nth-child(2) { width: 390px; }
  body.home-v2 .wx-grid { width: calc(100% - 36px); }
}

@media (max-width: 980px) {
  body.home-v2 .home-hero-copy { width: min(570px, 64vw); }
  body.home-v2 .home-v2-hero { min-height: max(680px, 100svh) !important; }
  body.home-v2 .home-v2-hero .hero-inner {
    height: max(680px, 100svh) !important;
    padding: 100px 24px 52px !important;
  }
  body.home-v2 .mw-body { grid-template-columns: 1fr !important; }
  body.home-v2 .mw-body { height: auto !important; }
  body.home-v2 .map-wrap { height: 420px !important; min-height: 420px !important; border-right: 0 !important; border-bottom: 1px solid var(--home-line) !important; }
  body.home-v2 #map { height: 420px !important; min-height: 420px !important; }
  body.home-v2 .wx-wrap { height: 640px; }
  body.home-v2 .home-app-showcase { grid-template-columns: 1fr 280px; }
  body.home-v2 .home-app-device { width: 250px !important; }
}

@media (max-width: 680px) {
  body.home-v2 .site-header { height: 74px !important; }
  body.home-v2 .site-header .wrap {
    width: calc(100% - 20px) !important;
    height: 56px !important;
    margin-top: 9px !important;
    padding: 0 22px !important;
  }
  body.home-v2 .site-header .brand { --wordmark-size: 20px; }
  body.home-v2 .home-hero-brand { --wordmark-size: clamp(40px, 10.5vw, 58px) !important; }
  body.home-v2 .header-links { gap: 11px !important; }
  body.home-v2 .header-links a { font-size: 14px !important; }
  body.home-v2 .header-links a[href="#weather-live"],
  body.home-v2 .header-links a[href="/guides/"] { display: none !important; }
  body.home-v2 .header-links a[href="#download-app"] { display: none !important; }
  body.home-v2 .header-links a[href="/support"] {
    display: flex !important;
    font-size: 14px !important;
    letter-spacing: .12em !important;
  }
  body.home-v2 .home-v2-hero { min-height: max(620px, 100svh) !important; }
  body.home-v2 .home-v2-hero .hero-inner {
    height: max(620px, 100svh) !important;
    padding: 56px 20px 36px !important;
    align-items: flex-start !important;
  }
  body.home-v2 .home-hero-copy { width: 100%; margin: 0; }
  body.home-v2 .home-v2-hero h1 { max-width: 520px !important; font-size: clamp(40px, 11vw, 52px) !important; }
  body.home-v2 .home-hero-subtitle { max-width: 340px; font-size: 21px; }
  body.home-v2 .home-v2-hero .lead { max-width: 420px !important; font-size: var(--type-body) !important; }
  body.home-v2 .home-hero-actions { flex-direction: column; width: 100%; }
  body.home-v2 .home-primary-action,
  body.home-v2 .home-secondary-action { width: 100%; }
  body.home-v2 #weather-live.section { padding: 32px 16px 92px !important; }
  body.home-v2 .mw-head { padding: 14px !important; }
  body.home-v2 > footer { padding: 0 20px !important; }
  body.home-v2 .footer-wrap { padding: 28px 0 30px !important; flex-direction: column; align-items: flex-start !important; gap: 20px !important; }
  body.home-v2 .footer-links { justify-content: flex-start !important; }
  body.home-v2 #searchForm { grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; }
  body.home-v2 #searchForm button { min-width: 92px !important; width: 92px !important; padding: 0 12px !important; gap: 8px; font-size: var(--type-caption) !important; }
  body.home-v2 .map-wrap,
  body.home-v2 #map { height: 340px !important; min-height: 340px !important; }
  body.home-v2 .wx-wrap { height: auto; grid-template-rows: 76px auto; }
  body.home-v2 .wx-top { min-height: 76px; padding: 14px 16px !important; }
  body.home-v2 .wx-main {
    padding: 12px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 220px 254px 132px auto !important;
    gap: 10px !important;
  }
  body.home-v2 .wx-hero { grid-column: 1; grid-row: 1; padding: 24px 20px !important; border: 1px solid var(--home-line) !important; border-radius: 14px !important; }
  body.home-v2 .wx-summary-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: end; column-gap: 22px; }
  body.home-v2 .wx-temp { grid-column: 1; grid-row: 1 / 3; font-size: clamp(70px, 18vw, 82px) !important; }
  body.home-v2 .wx-desc { grid-column: 2; grid-row: 1; margin: 0 0 5px !important; }
  body.home-v2 .wx-feels { grid-column: 2; grid-row: 2; margin: 0 0 5px !important; }
  body.home-v2 .wx-icon { position: static; width: 92px !important; height: 92px !important; justify-self: end; float: right; margin-top: -92px; }
  body.home-v2 .wx-main > .chart-card:nth-child(2) { grid-column: 1; grid-row: 2; }
  body.home-v2 .wx-main > .chart-card:nth-child(3) { grid-column: 1; grid-row: 3; }
  body.home-v2 .wx-main > .chart-card:nth-child(2),
  body.home-v2 .wx-main > .chart-card:nth-child(3) { padding: 18px 20px 10px !important; border: 1px solid var(--home-line) !important; border-radius: 14px !important; }
  body.home-v2 #tempChart { height: 160px !important; }
  body.home-v2 #rainChart { height: 72px !important; }
  body.home-v2 .wx-grid { grid-column: 1; grid-row: 4; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(82px, auto)); border-radius: 14px; }
  body.home-v2 .wx-grid > * { min-height: 82px; padding: 14px 18px; border-bottom: 0 !important; }
  body.home-v2 .wx-grid > *:nth-child(odd) { border-right: 1px solid var(--home-line) !important; }
  body.home-v2 .kv-val strong { font-size: 20px; }
  body.home-v2 .wx-grid > *:nth-child(2) { border-right: 0 !important; }
  body.home-v2 .wx-grid > *:nth-child(-n+2) { border-bottom: 1px solid var(--home-line) !important; }
  body.home-v2 .home-app-showcase { width: calc(100% - 32px); margin: 0 16px 86px; padding: 64px 20px; grid-template-columns: 1fr; overflow: hidden; }
  body.home-v2 .home-app-copy h2 { font-size: 44px; }
  body.home-v2 .home-app-showcase .store-badges { flex-direction: column; align-items: center !important; }
  body.home-v2 .home-app-showcase .store-badge,
  body.home-v2 .home-app-showcase .store-badge a,
  body.home-v2 .home-app-showcase .android-version-link {
    width: 190px !important;
    max-width: 100% !important;
  }
  body.home-v2 .home-app-device { width: 230px !important; margin-top: 30px !important; }
  body.home-v2 .seo-grid { grid-template-columns: 1fr !important; }
  body.home-v2 .seo-box { padding: 32px 22px !important; }
  body.home-v2 .popular-cities > div { padding: 24px !important; }
}

@media (max-width: 980px) and (min-width: 681px) {
  body.home-v2 .mw-body { display: block !important; height: 720px !important; min-height: 720px !important; }
  body.home-v2 .mw-card,
  body.home-v2 .wx-wrap,
  body.home-v2 .map-wrap,
  body.home-v2 #map { height: 720px !important; min-height: 720px !important; }
  body.home-v2 .map-wrap { position: absolute; inset: 0; }
  body.home-v2 .wx-wrap { position: absolute; inset: 0; display: block; background: transparent !important; }
  body.home-v2 .wx-main { position: absolute; inset: 0; display: block !important; padding: 0 !important; }
  body.home-v2 .wx-main > .chart-card:nth-child(2) { position: absolute; top: 92px; right: 18px; width: 390px; height: 220px; }
  body.home-v2 .wx-main > .chart-card:nth-child(3) { position: absolute; top: 326px; right: 18px; width: 292px; height: 112px; }
  body.home-v2 .wx-grid { position: absolute; right: 18px; bottom: 18px; width: calc(100% - 36px); height: 84px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; }
}

@media (max-width: 680px) {
  body.home-v2 #weather-live.section { padding: 20px 12px 84px !important; }
  body.home-v2 .mw-card,
  body.home-v2 .mw-body,
  body.home-v2 .wx-wrap,
  body.home-v2 .map-wrap,
  body.home-v2 #map { height: 850px !important; min-height: 850px !important; }
  body.home-v2 .mw-card { border: 0 !important; border-radius: 16px !important; }
  body.home-v2 .mw-head {
    top: 176px;
    left: 12px;
    width: calc(100% - 24px);
    min-height: 54px;
    padding: 4px 5px 4px 13px !important;
    transform: none;
    border-radius: 14px !important;
  }
  body.home-v2 #searchForm { grid-template-columns: minmax(0, 1fr) 86px; }
  body.home-v2 #searchForm button { width: 86px !important; min-width: 86px !important; min-height: 44px !important; }
  body.home-v2 .map-wrap { position: absolute; inset: 0; border: 0 !important; }
  body.home-v2 .wx-wrap { position: absolute; inset: 0; display: block; background: transparent !important; }
  body.home-v2 .wx-main { position: absolute; inset: 0; display: block !important; padding: 0 !important; overflow: visible; }
  body.home-v2 .wx-current-panel,
  body.home-v2 .chart-card,
  body.home-v2 .wx-grid { background: rgba(4, 9, 13, .6) !important; border-radius: 14px !important; }
  body.home-v2 .wx-current-panel { top: 240px; left: 12px; width: 230px; height: 156px; }
  body.home-v2 .wx-top { height: 52px; min-height: 52px; padding: 8px 12px !important; }
  body.home-v2 .wx-place .name { font-size: 15px !important; }
  body.home-v2 .wx-place .meta { font-size: 12px !important; }
  body.home-v2 .wx-hero { height: 96px; padding: 11px 14px !important; }
  body.home-v2 .wx-summary-copy { display: block; }
  body.home-v2 .wx-temp { display: block; font-size: 50px !important; }
  body.home-v2 .wx-desc { display: block; margin: 3px 0 0 !important; font-size: 13px !important; }
  body.home-v2 .wx-feels { display: block; margin: 1px 0 0 !important; font-size: 12px !important; }
  body.home-v2 .wx-icon { position: absolute; top: 13px; right: 14px; width: 50px !important; height: 50px !important; margin: 0; float: none; }
  body.home-v2 .wx-main > .chart-card:nth-child(2) { position: absolute; top: 406px; left: 12px; right: auto; width: calc(100% - 24px); height: 182px; padding: 13px 14px 8px !important; }
  body.home-v2 .wx-main > .chart-card:nth-child(3) { position: absolute; top: 598px; left: auto; right: 12px; width: 220px; height: 90px; padding: 10px 14px 6px !important; }
  body.home-v2 #tempChart { height: 128px !important; }
  body.home-v2 #rainChart { height: 44px !important; }
  body.home-v2 .wx-grid { position: absolute; left: 12px; right: auto; bottom: 12px; width: calc(100% - 24px); height: 142px; padding: 0 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); gap: 0; }
  body.home-v2 .wx-grid > * { min-height: 0; padding: 10px 6px; border: 0 !important; }
  body.home-v2 .kv-val strong { font-size: 17px; }
  body.home-v2 .kv-label,
  body.home-v2 .kv-val span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-v2 *, body.home-v2 *::before, body.home-v2 *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Final typography contract: one family, one hierarchy, including map chrome. */
body.home-v2 input,
body.home-v2 button,
body.home-v2 textarea,
body.home-v2 select,
body.home-v2 .maplibregl-map,
body.home-v2 .maplibregl-ctrl,
body.home-v2 .maplibregl-popup-content,
body.home-v2 .maplibregl-popup-close-button {
  font-family: var(--font-ui) !important;
}

body.home-v2 b,
body.home-v2 strong { font-weight: var(--weight-semibold) !important; }

/* The wordmark is SVG-backed, so Safari does not repaint NOW through
   background-clip text during the scroll morph. */
body.home-v2 .brand-wordmark { flex: 0 0 auto; }

body.home-v2 .header-links a,
body.home-v2 .home-hero-kicker,
body.home-v2 .home-primary-action,
body.home-v2 .home-secondary-action,
body.home-v2 #searchForm button,
body.home-v2 .footer-links a,
body.home-v2 .footer-meta,
body.home-v2 .popular-cities a,
body.home-v2 .popular-cities > div > div:first-child {
  font-size: var(--type-ui) !important;
}

body.home-v2 #cityInput,
body.home-v2 .home-app-details p,
body.home-v2 .seo-grid p { font-size: var(--type-body) !important; font-weight: var(--weight-regular) !important; }

body.home-v2 .home-v2-hero .lead { font-size: var(--type-lead) !important; }
body.home-v2 .home-v2-hero .home-hero-subtitle { font-size: var(--type-title) !important; }
body.home-v2 .home-app-copy h2 { font-size: var(--type-hero); }
body.home-v2 .seo-box h2 { font-size: var(--type-display) !important; }

body.home-v2 .wx-place .name { font-size: var(--type-body) !important; font-weight: var(--weight-semibold) !important; }
body.home-v2 .wx-place .name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.22;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.home-v2 .wx-place .meta,
body.home-v2 .wx-feels,
body.home-v2 .chart-head,
body.home-v2 .chart-head .ch-unit,
body.home-v2 .kv-label,
body.home-v2 .kv-val span { font-size: var(--type-caption) !important; }
body.home-v2 .wx-place .meta,
body.home-v2 .wx-feels,
body.home-v2 .chart-head,
body.home-v2 .kv-label,
body.home-v2 .kv-val span { font-weight: var(--weight-medium) !important; }
body.home-v2 .wx-desc { font-size: var(--type-ui) !important; font-weight: var(--weight-medium) !important; }
body.home-v2 .wx-temp { font-size: var(--type-display) !important; font-weight: var(--weight-regular) !important; }
body.home-v2 .kv-val strong { font-size: var(--type-lead) !important; font-weight: var(--weight-semibold) !important; }

body.home-v2 .legend h4 { font-size: var(--type-ui) !important; }
body.home-v2 .legend .labels { font-size: var(--type-caption) !important; }
body.home-v2 .maplibregl-popup-content,
body.home-v2 .maplibregl-popup-close-button { font-size: var(--type-ui) !important; font-weight: var(--weight-medium) !important; }

/* Flat interactive map chrome. Keep the weather layers visually dominant. */
body.home-v2 #map {
  background: #dbe8ee !important;
}
body.home-v2 .maplibregl-map,
body.home-v2 .maplibregl-canvas,
body.home-v2 .maplibregl-popup,
body.home-v2 .maplibregl-ctrl {
  font-family: var(--font-ui) !important;
}
body.home-v2 .maplibregl-canvas { outline: none; }
body.home-v2 .maplibregl-canvas-container.maplibregl-interactive { cursor: grab; }
body.home-v2 .maplibregl-canvas-container.maplibregl-track-pointer { cursor: pointer; }
body.home-v2 .maplibregl-canvas-container:active { cursor: grabbing; }
body.home-v2 .maplibregl-ctrl-top-left { top: 16px; left: 16px; }
body.home-v2 .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(220, 237, 248, .18);
  border-radius: 14px;
  background: rgba(4, 9, 15, .72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
body.home-v2 .maplibregl-ctrl-group button {
  width: 42px;
  height: 42px;
  background-color: transparent;
}
body.home-v2 .maplibregl-ctrl-group button + button { border-top: 1px solid rgba(220, 237, 248, .12); }
body.home-v2 .maplibregl-ctrl-group button:hover { background-color: rgba(159, 202, 255, .1); }
body.home-v2 .maplibregl-ctrl-icon { filter: invert(1) brightness(1.45); opacity: .9; }
body.home-v2 .maplibregl-marker { z-index: 3; }
body.home-v2 .maplibregl-marker-covered {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.home-v2 .maplibregl-popup-content {
  padding: 12px 38px 12px 14px;
  border: 1px solid rgba(220, 237, 248, .2);
  border-radius: 14px;
  color: #f4f7fb;
  background: #30363b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}
body.home-v2 .maplibregl-popup-tip { border-top-color: #30363b !important; }
body.home-v2 .weather-location-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
body.home-v2 .weather-location-popup.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
body.home-v2 .weather-location-popup.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  margin-top: -2px;
  border-top-color: #30363b !important;
}
body.home-v2 .weather-location-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip,
body.home-v2 .weather-location-popup.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
body.home-v2 .weather-location-popup.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  margin-bottom: -2px;
  border-bottom-color: #30363b !important;
}
body.home-v2 .weather-location-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  margin-right: -2px;
  border-right-color: #30363b !important;
}
body.home-v2 .weather-location-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  margin-left: -2px;
  border-left-color: #30363b !important;
}
body.home-v2 .maplibregl-popup-close-button {
  top: 50%;
  right: 10px;
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: rgba(240, 246, 252, .72);
  background: transparent !important;
  box-shadow: none !important;
  font-size: 20px !important;
  font-weight: var(--weight-regular) !important;
  line-height: 1;
}
body.home-v2 .maplibregl-popup-close-button:hover,
body.home-v2 .maplibregl-popup-close-button:focus,
body.home-v2 .maplibregl-popup-close-button:focus-visible {
  color: #fff;
  background: transparent !important;
  outline: 0 !important;
}
body.home-v2 .globe-popup-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  max-width: min(320px, calc(100vw - 96px));
  font-size: var(--type-ui);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}
body.home-v2 .globe-popup-flag { font-size: 16px; }
body.home-v2 .globe-popup-label > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.home-v2 .maplibregl-ctrl-attrib {
  color: rgba(230, 239, 247, .62);
  background: rgba(3, 8, 14, .62) !important;
  font-size: 11px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.home-v2 .maplibregl-ctrl-attrib a { color: rgba(225, 238, 250, .78); }

body.home-v2 .wx-temp,
body.home-v2 .kv-val,
body.home-v2 .wx-place .meta { font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
  body.home-v2 .home-v2-hero h1 { font-size: 52px !important; }
  body.home-v2 .home-app-copy h2 { font-size: 44px; }
  body.home-v2 .wx-temp { font-size: 50px !important; }
}

/* Live dashboard composition: map first, two aligned information columns. */
body.home-v2 .mw-card,
body.home-v2 .mw-body,
body.home-v2 .wx-wrap,
body.home-v2 .map-wrap,
body.home-v2 #map { height: 680px !important; min-height: 680px !important; }

body.home-v2 .mw-head {
  width: min(760px, calc(100% - 36px));
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 16px !important;
}
body.home-v2 .mw-head .unit-toggle {
  width: 92px;
  height: 46px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid rgba(220, 237, 248, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}
body.home-v2 .mw-head .unit-toggle button {
  min-width: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 9px !important;
  color: #8fa0aa !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: var(--weight-semibold);
}
body.home-v2 .mw-head .unit-toggle button.active {
  color: #071018 !important;
  background: #edf5f9 !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .18) !important;
}

body.home-v2 .wx-main {
  display: grid !important;
  grid-template-columns: 320px minmax(260px, 1fr) 430px !important;
  grid-template-rows: 206px 116px minmax(140px, 1fr) !important;
  grid-template-areas:
    "current map temperature"
    "current map rain"
    "sun map rain" !important;
  gap: 14px !important;
  padding: 92px 18px 18px !important;
}

body.home-v2 .wx-current-panel,
body.home-v2 .dashboard-legend,
body.home-v2 .chart-card,
body.home-v2 .sun-card,
body.home-v2 .mw-head {
  border: 1px solid rgba(220, 237, 248, .16) !important;
  border-radius: 16px !important;
  background: rgba(4, 9, 13, .66) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14) !important;
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

body.home-v2 .wx-current-panel {
  position: static;
  grid-area: current !important;
  width: auto;
  height: auto;
  display: grid;
  grid-template-rows: 62px 146px minmax(0, 1fr);
  overflow: hidden;
}
body.home-v2 .wx-current-panel .wx-top {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  height: auto;
  padding: 12px 16px !important;
}
body.home-v2 .wx-current-panel .wx-hero {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 17px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: radial-gradient(circle at 88% 16%, rgba(82, 164, 218, .1), transparent 34%) !important;
}
body.home-v2 .wx-current-panel .wx-temp { font-size: 60px !important; }
body.home-v2 .wx-current-panel .wx-desc { margin-top: 8px !important; }
body.home-v2 .wx-current-panel .wx-icon { top: 18px; right: 18px; width: 58px !important; height: 58px !important; }

body.home-v2 .wx-current-panel .wx-grid {
  position: static;
  grid-column: 1;
  grid-row: 3;
  width: 100% !important;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 0 !important;
  border-top: 1px solid rgba(220, 237, 248, .11) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.home-v2 .wx-current-panel .wx-grid > * {
  min-height: 0;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0 !important;
  border-right: 1px solid rgba(220, 237, 248, .09) !important;
  border-bottom: 1px solid rgba(220, 237, 248, .09) !important;
  background: transparent !important;
}
body.home-v2 .wx-current-panel .wx-grid > *:nth-child(even) { border-right: 0 !important; }
body.home-v2 .wx-current-panel .wx-grid > *:nth-last-child(-n+2) { border-bottom: 0 !important; }
body.home-v2 .wx-current-panel .kv-ico { width: 16px; height: 16px; }
body.home-v2 .wx-current-panel .kv-val strong { font-size: 16px; }
body.home-v2 .wx-current-panel .kv-val span,
body.home-v2 .wx-current-panel .kv-label { font-size: 12px; }

body.home-v2 .wx-main > .temperature-card,
body.home-v2 .wx-main > .rain-card {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
}
body.home-v2 .wx-main > .temperature-card {
  grid-area: temperature !important;
  padding: 15px 18px 8px !important;
}
body.home-v2 .wx-main > .rain-card {
  grid-area: rain !important;
  padding: 15px 18px 10px !important;
}
body.home-v2 #tempChart { height: 148px !important; }
body.home-v2 #rainChart { height: 218px !important; }

body.home-v2 .sun-card {
  grid-area: sun !important;
  min-width: 0;
  height: 130px;
  align-self: start;
  padding: 14px 16px;
  overflow: hidden;
  pointer-events: auto;
}
body.home-v2 .sun-card[hidden] { display: none !important; }
body.home-v2 .sun-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
body.home-v2 .sun-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-items: center;
}
body.home-v2 .sun-stat svg {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .22));
}
body.home-v2 .sun-stat svg circle { fill: currentColor; stroke: none; }
body.home-v2 .sun-stat--sunrise svg { color: #f4c46c; }
body.home-v2 .sun-stat--sunset svg { color: #e8a078; }
body.home-v2 .sun-stat--daylight svg { color: #e8cf7d; }
body.home-v2 .sun-stat span { color: #93a3ac; font-size: 12px; font-weight: var(--weight-medium); }
body.home-v2 .sun-stat strong { color: #f4f7f9; font-size: 15px; font-weight: var(--weight-semibold) !important; white-space: nowrap; }

body.home-v2 .map-wrap > .dashboard-legend {
  position: absolute !important;
  left: 50%;
  right: auto;
  bottom: 14px;
  z-index: 520;
  transform: translateX(-50%);
  width: min(590px, calc(100% - 56px));
  min-width: 0;
  justify-self: auto;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  pointer-events: auto;
}
body.home-v2 .dashboard-legend .legend-group {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(64px, 1fr);
  align-items: center;
  gap: 9px;
}
body.home-v2 .dashboard-legend :is(h3, h4) {
  margin: 0;
  color: #dce6eb;
  font-size: 12px !important;
  font-weight: var(--weight-semibold);
  line-height: 1;
  white-space: nowrap;
}
body.home-v2 .dashboard-legend .legend-row { min-width: 0; display: grid; grid-template-columns: minmax(58px, 1fr) auto; align-items: center; gap: 7px; }
body.home-v2 .dashboard-legend .scale { width: 100%; height: 5px; border-radius: 3px; }
/* RainViewer scheme 2 (Universal Blue), sampled from its official dBZ table. */
body.home-v2 .dashboard-legend .precipitation-scale {
  background: linear-gradient(to right,
    rgba(146, 136, 113, .40) 0%,
    #88ddee 18%,
    #00a3e0 28%,
    #0077aa 38%,
    #005588 46%,
    #ffee00 54%,
    #ffaa00 64%,
    #ff4400 74%,
    #c10000 82%,
    #ffaaff 90%,
    #ff77ff 96%,
    #ffffff 100%
  );
}
body.home-v2 .dashboard-legend .cloud-scale { background: linear-gradient(to right,rgba(255,255,255,.06),rgba(200,210,230,.55),rgba(110,120,140,.9)); }
body.home-v2 .dashboard-legend .labels { display: flex; gap: 6px; margin: 0; color: #98a9b2; font-size: 11px !important; line-height: 1; white-space: nowrap; }
body.home-v2 .dashboard-legend .labels span:nth-child(2) { display: none; }
body.home-v2 .dashboard-legend .legend-separator { width: 1px; height: 18px; background: rgba(220, 237, 248, .14); }

body.home-v2 .maplibregl-ctrl-bottom-right { right: 14px; bottom: 14px; }
body.home-v2 .maplibregl-ctrl-bottom-left { left: 10px; bottom: 8px; }
body.home-v2 .maplibregl-ctrl-top-right { top: 14px; right: 14px; }
body.home-v2 .maplibregl-ctrl-top-left { top: 14px; left: 14px; }
body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
  display: flex;
  overflow: hidden;
}
body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button + button {
  border-top: 0 !important;
  border-left: 1px solid rgba(220, 237, 248, .15) !important;
}
body.home-v2 .maplibregl-ctrl-attrib { max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 1180px) and (min-width: 981px) {
  body.home-v2 .wx-main { grid-template-columns: 292px minmax(120px, 1fr) 380px !important; }
}

@media (max-width: 980px) and (min-width: 681px) {
  body.home-v2 .mw-card,
  body.home-v2 .mw-body,
  body.home-v2 .wx-wrap,
  body.home-v2 .map-wrap,
  body.home-v2 #map { height: 760px !important; min-height: 760px !important; }
  body.home-v2 .wx-main {
    grid-template-columns: 300px minmax(340px, 1fr) !important;
    grid-template-rows: 206px 116px minmax(166px, 1fr) !important;
    grid-template-areas:
      "current temperature"
      "current rain"
      "sun rain" !important;
  }
  body.home-v2 .map-wrap > .dashboard-legend { width: min(590px, calc(100% - 44px)) !important; }
  body.home-v2 #rainChart { height: 166px !important; }
}

@media (max-width: 680px) {
  body.home-v2 .mw-card,
  body.home-v2 .mw-body,
  body.home-v2 .wx-wrap,
  body.home-v2 .map-wrap,
  body.home-v2 #map { height: 1080px !important; min-height: 1080px !important; }
  body.home-v2 .mw-head {
    top: 12px;
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 7px;
    padding: 5px 5px 5px 10px !important;
  }
  body.home-v2 .mw-head .unit-toggle { width: 76px; }
  body.home-v2 #searchForm { grid-template-columns: minmax(0, 1fr) 76px; gap: 6px; }
  body.home-v2 #searchForm button { width: 76px !important; min-width: 76px !important; padding: 0 10px !important; }
  body.home-v2 #searchForm button .icon { display: none !important; }
  body.home-v2 .wx-main {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 260px 112px 174px 210px !important;
    grid-template-areas:
      "current"
      "sun"
      "temperature"
      "rain" !important;
    gap: 10px !important;
    padding: 176px 12px 12px !important;
  }
  body.home-v2 .wx-current-panel,
  body.home-v2 .temperature-card,
  body.home-v2 .rain-card,
  body.home-v2 .sun-card {
    position: static;
    width: auto;
    height: auto;
    border-radius: 14px !important;
  }
  body.home-v2 .wx-current-panel { grid-template-rows: 56px 112px minmax(0, 1fr); }
  body.home-v2 .wx-current-panel .wx-hero { padding: 12px 16px !important; }
  body.home-v2 .wx-current-panel .wx-temp { font-size: 50px !important; }
  body.home-v2 .wx-current-panel .wx-icon { top: 12px; }
  body.home-v2 .wx-current-panel .wx-grid > * { padding: 7px 11px; }
  body.home-v2 .temperature-card { padding: 13px 14px 8px !important; }
  body.home-v2 .rain-card { padding: 13px 14px 8px !important; }
  body.home-v2 #rainChart { height: 142px !important; }
  body.home-v2 .sun-card { padding: 12px 14px 8px !important; }
  body.home-v2 .sun-card { height: auto; align-self: stretch; }
  body.home-v2 .sun-values { margin-top: 12px; }
  body.home-v2 .map-wrap > .dashboard-legend {
    bottom: 10px !important;
    width: min(420px, calc(100% - 24px)) !important;
    padding: 7px 10px;
    gap: 8px;
  }
  body.home-v2 .dashboard-legend .legend-group { gap: 6px; }
  body.home-v2 .dashboard-legend :is(h3, h4) { font-size: 11px !important; }
  body.home-v2 .dashboard-legend .labels { display: none; }
  body.home-v2 .dashboard-legend .legend-row { grid-template-columns: 1fr; }
  body.home-v2 .maplibregl-ctrl-bottom-right { right: 10px; bottom: 10px; }
  body.home-v2 .maplibregl-ctrl-attrib { max-width: 180px; }
  body.home-v2 .maplibregl-ctrl-group button { width: 38px; height: 38px; }
}

/* One vertical rhythm for every major homepage section. Keep this last. */
body.home-v2 #weather-live.section {
  padding: var(--section-gap) 24px !important;
}
body.home-v2 .home-app-showcase {
  margin: var(--section-gap) auto 0 !important;
  padding: var(--content-card-padding) !important;
}
body.home-v2 .seo-wrap {
  margin: 0 auto !important;
  padding: 0 24px var(--section-gap) !important;
}
body.home-v2 .popular-cities {
  margin: 0 auto var(--section-gap) !important;
}
body.home-v2 .seo-box,
body.home-v2 .popular-cities > div {
  padding: var(--content-card-padding) !important;
}

@media (max-width: 980px) {
  :root {
    --section-gap: 64px;
    --content-card-padding: 48px;
  }
  body.home-v2 #weather-live.section { padding-right: 16px !important; padding-left: 16px !important; }
}

@media (max-width: 680px) {
  :root {
    --section-gap: 48px;
    --content-card-padding: 32px;
  }
  body.home-v2 #weather-live.section { padding-right: 12px !important; padding-left: 12px !important; }
  body.home-v2 .home-app-showcase {
    margin: var(--section-gap) 16px 0 !important;
  }
  body.home-v2 .seo-wrap { padding-right: 16px !important; padding-left: 16px !important; }
}

/* Official store badges: equal visible height, untouched native proportions. */
@media (min-width: 1200px) {
  body.home-v2 .wx-main > .wx-current-panel {
    position: absolute !important;
    top: 92px !important;
    left: 30px !important;
    right: auto !important;
    bottom: auto !important;
    width: 380px !important;
    height: 366px !important;
    grid-template-rows: 66px 154px 146px !important;
    overflow: hidden !important;
  }

  body.home-v2 .wx-current-panel .wx-grid {
    position: static !important;
    width: auto !important;
    height: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-v2 .wx-main > .sun-card {
    position: absolute !important;
    top: 474px !important;
    left: 30px !important;
    right: auto !important;
    bottom: auto !important;
    width: 380px !important;
    height: 126px !important;
  }

  body.home-v2 .wx-main > .temperature-card {
    position: absolute !important;
    top: 92px !important;
    right: 30px !important;
    left: auto !important;
    bottom: auto !important;
    width: 500px !important;
    height: 220px !important;
  }

  body.home-v2 .wx-main > .rain-card {
    position: absolute !important;
    top: 328px !important;
    right: 30px !important;
    left: auto !important;
    bottom: auto !important;
    width: 500px !important;
    height: 272px !important;
  }

  body.home-v2 #tempChart { height: 158px !important; }
  body.home-v2 #rainChart { height: 210px !important; }
}

/* Official store badges: equal visible height, untouched native proportions. */
body.home-v2 .home-app-showcase .store-badges {
  gap: 16px !important;
  align-items: center !important;
}
body.home-v2 .home-app-showcase .store-badge,
body.home-v2 .home-app-showcase .store-badge a,
body.home-v2 .home-app-showcase .android-version-link {
  width: auto !important;
  height: var(--store-badge-height) !important;
  min-height: var(--store-badge-height) !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  transform: none !important;
  transition: none !important;
}
body.home-v2 .home-app-showcase .store-badge img,
body.home-v2 .home-app-showcase .android-version-link img {
  width: auto !important;
  height: var(--store-badge-height) !important;
  max-width: none !important;
  object-fit: contain !important;
  transform: none !important;
}
body.home-v2 .home-app-showcase .store-badge a:hover,
body.home-v2 .home-app-showcase .store-badge a:focus-visible,
body.home-v2 .home-app-showcase .android-version-link:hover,
body.home-v2 .home-app-showcase .android-version-link:focus-visible {
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the download showcase inside one laptop viewport when opened by its hash. */
@media (min-width: 681px) {
  body.home-v2 .home-app-showcase {
    min-height: min(760px, calc(100svh - 112px));
    height: min(760px, calc(100svh - 112px));
  }
}

@media (min-width: 681px) and (max-height: 760px) {
  body.home-v2 .home-app-showcase {
    min-height: 0;
    height: calc(100svh - 112px);
    padding: 28px 44px !important;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
    gap: clamp(32px, 5vw, 64px);
  }

  body.home-v2 .home-app-copy h2 {
    font-size: clamp(44px, 5vw, 56px);
    line-height: 1.01;
  }

  body.home-v2 .home-app-details {
    margin-top: 20px;
    gap: 10px;
  }

  body.home-v2 .home-app-details p {
    font-size: 15px;
    line-height: 1.48;
  }

  body.home-v2 .home-app-showcase .store-badges {
    margin-top: 20px !important;
  }

  body.home-v2 .home-app-device {
    width: min(230px, calc((100svh - 180px) * .463)) !important;
    filter: drop-shadow(0 24px 38px rgba(0,0,0,.34));
  }
}

/* The app screen is the visual object here; do not frame it in another card. */
body.home-v2 .home-app-showcase {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.home-v2 .home-app-device {
  filter: none !important;
}

@media (min-width: 681px) and (max-width: 1180px) {
  body.home-v2 .home-hero-actions {
    width: auto !important;
    max-width: max-content !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    align-self: flex-start !important;
    gap: 14px !important;
  }

  body.home-v2 .home-primary-action,
  body.home-v2 .home-secondary-action {
    max-width: none !important;
    min-width: 0 !important;
    min-height: 48px !important;
    flex: 0 0 auto !important;
    padding: 0 16px !important;
  }

  body.home-v2 .home-primary-action {
    width: 210px !important;
  }

  body.home-v2 .home-secondary-action {
    width: 210px !important;
  }
}

@media (min-width: 681px) {
  body.home-v2 .home-primary-action,
  body.home-v2 .home-secondary-action {
    width: 200px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
  }
}

/* Narrow screens are not a shrunken desktop dashboard.  Keep the hero as one
   left-aligned reading column and let both actions remain secondary controls. */
@media (max-width: 680px) {
  body.home-v2 .home-hero-kicker {
    width: 100% !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  body.home-v2 .home-hero-actions {
    width: auto !important;
    max-width: 100% !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    align-self: flex-start !important;
  }

  body.home-v2 .home-primary-action,
  body.home-v2 .home-secondary-action {
    min-width: 0 !important;
    min-height: 44px !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    padding: 0 10px !important;
    font-size: clamp(10px, 2.8vw, 12px) !important;
    letter-spacing: .055em !important;
    white-space: nowrap;
  }

  body.home-v2 .home-primary-action {
    width: clamp(132px, 34vw, 154px) !important;
  }

  body.home-v2 .home-secondary-action {
    width: clamp(168px, 43vw, 198px) !important;
  }

  body.home-v2 .home-primary-action svg,
  body.home-v2 .home-secondary-action svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 auto;
  }
}

/* Mobile map mode: the map is a primary interaction surface, not wallpaper
   behind a vertical stack of translucent cards.  Search stays with the map;
   the selected-location details continue below it in the same visual system. */
@media (max-width: 680px) {
  body.home-v2 #weather-live.section {
    min-height: 0 !important;
  }

  body.home-v2 .mw-card,
  body.home-v2 .mw-body,
  body.home-v2 .wx-wrap {
    height: auto !important;
    min-height: 0 !important;
  }

  body.home-v2 .mw-card {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.home-v2 .mw-head {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 0 12px !important;
  }

  body.home-v2 .mw-body {
    display: block !important;
    overflow: visible !important;
  }

  body.home-v2 .map-wrap {
    position: relative !important;
    inset: auto !important;
    height: clamp(360px, 68svh, 460px) !important;
    min-height: clamp(360px, 68svh, 460px) !important;
    overflow: hidden !important;
    border: 1px solid rgba(220, 237, 248, .16) !important;
    border-radius: 16px !important;
    background: #0a1116 !important;
  }

  body.home-v2 #map {
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
  }

  body.home-v2 .wx-wrap {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    margin-top: 12px !important;
    overflow: visible !important;
    background: transparent !important;
  }

  body.home-v2 .wx-main {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    grid-template-areas:
      "current"
      "sun"
      "temperature"
      "rain" !important;
    gap: 12px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.home-v2 .wx-current-panel,
  body.home-v2 .temperature-card,
  body.home-v2 .rain-card,
  body.home-v2 .sun-card {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.home-v2 .wx-current-panel {
    display: grid !important;
    grid-template-rows: 56px 112px 126px !important;
  }

  body.home-v2 .wx-current-panel .wx-hero {
    height: auto !important;
    min-height: 0 !important;
  }

  body.home-v2 .sun-card {
    padding: 14px 16px !important;
  }

  body.home-v2 .temperature-card {
    padding: 14px 16px 10px !important;
  }

  body.home-v2 .rain-card {
    padding: 14px 16px 10px !important;
  }

  body.home-v2 #tempChart { height: 154px !important; }
  body.home-v2 #rainChart { height: 142px !important; }

  body.home-v2 .map-wrap > .dashboard-legend {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 10px !important;
    z-index: 520 !important;
    transform: translateX(-50%) !important;
    width: min(420px, calc(100% - 24px)) !important;
    justify-self: auto !important;
  }
}

/* On a phone, rain is a quick probability signal, not a 180px dashboard slab.
   Keep the 24-hour labels, but give the map and the forecast list their space. */
@media (max-width: 680px) {
  body.home-v2 .rain-card {
    height: 114px !important;
    min-height: 0 !important;
    padding: 12px 14px 8px !important;
  }

  body.home-v2 .rain-card .chart-head {
    min-height: 18px !important;
    margin-bottom: 0 !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }

  body.home-v2 #rainChart { height: 72px !important; }
}

/* Keep the Earth clean; a small local shadow is enough to hold the copy over
   bright cloud detail without introducing a separate visual layer. */
body.home-v2 .home-hero-kicker,
body.home-v2 .home-hero-subtitle,
body.home-v2 .home-v2-hero .lead {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .88) !important;
}

body.home-v2 .home-hero-brand {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .72));
}

/* Current conditions are one compact summary, not a poster-sized temperature
   with a detached weather icon. */
body.home-v2 .wx-current-panel .wx-hero {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 44px !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 2px !important;
}

body.home-v2 .wx-current-panel .wx-summary-copy { display: contents !important; }
body.home-v2 .wx-current-panel .wx-temp {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  font-size: 46px !important;
  line-height: .9 !important;
  letter-spacing: -.045em !important;
}
body.home-v2 .wx-current-panel .wx-desc {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}
body.home-v2 .wx-current-panel .wx-feels {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}
body.home-v2 .wx-current-panel .wx-icon {
  position: static !important;
  grid-column: 3 !important;
  grid-row: 1 / 3 !important;
  width: 44px !important;
  height: 50px !important;
  margin: 0 !important;
  justify-self: end !important;
  align-self: center !important;
}
body.home-v2 .wx-current-panel .wx-icon img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

body.home-v2 .wx-current-panel .wx-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

@media (max-width: 680px) {
  body.home-v2 .wx-current-panel .wx-hero {
    grid-template-columns: auto minmax(0, 1fr) 48px !important;
    column-gap: 12px !important;
  }
  body.home-v2 .wx-current-panel .wx-temp { font-size: 48px !important; }
  body.home-v2 .wx-current-panel .wx-icon { width: 48px !important; height: 48px !important; }
}

/* Keep desktop's two-sided footer. On compact widths, use one centered
   reading axis so the links wrap cleanly instead of fighting for a row. */
@media (max-width: 980px) {
  body.home-v2 > footer { text-align: center !important; }
  body.home-v2 .footer-wrap {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
  }
  body.home-v2 .footer-links { justify-content: center !important; }
}

/* Final live-weather layout stabilization.
   Keep the map primary, but prevent floating panels from stretching into
   each other or forming accidental dashboard slabs. */
@media (min-width: 981px) {
  body.home-v2 .wx-main {
    grid-template-columns:
      clamp(292px, 22vw, 340px)
      minmax(280px, 1fr)
      clamp(380px, 30vw, 520px) !important;
    grid-template-rows: auto auto !important;
    grid-template-areas: none !important;
    align-items: start !important;
    align-content: start !important;
  }

  body.home-v2 .wx-main > .wx-current-panel {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    align-self: start !important;
    justify-self: stretch !important;
  }

  body.home-v2 .wx-main > .sun-card {
    grid-column: 1 / 2 !important;
    grid-row: 2 / 3 !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  body.home-v2 .wx-main > .temperature-card {
    grid-column: 3 / 4 !important;
    grid-row: 1 / 2 !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 15px 18px 10px !important;
  }

  body.home-v2 .wx-main > .rain-card {
    grid-column: 3 / 4 !important;
    grid-row: 2 / 3 !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 15px 18px 12px !important;
    min-height: 270px !important;
  }

  body.home-v2 #tempChart { height: 148px !important; }
  body.home-v2 #rainChart { height: 210px !important; }
}

/* Fold-sized viewports need their own hero composition.  A 64px wordmark and
   the tablet globe scale consume most of the short inner display, so the copy
   and Earth are reduced together and the planet stays anchored to the right. */
@media (min-width: 681px) and (max-width: 980px) {
  body.home-v2 .home-v2-hero {
    min-height: max(620px, 100svh) !important;
  }

  body.home-v2 .home-v2-hero .hero-inner {
    height: max(620px, 100svh) !important;
    padding: 86px 24px 42px !important;
  }

  body.home-v2 .home-hero-copy {
    width: min(470px, 61vw) !important;
    margin-top: 0 !important;
  }

  body.home-v2 .home-hero-kicker { margin-bottom: 14px !important; }
  body.home-v2 .home-hero-brand { --wordmark-size: clamp(42px, 6.7vw, 50px) !important; }
  body.home-v2 .home-hero-subtitle {
    max-width: 390px !important;
    margin-top: 12px !important;
    font-size: 22px !important;
  }
  body.home-v2 .home-v2-hero .lead {
    max-width: 430px !important;
    margin-top: 18px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
  }
  body.home-v2 .home-hero-actions { margin-top: 22px !important; }

}

@media (max-width: 980px) and (min-width: 681px) {
  body.home-v2 .wx-main {
    grid-template-columns: minmax(280px, 330px) minmax(360px, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas: none !important;
    align-items: start !important;
    align-content: start !important;
  }

  body.home-v2 .wx-main > .wx-current-panel {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
  }

  body.home-v2 .wx-main > .sun-card {
    grid-column: 1 / 2 !important;
    grid-row: 2 / 3 !important;
    width: 100% !important;
  }

  body.home-v2 .wx-main > .temperature-card {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    align-self: start !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body.home-v2 .wx-main > .rain-card {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    align-self: start !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    min-height: 238px !important;
  }

  body.home-v2 #tempChart { height: 148px !important; }
  body.home-v2 #rainChart { height: 178px !important; }
}


/* Final desktop weather dashboard layout. Keep last so legacy breakpoints cannot
   scatter or overlap the floating weather panels. */
@media (min-width: 981px) {
  body.home-v2 .mw-card,
  body.home-v2 .mw-body,
  body.home-v2 .wx-wrap,
  body.home-v2 .map-wrap,
  body.home-v2 #map {
    height: 680px !important;
    min-height: 680px !important;
  }

  body.home-v2 .wx-main {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    padding: 0 !important;
    pointer-events: none;
  }

  body.home-v2 .wx-main > .wx-current-panel {
    position: absolute !important;
    inset: 90px auto auto 24px !important;
    width: clamp(310px, 31vw, 380px) !important;
    height: 300px !important;
    grid-template-rows: 58px 126px 116px !important;
    overflow: hidden !important;
    pointer-events: auto;
  }

  body.home-v2 .wx-current-panel .wx-hero {
    min-height: 0 !important;
    padding: 12px 18px !important;
  }

  body.home-v2 .wx-current-panel .wx-temp {
    font-size: 52px !important;
  }

  body.home-v2 .wx-current-panel .wx-grid {
    position: static !important;
    width: auto !important;
    height: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-v2 .wx-main > .sun-card {
    position: absolute !important;
    inset: 406px auto auto 24px !important;
    width: clamp(310px, 31vw, 380px) !important;
    height: 116px !important;
    padding: 12px 16px !important;
    pointer-events: auto;
  }

  body.home-v2 .sun-values {
    margin-top: 12px !important;
  }

  body.home-v2 .wx-main > .temperature-card {
    position: absolute !important;
    inset: 90px 24px auto auto !important;
    width: clamp(310px, 31vw, 460px) !important;
    height: 180px !important;
    padding: 13px 16px 8px !important;
    pointer-events: auto;
  }

  body.home-v2 .wx-main > .rain-card {
    position: absolute !important;
    inset: 286px 24px auto auto !important;
    width: clamp(310px, 31vw, 460px) !important;
    height: 236px !important;
    padding: 13px 16px 8px !important;
    pointer-events: auto;
  }

  body.home-v2 #tempChart { height: 128px !important; }
  body.home-v2 #rainChart { height: 178px !important; }

  body.home-v2 .map-wrap > .dashboard-legend {
    bottom: 18px !important;
    z-index: 8 !important;
  }
}

/* Safari 26's floating bottom bar overlays the page below the small viewport.
   Extending only the iPhone hero to the large viewport keeps the next section
   out of that transparent browser-chrome area without changing Android or
   desktop sizing. */
@supports (-webkit-touch-callout: none) and (height: 100lvh) {
  @media (max-width: 680px) {
    body.home-v2 .site-header {
      height: calc(74px + env(safe-area-inset-top, 0px)) !important;
    }

    body.home-v2 .site-header .wrap {
      margin-top: calc(9px + env(safe-area-inset-top, 0px)) !important;
    }

    body.home-v2 .home-v2-hero {
      min-height: max(620px, calc(100lvh + max(34px, env(safe-area-inset-bottom, 0px)))) !important;
    }

    body.home-v2 .home-v2-hero .hero-inner {
      height: max(620px, calc(100lvh + max(34px, env(safe-area-inset-bottom, 0px)))) !important;
      padding-top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    }
  }
}

/* Authoritative narrow dashboard grid. Every forecast surface uses the same
   16px content gutter and 12px vertical rhythm; no card keeps the legacy
   278px/246px centred content measure. */
@media (max-width: 680px) {
  html body.home-v2 .mw-card .wx-main {
    height: 690px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 224px 92px 200px 138px !important;
    gap: 12px !important;
  }

  html body.home-v2 .mw-card .wx-main > .wx-current-panel,
  html body.home-v2 .mw-card .wx-main > .sun-card,
  html body.home-v2 .mw-card .wx-main > .temperature-card,
  html body.home-v2 .mw-card .wx-main > .rain-card {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-top,
  html body.home-v2 .mw-card .wx-current-panel .wx-hero,
  html body.home-v2 .mw-card .wx-current-panel .wx-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-top {
    padding: 8px 16px !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-hero {
    padding: 12px 16px !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-grid {
    padding: 0 16px !important;
  }

  html body.home-v2 .mw-card .sun-card,
  html body.home-v2 .mw-card .temperature-card,
  html body.home-v2 .mw-card .rain-card {
    padding: 12px 16px 10px !important;
  }

  html body.home-v2 .mw-card .wx-main > .sun-card .sun-values,
  html body.home-v2 .mw-card .wx-main > .temperature-card .chart-head,
  html body.home-v2 .mw-card .wx-main > .rain-card .chart-head,
  html body.home-v2 .mw-card .wx-main > .temperature-card #tempChart,
  html body.home-v2 .mw-card .wx-main > .rain-card #rainChart {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html body.home-v2 .mw-card .wx-main > .sun-card .sun-values {
    margin-top: 6px !important;
  }

  html body.home-v2 .mw-card .wx-main > .temperature-card #tempChart {
    top: 0 !important;
    display: block !important;
    height: 154px !important;
    margin-bottom: 0 !important;
  }

  html body.home-v2 .mw-card .wx-main > .rain-card #rainChart {
    display: block !important;
    height: 96px !important;
  }
}

/* Cinematic city weather telemetry. The labels are projected from real
   latitude/longitude coordinates by the Earth renderer and deliberately stay
   lighter than cards so the planet remains the hero. */
body.home-v2 .earth-weather-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* Backdrop-filter must sample the sibling WebGL canvas. Any paint/layout
     containment here isolates the cards from the Earth texture. */
  contain: none;
}

body.home-v2 .earth-weather-marker {
  --marker-opacity: 0;
  --marker-x: -200px;
  --marker-y: -200px;
  --marker-lift: 0px;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 1;
  transform: translate3d(var(--marker-x), var(--marker-y), 0);
  backface-visibility: hidden;
  transition: none;
  will-change: auto;
}

body.home-v2 .earth-weather-marker:not(.is-visible) {
  visibility: hidden;
}

body.home-v2 .earth-weather-marker.is-visible {
  visibility: visible;
  will-change: transform;
}

@media (max-width: 680px) {
  body.home-v2 .earth-weather-layer { display: none; }
}

body.home-v2 .earth-weather-marker__pin {
  position: absolute;
  z-index: 2;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  box-sizing: border-box;
  border: 1px solid rgba(3,16,29,.62);
  border-radius: 50%;
  background: rgba(229,246,255,.94);
  box-shadow: 0 0 0 2px rgba(5,20,34,.28), 0 0 8px rgba(99,181,242,.68);
  opacity: var(--marker-opacity);
}

body.home-v2 .earth-weather-marker__stem {
  position: absolute;
  z-index: 1;
  bottom: 1px;
  left: 0;
  width: 1px;
  height: calc(26px + var(--marker-lift));
  background: linear-gradient(to top, rgba(229,246,255,.82), rgba(81,139,180,.28));
  box-shadow: 0 0 1px rgba(0,10,20,.9), 0 0 5px rgba(88,169,226,.32);
  opacity: var(--marker-opacity);
  transition: height 420ms cubic-bezier(.2,.72,.2,1);
}

body.home-v2 .earth-weather-marker__readout {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 1;
  bottom: calc(26px + var(--marker-lift));
  left: 0;
  width: 150px;
  height: 46px;
  min-height: 46px;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 11px 27px;
  gap: 0;
  padding: 4px 7px 4px 11px;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(154,211,248,.72);
  border-radius: 2px 7px 7px 2px;
  color: inherit;
  background: linear-gradient(103deg, rgba(1,7,13,.46) 0%, rgba(3,13,22,.32) 70%, rgba(4,17,29,.18) 100%);
  box-shadow: 0 10px 28px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateX(-10px);
  font: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  opacity: var(--marker-opacity);
  transition: bottom 420ms cubic-bezier(.2,.72,.2,1),
    transform 420ms cubic-bezier(.2,.72,.2,1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

body.home-v2 .earth-weather-marker.is-visible .earth-weather-marker__readout {
  backdrop-filter: blur(18px) saturate(112%) brightness(.82);
  -webkit-backdrop-filter: blur(18px) saturate(112%) brightness(.82);
}

body.home-v2 .earth-weather-marker__readout::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(87,176,239,.18), rgba(38,102,157,.08) 68%, rgba(132,207,255,.12));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.home-v2 .earth-weather-marker__readout > * {
  position: relative;
  z-index: 1;
}

body.home-v2 .earth-weather-marker__readout:hover,
body.home-v2 .earth-weather-marker__readout:focus-visible {
  border-left-color: rgba(207,238,255,.98);
  box-shadow: 0 12px 34px rgba(0,0,0,.3), 0 0 18px rgba(72,160,225,.3), inset 0 1px 0 rgba(255,255,255,.18);
  filter: brightness(1.12);
}

body.home-v2 .earth-weather-marker__readout:hover::after,
body.home-v2 .earth-weather-marker__readout:focus-visible::after {
  opacity: 1;
}

body.home-v2 .earth-weather-marker__readout:focus-visible {
  outline: 1px solid rgba(178,226,255,.92);
  outline-offset: 3px;
}

body.home-v2 .earth-weather-marker__readout:active {
  filter: brightness(1.22);
}

body.home-v2 .earth-weather-marker[data-align="left"] .earth-weather-marker__readout {
  border-left: 1px solid rgba(154,211,248,.18);
  border-right: 1px solid rgba(154,211,248,.72);
  border-radius: 7px 2px 2px 7px;
  transform: translateX(calc(-100% + 10px));
}

body.home-v2 .earth-weather-marker[data-align="left"] .earth-weather-marker__readout:hover,
body.home-v2 .earth-weather-marker[data-align="left"] .earth-weather-marker__readout:focus-visible {
  border-right-color: rgba(207,238,255,.98);
}

body.home-v2 .earth-weather-marker__city {
  display: block;
  overflow: hidden;
  color: rgba(218,231,239,.78);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .095em;
  line-height: 11px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.home-v2 .earth-weather-marker__condition {
  position: static;
  display: flex;
  height: 27px;
  box-sizing: border-box;
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2px 46px 0 0;
}

body.home-v2 .earth-weather-marker__temperature {
  position: relative;
  z-index: 1;
  color: #f4f8fb;
  font-size: 25px;
  font-weight: 350;
  letter-spacing: -.055em;
  line-height: 25px;
  text-shadow: 0 1px 9px rgba(106,185,255,.2);
}

body.home-v2 .earth-weather-marker__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  margin: 0;
  transform: translateY(-50%);
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.42));
}

body.home-v2 .earth-weather-marker[data-weather-state="loading"] .earth-weather-marker__temperature,
body.home-v2 .earth-weather-marker[data-weather-state="unavailable"] .earth-weather-marker__temperature {
  color: rgba(225,236,243,.58);
}

body.home-v2 .earth-weather-marker[data-weather-state="loading"] .earth-weather-marker__icon,
body.home-v2 .earth-weather-marker[data-weather-state="unavailable"] .earth-weather-marker__icon {
  opacity: .58;
  filter: grayscale(.45) drop-shadow(0 2px 5px rgba(0,0,0,.42));
}

@media (max-width: 680px) {
  body.home-v2 .earth-weather-marker__readout {
    bottom: calc(21px + var(--marker-lift));
    width: 122px;
    height: 50px;
    min-height: 50px;
    padding: 6px 7px 6px 9px;
  }
  body.home-v2 .earth-weather-marker__stem { height: calc(21px + var(--marker-lift)); }
  body.home-v2 .earth-weather-marker__city { font-size: 8px; }
  body.home-v2 .earth-weather-marker__temperature { font-size: 20px; }
  body.home-v2 .earth-weather-marker__condition { height: 27px; }
  body.home-v2 .earth-weather-marker__icon { right: 7px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-v2 .earth-weather-marker { transition: none; filter: none; }
}

/* Wide layout: store badges follow the left edge of the copy column. */
@media (min-width: 1181px) {
  body.home-v2 .home-app-showcase .store-badges {
    justify-content: flex-start !important;
    margin-inline: 0 !important;
  }
}

/* The zoom control never changes orientation or anchor between breakpoints. */
body.home-v2 .maplibregl-ctrl-bottom-right {
  right: 14px !important;
  bottom: 14px !important;
  width: 42px !important;
  min-height: 118px !important;
}
body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  max-width: 42px !important;
  margin: 0 !important;
}
body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
  position: absolute !important;
  right: 0 !important;
  bottom: 32px !important;
  display: block !important;
  width: max-content !important;
  margin: 0 !important;
}
body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button {
  float: none !important;
  display: block !important;
}
body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(220, 237, 248, .15) !important;
  border-left: 0 !important;
}

/* The search field is measured from the actual card rail and map legend,
   rather than from a fixed percent of the whole map. */
@media (min-width: 981px) {
  body.home-v2 .mw-head #searchForm {
    left: calc(1.5% + 304px) !important;
    right: calc(27.2% + 32px) !important;
    width: auto !important;
    max-width: 520px !important;
  }
}

/* On tablet the cards are below the map, so the control row stays compact
   instead of growing across the entire map width. */
@media (min-width: 681px) and (max-width: 980px) {
  body.home-v2 .mw-head {
    grid-template-columns: minmax(0, 520px) 92px !important;
    justify-content: start !important;
  }
}

/* Compact map HUD — the radar is the product, weather data is supporting context. */
@media (min-width: 981px) {
  body.home-v2 .mw-card,
  body.home-v2 .mw-body,
  body.home-v2 .wx-wrap,
  body.home-v2 .map-wrap,
  body.home-v2 #map {
    height: 620px !important;
    min-height: 620px !important;
  }

  body.home-v2 .wx-main > .wx-current-panel,
  body.home-v2 .wx-main > .sun-card,
  body.home-v2 .wx-main > .temperature-card,
  body.home-v2 .wx-main > .rain-card {
    border-color: rgba(225, 241, 248, .18) !important;
    border-radius: 12px !important;
    background: rgba(7, 15, 20, .78) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18) !important;
    backdrop-filter: blur(14px) saturate(108%);
    -webkit-backdrop-filter: blur(14px) saturate(108%);
  }

  body.home-v2 .wx-main > .wx-current-panel {
    inset: 112px auto auto 20px !important;
    width: 272px !important;
    height: 224px !important;
    grid-template-rows: 46px 92px 86px !important;
  }
  body.home-v2 .wx-current-panel .wx-top { padding: 10px 13px !important; }
  body.home-v2 .wx-place .name { font-size: 14px !important; }
  body.home-v2 .wx-place .meta { font-size: 11px !important; }
  body.home-v2 .wx-current-panel .wx-hero { padding: 10px 13px !important; }
  body.home-v2 .wx-current-panel .wx-temp { font-size: 44px !important; }
  body.home-v2 .wx-current-panel .wx-desc { margin-top: 2px !important; font-size: 13px !important; }
  body.home-v2 .wx-current-panel .wx-feels { margin-top: 2px !important; font-size: 11px !important; }
  body.home-v2 .wx-current-panel .wx-icon { top: 13px !important; right: 13px !important; width: 46px !important; height: 46px !important; }
  body.home-v2 .wx-current-panel .wx-grid > * { padding: 6px 9px !important; gap: 5px !important; }
  body.home-v2 .wx-current-panel .kv-ico { width: 13px !important; height: 13px !important; }
  body.home-v2 .wx-current-panel .kv-val strong { font-size: 14px !important; }
  body.home-v2 .wx-current-panel .kv-val span,
  body.home-v2 .wx-current-panel .kv-label { font-size: 10px !important; }

  body.home-v2 .wx-main > .sun-card {
    inset: 348px auto auto 20px !important;
    width: 272px !important;
    height: 92px !important;
    padding: 10px 12px !important;
  }
  body.home-v2 .sun-card .chart-head { margin-bottom: 4px !important; }
  body.home-v2 .sun-values { margin-top: 7px !important; gap: 4px !important; }
  body.home-v2 .sun-stat { grid-template-columns: 14px minmax(0, 1fr) !important; column-gap: 4px !important; }
  body.home-v2 .sun-stat svg { width: 14px !important; height: 14px !important; }
  body.home-v2 .sun-stat span { font-size: 10px !important; }
  body.home-v2 .sun-stat strong { font-size: 12px !important; }

  body.home-v2 .wx-main > .temperature-card {
    inset: 146px 20px auto auto !important;
    width: 278px !important;
    height: 148px !important;
    padding: 10px 12px 6px !important;
  }
  body.home-v2 .wx-main > .rain-card {
    inset: 306px 20px auto auto !important;
    width: 278px !important;
    height: 162px !important;
    min-height: 0 !important;
    padding: 10px 12px 7px !important;
  }
  body.home-v2 .chart-head { margin-bottom: 3px !important; font-size: 10px !important; }
  body.home-v2 #tempChart { height: 112px !important; }
  body.home-v2 #rainChart { height: 126px !important; }

  body.home-v2 .maplibregl-control-container { z-index: 1000 !important; }
  body.home-v2 .maplibregl-ctrl-top-right { top: 18px !important; right: 18px !important; }
  body.home-v2 .maplibregl-ctrl-group button { width: 40px !important; height: 40px !important; }
  body.home-v2 .map-wrap > .dashboard-legend {
    bottom: 14px !important;
    width: min(500px, calc(100% - 48px)) !important;
    z-index: 700 !important;
  }
}

/* The rain metric has its own chart, leaving a three-column conditions row. */
body.home-v2 .wx-current-panel .wx-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

/* Final current-conditions composition. Keep this after all legacy breakpoints. */
body.home-v2 .wx-main > .wx-current-panel {
  background: rgba(10, 18, 23, .80) !important;
  border-color: rgba(224, 239, 246, .15) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 10px 26px rgba(0, 0, 0, .16) !important;
}
body.home-v2 .wx-current-panel .wx-top {
  display: flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(224, 239, 246, .10) !important;
}
body.home-v2 .wx-current-panel .wx-place .name { color: #f4f7f9 !important; font-weight: 600 !important; letter-spacing: -.015em !important; }
body.home-v2 .wx-current-panel .wx-place .meta { color: #91a4ae !important; margin-top: 2px !important; }
body.home-v2 .wx-current-panel .wx-hero {
  padding: 12px 14px !important;
  background: radial-gradient(circle at 92% 18%, rgba(128, 205, 240, .10), transparent 42%) !important;
}
body.home-v2 .wx-current-panel .wx-temp { color: #f7fafb !important; text-shadow: none !important; }
body.home-v2 .wx-current-panel .wx-desc { color: #e1e9ed !important; font-weight: 500 !important; }
body.home-v2 .wx-current-panel .wx-feels { color: #92a5ae !important; }
body.home-v2 .wx-current-panel .wx-icon { filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .18)); }
body.home-v2 .wx-current-panel .wx-grid {
  display: grid !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 8px !important;
  border-top: 1px solid rgba(224, 239, 246, .10) !important;
  background: rgba(255, 255, 255, .018) !important;
}
body.home-v2 .wx-current-panel .wx-grid > * {
  display: grid !important;
  grid-template-columns: 14px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  column-gap: 6px !important;
  padding: 0 7px !important;
  border: 0 !important;
  background: transparent !important;
}
body.home-v2 .wx-current-panel .kv-ico { grid-column: 1 !important; grid-row: 1 / 3 !important; width: 14px !important; height: 14px !important; color: #9ecfe5 !important; }
body.home-v2 .wx-current-panel .kv-copy { display: contents !important; }
body.home-v2 .wx-current-panel .kv-val { grid-column: 2 !important; grid-row: 1 !important; display: flex !important; align-items: baseline !important; gap: 3px !important; color: #f2f6f8 !important; white-space: nowrap; }
body.home-v2 .wx-current-panel .kv-val strong { font-size: 15px !important; line-height: 1.05 !important; }
body.home-v2 .wx-current-panel .kv-val span { color: #b7c5cc !important; font-size: 10px !important; }
body.home-v2 .wx-current-panel .kv-label { grid-column: 2 !important; grid-row: 2 !important; color: #93a5ae !important; font-size: 10px !important; line-height: 1.15 !important; letter-spacing: .01em !important; text-transform: none !important; }

/* Compact, independent map search controls. */
body.home-v2 .mw-head {
  top: 16px !important;
  left: 50% !important;
  right: auto !important;
  width: min(640px, calc(100% - 48px)) !important;
  min-height: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.home-v2 #searchForm {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 50px !important;
  padding: 0 6px 0 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid rgba(225, 241, 248, .17) !important;
  border-radius: 14px !important;
  background: rgba(8, 15, 20, .80) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 16px rgba(0, 0, 0, .14) !important;
  backdrop-filter: blur(14px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(110%) !important;
}
body.home-v2 #searchForm .city-search-field {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.home-v2 #searchForm .city-search-field svg {
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  color: #9cabb4 !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
}
body.home-v2 #searchForm input[type="search"] {
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 0 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #eef4f7 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
body.home-v2 #searchForm input[type="search"]::placeholder { color: #91a1aa !important; opacity: 1 !important; }
body.home-v2 #searchForm button {
  flex: 0 0 92px !important;
  width: 92px !important;
  min-width: 92px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #edf3f5 !important;
  color: #101519 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .11em !important;
}
body.home-v2 #searchForm button .icon { width: 15px !important; height: 15px !important; }
body.home-v2 #searchForm button .icon svg { width: 15px !important; height: 15px !important; stroke-width: 2 !important; }
body.home-v2 .mw-head .unit-toggle {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 44px !important;
  padding: 3px !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  border: 1px solid rgba(225, 241, 248, .17) !important;
  border-radius: 12px !important;
  background: rgba(8, 15, 20, .80) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 16px rgba(0, 0, 0, .14) !important;
  backdrop-filter: blur(14px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(110%) !important;
}
body.home-v2 .mw-head .unit-toggle button {
  min-width: 40px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #a8b7c0 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
body.home-v2 .mw-head .unit-toggle button.active {
  background: #edf4f6 !important;
  color: #101519 !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .15) !important;
}

@media (max-width: 680px) {
  body.home-v2 .mw-head {
    top: 12px !important;
    width: calc(100% - 24px) !important;
    height: 44px !important;
    min-height: 44px !important;
    gap: 8px !important;
  }
  body.home-v2 #searchForm { height: 44px !important; padding-left: 12px !important; }
  body.home-v2 #searchForm button { flex-basis: 76px !important; width: 76px !important; min-width: 76px !important; height: 34px !important; min-height: 34px !important; padding: 0 8px !important; }
  body.home-v2 .mw-head .unit-toggle { height: 44px !important; }
  body.home-v2 .mw-head .unit-toggle button { min-width: 34px !important; height: 36px !important; }
}

/* Map legend: each layer owns a readable scale and its three reference points. */
body.home-v2 .map-wrap > .dashboard-legend {
  width: min(520px, calc(100% - 48px)) !important;
  min-height: 70px !important;
  padding: 10px 14px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
  border-radius: 14px !important;
  background: rgba(8, 15, 20, .82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 20px rgba(0, 0, 0, .14) !important;
}
body.home-v2 .dashboard-legend .legend-group {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr !important;
  align-content: start !important;
  gap: 8px !important;
}
body.home-v2 .dashboard-legend :is(h3, h4) {
  margin: 0 !important;
  color: #e7eef2 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
  line-height: 1 !important;
}
body.home-v2 .dashboard-legend .legend-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 6px 12px !important;
  gap: 6px !important;
  min-width: 0 !important;
}
body.home-v2 .dashboard-legend .scale {
  height: 6px !important;
  min-width: 0 !important;
  border-radius: 999px !important;
}
body.home-v2 .dashboard-legend .labels {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
  color: #9daeb7 !important;
  font-size: 9px !important;
  line-height: 1 !important;
  white-space: normal !important;
}
body.home-v2 .dashboard-legend .labels span { min-width: 0 !important; }
body.home-v2 .dashboard-legend .labels span:nth-child(1) { text-align: left !important; }
body.home-v2 .dashboard-legend .labels span:nth-child(2) { display: block !important; text-align: center !important; }
body.home-v2 .dashboard-legend .labels span:nth-child(3) { text-align: right !important; }
body.home-v2 .dashboard-legend .legend-separator {
  align-self: center !important;
  width: 1px !important;
  height: 42px !important;
  background: rgba(225, 241, 248, .13) !important;
}

@media (max-width: 680px) {
  body.home-v2 .map-wrap > .dashboard-legend {
    width: min(420px, calc(100% - 24px)) !important;
    min-height: 64px !important;
    padding: 9px 10px !important;
    gap: 10px !important;
  }
  body.home-v2 .dashboard-legend .legend-group { gap: 7px !important; }
  body.home-v2 .dashboard-legend :is(h3, h4) { font-size: 10px !important; }
  body.home-v2 .dashboard-legend .labels { font-size: 8px !important; }
}

/* Align compact weather metrics by their visible content, not by empty grid space. */
body.home-v2 .wx-current-panel .wx-grid {
  padding: 0 6px !important;
}
body.home-v2 .wx-current-panel .wx-grid > * {
  grid-template-columns: 14px max-content !important;
  justify-content: center !important;
  align-content: center !important;
  column-gap: 6px !important;
  padding: 0 4px !important;
}
body.home-v2 .wx-current-panel .kv-ico {
  align-self: center !important;
}
body.home-v2 .wx-current-panel .kv-val,
body.home-v2 .wx-current-panel .kv-label {
  justify-self: start !important;
}

body.home-v2 .sun-card .chart-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
}
body.home-v2 .sun-values {
  width: 100% !important;
  margin-top: 8px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 0 !important;
}
body.home-v2 .sun-stat {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 16px max-content !important;
  grid-template-rows: auto auto !important;
  justify-content: center !important;
  align-content: center !important;
  column-gap: 6px !important;
  row-gap: 2px !important;
}
body.home-v2 .sun-stat svg {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  width: 16px !important;
  height: 16px !important;
}
body.home-v2 .sun-stat span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  line-height: 1 !important;
}
body.home-v2 .sun-stat strong {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  line-height: 1.05 !important;
}

/* Sun metrics follow the same icon → value → label hierarchy as conditions. */
body.home-v2 .sun-values {
  margin-top: 6px !important;
}
body.home-v2 .sun-stat {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 16px auto auto !important;
  justify-items: center !important;
  align-content: center !important;
  row-gap: 2px !important;
}
body.home-v2 .sun-stat svg {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}
body.home-v2 .sun-stat strong {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-self: center !important;
}
body.home-v2 .sun-stat span {
  grid-column: 1 !important;
  grid-row: 3 !important;
  justify-self: center !important;
  text-align: center !important;
}

/* Wide mobile / fold: keep the complete dashboard below the fixed header.
   The rail is a compact HUD over the radar, while controls remain in normal
   flow so browser chrome changes cannot clip the map's lower edge. */
@media (min-width: 681px) and (max-width: 980px) {
  body.home-v2 #weather-live.section {
    min-height: 0 !important;
    padding: 4px 12px 16px !important;
  }

  body.home-v2 .mw-card {
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  body.home-v2 .mw-head {
    --map-control-height: 44px;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 0 6px !important;
    transform: none !important;
  }

  body.home-v2 #searchForm,
  body.home-v2 .mw-head .unit-toggle {
    height: 44px !important;
    min-height: 44px !important;
  }

  body.home-v2 .mw-body,
  body.home-v2 .map-wrap,
  body.home-v2 #map {
    height: clamp(530px, calc(100svh - 150px), 620px) !important;
    min-height: clamp(530px, calc(100svh - 150px), 620px) !important;
  }

  body.home-v2 .mw-body {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
  }

  body.home-v2 .map-wrap,
  body.home-v2 #map,
  body.home-v2 .wx-wrap {
    position: absolute !important;
    inset: 0 !important;
  }

  body.home-v2 .wx-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  body.home-v2 .mw-card .wx-main {
    position: absolute !important;
    inset: 8px auto auto 8px !important;
    width: 278px !important;
    height: 593px !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 278px !important;
    grid-template-rows: 224px 92px 149px 101px !important;
    grid-template-areas: "current" "sun" "temperature" "rain" !important;
    gap: 8px !important;
    overflow: visible !important;
    transform: scale(.88) !important;
    transform-origin: top left !important;
    pointer-events: none !important;
  }

  body.home-v2 .mw-card .wx-main > .wx-current-panel,
  body.home-v2 .mw-card .wx-main > .sun-card,
  body.home-v2 .mw-card .wx-main > .temperature-card,
  body.home-v2 .mw-card .wx-main > .rain-card {
    position: static !important;
    inset: auto !important;
    width: 278px !important;
    min-width: 278px !important;
    margin: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  body.home-v2 .map-wrap > .dashboard-legend,
  body.home-v2 .map-wrap > .dashboard-legend.is-open {
    position: absolute !important;
    inset: auto auto 8px 65% !important;
    width: min(220px, calc(100% - 24px)) !important;
    transform: translateX(-50%) !important;
  }

  body.home-v2 .maplibregl-ctrl-bottom-right {
    right: 8px !important;
    bottom: 8px !important;
  }
}

/* Keep the sun context with the date and time; the sun card itself is metrics only. */
body.home-v2 .wx-current-panel .wx-meta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
}
body.home-v2 .wx-current-panel .wx-sun-meta {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #91a4ae !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}
body.home-v2 .sun-card {
  display: flex !important;
  align-items: center !important;
}
body.home-v2 .sun-values {
  width: 100% !important;
  margin-top: 0 !important;
  align-items: center !important;
}

/* Final rail rhythm: every card shares the identical outside edge and gap. */
@media (min-width: 981px) {
  body.home-v2 .mw-card .wx-main {
    inset: 16px auto auto 17px !important;
    width: 278px !important;
    height: 593px !important;
    grid-template-rows: 224px 92px 149px 101px !important;
    gap: 8px !important;
  }

  body.home-v2 .mw-card .wx-main > .wx-current-panel,
  body.home-v2 .mw-card .wx-main > .sun-card,
  body.home-v2 .mw-card .wx-main > .temperature-card,
  body.home-v2 .mw-card .wx-main > .rain-card {
    width: 278px !important;
    margin: 0 !important;
    justify-self: stretch !important;
    transform: none !important;
  }
}

/* Readable narrow-card typography. The mobile dashboard has enough vertical
   room for one consistent information scale; do not shrink secondary data
   into caption-sized text just because the viewport is narrow. */
@media (max-width: 680px) {
  html body.home-v2 .mw-card .wx-current-panel .wx-place .name {
    font-size: 16px !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-place .meta {
    font-size: 13px !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-temp {
    font-size: 54px !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-desc {
    font-size: 16px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-feels {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .wx-grid > * {
    grid-template-rows: 20px auto auto !important;
    row-gap: 4px !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .kv-ico,
  html body.home-v2 .mw-card .wx-current-panel .kv-ico svg {
    width: 20px !important;
    height: 20px !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .kv-val strong {
    font-size: 17px !important;
    line-height: 1.1 !important;
  }

  html body.home-v2 .mw-card .wx-current-panel .kv-val span,
  html body.home-v2 .mw-card .wx-current-panel .kv-label {
    font-size: 13px !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
  }

  html body.home-v2 .mw-card .sun-card .sun-values {
    margin-top: 3px !important;
  }

  html body.home-v2 .mw-card .sun-card .sun-stat {
    grid-template-rows: 20px auto auto !important;
    row-gap: 3px !important;
  }

  html body.home-v2 .mw-card .sun-card .sun-stat svg {
    width: 20px !important;
    height: 20px !important;
  }

  html body.home-v2 .mw-card .sun-card .sun-stat strong {
    font-size: 17px !important;
    line-height: 1.05 !important;
    font-weight: 650 !important;
  }

  html body.home-v2 .mw-card .sun-card .sun-stat span {
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
  }

  html body.home-v2 .mw-card .temperature-card .chart-head,
  html body.home-v2 .mw-card .rain-card .chart-head,
  html body.home-v2 .mw-card .temperature-card .chart-head .ch-unit,
  html body.home-v2 .mw-card .rain-card .chart-head .ch-unit {
    min-height: 18px !important;
    margin-bottom: 3px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
  }
}

/* Narrow phones: equal actions, a full-width forecast canvas and a clean map
   service corner. Keep this after every legacy mobile chart rule. */
@media (max-width: 680px) {
  body.home-v2 .home-hero-actions {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
  }

  body.home-v2 .home-primary-action,
  body.home-v2 .home-secondary-action {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  body.home-v2 #weather-live.section {
    padding: 4px 12px 24px !important;
  }

  body.home-v2 .mw-card .wx-main {
    height: 685px !important;
    grid-template-rows: 224px 92px 200px 138px !important;
  }

  body.home-v2 .map-wrap > .dashboard-legend,
  body.home-v2 .map-wrap > .dashboard-legend.is-open {
    inset: 10px auto auto 50% !important;
    width: min(220px, calc(100% - 24px)) !important;
    transform: translateX(-50%) !important;
  }

  body.home-v2 .mw-card .wx-main > .temperature-card {
    height: 200px !important;
    padding: 12px 16px 10px !important;
  }

  body.home-v2 .mw-card .wx-main > .rain-card {
    height: 138px !important;
    padding: 12px 16px 10px !important;
  }

  body.home-v2 .mw-card .temperature-card .chart-head,
  body.home-v2 .mw-card .rain-card .chart-head,
  body.home-v2 .mw-card .temperature-card #tempChart,
  body.home-v2 .mw-card .rain-card #rainChart {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.home-v2 .mw-card .temperature-card #tempChart {
    top: 0 !important;
    height: 154px !important;
    margin-bottom: 0 !important;
  }

  body.home-v2 .mw-card .rain-card #rainChart {
    height: 96px !important;
  }

  body.home-v2 .mw-card .temp-chart-readings {
    display: none !important;
  }
}

/* Fold badge lock: the html-qualified selectors intentionally outrank the
   older badge-width rules that remain later in this generated stylesheet. */
@media (min-width: 681px) and (max-width: 980px) {
  html body.home-v2 .home-app-showcase { --store-badge-height: 48px; }
  html body.home-v2 .home-app-showcase .store-badge,
  html body.home-v2 .home-app-showcase .store-badge > a,
  html body.home-v2 .home-app-showcase .android-version-link {
    inline-size: auto !important;
    width: auto !important;
    block-size: var(--store-badge-height) !important;
    height: var(--store-badge-height) !important;
    flex: 0 0 auto !important;
  }
  html body.home-v2 .home-app-showcase .store-badge img,
  html body.home-v2 .home-app-showcase .android-version-link img {
    inline-size: auto !important;
    width: auto !important;
    block-size: var(--store-badge-height) !important;
    height: var(--store-badge-height) !important;
  }
}

/* Final compact header and centered sun metrics. */
body.home-v2 .wx-current-panel .wx-meta-row {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
body.home-v2 .wx-current-panel .wx-meta-row .meta {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.home-v2 .wx-current-panel .wx-sun-meta {
  flex: 0 0 auto !important;
  font-size: 9px !important;
  white-space: nowrap !important;
}
body.home-v2 .sun-card {
  display: flex !important;
  align-items: center !important;
}
body.home-v2 .sun-card .sun-values {
  width: 100% !important;
  margin-top: 0 !important;
  align-items: center !important;
}

/* Final compact header and centered sun metrics. */
body.home-v2 .wx-current-panel .wx-meta-row {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
body.home-v2 .wx-current-panel .wx-meta-row .meta {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.home-v2 .wx-current-panel .wx-sun-meta {
  flex: 0 0 auto !important;
  font-size: 9px !important;
  white-space: nowrap !important;
}
body.home-v2 .sun-card {
  display: flex !important;
  align-items: center !important;
}
body.home-v2 .sun-card .sun-values {
  width: 100% !important;
  margin-top: 0 !important;
  align-items: center !important;
}

/* The sun card has no header: keep its three metrics centered in the full card. */
body.home-v2 .sun-card {
  display: flex !important;
  align-items: center !important;
}
body.home-v2 .sun-card .sun-values {
  width: 100% !important;
  margin-top: 0 !important;
  align-items: center !important;
}

/* Date/time and solar context share the compact second header row. */
body.home-v2 .wx-current-panel .wx-meta-row {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
body.home-v2 .wx-current-panel .wx-meta-row .meta {
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.home-v2 .wx-current-panel .wx-sun-meta {
  flex: 0 0 auto !important;
  font-size: 9px !important;
}

/* Final sun-card alignment after all responsive rail overrides. */
body.home-v2 .sun-card {
  display: flex !important;
  align-items: center !important;
}
body.home-v2 .sun-card .sun-values {
  width: 100% !important;
  margin-top: 0 !important;
  align-items: center !important;
}

/* Keep the two official download badges together on tablet widths.  This must
   stay after legacy responsive overrides that previously changed them to a
   vertical stack. */
@media (min-width: 681px) and (max-width: 980px) {
  body.home-v2 .home-app-showcase {
    padding: 32px !important;
    grid-template-columns: minmax(286px, 1fr) 230px !important;
    gap: 24px !important;
  }
  body.home-v2 .home-app-device { width: 230px !important; }
  body.home-v2 .home-app-showcase .store-badges {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }
  body.home-v2 .home-app-showcase .store-badge,
  body.home-v2 .home-app-showcase .store-badge > a {
    inline-size: 126px !important;
    flex: 0 0 126px !important;
  }
  body.home-v2 .home-app-showcase .android-version-link {
    inline-size: 150px !important;
    flex: 0 0 150px !important;
  }
  body.home-v2 .home-app-showcase .store-badge img,
  body.home-v2 .home-app-showcase .android-version-link img {
    inline-size: 100% !important;
  }
}

/* Tablet has room for both official download badges.  Keep them on the same
   line and scale only the outer badge boxes; the official artwork is intact. */
@media (min-width: 681px) and (max-width: 980px) {
  body.home-v2 .home-app-showcase {
    padding: 32px !important;
    grid-template-columns: minmax(286px, 1fr) 230px !important;
    gap: 24px !important;
  }
  body.home-v2 .home-app-device {
    width: 230px !important;
  }
  body.home-v2 .home-app-showcase .store-badges {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }
  body.home-v2 .home-app-showcase .store-badge,
  body.home-v2 .home-app-showcase .store-badge > a {
    inline-size: 126px !important;
    flex-basis: 126px !important;
  }
  body.home-v2 .home-app-showcase .android-version-link {
    inline-size: 150px !important;
    flex-basis: 150px !important;
  }
  body.home-v2 .home-app-showcase .store-badge img,
  body.home-v2 .home-app-showcase .android-version-link img {
    inline-size: 100% !important;
  }
}

/* Compact map legend: title, scale, and labels occupy three distinct levels.
   The scale remains visually centred instead of being pulled toward the title. */
body.home-v2 .map-wrap > .dashboard-legend .legend-group {
  position: relative !important;
  display: block !important;
  height: 100% !important;
  align-self: stretch !important;
  min-height: 0 !important;
}
body.home-v2 .map-wrap > .dashboard-legend :is(h3, h4) {
  position: absolute !important;
  inset: 0 0 auto !important;
}
body.home-v2 .map-wrap > .dashboard-legend .legend-row {
  display: contents !important;
}
body.home-v2 .map-wrap > .dashboard-legend .scale {
  position: absolute !important;
  inset: 50% 0 auto !important;
  transform: translateY(-50%) !important;
}
body.home-v2 .map-wrap > .dashboard-legend .labels {
  position: absolute !important;
  inset: auto 0 0 !important;
  width: auto !important;
}

/* Store badges retain their native aspect ratio.  The Google Play mark must
   never be clipped by a legacy fixed-width wrapper at intermediate widths. */
body.home-v2 .home-app-showcase .store-badges,
body.home-v2 .home-app-showcase .store-badge,
body.home-v2 .home-app-showcase .store-badge > a,
body.home-v2 .home-app-showcase .android-version-link {
  overflow: visible !important;
}
body.home-v2 .home-app-showcase .store-badge,
body.home-v2 .home-app-showcase .store-badge > a {
  inline-size: 193px !important;
  flex: 0 0 193px !important;
}
body.home-v2 .home-app-showcase .android-version-link {
  inline-size: 216px !important;
  flex: 0 0 216px !important;
  box-shadow: none !important;
}
body.home-v2 .home-app-showcase .store-badge > a:focus,
body.home-v2 .home-app-showcase .store-badge > a:focus-visible,
body.home-v2 .home-app-showcase .android-version-link:focus,
body.home-v2 .home-app-showcase .android-version-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
body.home-v2 .home-app-showcase .store-badges::before,
body.home-v2 .home-app-showcase .store-badges::after,
body.home-v2 .home-app-showcase .store-badge::before,
body.home-v2 .home-app-showcase .store-badge::after,
body.home-v2 .home-app-showcase .android-version-link::before,
body.home-v2 .home-app-showcase .android-version-link::after {
  content: none !important;
  display: none !important;
}
body.home-v2 .home-app-showcase .store-badge img {
  inline-size: 193px !important;
  block-size: var(--store-badge-height) !important;
  object-fit: contain !important;
  object-position: left center !important;
}
body.home-v2 .home-app-showcase .android-version-link img {
  inline-size: 216px !important;
  block-size: var(--store-badge-height) !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Narrow laptops and tablets keep both official badges on one left-aligned row.
   They only shrink when the copy column genuinely cannot fit their native size. */
@media (min-width: 681px) and (max-width: 1180px) {
  body.home-v2 .home-app-showcase {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 32px !important;
    grid-template-columns: minmax(286px, 1fr) 230px !important;
    gap: 24px !important;
  }
  body.home-v2 .home-app-device { width: 230px !important; }
  body.home-v2 .home-app-showcase .store-badges {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    margin-inline: 0 !important;
  }
  body.home-v2 .home-app-showcase .store-badge,
  body.home-v2 .home-app-showcase .store-badge > a {
    inline-size: min(46%, 193px) !important;
    flex: 0 1 min(46%, 193px) !important;
    block-size: var(--store-badge-height) !important;
  }
  body.home-v2 .home-app-showcase .android-version-link {
    inline-size: min(51%, 216px) !important;
    flex: 0 1 min(51%, 216px) !important;
    block-size: var(--store-badge-height) !important;
  }
  body.home-v2 .home-app-showcase .store-badge img,
  body.home-v2 .home-app-showcase .android-version-link img { inline-size: 100% !important; }
}

/* On phones both official badges fit in the copy column.  Keep them together
   rather than turning the download area into a tall, sparse two-item stack. */
@media (max-width: 680px) {
  body.home-v2 .home-app-showcase {
    height: auto !important;
    min-height: 0 !important;
    /* The copy, download badges, and phone are three consecutive pieces of
       content here.  Do not leave the desktop grid gutter between them. */
    row-gap: 24px !important;
  }
  body.home-v2 .home-app-showcase .store-badges {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 0 !important;
    margin-top: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.home-v2 .home-app-showcase .store-badges::before,
  body.home-v2 .home-app-showcase .store-badges::after,
  body.home-v2 .home-app-showcase .store-badge::before,
  body.home-v2 .home-app-showcase .store-badge::after,
  body.home-v2 .home-app-showcase .android-version-link::before,
  body.home-v2 .home-app-showcase .android-version-link::after {
    content: none !important;
    display: none !important;
  }
  body.home-v2 .home-app-showcase .store-badge,
  body.home-v2 .home-app-showcase .store-badge > a {
    inline-size: clamp(100px, 31vw, 145px) !important;
    block-size: auto !important;
    flex: 0 0 auto !important;
  }
  body.home-v2 .home-app-showcase .android-version-link {
    inline-size: clamp(112px, 35vw, 163px) !important;
    block-size: auto !important;
    flex: 0 0 auto !important;
  }
  body.home-v2 .home-app-showcase .store-badge img,
  body.home-v2 .home-app-showcase .android-version-link img {
    inline-size: 100% !important;
    block-size: auto !important;
    height: auto !important;
  }
  body.home-v2 .home-app-device {
    margin-top: 0 !important;
    align-self: start !important;
  }
}

/* Tablet keeps the original compact cards: two columns, never stretched to
   fill the whole viewport. */
@media (min-width: 681px) and (max-width: 980px) {
  body.home-v2 .wx-main {
    grid-template-columns: repeat(2, 278px) !important;
    grid-template-rows: 224px 101px !important;
    grid-template-areas:
      "current temperature"
      "sun rain" !important;
    justify-content: start !important;
    align-items: start !important;
    gap: 12px !important;
  }

  body.home-v2 .wx-main > .wx-current-panel,
  body.home-v2 .wx-main > .sun-card,
  body.home-v2 .wx-main > .temperature-card,
  body.home-v2 .wx-main > .rain-card {
    width: 278px !important;
    min-width: 278px !important;
    margin: 0 !important;
    align-self: start !important;
  }

  body.home-v2 .wx-main > .wx-current-panel {
    height: 224px !important;
    grid-template-rows: 54px 86px minmax(0, 1fr) !important;
  }
  body.home-v2 .wx-main > .sun-card { height: 92px !important; }
  body.home-v2 .wx-main > .temperature-card { height: 149px !important; }
  body.home-v2 .wx-main > .rain-card { height: 101px !important; }
  body.home-v2 .wx-main > .temperature-card #tempChart { height: 122px !important; }
  body.home-v2 .wx-main > .rain-card #rainChart { height: 74px !important; }

  body.home-v2 .wx-current-panel .wx-top,
  body.home-v2 .wx-current-panel .wx-hero {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.home-v2 .sun-card,
  body.home-v2 .temperature-card,
  body.home-v2 .rain-card {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Final rail rhythm: every card shares the identical outside edge and gap. */
@media (min-width: 981px) {
  body.home-v2 .mw-card .wx-main {
    inset: 16px auto auto 17px !important;
    width: 278px !important;
    height: 593px !important;
    grid-template-rows: 224px 92px 149px 101px !important;
    gap: 8px !important;
  }

  body.home-v2 .mw-card .wx-main > .wx-current-panel,
  body.home-v2 .mw-card .wx-main > .sun-card,
  body.home-v2 .mw-card .wx-main > .temperature-card,
  body.home-v2 .mw-card .wx-main > .rain-card {
    width: 278px !important;
    margin: 0 !important;
    justify-self: stretch !important;
    transform: none !important;
  }
}

/* Rain must fill the card at every responsive width; JS redraws its backing store on resize. */
body.home-v2 .rain-card #rainChart {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 981px) {
  body.home-v2 .sun-values { margin-top: 6px !important; }
  body.home-v2 .sun-stat { grid-template-columns: 14px max-content !important; column-gap: 5px !important; row-gap: 1px !important; }
  body.home-v2 .sun-stat svg { width: 14px !important; height: 14px !important; }
}

/* Compact legend: supporting context, not a second dashboard. */
body.home-v2 .map-wrap > .dashboard-legend {
  width: min(430px, calc(100% - 48px)) !important;
  min-height: 48px !important;
  padding: 8px 10px !important;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  border-radius: 12px !important;
}
body.home-v2 .dashboard-legend .legend-group {
  grid-template-columns: auto minmax(80px, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 7px !important;
}
body.home-v2 .dashboard-legend :is(h3, h4) {
  font-size: 10px !important;
  letter-spacing: .01em !important;
  white-space: nowrap !important;
}
body.home-v2 .dashboard-legend .legend-row {
  grid-template-rows: 5px 10px !important;
  gap: 4px !important;
}
body.home-v2 .dashboard-legend .scale { height: 5px !important; }
body.home-v2 .dashboard-legend .labels {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #9caeb7 !important;
  font-size: 8px !important;
  white-space: nowrap !important;
}
body.home-v2 .dashboard-legend .labels span:nth-child(2) { display: none !important; }
body.home-v2 .dashboard-legend .legend-separator { height: 28px !important; }

@media (max-width: 680px) {
  body.home-v2 .map-wrap > .dashboard-legend {
    width: min(390px, calc(100% - 24px)) !important;
    min-height: 46px !important;
    padding: 7px 8px !important;
    gap: 8px !important;
  }
  body.home-v2 .dashboard-legend .legend-group { grid-template-columns: auto minmax(64px, 1fr) !important; gap: 6px !important; }
  body.home-v2 .dashboard-legend :is(h3, h4) { font-size: 9px !important; }
  body.home-v2 .dashboard-legend .labels { font-size: 7px !important; }
}

/* Final legend layout: title, then one calm scale row with endpoints. */
body.home-v2 .map-wrap > .dashboard-legend {
  width: min(440px, calc(100% - 48px)) !important;
  min-height: 52px !important;
  padding: 8px 12px !important;
  gap: 12px !important;
}
body.home-v2 .dashboard-legend .legend-group {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 12px 14px !important;
  align-content: center !important;
  gap: 5px !important;
}
body.home-v2 .dashboard-legend :is(h3, h4) {
  font-size: 10px !important;
  font-weight: 650 !important;
  letter-spacing: .025em !important;
  line-height: 12px !important;
}
body.home-v2 .dashboard-legend .legend-row {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) max-content !important;
  grid-template-rows: 14px !important;
  align-items: center !important;
  gap: 7px !important;
}
body.home-v2 .dashboard-legend .scale {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 5px !important;
}
body.home-v2 .dashboard-legend .labels { display: contents !important; }
body.home-v2 .dashboard-legend .labels span {
  display: block !important;
  align-self: center !important;
  color: #9caeb7 !important;
  font-size: 8px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
body.home-v2 .dashboard-legend .labels span:nth-child(1) {
  grid-column: 1 !important;
  grid-row: 1 !important;
  text-align: left !important;
}
body.home-v2 .dashboard-legend .labels span:nth-child(2) { display: none !important; }
body.home-v2 .dashboard-legend .labels span:nth-child(3) {
  grid-column: 3 !important;
  grid-row: 1 !important;
  text-align: right !important;
}
body.home-v2 .dashboard-legend .legend-separator { height: 32px !important; }

@media (max-width: 680px) {
  body.home-v2 .map-wrap > .dashboard-legend { width: min(400px, calc(100% - 24px)) !important; min-height: 50px !important; padding: 7px 10px !important; gap: 9px !important; }
  body.home-v2 .dashboard-legend .legend-row { gap: 5px !important; }
  body.home-v2 .dashboard-legend .labels span { font-size: 7px !important; }
}

/* Legend order: centred layer name, scale, then its two endpoints. */
body.home-v2 .map-wrap > .dashboard-legend {
  min-height: 58px !important;
  padding: 8px 12px !important;
}
body.home-v2 .dashboard-legend .legend-group {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 12px 19px !important;
  gap: 4px !important;
}
body.home-v2 .dashboard-legend :is(h3, h4) {
  text-align: center !important;
  font-size: 10px !important;
  line-height: 12px !important;
}
body.home-v2 .dashboard-legend .legend-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 5px 10px !important;
  gap: 4px !important;
}
body.home-v2 .dashboard-legend .scale {
  grid-column: 1 !important;
  grid-row: 1 !important;
  height: 5px !important;
}
body.home-v2 .dashboard-legend .labels {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
body.home-v2 .dashboard-legend .labels span {
  display: block !important;
  font-size: 8px !important;
  line-height: 10px !important;
}
body.home-v2 .dashboard-legend .labels span:nth-child(1),
body.home-v2 .dashboard-legend .labels span:nth-child(3) {
  grid-column: auto !important;
  grid-row: auto !important;
}
body.home-v2 .dashboard-legend .labels span:nth-child(2) { display: none !important; }
body.home-v2 .dashboard-legend .legend-separator { height: 34px !important; }

@media (max-width: 680px) {
  body.home-v2 .map-wrap > .dashboard-legend { min-height: 56px !important; }
  body.home-v2 .dashboard-legend .labels span { font-size: 7px !important; }
}

/* Small footprint while keeping both layer scales legible. */
body.home-v2 .map-wrap > .dashboard-legend {
  width: min(220px, calc(100% - 24px)) !important;
  min-height: 48px !important;
  padding: 6px 8px !important;
  gap: 8px !important;
}
body.home-v2 .dashboard-legend .legend-group {
  grid-template-rows: 11px 16px !important;
  gap: 3px !important;
}
body.home-v2 .dashboard-legend :is(h3, h4) {
  font-size: 9px !important;
  line-height: 11px !important;
  letter-spacing: .01em !important;
}
body.home-v2 .dashboard-legend .legend-row {
  grid-template-rows: 4px 8px !important;
  gap: 4px !important;
}
body.home-v2 .dashboard-legend .scale { height: 4px !important; }
body.home-v2 .dashboard-legend .labels span {
  font-size: 7px !important;
  line-height: 8px !important;
}
body.home-v2 .dashboard-legend .legend-separator { height: 28px !important; }

@media (max-width: 680px) {
  body.home-v2 .map-wrap > .dashboard-legend { width: min(220px, calc(100% - 24px)) !important; min-height: 48px !important; }
}

/* Search and unit control share one measured control height. */
body.home-v2 .mw-head {
  --map-control-height: 50px;
  height: var(--map-control-height) !important;
  min-height: var(--map-control-height) !important;
  align-items: stretch !important;
}
body.home-v2 #searchForm,
body.home-v2 .mw-head .unit-toggle {
  box-sizing: border-box !important;
  height: var(--map-control-height) !important;
  min-height: var(--map-control-height) !important;
  align-self: stretch !important;
  border-radius: 14px !important;
}
body.home-v2 .mw-head .unit-toggle {
  width: 92px !important;
  padding: 3px !important;
  gap: 2px !important;
}
body.home-v2 .mw-head .unit-toggle button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: calc(var(--map-control-height) - 8px) !important;
  border-radius: 10px !important;
}

@media (max-width: 680px) {
  body.home-v2 .mw-head { --map-control-height: 44px; }
}

/* Conditions and sun: identical three-column metric rhythm. */
body.home-v2 .wx-current-panel .wx-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding: 0 4px !important;
}
body.home-v2 .wx-current-panel .wx-grid > * {
  display: grid !important;
  grid-template-columns: 14px max-content !important;
  grid-template-rows: auto auto !important;
  justify-content: center !important;
  align-content: center !important;
  column-gap: 5px !important;
  row-gap: 3px !important;
  padding: 0 2px !important;
}
body.home-v2 .wx-current-panel .kv-ico {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}
body.home-v2 .wx-current-panel .kv-copy { display: contents !important; }
body.home-v2 .wx-current-panel .kv-val {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}
body.home-v2 .wx-current-panel .kv-label {
  grid-column: 1 / 3 !important;
  grid-row: 2 !important;
  justify-self: center !important;
  text-align: center !important;
}
body.home-v2 .sun-values {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
}
body.home-v2 .sun-stat {
  display: grid !important;
  grid-template-columns: 16px max-content !important;
  grid-template-rows: auto auto !important;
  justify-content: center !important;
  align-content: center !important;
  column-gap: 5px !important;
  row-gap: 3px !important;
}
body.home-v2 .sun-stat svg {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}
body.home-v2 .sun-stat strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}
body.home-v2 .sun-stat span {
  grid-column: 1 / 3 !important;
  grid-row: 2 !important;
  justify-self: center !important;
  text-align: center !important;
}

@media (min-width: 981px) {
  body.home-v2 .sun-stat { grid-template-columns: 14px max-content !important; column-gap: 4px !important; row-gap: 2px !important; }
}

/* Current-location header: one concise, horizontally balanced line. */
body.home-v2 .wx-current-panel .wx-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  padding: 0 14px !important;
}
body.home-v2 .wx-current-panel .wx-place {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
  column-gap: 10px !important;
}
body.home-v2 .wx-current-panel .wx-place .name {
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.home-v2 .wx-current-panel .wx-place .meta {
  margin: 0 !important;
  color: #99abb4 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}

@media (min-width: 981px) {
  body.home-v2 .wx-current-panel .wx-top { padding: 0 13px !important; }
  body.home-v2 .wx-current-panel .wx-place { column-gap: 8px !important; }
  body.home-v2 .wx-current-panel .wx-place .name { font-size: 14px !important; }
  body.home-v2 .wx-current-panel .wx-place .meta { font-size: 9px !important; }
}

/* Exact temperature readings are HTML, not canvas text: reliable in Safari. */
body.home-v2 .temperature-card { position: relative !important; }
body.home-v2 .temp-chart-readings {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
body.home-v2 .temp-chart-reading {
  position: absolute !important;
  /* Anchor the bottom edge, not the text centre, above the chart point. */
  transform: translate(-50%, -100%) !important;
  color: #f4f9fb !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  padding: 1px 3px !important;
  border-radius: 3px !important;
  background: rgba(55, 66, 72, .94) !important;
  text-shadow: 0 1px 3px rgba(2, 8, 12, .95) !important;
}

/* Sketch layout: map controls on top; weather panels form the left rail. */
@media (min-width: 981px) {
  body.home-v2 .mw-head {
    position: absolute !important;
    inset: 0 !important;
    z-index: 700 !important;
    width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    display: block !important;
    overflow: visible !important;
    pointer-events: none !important;
    background: transparent !important;
    border: 0 !important;
  }
  body.home-v2 #searchForm,
  body.home-v2 .map-legend-toggle,
  body.home-v2 .mw-head .unit-toggle {
    position: absolute !important;
    top: 38px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    pointer-events: auto !important;
  }
  body.home-v2 #searchForm {
    left: 24.62% !important;
    width: 45.76% !important;
  }
  body.home-v2 .map-legend-toggle {
    left: 72.80% !important;
    width: 16.67% !important;
    padding: 0 16px !important;
    border: 1px solid rgba(225, 241, 248, .17) !important;
    border-radius: 14px !important;
    background: rgba(8, 15, 20, .80) !important;
    color: #edf4f6 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 16px rgba(0, 0, 0, .14) !important;
    backdrop-filter: blur(14px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(110%) !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    letter-spacing: .01em !important;
    cursor: pointer !important;
  }
  body.home-v2 .map-legend-toggle:hover,
  body.home-v2 .map-legend-toggle[aria-expanded="true"] {
    background: rgba(20, 31, 38, .92) !important;
    border-color: rgba(225, 241, 248, .28) !important;
  }
  body.home-v2 .mw-head .unit-toggle {
    right: 1.14% !important;
    left: auto !important;
    width: 92px !important;
  }

  body.home-v2 .wx-current-panel {
    top: 38px !important;
    left: 3.03% !important;
    right: auto !important;
    width: 20.68% !important;
    height: 246px !important;
  }
  body.home-v2 .wx-main > .sun-card,
  body.home-v2 .wx-main > .temperature-card,
  body.home-v2 .wx-main > .rain-card {
    position: absolute !important;
    left: 3.03% !important;
    right: auto !important;
    width: 20.68% !important;
    margin: 0 !important;
  }
  body.home-v2 .wx-main > .sun-card {
    top: 286px !important;
    bottom: auto !important;
    height: 100px !important;
    padding: 10px 12px !important;
  }
  body.home-v2 .wx-main > .temperature-card {
    top: 398px !important;
    bottom: auto !important;
    height: 160px !important;
    padding: 10px 12px 6px !important;
  }
  body.home-v2 .wx-main > .rain-card {
    top: auto !important;
    bottom: 18px !important;
    height: 110px !important;
    min-height: 0 !important;
    padding: 10px 12px 7px !important;
  }
  body.home-v2 .wx-main > .temperature-card #tempChart { height: 124px !important; }
  body.home-v2 .wx-main > .rain-card #rainChart { height: 74px !important; }

  body.home-v2 .map-wrap > .dashboard-legend {
    z-index: 720 !important;
    bottom: 18px !important;
    width: min(360px, calc(100% - 48px)) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate(-50%, 8px) !important;
    pointer-events: none !important;
    transition: opacity .16s ease, transform .16s ease, visibility .16s step-end !important;
  }
  body.home-v2 .map-wrap > .dashboard-legend.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, 0) !important;
    pointer-events: auto !important;
    transition: opacity .16s ease, transform .16s ease !important;
  }
  body.home-v2 .maplibregl-ctrl-bottom-right {
    right: 20px !important;
    bottom: 20px !important;
  }
  body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
    display: block !important;
    margin-bottom: 28px !important;
  }
  body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button + button {
    border-top: 1px solid rgba(220, 237, 248, .15) !important;
    border-left: 0 !important;
  }

  /* Override the legacy large-desktop coordinates with the actual left rail. */
  body.home-v2 .mw-card .wx-main > .wx-current-panel {
    inset: 38px auto auto 1.5% !important;
    width: 20.68% !important;
    height: 242px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: 48px 108px minmax(0, 1fr) !important;
    overflow: hidden !important;
  }
  body.home-v2 .mw-card .wx-main > .sun-card {
    inset: 292px auto auto 1.5% !important;
    width: 20.68% !important;
    height: 100px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body.home-v2 .mw-card .wx-main > .temperature-card {
    inset: 404px auto auto 1.5% !important;
    width: 20.68% !important;
    height: 154px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body.home-v2 .mw-card .wx-main > .rain-card {
    inset: auto auto 18px 1.5% !important;
    width: 20.68% !important;
    height: 92px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body.home-v2 .mw-card .wx-main > .temperature-card #tempChart { height: 122px !important; }
  body.home-v2 .mw-card .wx-main > .rain-card #rainChart { height: 56px !important; }

  /* The legend itself occupies the Sketch position — not a placeholder button. */
  body.home-v2 .map-legend-toggle { display: none !important; }
  body.home-v2 .map-wrap > .dashboard-legend,
  body.home-v2 .map-wrap > .dashboard-legend.is-open {
    position: absolute !important;
    inset: 38px auto auto 72.8% !important;
    width: 16.67% !important;
    height: 50px !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    padding: 6px 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  body.home-v2 .dashboard-legend .legend-group { gap: 2px !important; }
  body.home-v2 .dashboard-legend :is(h3, h4) { font-size: 8px !important; line-height: 9px !important; }
  body.home-v2 .dashboard-legend .labels span { font-size: 6px !important; }

  /* Attribution is pinned to the dot; zoom sits directly above it. */
  body.home-v2 .maplibregl-ctrl-bottom-right {
    right: 20px !important;
    bottom: 20px !important;
    width: 48px !important;
    min-height: 120px !important;
  }
  body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    max-width: 48px !important;
  }
  body.home-v2 .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
    position: absolute !important;
    right: 0 !important;
    bottom: 34px !important;
    margin: 0 !important;
  }

  /* One left rail, four grid rows: cards cannot overlap each other. */
  body.home-v2 .mw-card .wx-main {
    position: absolute !important;
    inset: 38px auto auto 1.5% !important;
    width: 20.68% !important;
    height: 596px !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 224px 92px 149px 101px !important;
    grid-template-areas: "current" "sun" "temperature" "rain" !important;
    gap: 10px !important;
    overflow: visible !important;
  }
  body.home-v2 .mw-card .wx-main > .wx-current-panel,
  body.home-v2 .mw-card .wx-main > .sun-card,
  body.home-v2 .mw-card .wx-main > .temperature-card,
  body.home-v2 .mw-card .wx-main > .rain-card {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body.home-v2 .mw-card .wx-main > .wx-current-panel { grid-area: current !important; grid-template-rows: 44px 96px minmax(0, 1fr) !important; }
  body.home-v2 .mw-card .wx-main > .sun-card { grid-area: sun !important; }
  body.home-v2 .mw-card .wx-main > .temperature-card { grid-area: temperature !important; }
  body.home-v2 .mw-card .wx-main > .rain-card { grid-area: rain !important; }

  /* Sketch coordinates are relative to the inner map, not its outer frame. */
  body.home-v2 .mw-head #searchForm,
  body.home-v2 .mw-head .map-legend-toggle,
  body.home-v2 .mw-head .unit-toggle { top: 16px !important; }
  body.home-v2 .map-wrap > .dashboard-legend,
  body.home-v2 .map-wrap > .dashboard-legend.is-open { inset: 16px auto auto 72.8% !important; }
  body.home-v2 .mw-card .wx-main { inset: 16px auto auto 1.5% !important; }
}

/* Location header: city and timestamp never compete for a single line. */
body.home-v2 .wx-current-panel .wx-top {
  min-height: 54px !important;
  height: 54px !important;
  padding: 8px 12px !important;
}
body.home-v2 .wx-current-panel .wx-place {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  row-gap: 4px !important;
  align-content: center !important;
}
body.home-v2 .wx-current-panel .wx-place .name {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}
body.home-v2 .wx-current-panel .wx-place .meta {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-self: stretch !important;
  width: 100% !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 16px !important;
  font-size: 10px !important;
  line-height: 1 !important;
}
body.home-v2 .wx-current-panel .wx-place .meta #sunTimezone {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
@media (min-width: 981px) {
  body.home-v2 .mw-card .wx-main > .wx-current-panel {
    grid-template-rows: 54px 86px minmax(0, 1fr) !important;
  }
}

/* Tablet is not a shrunken desktop HUD.  The previous 681–980px rules kept
   desktop overlays alive and stretched both charts across the map.  Keep the
   radar usable here, then place the four forecast cards below it. */
@media (min-width: 681px) and (max-width: 980px) {
  body.home-v2 .mw-card,
  body.home-v2 .mw-body,
  body.home-v2 .wx-wrap {
    height: auto !important;
    min-height: 0 !important;
  }

  body.home-v2 .mw-card {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.home-v2 .mw-head {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 0 12px !important;
    transform: none !important;
  }

  body.home-v2 .mw-body {
    display: block !important;
    overflow: visible !important;
  }

  body.home-v2 .map-wrap {
    position: relative !important;
    inset: auto !important;
    height: clamp(440px, 60svh, 540px) !important;
    min-height: clamp(440px, 60svh, 540px) !important;
    overflow: hidden !important;
    border: 1px solid rgba(220, 237, 248, .16) !important;
    border-radius: 16px !important;
    background: #0a1116 !important;
  }

  body.home-v2 #map {
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
  }

  body.home-v2 .wx-wrap {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    margin-top: 12px !important;
    overflow: visible !important;
    background: transparent !important;
  }

  body.home-v2 .wx-main {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "current sun"
      "temperature rain" !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  body.home-v2 .wx-main > .wx-current-panel,
  body.home-v2 .wx-main > .sun-card,
  body.home-v2 .wx-main > .temperature-card,
  body.home-v2 .wx-main > .rain-card {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.home-v2 .wx-current-panel { grid-area: current !important; grid-template-rows: 56px 112px 126px !important; }
  body.home-v2 .sun-card { grid-area: sun !important; padding: 14px 16px !important; }
  body.home-v2 .temperature-card { grid-area: temperature !important; padding: 14px 16px 10px !important; }
  body.home-v2 .rain-card { grid-area: rain !important; height: 138px !important; padding: 14px 16px 10px !important; }
  body.home-v2 #tempChart { height: 154px !important; }
  body.home-v2 #rainChart { height: 96px !important; }
}

/* One rail, one edge.  The Sketch draft used two provisional widths; in the
   rendered product that produced visibly drifting left/right margins. */
@media (min-width: 981px) {
  body.home-v2 .mw-card .wx-main {
    inset: 16px auto auto 17px !important;
    width: 278px !important;
    grid-template-rows: 224px 92px 149px 101px !important;
    gap: 8px !important;
  }

  body.home-v2 .mw-card .wx-main > .wx-current-panel,
  body.home-v2 .mw-card .wx-main > .sun-card,
  body.home-v2 .mw-card .wx-main > .temperature-card,
  body.home-v2 .mw-card .wx-main > .rain-card {
    width: 278px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: stretch !important;
    transform: none !important;
  }
}

/* Conditions: icon above value above label in each equal-width column. */
body.home-v2 .wx-current-panel .wx-grid > * {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 18px auto auto !important;
  justify-items: center !important;
  align-content: center !important;
  row-gap: 3px !important;
}
body.home-v2 .wx-current-panel .kv-ico {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}
body.home-v2 .wx-current-panel .kv-val {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-self: center !important;
}
body.home-v2 .wx-current-panel .kv-label {
  grid-column: 1 !important;
  grid-row: 3 !important;
  justify-self: center !important;
  text-align: center !important;
}

/* Use the available upper half of the temperature card before the footer labels. */
body.home-v2 .temperature-card #tempChart {
  position: relative !important;
  top: -14px !important;
  margin-bottom: -14px !important;
}

/* Exact Sketch rail: coordinates are relative to the 1320×620 map surface. */
@media (min-width: 981px) {
  body.home-v2 .mw-card .wx-main {
    inset: 16px auto auto 17px !important;
    width: 278px !important;
    height: 593px !important;
    grid-template-rows: 224px 92px 149px 101px !important;
    gap: 8px !important;
  }
  body.home-v2 .mw-card .wx-main > .wx-current-panel {
    grid-template-rows: 54px 86px minmax(0, 1fr) !important;
    width: 273px !important;
    margin-left: 3px !important;
    justify-self: start !important;
  }
  body.home-v2 .mw-card .wx-main > .sun-card {
    width: 273px !important;
    margin-left: 3px !important;
    justify-self: start !important;
  }
  body.home-v2 .mw-card .wx-main > .temperature-card,
  body.home-v2 .mw-card .wx-main > .rain-card {
    width: 278px !important;
    justify-self: start !important;
  }
  body.home-v2 .mw-card .wx-main > .rain-card {
    transform: translateY(3px) !important;
  }
  body.home-v2 .mw-card .wx-main > .temperature-card #tempChart {
    height: 122px !important;
  }
}

/* Mobile search is part of the normal page flow above the map.  The compact
   desktop HUD recentres its parent with `left: 50%`; reset that transform here
   so the form cannot escape through the right edge of a narrow viewport. */
@media (max-width: 680px) {
  body.home-v2 .mw-head {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    transform: none !important;
  }
}

/* Final sun-metric hierarchy: icon, value, then label — like the condition metrics. */
/* At usable tablet width the forecast stays compact: two original-size cards
   per row instead of four full-width slabs. */
@media (min-width: 540px) and (max-width: 980px) {
  body.home-v2 .wx-main {
    grid-template-columns: repeat(2, minmax(0, min(278px, calc((100% - 12px) / 2)))) !important;
    grid-template-rows: 224px 101px !important;
    grid-template-areas:
      "current temperature"
      "sun rain" !important;
    justify-content: start !important;
    align-items: start !important;
    gap: 12px !important;
  }

  body.home-v2 .wx-main > .wx-current-panel,
  body.home-v2 .wx-main > .sun-card,
  body.home-v2 .wx-main > .temperature-card,
  body.home-v2 .wx-main > .rain-card {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-self: start !important;
  }

  body.home-v2 .wx-main > .wx-current-panel {
    height: 224px !important;
    grid-template-rows: 54px 86px minmax(0, 1fr) !important;
  }
  body.home-v2 .wx-main > .sun-card { height: 92px !important; }
  body.home-v2 .wx-main > .temperature-card { height: 149px !important; }
  body.home-v2 .wx-main > .rain-card { height: 101px !important; }
  body.home-v2 .wx-main > .temperature-card #tempChart { height: 122px !important; }
  body.home-v2 .wx-main > .rain-card #rainChart { height: 74px !important; }
}

/* Give the current-condition symbol enough visual weight without stealing
   space from the city, temperature, or forecast copy. */
body.home-v2 .wx-current-panel .wx-hero {
  grid-template-columns: auto minmax(0, 1fr) 60px !important;
}
body.home-v2 .wx-current-panel .wx-icon {
  width: 60px !important;
  height: 60px !important;
}

body.home-v2 .sun-values {
  margin-top: 6px !important;
}
body.home-v2 .sun-stat {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 16px auto auto !important;
  justify-content: stretch !important;
  justify-items: center !important;
  align-content: center !important;
  column-gap: 0 !important;
  row-gap: 2px !important;
}
body.home-v2 .sun-stat svg {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
}
body.home-v2 .sun-stat strong {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-self: center !important;
}
body.home-v2 .sun-stat span {
  grid-column: 1 !important;
  grid-row: 3 !important;
  justify-self: center !important;
  text-align: center !important;
}

/* Final rail rhythm: every card shares the identical outside edge and gap. */
@media (min-width: 981px) {
  body.home-v2 .mw-card .wx-main {
    inset: 16px auto auto 17px !important;
    width: 278px !important;
    height: 593px !important;
    grid-template-rows: 224px 92px 149px 101px !important;
    gap: 8px !important;
  }

  body.home-v2 .mw-card .wx-main > .wx-current-panel,
  body.home-v2 .mw-card .wx-main > .sun-card,
  body.home-v2 .mw-card .wx-main > .temperature-card,
  body.home-v2 .mw-card .wx-main > .rain-card {
    width: 278px !important;
    margin: 0 !important;
    justify-self: stretch !important;
    transform: none !important;
  }
}

/* Mobile/tablet sections share the map's 12px page gutter. The map itself is
   intentionally left untouched so its current width is preserved. */
@media (max-width: 980px) {
  body.home-v2 .home-app-showcase {
    width: calc(100% - 24px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.home-v2 .home-app-copy {
    min-width: 0;
  }

  body.home-v2 .seo-wrap,
  body.home-v2 .popular-cities {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

/* Foldables and tablets keep the product screen beside the copy.  A smaller
   internal gap and responsive device column give the heading a useful line
   length without changing the section's outside rail. */
@media (min-width: 681px) and (max-width: 980px) {
  body.home-v2 .home-app-showcase {
    padding: clamp(22px, 3.2vw, 32px) !important;
    grid-template-columns: minmax(0, 1fr) clamp(200px, 30vw, 230px) !important;
    column-gap: clamp(18px, 3vw, 28px) !important;
    row-gap: 0 !important;
    align-items: center !important;
  }

  body.home-v2 .home-app-copy {
    width: auto;
    max-width: none;
  }

  body.home-v2 .home-app-copy h2 {
    max-width: none;
    font-size: clamp(40px, 6vw, 48px) !important;
    line-height: 1.04;
    text-wrap: balance;
  }

  body.home-v2 .home-app-details {
    max-width: none;
  }

  body.home-v2 .home-app-device {
    width: 100% !important;
    max-width: 230px;
    margin: 0 !important;
    justify-self: end;
    align-self: center !important;
  }
}

@media (max-width: 680px) {
  body.home-v2 .home-app-showcase {
    padding: 28px 16px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 28px !important;
  }

  body.home-v2 .home-app-copy {
    width: 100%;
    max-width: none;
  }

  body.home-v2 .home-app-copy h2 {
    max-width: none;
    font-size: clamp(36px, 10vw, 44px) !important;
    line-height: 1.06;
    text-wrap: balance;
  }

  body.home-v2 .home-app-details {
    max-width: none;
    margin-top: 24px;
  }

  body.home-v2 .home-app-showcase .store-badges {
    justify-content: center !important;
  }

  body.home-v2 .home-app-device {
    width: min(230px, 75vw) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    justify-self: center;
  }
}
