:root{
  --bg0:#070a12;
  --bg1:#0b0f1a;
  --card:#0f1626cc;
  --card2:#101a2dcc;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --muted2:rgba(255,255,255,.44);
  --amber:#f8c35f;
  --shadow: 0 18px 45px rgba(0,0,0,.55);
  --radius: 22px;
  --radius2: 18px;
  --max: 980px;
  --pad: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
}

*{box-sizing:border-box}
html{
  height:100%;
  background: var(--bg1); /* Explicit dark background for iOS safe area */
}
body{
  height:100%;
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(106,132,255,.18), transparent 60%),
    radial-gradient(700px 500px at 105% 20%, rgba(255,167,84,.12), transparent 55%),
    radial-gradient(900px 700px at 40% 120%, rgba(80,210,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.app{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding: 28px var(--pad) 44px;
  background: var(--bg1); /* Ensure dark background extends to app container */
}

.topbar{
  width:min(var(--max), 100%);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding: calc(6px + var(--safe-top)) 2px 18px; /* Add safe area padding for iOS */
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: var(--bg1); /* Ensure dark background in safe area */
}
.topbar__search{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.zipCodeInput{
  width: 90px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: border-color .12s ease, background .12s ease;
}
.zipCodeInput:focus{
  outline: none;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.zipCodeSearchBtn,
.locationBtn{
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.zipCodeSearchBtn:hover,
.locationBtn:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.locationBtn{
  padding: 8px 10px;
  font-size: 16px;
}
.updatedTime{
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.place__title{
  font-size: 34px;
  font-weight: 700;
  letter-spacing:-.02em;
}
.place__state{
  font-weight:600;
  color:var(--muted);
}
.place__header{
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.place__location{
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
}

 .place__sponsor{
   margin-top: 6px;
   font-size: 12px;
   font-weight: 650;
   color: rgba(255,255,255,.62);
 }

 .place__sponsorLink{
   color: rgba(255,255,255,.86);
   text-decoration: none;
   border-bottom: 1px solid rgba(255,255,255,.22);
 }

 .place__sponsorLink:hover{
   border-bottom-color: rgba(255,255,255,.40);
 }

.updated{
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--muted);
  font-weight:600;
}
.updated__label{opacity:.85}
.updated__value{color:var(--text)}

.content{
  width:min(var(--max), 100%);
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.hero .radarCard{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.radarMedia{
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
}

.radarPoster, .radarVideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.radarVideo{
  opacity:0;
  transition: opacity .35s ease;
}

.radarOverlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.radarTimeline{
  display:flex;
  align-items:center;
  gap:12px;
  color: rgba(255,255,255,.78);
  font-weight:700;
  letter-spacing:.08em;
  font-size: 12px;
}

.radarTimeline__bar{
  position:relative;
  flex:1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  overflow:hidden;
}

.radarTimeline__fill{
  width:55%;
  height:100%;
  background: linear-gradient(90deg, rgba(122,200,255,.65), rgba(90,155,255,.88));
}

.radarTimeline__dot{
  position:absolute;
  top:50%;
  left: calc(55% - 8px);
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 3px rgba(0,0,0,.35);
}

.heroInsight{
  margin-top: 12px;
  text-align:center;
  font-size: 18px;
  font-weight: 650;
  color: rgba(255,255,255,.90);
  opacity: 1;
}

.radarMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Ensure Leaflet tiles don't show seams and inherit your dark UI */
.radarMap .leaflet-container {
  background: #1e2430; /* Charcoal background (lightened ~5% more from #1a2029) */
  border-radius: 18px;
  height: 100%;
  width: 100%;
}

.radarMap .leaflet-control-attribution {
  display: none;
}

/* Lighten map tiles to charcoal/slate tone while preserving radar visibility */
.radarMap .leaflet-tile-container img {
  display: block;
  filter: brightness(1.40) contrast(0.97) saturate(0.87);
  /*
   * brightness(1.40): Lightens tiles ~40% from near-black to lighter charcoal
   * contrast(0.97): Slightly softens contrast for smoother look
   * saturate(0.87): Low saturation maintained for muted, modern aesthetic
   */
}

/* Radar smoothing: subtle blur for minimal edge softening */
img[src*="/cache/radar/"] {
  filter: blur(0.4px) contrast(1.02) brightness(1.01);
  image-rendering: smooth;
  -webkit-font-smoothing: antialiased;
}

/* NWS warning polygons styling */
.nws-warning-tornado {
  animation: nws-warning-pulse 2s ease-in-out infinite alternate;
}

@keyframes nws-warning-pulse {
  0% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.95;
  }
}

/* Gahanna location marker */
.gahanna-marker {
  font-size: 16px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.7),
     1px -1px 0 rgba(0, 0, 0, 0.7),
    -1px  1px 0 rgba(0, 0, 0, 0.7),
     1px  1px 0 rgba(0, 0, 0, 0.7) !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  pointer-events: none !important;
}

.nowRow{
  display:flex;
  align-items:flex-start;
  gap: 18px;
  padding: 10px 4px 0;
}

.meteoRow{
  padding: 12px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* When meteoRow is inside nowRow, adjust styling */
.nowRow .meteoRow{
  padding: 0;
  margin-top: -2px; /* Align with temperature baseline */
}

.meteoLane{
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
}

.meteoLabel{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  min-width: 80px;
  opacity: 0.8;
}

.meteoValues{
  font-weight: 500;
  letter-spacing: -0.01em;
  flex: 1;
}

.nowTemp{
  font-size: 56px;
  font-weight: 800;
  letter-spacing:-.03em;
  line-height:1;
}

.nowStats{
  flex:1;
  display:flex;
  align-items:center;
  gap: 14px;
  color: var(--muted);
  flex-wrap:wrap;
}

.stat{
  display:flex;
  gap:8px;
  align-items:baseline;
  font-weight:650;
}

.stat__label{
  color: var(--muted2);
  font-weight:700;
}

.stat__value{
  color: var(--text);
  letter-spacing:-.01em;
}

.divider{
  width:1px;
  height: 18px;
  background: rgba(255,255,255,.14);
}

.alerts{
  margin-top: 4px;
}

.alertPill{
  width:100%;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  position: relative;
  overflow: hidden;
}
.alertPill:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}

/* Severity-based styling - subtle border and shadow only, preserve background */
.alertPill--extreme {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.12), 0 0 0 1px rgba(239, 68, 68, 0.1) inset;
}
.alertPill--extreme:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.18), 0 0 0 1px rgba(239, 68, 68, 0.15) inset;
}

.alertPill--severe {
  border-color: rgba(251, 146, 60, 0.3);
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.1), 0 0 0 1px rgba(251, 146, 60, 0.08) inset;
}
.alertPill--severe:hover {
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 12px 35px rgba(251, 146, 60, 0.15), 0 0 0 1px rgba(251, 146, 60, 0.12) inset;
}

.alertPill--moderate {
  border-color: rgba(250, 204, 21, 0.25);
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.08), 0 0 0 1px rgba(250, 204, 21, 0.06) inset;
}
.alertPill--moderate:hover {
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 12px 35px rgba(250, 204, 21, 0.12), 0 0 0 1px rgba(250, 204, 21, 0.1) inset;
}

.alertPill--minor {
  border-color: rgba(96, 165, 250, 0.2);
  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.06), 0 0 0 1px rgba(96, 165, 250, 0.05) inset;
}
.alertPill--minor:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 35px rgba(96, 165, 250, 0.1), 0 0 0 1px rgba(96, 165, 250, 0.08) inset;
}

