/* ============================================================
   TERRA NOVA — Weather page + 3D map
   ============================================================ */

.wx { position: relative; z-index: 2; padding: calc(var(--nav-h) + 2.2rem) 0 clamp(2rem, 5vh, 3rem); }

/* --- heat banner --- */
.wx-banner {
  display: flex; align-items: flex-start; gap: 1rem;
  border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 1.1rem 1.3rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  background: rgba(9, 15, 26, .7);
  position: relative; overflow: hidden;
}
.wx-banner::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--solar);
}
.wx-banner--high::before { background: var(--solar-deep, #ff8f45); }
.wx-banner--extreme::before { background: #ff6b5e; }
.wx-banner__dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  margin-top: .45rem; background: var(--solar);
  box-shadow: 0 0 0 0 rgba(255, 178, 87, .7);
  animation: pulse 2.2s ease-out infinite;
}
.wx-banner--extreme .wx-banner__dot { background: #ff6b5e; box-shadow: 0 0 0 0 rgba(255, 107, 94, .7); }
.wx-banner__copy strong { display: block; font-weight: 500; margin-bottom: .3rem; }
.wx-banner__copy p { color: var(--dim); font-size: .92rem; max-width: 90ch; }
.wx-banner__meta { margin-left: auto; color: var(--solar); white-space: nowrap; font-size: .6rem; }

/* --- current conditions --- */
.wx-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center;
}
.wx-now__main { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.4rem; }
.wx-now__main .wx-icon { width: clamp(56px, 8vw, 84px); height: auto; color: var(--solar); filter: drop-shadow(0 6px 24px rgba(255, 178, 87, .4)); }
.wx-now__temp {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.2rem, 11vw, 8rem); line-height: .9;
  font-variant-numeric: tabular-nums;
}
.wx-now__temp em { font-style: normal; font-size: .35em; color: var(--mute); margin-left: .1em; }
.wx-now__cond { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: .6rem; }
.wx-now__lede { color: var(--dim); max-width: 56ch; margin-top: .9rem; }
.wx-chips {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-top: 1.8rem;
  border-top: 1px solid var(--line); padding-top: 1.4rem;
}
.wx-chips dt { color: var(--mute); font-size: .56rem; letter-spacing: .18em; margin-bottom: .3rem; }
.wx-chips dd { margin: 0; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.wx-chips dd.is-hot { color: var(--solar); }
.wx-hero__cta { margin-top: 1.8rem; }

/* --- sector cards --- */
.wx-sectors { display: flex; flex-direction: column; gap: .8rem; }
.wx-sector {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(9, 15, 26, .6); padding: 1rem 1.2rem;
  transition: border-color .35s, transform .35s var(--ease);
}
.wx-sector:hover { border-color: var(--line-strong); transform: translateX(4px); }
.wx-sector.is-mine { border-color: rgba(127, 240, 192, .5); background: rgba(10, 24, 22, .5); }
.wx-sector .wx-icon { width: 30px; height: 30px; flex: 0 0 auto; color: var(--ice); }
.wx-sector.is-mine .wx-icon { color: var(--mint); }
.wx-sector__name { display: flex; flex-direction: column; min-width: 0; }
.wx-sector__name strong { font-weight: 500; }
.wx-sector__name span { color: var(--mute); font-size: .54rem; letter-spacing: .14em; }
.wx-sector__temp {
  margin-left: auto; font-family: var(--font-display); font-weight: 400;
  font-size: 1.7rem; font-variant-numeric: tabular-nums;
}
.wx-icon { width: 24px; height: 24px; }
/* --- 8-day simulation strip --- */
.wx-days {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .9rem;
}
.wx-day {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(9, 15, 26, .55); padding: 1.1rem .7rem;
  text-align: center; transition: transform .4s var(--ease), border-color .35s;
}
.wx-day:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.wx-day--high { border-color: rgba(255, 178, 87, .35); }
.wx-day--extreme { border-color: rgba(255, 107, 94, .5); background: rgba(30, 12, 10, .45); }
.wx-day__label { color: var(--mute); font-size: .54rem; letter-spacing: .14em; }
.wx-day .wx-icon { width: 30px; height: 30px; color: var(--ice); }
.wx-day--extreme .wx-icon { color: #ff9b8f; }
.wx-day__temps { display: flex; align-items: baseline; gap: .45rem; }
.wx-day__temps b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.wx-day__temps i { font-style: normal; color: var(--mute); font-size: .85rem; }
.wx-day__bar {
  width: 100%; height: 5px; border-radius: 99px; overflow: hidden;
  background: rgba(155, 190, 235, .14);
}
.wx-day__bar span {
  display: block; height: 100%; width: var(--w, 40%);
  background: linear-gradient(90deg, var(--solar), #ff6b5e);
  border-radius: 99px;
}
.wx-day__sev { color: var(--solar); font-size: .5rem; letter-spacing: .1em; }
.wx-day--extreme .wx-day__sev { color: #ff9b8f; }

/* --- heat watch / notifications --- */
.wx-notify {
  display: flex; justify-content: space-between; align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem); flex-wrap: wrap;
  border: 1px solid var(--line-strong); border-radius: 20px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 143, 69, .16), transparent 55%),
    rgba(9, 15, 26, .72);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.wx-notify__copy { max-width: 62ch; }
.wx-notify__copy h3 { font-size: 1.7rem; margin-bottom: .7rem; }
.wx-notify__copy p { color: var(--dim); font-size: .98rem; }
.wx-notify__state { margin-top: 1rem; color: var(--mint); font-size: .6rem; letter-spacing: .16em; min-height: 1.2em; }
.wx-notify__state.is-blocked { color: #ff9b8f; }
.wx-notify__actions { display: flex; flex-direction: column; gap: .8rem; min-width: 240px; }
.wx-notify__actions .btn { width: 100%; }

.wx-alert-list {
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: .8rem;
}
.wx-alert {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 1.2rem; align-items: start;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(9, 15, 26, .55); padding: 1.1rem 1.3rem;
}
.wx-alert--high { border-color: rgba(255, 178, 87, .4); }
.wx-alert--extreme { border-color: rgba(255, 107, 94, .55); background: rgba(30, 12, 10, .4); }
.wx-alert__day { color: var(--mute); font-size: .6rem; letter-spacing: .16em; padding-top: .3rem; }
.wx-alert__copy strong { font-weight: 500; display: block; margin-bottom: .35rem; }
.wx-alert__copy p { color: var(--dim); font-size: .9rem; }
.wx-alert__sev {
  color: var(--solar); font-size: .56rem; letter-spacing: .14em;
  border: 1px solid rgba(255, 178, 87, .45); border-radius: 99px;
  padding: .4em .8em; white-space: nowrap;
}
.wx-alert--extreme .wx-alert__sev { color: #ff9b8f; border-color: rgba(255, 107, 94, .55); }
.wx-alert--empty { display: block; color: var(--mute); text-align: center; }
.wx-fine { margin-top: 1.4rem; text-align: center; color: var(--mute); font-size: .56rem; letter-spacing: .18em; }
/* ============================================================

/* --- responsive (weather deck) --- */
@media (max-width: 1080px) {
  .wx-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .wx-hero { grid-template-columns: 1fr; }
  .wx-alert { grid-template-columns: 1fr; gap: .6rem; }
  .wx-alert__sev { justify-self: start; }
  .wx-notify__actions { min-width: 0; width: 100%; }
}

@media (max-width: 640px) {
  .wx-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-banner { flex-wrap: wrap; }
  .wx-banner__meta { margin-left: 0; width: 100%; }
  .wx-now__main { gap: .8rem; }
}
