/* NSAIT — Palantir-inspired operations desk UI */
:root {
  --bg: #07090c;
  --bg-elev: #0c1016;
  --bg-panel: #10151d;
  --border: #1e2633;
  --border-strong: #2a3548;
  --text: #d7dde8;
  --text-dim: #8b95a8;
  --muted: #5c677a;
  --accent: #f05a28;
  --cyan: #00d1ff;
  --cyan-dim: rgba(0,209,255,.12);
  --accent-dim: rgba(240,90,40,.12);
  --panel: rgba(12,16,22,.92);
  --signal: #C45C26;
  --ok: #2F6F5E;
  --warn: #e0b040;
  --radius: 0px;
  --max: 1080px;
  --font: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* legacy aliases (purge paper aesthetic) */
  --ink: var(--text);
  --paper: var(--bg);
  --field: var(--bg-elev);
  --grid: var(--border-strong);
  --confirm: var(--ok);
  --line: var(--border);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: 0.02em; text-transform: uppercase; }
h2 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: 0.04em; text-transform: uppercase; }
h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
p { margin: 0 0 0.9em; }
ul { margin: 0 0 0.9em; padding-left: 1.15em; }
.mono {
  font-family: var(--mono);
  font-size: 0.82em;
  letter-spacing: 0.04em;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

/* ——— Status strip ——— */
.status-strip {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
}
.status-strip .wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.status-strip .live {
  color: var(--cyan);
}
.status-strip .live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  margin-right: 0.4rem;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--cyan);
}