/* Unknown/default - subtle amber accent */
.alertPill--unknown,
.alertPill:not([data-severity]) {
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.06), 0 0 0 1px rgba(251, 191, 36, 0.05) inset;
}
.alertPill--unknown:hover,
.alertPill:not([data-severity]):hover {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.1), 0 0 0 1px rgba(251, 191, 36, 0.08) inset;
}
.alertPill__icon{font-size: 18px}
.alertPill__title{
  font-weight:750;
  color: rgba(255,255,255,.92);
}
.alertPill__meta{
  margin-left:auto;
  color: rgba(255,255,255,.72);
  font-weight:650;
}

/* Alert Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.modal.is-open {
  display: block;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  max-width: 560px;
  margin: 8vh auto;
  background: #0f1626;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow: hidden;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.8);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .12s ease, color .12s ease;
}
.modal__close:hover {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
}
.modal__header {
  display: flex;
  gap: 12px;
  padding: 18px 18px 10px;
  align-items: center;
}
.modal__badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
}
.modal__titles {
  flex: 1;
  min-width: 0;
}
.modal__title {
  font-size: 16px;
  font-weight: 700;
  color: #e6edf6;
}
.modal__meta {
  font-size: 12px;
  color: rgba(230,237,246,.7);
  margin-top: 2px;
}
.modal__body {
  padding: 0 18px 16px;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal__headline {
  font-size: 13px;
  color: rgba(230,237,246,.85);
  margin: 6px 0 14px;
  font-weight: 600;
}
.modal__sectionTitle {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(230,237,246,.55);
  margin: 12px 0 6px;
  font-weight: 650;
}
.modal__text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(230,237,246,.9);
  white-space: pre-line;
}
.modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.modal__disclaimer{
  flex-basis: 100%;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,.55);
  opacity: .9;
}
.modal__link {
  color: rgba(230,237,246,.9);
  text-decoration: underline;
  font-size: 14px;
  transition: color .12s ease;
}
.modal__link:hover {
  color: rgba(230,237,246,1);
}
.modal__btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  color: #e6edf6;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .12s ease, border-color .12s ease;
}
.modal__btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.12);
}

.hourlyStrip{
  display:flex;
  gap: 12px;
  overflow:auto;
  padding: 8px 2px 10px;
  scrollbar-width: none;
}
.hourlyStrip::-webkit-scrollbar{display:none}

.hour{
  min-width: 85px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 11px 11px 9px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  text-align:center;
}
.hour__time{
  color: rgba(255,255,255,.70);
  font-weight:700;
  letter-spacing:.02em;
}
.hour__temp{
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing:-.02em;
}
.hour__pop{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 650;
  color: rgba(255,255,255,.60);
  letter-spacing:.01em;
}
.hour__icon{
  margin-top: 6px;
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
  color: #e6edf6; /* soft off-white */
}
.hour__icon .wi {
  display: inline-block;
  font-family: 'weathericons';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Slightly dimmer at night */
.wi-night-alt-clear,
.wi-night-alt-cloudy,
.wi-night-alt-rain,
.wi-night-alt-snow {
  opacity: 0.75;
}

.forecastStrip{
  display:flex;
  gap: 12px;
  overflow:auto;
  padding: 8px 2px 10px;
  scrollbar-width: none;
}
.forecastStrip::-webkit-scrollbar{display:none}

.forecastDay{
  min-width: 140px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 14px 12px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  text-align:center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.forecastDay__name{
  color: rgba(255,255,255,.80);
  font-weight: 700;
  font-size: 13px;
  letter-spacing:.02em;
}
.forecastDay__temp{
  font-size: 18px;
  font-weight: 800;
  letter-spacing:-.02em;
  color: var(--text);
}
.forecastDay__pop{
  font-size: 11px;
  font-weight: 650;
  color: rgba(255,255,255,.60);
  letter-spacing:.01em;
}
.forecastDay__icon{
  margin: 4px 0;
  font-size: 24px;
  line-height: 1;
  opacity: 0.85;
  color: #e6edf6;
}
.forecastDay__icon .wi {
  display: inline-block;
  font-family: 'weathericons';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.forecastDay__forecast{
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.70);
  line-height: 1.3;
  margin-top: 2px;
  letter-spacing:.01em;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 2px;
}
.card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 14px 14px 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}
.card__title{
  color: rgba(255,255,255,.62);
  font-weight: 750;
  letter-spacing:.02em;
}
.card__subtitle{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.50);
  letter-spacing: .01em;
}
.card__value{
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing:-.02em;
}
.card__value--moon{
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}
.aqiDot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.card__hint{
  display:inline-block;
}
.card__hint sub {
  font-size: 0.7em;
  vertical-align: sub;
  font-weight: 600;
}

