/* Weather desk. Blue instrument, not a stills clone. */
.wx-now {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: end;
  padding: 1.1rem var(--gutter) 1.2rem;
  background: #121a28;
  border-top: 1px solid #243044;
  border-bottom: 1px solid #243044;
}
.wx-temp {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6rem);
  line-height: 0.9;
  color: #e8eef8;
}
.wx-now #cond { margin: 0 0 0.35rem; font-size: 1.25rem; }
.wx-meta { margin: 0; color: #8ea0b8; font-size: 0.92rem; }
.wx-tools { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.wx-places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.4rem;
}
/* Pills come from the canonical chip system in app.css; only the blue
   weather palette lives here. */
.wx-places button {
  border-color: #2a3a52;
  background: #121a28;
  color: #d5deea;
}
.wx-places button:hover { border-color: #7aa2ff; color: #e8eef8; }
.wx-places button[aria-current="true"] { border-color: #7aa2ff; color: #7aa2ff; }
.wx-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 22rem;
}
@media (max-width: 800px) {
  .wx-now { grid-template-columns: 1fr; gap: 0.5rem; align-items: start; }
  /* Phone: the forecast is the answer — put it above the alert map. */
  .wx-split { grid-template-columns: 1fr; }
  .wx-split #wx-map { order: 2; }
  .wx-split .wx-forecast { order: 1; }
  /* One swipeable row of passes instead of a six-row wall of chips. */
  .wx-places {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.25rem), transparent);
  }
  .wx-places button { flex: 0 0 auto; }
}
#wx-map { min-height: 22rem; background: #0a0e14; }
.wx-forecast {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  list-style: none;
  background: #0e141e;
}
.wx-forecast li {
  display: grid;
  grid-template-columns: 7rem 3.2rem 1fr;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #243044;
  color: #d5deea;
}
.wx-forecast .deg { color: #7aa2ff; font-family: var(--font-clock); }
.wx-alerts { padding-top: 1.2rem; padding-bottom: 2rem; }
.wx-alerts .alert-card { border-left-color: #7aa2ff; background: #121a28; }