/* ——— Regional ALERT (Desk) ——— */
.status-strip .alert-mount {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  max-width: min(100%, 42rem);
}
.status-strip .alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border-strong);
  background: rgba(16, 21, 29, 0.85);
  color: var(--text-dim);
}
.status-strip .alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  flex-shrink: 0;
  background: var(--muted);
  box-shadow: none;
}
.status-strip .alert-reason {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28rem;
}
.status-strip.alert-green .alert-chip,
.status-strip .alert-chip.alert-green { color: #5ecf9a; border-color: rgba(94, 207, 154, 0.35); }
.status-strip.alert-green .alert-dot,
.status-strip .alert-chip.alert-green .alert-dot {
  background: #3d9b7a;
  box-shadow: 0 0 7px rgba(61, 155, 122, 0.75);
}
.status-strip.alert-yellow .alert-chip,
.status-strip .alert-chip.alert-yellow { color: #e0b040; border-color: rgba(224, 176, 64, 0.4); }
.status-strip.alert-yellow .alert-dot,
.status-strip .alert-chip.alert-yellow .alert-dot {
  background: #e0b040;
  box-shadow: 0 0 7px rgba(224, 176, 64, 0.7);
}
.status-strip.alert-orange .alert-chip,
.status-strip .alert-chip.alert-orange { color: #f08a3a; border-color: rgba(240, 90, 40, 0.45); }
.status-strip.alert-orange .alert-dot,
.status-strip .alert-chip.alert-orange .alert-dot {
  background: #f05a28;
  box-shadow: 0 0 7px rgba(240, 90, 40, 0.75);
}
.status-strip.alert-red .alert-chip,
.status-strip .alert-chip.alert-red { color: #ff6b6b; border-color: rgba(224, 64, 64, 0.5); }
.status-strip.alert-red .alert-dot,
.status-strip .alert-chip.alert-red .alert-dot {
  background: #e04040;
  box-shadow: 0 0 8px rgba(224, 64, 64, 0.85);
}
@media (max-width: 640px) {
  .status-strip .alert-reason { max-width: 12rem; }
}

/* ——— Header / nav ——— */
.site-header {
  background: var(--bg-elev);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  min-height: 44px;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand img {
  height: 28px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
}
.brand-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-tag {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-weight: 400;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem 1rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}
.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.nav .nav-x {
  color: var(--accent);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.45rem 0 0.75rem;
    gap: 0.55rem;
    border-top: 1px solid var(--border);
    margin-top: 0.35rem;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}

/* ——— Ops shell / panels ——— */
.op-shell {
  padding: 1.5rem 0 2.5rem;
}
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  position: relative;
}
.panel-accent {
  border-left: 2px solid var(--accent);
}
.panel-cyan {
  border-left: 2px solid var(--cyan);
}
.panel-ok {
  border-left: 2px solid var(--ok);
}
.panel-hairline {
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--border);
}

/* ——— Hero (ops landing) ——— */
.hero {
  background: var(--bg-elev);
  color: var(--text);
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 120px, transparent 120px);
}
.hero-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}
.hero h1 {
  color: var(--text);
  margin-bottom: 0.25em;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}
.hero .tagline {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-style: normal;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}
.hero-lead {
  color: var(--text-dim);
  max-width: 38rem;
  font-size: 0.95rem;
}
.hero-logo {
  justify-self: center;
  max-width: 260px;
  width: 100%;
  opacity: 0.92;
  filter: brightness(1.05);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-signal,
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-signal:hover,
.btn-accent:hover {
  background: #d44e20;
  border-color: #d44e20;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-ink {
  background: var(--bg-panel);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ink:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-cyan {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn-cyan:hover {
  background: rgba(0, 209, 255, 0.08);
}

/* ——— Sections ——— */
.section {
  padding: 2.25rem 0;
}
.section-tight { padding: 1.5rem 0; }
.section-alt {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 0.45rem;
}
.lead {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 42rem;
}
.muted { color: var(--text-dim); }
.small { font-size: 0.85rem; }

/* ——— Cards / grid ——— */
.grid-3 {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: none;
}
.card h3 { margin-bottom: 0.4em; color: var(--text); }
.card p { color: var(--text-dim); font-size: 0.9rem; }
.card p:last-child { margin-bottom: 0; }
.card a { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card-signal {
  border-left: 2px solid var(--accent);
  border-top: 1px solid var(--border);
}
.card-confirm {
  border-left: 2px solid var(--ok);
  border-top: 1px solid var(--border);
}
.card-grid {
  border-left: 2px solid var(--cyan);
  border-top: 1px solid var(--border);
}

/* ——— Desk note (not SAMPLE) ——— */
.sample-banner,
.desk-note {
  background: rgba(0, 209, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--cyan);
  color: var(--text-dim);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.sample-banner strong,
.desk-note strong {
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 600;
}

/* ——— Memo (dense desk) ——— */
.memo {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.5rem;
  max-width: 720px;
}
.memo-masthead {
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
}
.memo-brand {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--cyan);
}
.memo-date {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.memo-subject {
  font-family: var(--font);
  font-size: 1.05rem;
  margin: 0.65rem 0 0;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
}
.memo-block {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.memo-block:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.memo-fact {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.memo-block p { color: var(--text-dim); font-size: 0.9rem; }
.memo-why {
  margin-top: 0.55rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
}
.memo-why strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.memo-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.55;
}

/* ——— Signup ——— */
.signup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.85rem;
  max-width: 36rem;
}
.signup input[type="email"] {
  flex: 1 1 14rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg-elev);
  color: var(--text);
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}
.signup .btn { flex: 0 0 auto; }
.signup-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.55rem;
}
.consent-row {
  flex: 1 1 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-dim);
  cursor: pointer;
  margin: 0.1rem 0 0.2rem;
}
.consent-row input[type="checkbox"] {
  margin-top: 0.15rem;
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
}
.consent-row a { color: var(--cyan); }
.form-status {
  flex: 1 1 100%;
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  font-family: var(--mono);
}
.form-status.is-success { color: var(--ok); font-weight: 500; }
.form-status.is-error { color: #e07070; font-weight: 500; }
.form-status.is-pending { color: var(--muted); }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.signup-compact { max-width: 34rem; }

/* ——— Map (content-page remnants; tactical overrides in map-tactical.css) ——— */
.map-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}
#map {
  height: min(70vh, 620px);
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  z-index: 1;
}
.map-side {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.map-side h2 { font-size: 0.95rem; }
.pin-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}
.pin-list li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.pin-list button {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
}
.pin-list button:hover .pin-title { color: var(--accent); }
.pin-title { font-weight: 600; }
.pin-meta { color: var(--muted); font-size: 0.75rem; margin-top: 0.1rem; font-family: var(--mono); }
.leaflet-popup-content-wrapper {
  border-radius: 0 !important;
  font-family: var(--font);
  background: var(--bg-panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.leaflet-popup-content { margin: 0.65rem 0.8rem !important; }
.popup-title { font-weight: 600; margin-bottom: 0.3rem; color: var(--cyan); }
.popup-body { font-size: 0.85rem; color: var(--text-dim); }
.popup-why { margin-top: 0.4rem; font-size: 0.78rem; color: var(--muted); }

/* ——— Packages / process ——— */
.price-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.55rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}
.process-steps li {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  position: relative;
}
.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.45rem;
}
.process-steps h3 { margin-bottom: 0.3em; }
.guardrails {
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
}
.guardrails h2 { color: var(--text); }
.guardrails ul { margin-bottom: 0; color: var(--text-dim); }
.guardrails li { margin-bottom: 0.35rem; }
.guardrails .eyebrow { color: var(--muted); }

/* ——— About ——— */
.contact-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-top: 1.35rem;
}
.contact-box h3 { color: var(--cyan); }
.contact-box p { margin-bottom: 0.45rem; }

/* ——— Forces page ——— */
.forces-page .site-footer { margin-top: 0; }
.forces-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.15rem 1rem 2.5rem;
}
.forces-hero h1 {
  font-size: 1.45rem;
  margin: 0.2rem 0;
  text-transform: uppercase;
}
.forces-hero .lead {
  opacity: 1;
  color: var(--text-dim);
  max-width: 48rem;
  font-size: 0.9rem;
}
.forces-kicker {
  letter-spacing: 0.14em;
  color: var(--cyan);
  font-size: 0.7rem;
  font-family: var(--mono);
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.forces-section-title {
  font-size: 0.95rem;
  margin-top: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}
.gcard {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 0.8rem;
  border-radius: var(--radius);
}
.gcard h2 {
  font-size: 0.82rem;
  margin: 0 0 0.3rem;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: none;
}
.gcard .sum {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.3rem 0;
  font-family: var(--mono);
}
.gcard ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.gcard .kind {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}
.matrix-wrap {
  overflow: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
}
table.corr {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg-panel);
}
table.corr th,
table.corr td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.55rem;
  text-align: right;
}
table.corr th {
  background: rgba(0, 209, 255, 0.06);
  text-align: center;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.06em;
}
table.corr td.rowh {
  text-align: left;
  color: var(--cyan);
}
table.corr td.diag { opacity: 0.4; }
.caveats {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.bar {
  height: 6px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  margin-top: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bar > i { display: block; height: 100%; }

/* ——— Footer ——— */
.site-footer {
  background: var(--bg-elev);
  color: var(--text-dim);
  padding: 1.5rem 0 1.25rem;
  margin-top: 0;
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.site-footer a {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer a:hover { color: var(--cyan); }
.footer-brand {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}
.footer-legal {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.3rem; }
.footer-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

/* ——— Utilities ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.page-head {
  padding: 1.5rem 0 0;
}
.page-head h1 { margin-bottom: 0.35em; }

/* Map v1.1 — drawer/layers (content-page fallbacks) */
.map-stage { position: relative; }
.map-legend { margin: 0.55rem 0 0; max-width: 52rem; }
.layer-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0 1rem;
}
.layer-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-dim);
  border-radius: var(--radius);
  padding: 0.3rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.55;
}
.layer-chip.is-active,
.layer-chip[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 209, 255, 0.06);
}
.layer-chip:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.map-side-pins { margin-top: 0.3rem; font-size: 0.95rem; }
.sev-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius);
  vertical-align: middle;
  margin-left: 0.3rem;
  border: 1px solid;
}
.sev-high { background: rgba(196, 92, 38, 0.2); color: #ffb090; border-color: var(--signal); }
.sev-medium { background: rgba(0, 209, 255, 0.08); color: #9ec4ff; border-color: var(--border-strong); }
.sev-low { background: rgba(255, 255, 255, 0.04); color: var(--muted); border-color: var(--border); }
.conf-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.1rem 0.35rem;
}
.layer-chip-static {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--cyan);
}