/* Radar Info Button */
.radarInfoBtn{
  position:absolute;
  bottom:10px;
  right:10px;
  width:34px;height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(15,22,38,.55);
  color:rgba(255,255,255,.92);
  font-weight:800;
  cursor:pointer;
  z-index: 800;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display:grid;
  place-items:center;
}
.radarInfoBtn:hover{ border-color: rgba(255,255,255,.30); background:rgba(15,22,38,.68); }

.radarTime{
  position:absolute;
  left:10px;
  bottom:10px;
  z-index: 800;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(15,22,38,.55);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.radarLegend{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  z-index:3000;
}
.radarLegend[aria-hidden="false"]{ display:block; }

.radarLegend__panel{
  position:absolute;
  right:18px; bottom:18px;
  width: 320px;
  padding: 16px 16px 14px;
  border-radius: 18px;

  /* glass */
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: rgba(255,255,255,.92);
  transform: translateY(0);
  opacity: 1;
}

.radarLegend__close{
  position:absolute; top:10px; right:12px;
  border:none; background:transparent;
  color: rgba(255,255,255,.90);
  font-size: 22px;
  cursor:pointer;
  line-height: 1;
}

.radarLegend__titleRow{ display:flex; flex-direction:column; gap:2px; padding-right:28px; }
.radarLegend__title{ font-size: 14px; font-weight: 800; letter-spacing:.2px; }
.radarLegend__subtitle{ font-size: 12px; color: rgba(255,255,255,.65); }

.radarLegend__hint{ margin-top:10px; font-size:12px; color: rgba(255,255,255,.70); }

.radarLegend__scale{
  margin-top: 12px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.radarLegend__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.radarLegend__label{
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.radarLegend__bar{
  flex: 1;
  height: 10px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.radarLegend__barFill{
  height:100%;
  width:100%;
  background: linear-gradient(90deg, var(--c0), var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6));
}

.radarLegend__ticks{
  display:flex;
  justify-content:space-between;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.58);
}

.radarLegend__warn{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.radarLegend__warnTitle{ font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.radarLegend__warnItems{ display:flex; flex-direction:column; gap:6px; }
.radarLegend__warnItem{
  display:flex; align-items:center; gap:8px;
  font-size: 12px; color: rgba(255,255,255,.80);
}
.radarLegend__warnSwatch{
  width: 12px; height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.20);
}
.radarLegend__warnNote{
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.60);
}

.radarLegend__note{
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
}

.radarLegend__disclaimer{
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255,255,255,.45);
}

/* Mobile slide-up animation */
@media (max-width: 760px){
  .radarLegend__panel{
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    border-radius: 20px;
  }
  .radarLegend[aria-hidden="false"] .radarLegend__panel{
    animation: legendSlideUp .18s ease-out both;
  }
}
@keyframes legendSlideUp{
  from{ transform: translateY(14px); opacity: .0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* Departure from normal states */
.card.is-warm .card__value {
  color: rgba(251, 146, 60, 0.9);
}
.card.is-cold .card__value {
  color: rgba(96, 165, 250, 0.9);
}
.card.is-neutral .card__value {
  color: rgba(230, 237, 246, 0.95);
}

/* App update prompt */
#app-update-prompt {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 600px){
  .place__title{font-size: 28px}
  .place__location{font-size: 14px}
  .nowRow{flex-direction:column; align-items:flex-start; gap: 10px}
  .nowTemp{font-size: 52px}
  .divider{display:none}
  .meteoRow{gap: 6px;}
  .meteoLane{gap: 8px;}
  .meteoLabel{min-width: 70px; font-size: 10px;}
  .cards{grid-template-columns: repeat(2, 1fr); }
  .radarMedia{ height: 420px; }
  .topbar__search{
    flex-wrap: wrap;
    gap: 6px;
  }
  .zipCodeInput{
    width: 80px;
    font-size: 13px;
    padding: 6px 10px;
  }
  .zipCodeSearchBtn,
  .locationBtn{
    padding: 6px 12px;
    font-size: 13px;
  }
  .locationBtn{
    padding: 6px 8px;
    font-size: 14px;
  }

  /* Mobile typography adjustments */
  .updated__label,
  .updated__value{font-size: 14px}
  .heroInsight{font-size: 16px}
  .nowTemp{font-size: 48px}
  .stat__label,
  .stat__value{font-size: 16px; font-weight: 500}
  .card__title{font-size: 14px; font-weight: 700}
  .card__value{font-size: 14px; font-weight: 500}
  .card__value--moon{font-size: 12px; font-weight: 500}
  .card__hint{font-size: 12px;}
}