/* ============================================================
 * Vertali Ops shared theme — mirrors https://hurricane.vertali.net/status/
 * Additive layer: tokens, masthead, nav, threat banner, phase cards,
 * buttons, footer, map legend. Include AFTER any page-local styles.
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800;900&family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --ops-navy: #010A16;
  --ops-panel: #020C17;
  --ops-ink: #000A18;
  --ops-text: #EFF5F9;
  --ops-muted: #A9BAC6;
  --ops-dim: #7E93A1;
  --ops-line: rgba(255, 255, 255, 0.14);
  --ops-cyan: #19B5F1;
  --ops-cyan-deep: #0DB4CD;
  --ops-cyan-soft: #5FC8F5;
  --ops-gold: #F2C41B;
  --ops-orange: #F5851F;
  --ops-magenta: #F6245F;
  --ops-red: #FF3B5C;
  --ops-purple: #9B6BFF;
  --ops-green: #2BD97B;
  --ops-rule: linear-gradient(90deg, #29D3EE, #8B5CF6 55%, #FB923C);
}

/* ---------- shared top nav ---------- */
.ops-nav {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(1, 10, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ops-line);
}
.ops-nav-inner {
  max-width: 1672px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.ops-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 17px;
  white-space: nowrap;
}
.ops-nav-brand img { height: 34px; width: auto; }
.ops-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.ops-nav-links a {
  color: var(--ops-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ops-nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.ops-nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(25, 181, 241, 0.12);
  border-color: rgba(25, 181, 241, 0.45);
}

/* ---------- ops masthead ---------- */
.ops-masthead { max-width: 1672px; margin: 0 auto; padding: 26px 32px 6px; }
.ops-eyebrow {
  font-family: 'Roboto', 'Inter', sans-serif;
  font-weight: 500; font-size: 15px;
  letter-spacing: 0.38em; color: #E3EBF1;
}
.ops-title {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: 0.005em; line-height: 1.04;
  color: #fff; margin: 2px 0 6px;
}
.ops-title .grad {
  background: linear-gradient(90deg, #29D3EE 0%, #5B8DEF 24%, #8B5CF6 44%, #D946EF 64%, #F75A68 80%, #FB923C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ops-sub {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 500; font-size: 20px;
  letter-spacing: 0.3em; color: #C7D3DD;
}
.ops-live {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--ops-dim);
  margin-top: 8px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ops-green); box-shadow: 0 0 8px var(--ops-green); flex: 0 0 auto; }
.live-dot.delayed { background: var(--ops-gold); box-shadow: 0 0 8px var(--ops-gold); }
.live-dot.urgent { background: var(--ops-red); box-shadow: 0 0 8px var(--ops-red); animation: ops-blink 1.4s ease-in-out infinite; }
@keyframes ops-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.ops-rule { height: 2px; margin-top: 12px; background: var(--ops-rule); border-radius: 2px; }

/* ---------- threat banner ---------- */
#threat-banner {
  display: none;
  position: sticky; top: 0; z-index: 60;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