.signal-drawer {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: min(340px, calc(100% - 1.3rem));
  max-height: calc(100% - 1.3rem);
  overflow: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 0;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.signal-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.drawer-eyebrow {
  margin: 0 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
}
.drawer-title {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0;
}
.drawer-close {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem 0.2rem;
}
.drawer-meta .sev-badge { margin-left: 0; }
.drawer-block { padding: 0.45rem 0.85rem 0.65rem; }
.drawer-block strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}
.drawer-block p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.drawer-sources {
  margin: 0;
  padding-left: 1.05em;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 899px) {
  .signal-drawer {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 55vh;
    border-radius: 0;
    border-left: 1px solid var(--border);
    border-top: 2px solid var(--accent);
  }
}

/* ——— Ambient network-field (Home / Forces) ——— */
.network-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0.85;
}

/* Soft vignette + grain so text stays readable over the field */
body:has(#network-field)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, transparent 0%, rgba(7, 9, 12, 0.55) 70%, rgba(7, 9, 12, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.25) 0%, transparent 18%, transparent 55%, rgba(7, 9, 12, 0.65) 100%);
}

body:has(#network-field)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

body:has(#network-field) .status-strip {
  position: relative;
  z-index: 100;
}
body:has(#network-field) .site-header {
  z-index: 100;
}

body:has(#network-field) main,
body:has(#network-field) .site-footer {
  position: relative;
  z-index: 2;
}

/* Let the field read through the hero / forces hero while keeping copy legible */
body:has(#network-field) .hero {
  background: rgba(12, 16, 22, 0.55);
}

body:has(#network-field) .section {
  background: rgba(7, 9, 12, 0.72);
}

body:has(#network-field) .section-alt {
  background: rgba(12, 16, 22, 0.78);
}

body:has(#network-field).forces-page .forces-wrap {
  background: transparent;
}

body:has(#network-field).forces-page .forces-hero {
  position: relative;
  padding: 0.35rem 0 0.75rem;
  background: rgba(7, 9, 12, 0.45);
  border-radius: 0;
}

body:has(#network-field) .card,
body:has(#network-field) .gcard,
body:has(#network-field) .desk-note,
body:has(#network-field) .signup,
body:has(#network-field) .matrix-wrap {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
  .network-field {
    opacity: 0.55;
  }
}

/* Fallback if :has() unsupported — still keep canvas behind via fixed z-index 0 */
@supports not selector(:has(*)) {
  .network-field {
    z-index: 0;
  }
  main,
  .site-footer {
    position: relative;
    z-index: 2;
  }
}


/* ——— Forces axes map ——— */
.forces-map-section {
  margin: 1.15rem 0 1.35rem;
  position: relative;
  z-index: 1;
}
.forces-map-caveat {
  margin: 0.35rem 0 0.75rem;
  max-width: 52rem;
  font-size: 0.78rem;
}
.forces-map-chrome {
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  background: rgba(7, 9, 12, 0.78);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 209, 255, 0.04);
}
.forces-map-chips {
  margin: 0;
  padding: 0.55rem 0.65rem 0.45rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.92);
}
.forces-axis-chip.is-active,
.forces-axis-chip[aria-pressed="true"] {
  border-color: var(--chip-color, var(--cyan));
  color: var(--chip-color, var(--cyan));
  background: color-mix(in srgb, var(--chip-color, #00d1ff) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-color, #00d1ff) 25%, transparent);
}
.forces-corridor-chip.is-active,
.forces-corridor-chip[aria-pressed="true"] {
  border-color: var(--chip-color, var(--cyan));
  color: var(--chip-color, var(--cyan));
  background: color-mix(in srgb, var(--chip-color, #00d1ff) 10%, transparent);
}
#forces-map.forces-map,
.forces-map {
  width: 100%;
  height: 480px;
  background: #05080c;
  z-index: 0;
}
.forces-map .leaflet-control-attribution {
  background: rgba(7, 9, 12, 0.78) !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  max-width: 70%;
}
.forces-map .leaflet-control-attribution a {
  color: var(--text-dim) !important;
}
.forces-map .leaflet-control-zoom a {
  background: rgba(12, 16, 22, 0.92) !important;
  color: var(--cyan) !important;
  border-color: var(--border) !important;
}
.forces-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  padding: 0.45rem 0.7rem 0.55rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(10, 14, 20, 0.92);
}
.fml-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-dim);
}
.fml-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #0a1018;
  box-shadow: 0 0 6px rgba(0, 209, 255, 0.15);
}
.fml-line {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px dashed;
  opacity: 0.85;
}
.fml-note {
  margin-left: auto;
  opacity: 0.7;
  letter-spacing: 0.04em;
  text-transform: none;
}
.forces-map-popup {
  font-family: var(--sans, "IBM Plex Sans", system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text, #e8eef5);
}
.forces-map-popup .fmp-meta {
  color: var(--muted, #8a9aab);
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 11px;
}
.forces-map-popup .fmp-milex {
  display: inline-block;
  margin-top: 0.25rem;
}
.leaflet-popup.forces-map-leaflet-popup .leaflet-popup-content-wrapper {
  background: rgba(10, 14, 20, 0.96);
  color: #e8eef5;
  border: 1px solid rgba(0, 209, 255, 0.25);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.leaflet-popup.forces-map-leaflet-popup .leaflet-popup-tip {
  background: rgba(10, 14, 20, 0.96);
}
.leaflet-popup.forces-map-leaflet-popup .leaflet-popup-content {
  margin: 10px 12px;
}

@media (max-width: 640px) {
  #forces-map.forces-map,
  .forces-map {
    height: 420px;
  }
  .fml-note {
    margin-left: 0;
    width: 100%;
  }
}

body:has(#network-field) .forces-map-chrome {
  backdrop-filter: blur(2px);
}


/* ——— Home Daily cards ——— */
.home-daily-panel {
  overflow: hidden;
}
.home-daily-list .memo-block {
  padding: 0.85rem 1rem;
  margin: 0;
}
.home-daily-list .memo-block:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.home-daily-card .memo-fact {
  margin-bottom: 0.35rem;
}
@media (min-width: 900px) {
  .home-daily-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .home-daily-list .memo-block:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .home-daily-list .memo-block:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}


/* ——— Rich homepage ALERT strip (gauge + ticker) ——— */
.status-strip--rich {
  padding: 0.45rem 0 0.5rem;
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.98), rgba(10, 13, 18, 0.96)),
    var(--bg-elev);
}
.status-strip--rich .wrap {
  gap: 0.75rem 1rem;
  align-items: center;
}
.status-strip--rich .alert-reason {
  display: none; /* ticker carries assessment text */
}
.status-strip--rich .alert-mount {
  max-width: none;
  flex-shrink: 0;
}

.alert-gauge {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  width: min(11rem, 28vw);
  flex-shrink: 0;
}
.alert-gauge-track {
  position: relative;
  height: 6px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    #3d9b7a 0%,
    #5ecf9a 18%,
    #e0b040 42%,
    #f08a3a 68%,
    #e04040 100%
  );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: visible;
}
.alert-gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8%;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  pointer-events: none;
}
.alert-gauge-knob {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  margin-top: -5.5px;
  background: #e8ecf2;
  border: 2px solid rgba(7, 9, 12, 0.9);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 8px rgba(94, 207, 154, 0.35);
  transition: left 0.35s ease;
  z-index: 1;
}
.status-strip.alert-yellow .alert-gauge-knob { box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 8px rgba(224, 176, 64, 0.45); }
.status-strip.alert-orange .alert-gauge-knob { box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 8px rgba(240, 90, 40, 0.5); }
.status-strip.alert-red .alert-gauge-knob { box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 8px rgba(224, 64, 64, 0.55); }
.alert-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.85;
}

.alert-ticker {
  flex: 1 1 12rem;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.alert-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: nsait-ticker 28s linear infinite;
}
.alert-ticker-text {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--text-dim);
  padding-right: 2.5rem;
}
.status-strip.alert-green .alert-ticker-text { color: #8fd9b8; }
.status-strip.alert-yellow .alert-ticker-text { color: #e8c56a; }
.status-strip.alert-orange .alert-ticker-text { color: #f0a06a; }
.status-strip.alert-red .alert-ticker-text { color: #ff8f8f; }

@keyframes nsait-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .alert-ticker-track { animation: none; }
  .alert-ticker-text[data-alert-ticker-text-dup] { display: none; }
  .alert-ticker {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .alert-ticker-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }
  .alert-gauge-knob { transition: none; }
}

@media (max-width: 720px) {
  .status-strip--rich .wrap > span:not(.live):not(.alert-mount) {
    display: none;
  }
  .alert-gauge { width: min(9rem, 36vw); }
}

/* ——— Daily / home card severity color-coding ——— */
.memo-block.sev-green,
.home-daily-card.sev-green {
  border-left: 3px solid #3d9b7a;
  background: linear-gradient(90deg, rgba(61, 155, 122, 0.08), transparent 42%);
}
.memo-block.sev-yellow,
.home-daily-card.sev-yellow {
  border-left: 3px solid #e0b040;
  background: linear-gradient(90deg, rgba(224, 176, 64, 0.1), transparent 42%);
}
.memo-block.sev-orange,
.home-daily-card.sev-orange {
  border-left: 3px solid #f05a28;
  background: linear-gradient(90deg, rgba(240, 90, 40, 0.1), transparent 42%);
}
.memo-block.sev-red,
.home-daily-card.sev-red {
  border-left: 3px solid #e04040;
  background: linear-gradient(90deg, rgba(224, 64, 64, 0.12), transparent 42%);
}
.memo-block.sev-neutral,
.home-daily-card.sev-neutral {
  border-left: 3px solid var(--border-strong);
}

.memo article.memo-block,
.memo .memo-block {
  margin: 0.85rem 0 1rem;
  padding: 0.75rem 0.85rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.memo .memo-block:last-of-type { border-bottom: 0; }

.sev-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.1rem 0.35rem;
  margin-right: 0.45rem;
  vertical-align: 0.05em;
  border: 1px solid var(--border);
  color: var(--muted);
}
.sev-green .sev-chip { color: #5ecf9a; border-color: rgba(94, 207, 154, 0.4); }
.sev-yellow .sev-chip { color: #e0b040; border-color: rgba(224, 176, 64, 0.45); }
.sev-orange .sev-chip { color: #f08a3a; border-color: rgba(240, 90, 40, 0.45); }
.sev-red .sev-chip { color: #ff6b6b; border-color: rgba(224, 64, 64, 0.5); }

.home-daily-list .memo-block.sev-green,
.home-daily-list .memo-block.sev-yellow,
.home-daily-list .memo-block.sev-orange,
.home-daily-list .memo-block.sev-red,
.home-daily-list .memo-block.sev-neutral {
  border-bottom-color: var(--border);
}
@media (min-width: 900px) {
  .home-daily-list .memo-block.sev-green:nth-child(odd),
  .home-daily-list .memo-block.sev-yellow:nth-child(odd),
  .home-daily-list .memo-block.sev-orange:nth-child(odd),
  .home-daily-list .memo-block.sev-red:nth-child(odd),
  .home-daily-list .memo-block.sev-neutral:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
}

/* Header wordmark (2026-10-18): text-only NSAIT, no globe mark; sized to the old logo row */
.brand-wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 28px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
