:root {
  --alliance-pax: #2563eb;
  --alliance-waico: #d97706;
  --alliance-ai-network: #16a34a;
  --alliance-pax-waico: #db2777;
  --alliance-pax-ai-network: #7c3aed;
  --alliance-waico-ai-network: #0891b2;
  --alliance-all: #111827;
  --alliance-none: #d7dee8;
}

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  color: #172033;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 255, 0.82)),
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.status-panel,
.section-panel,
.summary-card,
.map-shell,
.source-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(91, 110, 141, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(37, 50, 79, 0.08);
}

.summary-card,
.section-panel,
.source-card {
  padding: 1.25rem;
}

.summary-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.map-shell {
  padding: 1rem;
}

.map-toolbar {
  padding: 0.25rem 0.25rem 1rem;
}

.map-canvas {
  position: relative;
}

.map-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

.country {
  stroke: rgba(82, 96, 125, 0.48);
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
}

.country.has-data {
  stroke: rgba(18, 24, 38, 0.62);
  stroke-width: 0.65;
}

.country:focus,
.country:hover {
  outline: none;
  stroke: #0f172a;
  stroke-width: 1.4;
}

.graticule {
  fill: none;
  stroke: rgba(91, 110, 141, 0.23);
  stroke-width: 0.6;
}

.sphere {
  fill: #eaf2fb;
  stroke: rgba(91, 110, 141, 0.22);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.875rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.2);
}

.badge-soft {
  background: #eef3fb;
  color: #243047;
  border: 1px solid rgba(91, 110, 141, 0.18);
}

.search-input {
  max-width: 18rem;
}

.map-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  max-width: 18rem;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 120ms ease;
  z-index: 5;
}

.source-card {
  height: 100%;
}

@media (max-width: 767.98px) {
  .directory-table thead {
    display: none;
  }

  .directory-table, .directory-table tbody, .directory-table tr, .directory-table td {
    display: block;
    width: 100%;
  }

  .directory-table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
  }

  .directory-table td {
    border: 0;
    padding: 0.2rem 0;
    overflow-wrap: anywhere;
  }

  .directory-table td[data-label="Type"] {
    color: #526071;
    font-size: 0.875rem;
  }

  .search-input {
    max-width: none;
  }
}
