/* ── Emergency Alerts ─────────────────────────────────────────────────────────
   Receive-only NWS weather-alert banner. The device is dark/brass, but the alert
   banner is unmistakably a WARNING: red/amber, fixed full-width across the top.
   z-index sits ABOVE panels (58–60) but BELOW the alarm ring overlay (90) so a
   ringing alarm always reads on top. The opt-in disclaimer overlay matches.
   ──────────────────────────────────────────────────────────────────────────── */

/* Alert banner — fixed top, full width */
#alerts-mount {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;                 /* above panels (58–60), below ring overlay (90) */
  display: none;               /* render() flips to flex when alerts present */
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.nw-alert-item {
  background: linear-gradient(90deg, rgba(195,35,25,0.97), rgba(150,18,18,0.97));
  border-bottom: 1px solid rgba(255,120,70,0.45);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  padding: 10px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,232,222,0.98);
}
.nw-alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.nw-alert-body { flex: 1; min-width: 0; }
.nw-alert-title { font-weight: 700; font-size: 0.86rem; margin-bottom: 2px; letter-spacing: 0.01em; }
.nw-alert-desc { font-size: 0.76rem; color: rgba(255,214,198,0.86); line-height: 1.4; }
.nw-alert-dismiss {
  background: none;
  border: 1px solid rgba(255,160,135,0.5);
  border-radius: 5px;
  color: rgba(255,205,192,0.85);
  font-size: 0.72rem;
  padding: 3px 10px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  margin-top: 1px;
  transition: background 0.12s, color 0.12s;
}
.nw-alert-dismiss:hover { background: rgba(255,80,55,0.28); color: #fff; }

/* ── Disclaimer / Terms overlay ─────────────────────────────────────────────── */
#nw-alerts-disclaimer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,4,0.86);
  z-index: 85;                 /* above panels, below the ring overlay (90) */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
#nw-alerts-disclaimer.hidden { display: none; }

.nw-disc-modal {
  background: linear-gradient(168deg, #3a1208 0%, #1c0904 60%, #120600 100%);
  border: 1.5px solid #7a2a14;
  border-top: 3px solid rgba(220,70,45,0.9);
  border-radius: 12px;
  box-shadow: 0 14px 48px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,150,90,0.12);
  padding: 22px 26px 20px;
  max-width: 520px;
  width: 92vw;
  max-height: 84vh;
  overflow-y: auto;
  color: rgba(255,224,212,0.86);
  font-size: 0.78rem;
  line-height: 1.62;
}
.nw-disc-modal h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: rgba(255,236,228,0.96);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.nw-disc-modal .nw-disc-sub {
  font-size: 0.7rem;
  color: rgba(255,180,150,0.6);
  margin-bottom: 14px;
  display: block;
}
.nw-disc-modal ol { padding-left: 18px; margin: 0 0 18px; }
.nw-disc-modal li { margin-bottom: 7px; }
.nw-disc-modal li strong { color: rgba(255,210,180,0.98); }

.nw-disc-btns { display: flex; gap: 10px; justify-content: flex-end; }
.nw-disc-btn {
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid;
  transition: background 0.12s, color 0.12s;
}
.nw-disc-cancel { background: none; border-color: rgba(255,160,130,0.3); color: rgba(255,190,165,0.7); }
.nw-disc-cancel:hover { background: rgba(255,120,90,0.1); color: rgba(255,220,200,0.95); }
.nw-disc-accept { background: rgba(200,55,35,0.28); border-color: rgba(230,90,60,0.7); color: rgba(255,228,215,0.98); }
.nw-disc-accept:hover { background: rgba(210,60,40,0.45); }

.nw-disc-note {
  margin-top: 12px;
  font-size: 0.74rem;
  color: rgba(255,170,140,0.85);
  min-height: 0;
}
.nw-disc-note:empty { display: none; }

/* ── About-panel toggle row ─────────────────────────────────────────────────── */
.nw-ea-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(120,200,150,0.15);
}
.nw-ea-label { flex: 1; font-size: 0.82rem; }
.nw-ea-label .nw-ea-sub { display: block; font-size: 0.68rem; opacity: 0.6; margin-top: 1px; }
.nw-ea-toggle {
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.74rem;
  padding: 4px 12px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.12s, background 0.12s;
}
.nw-ea-toggle:hover { opacity: 1; }
.nw-ea-toggle.on { background: rgba(220,70,45,0.35); border-color: rgba(230,90,60,0.8); opacity: 1; }