#threat-banner-inner {
  max-width: 1672px; margin: 0 auto;
  padding: 12px 32px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 16px;
  font-size: 14px; font-weight: 600;
}
#threat-banner .tb-chip {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px; padding: 4px 13px;
  font-weight: 800; letter-spacing: 0.06em; font-size: 12px;
  animation: tb-pulse 1.8s ease-in-out infinite;
  white-space: nowrap;
}
#threat-banner .tb-storm { font-weight: 800; font-size: 16px; }
#threat-banner .tb-reason { opacity: 0.92; font-weight: 500; }
#threat-banner .tb-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
#threat-banner .tb-btn {
  background: #fff; color: #111827; font-weight: 800;
  border-radius: 8px; padding: 9px 18px;
  text-decoration: none; white-space: nowrap;
}
#threat-banner .tb-btn:hover { transform: translateY(-1px); }
#threat-banner .tb-link { color: #fff; text-decoration: underline; font-weight: 700; white-space: nowrap; }
@keyframes tb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- phase cards ---------- */
.ops-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.phase-card {
  --acc: var(--ops-cyan);
  --acc-soft: var(--ops-cyan-soft);
  --acc-glow: rgba(25, 181, 241, 0.38);
  --acc-tint: rgba(25, 181, 241, 0.05);
  display: flex; flex-direction: column;
  border: 2px solid var(--acc); border-radius: 14px;
  background: radial-gradient(420px 220px at 18% 0%, var(--acc-tint), transparent 70%), var(--ops-panel);
  box-shadow: 0 0 26px var(--acc-glow), inset 0 0 22px rgba(255, 255, 255, 0.015);
  padding: 22px 26px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.phase-card:hover { transform: translateY(-4px); }
.phase-card.acc-gold { --acc: var(--ops-gold); --acc-soft: #F7DC6F; --acc-glow: rgba(242, 196, 27, 0.32); --acc-tint: rgba(242, 196, 27, 0.07); }
.phase-card.acc-orange { --acc: var(--ops-orange); --acc-soft: #F9B26A; --acc-glow: rgba(245, 133, 31, 0.35); --acc-tint: rgba(245, 133, 31, 0.07); }
.phase-card.acc-magenta { --acc: var(--ops-magenta); --acc-soft: #F7719B; --acc-glow: rgba(246, 36, 95, 0.4); --acc-tint: rgba(246, 36, 95, 0.07); }
.phase-card.acc-red { --acc: var(--ops-red); --acc-soft: #FF7A90; --acc-glow: rgba(255, 59, 92, 0.42); --acc-tint: rgba(255, 59, 92, 0.07); }
.phase-card.acc-purple { --acc: var(--ops-purple); --acc-soft: #C2A8FF; --acc-glow: rgba(155, 107, 255, 0.4); --acc-tint: rgba(155, 107, 255, 0.07); }
.phase-card .sec-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 17px;
  letter-spacing: 0.22em; color: var(--acc);
  margin-bottom: 7px;
}

/* ---------- ops buttons ---------- */
.ops-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, #0DB4CD, #2A4A8F);
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border: none; border-radius: 8px;
  cursor: pointer; text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 28px rgba(13, 180, 205, 0.25);
  white-space: nowrap;
}
.ops-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.ops-btn.secondary { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--ops-line); box-shadow: none; }
.ops-btn.danger { background: var(--ops-red); box-shadow: 0 12px 28px rgba(255, 59, 92, 0.25); }

/* ---------- shared footer ---------- */
.page-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  max-width: 1672px; margin: 0 auto;
  padding: 22px 32px 30px;
  border-top: 1px solid #1D2C38;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; color: #5B6B77;
}
.page-foot .ops { color: var(--ops-dim); }
.page-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.page-foot nav a { color: var(--ops-dim); text-decoration: none; }
.page-foot nav a:hover { color: #fff; }

/* ---------- map legend ---------- */
.map-legend {
  padding: 15px;
  background: #132B38;
  color: var(--ops-text);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  line-height: 1.6;
}
.legend-item { display: flex; align-items: center; margin-bottom: 6px; }
.legend-item:last-child { margin-bottom: 0; }
.legend-color-box { width: 20px; height: 20px; margin-right: 10px; border-radius: 4px; }
.leaflet-tooltip.ops-tip {
  background-color: rgba(2, 12, 23, 0.96);
  border: 1px solid var(--ops-line);
  color: var(--ops-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .ops-nav-inner, .ops-masthead, #threat-banner-inner, .page-foot { padding-left: 16px; padding-right: 16px; }
  .ops-nav-links { gap: 0; }
  .ops-nav-links a { padding: 8px 10px; font-size: 13px; }
  .ops-title { font-size: 32px; }
}
