/* Shared Ransomware CTI chrome */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 4000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 16px;
  background: rgba(5, 5, 8, 0.96);
  border-bottom: 1px solid #1a1a25;
  backdrop-filter: blur(12px);
  font-family: Inter, system-ui, sans-serif;
}
#site-nav .site-brand {
  color: #e6edf3;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
#site-nav .site-brand:hover { color: #00d4ff; }
#site-nav .site-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 4px;
  flex: 1 1 auto;
}
#site-nav .site-nav-links a {
  color: #8b949e;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
#site-nav .site-nav-links a:hover {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.08);
}
#site-nav .site-nav-links a.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.12);
  font-weight: 600;
}
#site-nav .site-nav-meta {
  margin-left: auto;
  color: #6e7681;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
}
.onion-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  text-decoration: none;
  vertical-align: middle;
}
a.onion-link { text-decoration: none; color: inherit; }
a.onion-link:hover .onion-badge { background: rgba(245, 158, 11, 0.28); }
@media (max-width: 720px) {
  #site-nav { padding: 8px 10px; }
  #site-nav .site-nav-meta { width: 100%; margin-left: 0; }
}

/* Shared type + page chrome so /map matches Victims/Groups */
html, body {
  font-family: Inter, system-ui, sans-serif;
}
body {
  background-color: #0a0a0f;
  color: #e6edf3;
}

/* Map page used a separate ops-console header */
body > .container-main > .header,
body .container-main .header {
  background: #111118 !important;
  border-bottom: 1px solid #1a1a25 !important;
  padding: 14px 24px !important;
}
body .header-logo { gap: 12px !important; }
body .logo-icon { display: none !important; }
body .header-title h1 {
  color: #e6edf3 !important;
  font-family: Inter, system-ui, sans-serif !important;
  letter-spacing: 0.01em !important;
  font-size: 1.25rem !important;
  text-transform: none !important;
}
body .header-title p {
  color: #8b949e !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
}
body .metric-value { color: #00d4ff !important; }
body .tabs-nav {
  background: transparent !important;
  border-bottom: 1px solid #1a1a25 !important;
  padding: 4px 16px !important;
}
body .tab-btn {
  font-family: Inter, system-ui, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  color: #8b949e !important;
}
body .tab-btn.active {
  color: #00d4ff !important;
  background: rgba(0, 212, 255, 0.12) !important;
}
body .tab-btn.active::after { display: none !important; }
body .group-card {
  background: #111118 !important;
  border: 1px solid rgba(0, 212, 255, 0.12) !important;
}
body .group-card:hover {
  border-color: rgba(0, 212, 255, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.08) !important;
}
body .group-card::before {
  background: #00d4ff !important;
  height: 2px !important;
}
body .threat-badge {
  background: #8b5cf6 !important;
}

/* Hide leftover per-page headers (icon tile + second title). Keep homepage hero. */
header.header,
header.sticky,
header.glass,
.container-main > header,
.container-main > .header {
  display: none !important;
}
header.relative { display: block !important; }

.page-head {
  max-width: 1920px;
  margin: 0 auto;
  padding: 16px 24px 10px;
  border-bottom: 1px solid #1a1a25;
}
.page-head h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e6edf3;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

/* Equal-height dashboard cards; pin Features row to the bottom */
a.dashboard-card {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}
a.dashboard-card .card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}
a.dashboard-card .card-foot > div {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}
a.dashboard-card .card-foot svg {
  flex-shrink: 0;
  align-self: center;
  width: 20px;
  height: 20px;
}
