/* ═══════════════════════════════════════════════
   CHRISTOPHER HORNE WX — SHARED DESIGN SYSTEM
   All pages link to this file.
═══════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  --bg:        #0a0c10;
  --bg-deep:   #070910;
  --bg-panel:  rgba(10, 12, 16, 0.90);
  --bg-panel2: rgba(10, 12, 16, 0.60);
  --txt:       #ffffff;
  --txt-2:     #8892a4;
  --txt-3:     #3d4758;
  --green:     #39ff14;
  --red:       #ff3b3b;
  --orange:    #ff8c00;
  --yellow:    #ffd700;
  --blue:      #4da6ff;
  --border:    rgba(255, 255, 255, 0.06);
  --border-2:  rgba(255, 255, 255, 0.13);
  --glow-g:    rgba(57, 255, 20, 0.15);
  --font-ui:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --radius:    10px;
  --radius-lg: 14px;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ────────────────────────────────────── */
body {
  font-family: var(--font-ui);
  background-color: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Atmospheric depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(0,70,30,0.14)  0%, transparent 70%),
    radial-gradient(ellipse 55% 70% at 5%  100%, rgba(0,30,80,0.10)  0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 95% 55%,  rgba(25,0,65,0.08)  0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(0,110,45,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.022) 3px, rgba(0,0,0,0.022) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ── NAV ─────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  background: rgba(7, 9, 16, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo svg {
  width: 30px;
  height: 30px;
  color: var(--green);
  filter: drop-shadow(0 0 8px rgba(57,255,20,0.5));
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--txt);
  line-height: 1;
}

.nav-logo-text span {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--green);
  margin-top: 3px;
  opacity: 0.8;
}

/* Link list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links > li { position: relative; }

/* Hover bridge so pointer can move from trigger to dropdown without closing */
.nav-links > li.has-drop::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-2);
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;
  transition: color .18s, background .18s;
  cursor: pointer;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--txt);
  background: rgba(255,255,255,0.055);
}

.nav-links > li > a.active { color: var(--green); }

/* Dropdowns */
.has-drop:hover .nav-drop { display: block; }

.nav-drop {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 210px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: rgba(6, 8, 14, 0.97);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 6px;
  z-index: 200;
  backdrop-filter: blur(20px);
}

.nav-drop a {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--txt-2);
  text-decoration: none;
  border-radius: 6px;
  transition: color .14s, background .14s;
}

.nav-drop a:hover {
  color: var(--txt);
  background: rgba(57,255,20,0.07);
}

/* Hamburger */
.nav-ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: auto;
  flex-shrink: 0;
}

.nav-ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt-2);
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile menu */
.nav-mob {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: rgba(6, 8, 14, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px 18px;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.nav-mob.open { display: flex; }

.nav-mob a {
  display: block;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-2);
  text-decoration: none;
  border-radius: 5px;
  transition: color .14s, background .14s;
}

.nav-mob a:hover { color: var(--txt); background: rgba(255,255,255,0.05); }

.mob-section {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--txt-3);
  padding: 10px 12px 3px;
}

/* ── PAGE LAYOUT ─────────────────────────────── */
.page-main {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 32px 24px 48px;
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* Page header */
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  opacity: 0.85;
}

.page-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--txt);
  line-height: 1;
  margin-bottom: 8px;
}

.page-sub {
  font-size: 13px;
  color: var(--txt-2);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

/* ── PANEL / GLASS CARD ──────────────────────── */
.panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--txt-3);
}

.panel-title-green { color: var(--green); opacity: 0.8; }

/* ── FORM ELEMENTS ───────────────────────────── */
label {
  display: block;
  margin-bottom: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt-2);
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 6px;
  border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.45);
  color: var(--txt);
  font-family: var(--font-mono);
  font-size: 0.97em;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(57,255,20,0.38);
  box-shadow: 0 0 0 3px rgba(57,255,20,0.07);
}

select option { background: #0d1018; color: var(--txt); }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid;
  transition: all .2s;
  white-space: nowrap;
}

.btn-full { width: 100%; }

.btn-green {
  color: var(--green);
  border-color: rgba(57,255,20,0.35);
  background: rgba(57,255,20,0.05);
}

.btn-green:hover {
  background: rgba(57,255,20,0.11);
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(57,255,20,0.14);
}

.btn-green:disabled {
  color: var(--txt-3);
  border-color: var(--border);
  background: transparent;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 9.5px;
  width: auto;
}

/* ── DIALOG / MODAL ──────────────────────────── */
dialog {
  background: rgba(8, 10, 16, 0.97);
  backdrop-filter: blur(24px);
  color: var(--txt);
  border: 1px solid rgba(57,255,20,0.22);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 620px;
  width: 92vw;
  box-shadow: 0 0 60px rgba(57,255,20,0.05);
}

dialog::backdrop { background: rgba(0,0,0,0.75); }

/* ── ALERT PILLS (for warning lists) ─────────── */
.alert-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.pill-warning  { background: rgba(255,59,59,0.15);  color: var(--red);    border: 1px solid rgba(255,59,59,0.3);  }
.pill-watch    { background: rgba(255,255,0,0.12);   color: yellow; border: 1px solid rgba(255,255,0,0.32);  }
.pill-advisory { background: rgba(240,230,140,0.12); color: khaki;  border: 1px solid rgba(240,230,140,0.35); }
.pill-statement{ background: rgba(0,255,255,0.12);   color: aqua;   border: 1px solid rgba(0,255,255,0.32);}
.pill-other    { background: rgba(255,255,255,0.07); color: var(--txt-2);  border: 1px solid var(--border-2);       }

/* ── STATUS / LIVE INDICATOR ─────────────────── */
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
  animation: ldot 2s ease-in-out infinite;
}

@keyframes ldot {
  0%,100% { box-shadow: 0 0 5px var(--green); }
  50%      { box-shadow: 0 0 14px var(--green), 0 0 28px rgba(57,255,20,0.25); }
}

/* ── CONSTRUCTION / COMING SOON ──────────────── */
.construct-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.construct-card {
  max-width: 580px;
  width: 100%;
  text-align: center;
  padding: 52px 40px;
}

.construct-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(57,255,20,0.2));
}

.construct-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(57,255,20,0.07);
  color: var(--green);
  border: 1px solid rgba(57,255,20,0.2);
  margin-bottom: 18px;
}

.construct-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.construct-body {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── GRID HELPERS ────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── TYPOGRAPHY HELPERS ──────────────────────── */
.mono { font-family: var(--font-mono); }
.green { color: var(--green); }
.red   { color: var(--red); }
.muted { color: var(--txt-2); }
.small { font-size: 0.82em; }

/* ── DIVIDER ─────────────────────────────────── */
.rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-2), transparent);
  margin: 20px 0;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-ham   { display: flex; }
}

@media (max-width: 640px) {
  .site-nav { padding: 0 16px; }
  .page-main { padding: 24px 16px 40px; }
  .panel { padding: 18px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .construct-card { padding: 36px 24px; }
}
