/*
 * CrossAIHub · Living Atlas · World Map · v1.0
 * ---------------------------------------------
 * Standalone stylesheet for /atlas/map/.
 * Palette + typography inherited from CrossAIHub House Bible.
 *
 * Peace be to this house.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #FDFBF5;
  color: #2B2418;
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.atlas-map__skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.atlas-map__skip:focus {
  left: 8px;
  top: 8px;
  background: #6B1F2E;
  color: #FDFBF5;
  padding: 8px 12px;
  z-index: 100;
  font-family: 'Inter', system-ui, sans-serif;
  text-decoration: none;
  border-radius: 4px;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */

.atlas-map__header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #E7DFC7;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.atlas-map__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #6B1F2E;
  width: fit-content;
}
.atlas-map__wordmark-cross { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 40px; line-height: 0.85; display: inline-block; }
.atlas-map__wordmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.atlas-map__wordmark-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.atlas-map__wordmark-tag { font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; color: #3C2E1B; letter-spacing: 0.04em; }

.atlas-map__breadcrumb {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #3C2E1B;
}
.atlas-map__breadcrumb a {
  color: #6B1F2E;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.atlas-map__breadcrumb a:hover,
.atlas-map__breadcrumb a:focus-visible { border-bottom-color: #B48748; }

/* ─── Main + hero ─────────────────────────────────────────────────────────── */

.atlas-map__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.atlas-map__hero {
  text-align: center;
  padding: 2rem 0 2rem;
  border-bottom: 1px solid #E7DFC7;
  margin-bottom: 2rem;
}

.atlas-map__kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.75rem;
}

.atlas-map__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.atlas-map__lede {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #3C2E1B;
  margin: 0 auto;
  max-width: 640px;
}

/* ─── Map surface ─────────────────────────────────────────────────────────── */

.atlas-map__surface {
  position: relative;
  margin-bottom: 3rem;
}

.atlas-map__canvas {
  position: relative;
  width: 100%;
  border: 1px solid #C9B98A;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 40%, #F7ECC9 0%, #EAD9AC 60%, #D8C48C 100%);
  box-shadow:
    inset 0 0 40px rgba(139, 92, 32, 0.10),
    inset 0 0 8px rgba(107, 31, 46, 0.05),
    0 4px 22px rgba(43, 36, 24, 0.12);
}
.atlas-map__canvas::before {
  /* Aged manuscript vignette — subtle warm falloff at edges */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(107, 31, 46, 0.08) 100%);
  border-radius: 6px;
}
.atlas-map__canvas::after {
  /* Subtle grain via CSS repeating radial-gradients */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(107, 31, 46, 0.045) 0.5px, transparent 1px),
    radial-gradient(circle at 68% 72%, rgba(143, 107, 50, 0.055) 0.5px, transparent 1px),
    radial-gradient(circle at 84% 22%, rgba(180, 135, 72, 0.05) 0.5px, transparent 1px);
  background-size: 40px 40px, 60px 60px, 80px 80px;
  border-radius: 6px;
  mix-blend-mode: multiply;
  opacity: 0.7;
}

#atlas-map-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}

/* ─── Markers ─────────────────────────────────────────────────────────────── */

.atlas-map__marker {
  cursor: pointer;
  outline: none;
}

.atlas-map__marker-ring {
  fill: none;
  stroke: #B48748;
  stroke-width: 1.3;
  opacity: 0.7;
  transform-origin: center;
  transform-box: fill-box;
  animation: atlas-map-pulse 2.6s ease-in-out infinite;
}

@keyframes atlas-map-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  50%  { transform: scale(1.35); opacity: 0.12; }
  100% { transform: scale(1);    opacity: 0.7; }
}

.atlas-map__marker-dot {
  fill: #6B1F2E;
  stroke: #FDFBF5;
  stroke-width: 1.6;
  filter: drop-shadow(0 1px 1px rgba(43, 36, 24, 0.25));
  transition: fill 200ms ease, r 200ms ease;
}

.atlas-map__marker:hover .atlas-map__marker-dot,
.atlas-map__marker:focus .atlas-map__marker-dot {
  fill: #B48748;
}

.atlas-map__marker:focus-visible .atlas-map__marker-dot {
  stroke-width: 3;
  stroke: #6B1F2E;
}

.atlas-map__marker-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  fill: #3C2E1B;
  paint-order: stroke;
  stroke: #F5EACB;
  stroke-width: 2.5px;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0.95;
}

/* Hide labels on very small screens (touch tap opens card without needing label) */
@media (max-width: 640px) {
  .atlas-map__marker-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-map__marker-ring {
    animation: none;
    opacity: 0.65;
  }
}

/* ─── Summary card ────────────────────────────────────────────────────────── */

.atlas-map__card {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 380px;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: #FDFBF5;
  border: 1px solid #B48748;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(43, 36, 24, 0.15);
  z-index: 10;
}

.atlas-map__card[hidden] { display: none; }

.atlas-map__card-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #B48748;
  margin: 0 0 0.5rem;
}

.atlas-map__card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.atlas-map__card-biblical-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: #3C2E1B;
  margin: 0 0 1rem;
}

.atlas-map__card-verse {
  margin: 1rem 0 0.25rem;
  padding: 0 0.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #2B2418;
  border-left: 2px solid #B48748;
  padding-left: 1rem;
}

.atlas-map__card-cite {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #B48748;
  margin: 0 0 1rem;
  padding-left: 1rem;
  letter-spacing: 0.03em;
}

.atlas-map__card-summary {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: #2B2418;
  margin: 0 0 1rem;
  line-height: 1.55;
}

.atlas-map__card-chips {
  margin: 1rem 0;
}

.atlas-map__card-chip-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.atlas-map__card-chip-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3C2E1B;
}

.atlas-map__card-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.atlas-map__card-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid;
  border-radius: 999px;
  transition: background 180ms ease;
}

.atlas-map__card-chip--person {
  color: #FDFBF5;
  background: #6B1F2E;
  border-color: #6B1F2E;
}
.atlas-map__card-chip--person:hover { background: #571825; }

.atlas-map__card-chip--event {
  color: #FDFBF5;
  background: #B48748;
  border-color: #B48748;
}
.atlas-map__card-chip--event:hover { background: #9F753C; }

.atlas-map__card-reflection {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #B48748;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #2B2418;
  background: #F6EFDC;
  border-radius: 0 6px 6px 0;
}

.atlas-map__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.atlas-map__card-action {
  padding: 0.5rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.atlas-map__card-action--primary {
  color: #FDFBF5;
  background: #6B1F2E;
  border-color: #6B1F2E;
}
.atlas-map__card-action--primary:hover,
.atlas-map__card-action--primary:focus-visible {
  background: #571825;
}

.atlas-map__card-action--secondary {
  color: #6B1F2E;
  background: transparent;
  border-color: #6B1F2E;
}
.atlas-map__card-action--secondary:hover,
.atlas-map__card-action--secondary:focus-visible {
  background: #6B1F2E;
  color: #FDFBF5;
}

/* Mobile card: full-width slide-up */
@media (max-width: 640px) {
  .atlas-map__card {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: 70vh;
    border-radius: 12px 12px 0 0;
    z-index: 100;
  }
}

/* ─── Fallback list ───────────────────────────────────────────────────────── */

.atlas-map__fallback {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: #F6EFDC;
  border: 1px solid #E7DFC7;
  border-radius: 12px;
}

.atlas-map__fallback-note {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #3C2E1B;
  font-style: italic;
  margin: 0 0 1.5rem;
}

.atlas-map__fallback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.atlas-map__fallback-region h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #B48748;
}

.atlas-map__fallback-region ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.atlas-map__fallback-region li {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.35rem 0;
  border-bottom: 1px solid #E7DFC7;
}

.atlas-map__fallback-region li:last-child {
  border-bottom: none;
}

.atlas-map__fallback-region a {
  color: #6B1F2E;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.atlas-map__fallback-region a:hover,
.atlas-map__fallback-region a:focus-visible {
  border-bottom-color: #B48748;
}

/* ─── Pathways ────────────────────────────────────────────────────────────── */

.atlas-map__pathways {
  margin-top: 3rem;
  padding: 2rem;
  background: #F6EFDC;
  border: 1px solid #E7DFC7;
  border-radius: 12px;
  text-align: center;
}

.atlas-map__pathways-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B48748;
  margin: 0 0 0.5rem;
}

.atlas-map__pathways-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #6B1F2E;
  margin: 0 0 1.5rem;
}

.atlas-map__pathways-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.atlas-map__pathway {
  padding: 0.6rem 1.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6B1F2E;
  background: #FDFBF5;
  border: 1px solid #6B1F2E;
  border-radius: 999px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.atlas-map__pathway:hover,
.atlas-map__pathway:focus-visible {
  background: #6B1F2E;
  color: #FDFBF5;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.atlas-map__footer {
  border-top: 1px solid #E7DFC7;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #F6EFDC;
  margin-top: 3rem;
}

.atlas-map__footer-blessing {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #6B1F2E;
  margin: 0 0 0.5rem;
}

.atlas-map__footer-note {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: #3C2E1B;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.atlas-map__footer-nav {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  margin: 0;
}

.atlas-map__footer-nav a {
  color: #6B1F2E;
  text-decoration: none;
}
.atlas-map__footer-nav a:hover,
.atlas-map__footer-nav a:focus-visible {
  border-bottom: 1px solid #B48748;
}

/* ─── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .atlas-map__title { font-size: 1.75rem; }
  .atlas-map__lede { font-size: 1rem; }
  .atlas-map__hero { padding: 1rem 0 1.5rem; }
  .atlas-map__main { padding: 1.5rem 1rem; }
  .atlas-map__pathways { padding: 1.5rem 1rem; }
}

/* ─── LIVING KNOWLEDGE CHAMBER · dark holographic override (v1.2.0) ─────────
   Transforms the Atlas Map from parchment atlas to a Living Bible knowledge
   space: deep sapphire background, cyan+gold hologram accents, glass panels.
   Faith first · AI servant. All existing rules above are cascaded over. */

html, body.atlas-map-body {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(20, 40, 82, 0.55) 0%, rgba(11, 20, 39, 0) 60%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(93, 202, 216, 0.06) 0%, rgba(11, 20, 39, 0) 55%),
    #050B18;
  color: #F4E9C7;
  min-height: 100vh;
}

.atlas-map__skip:focus {
  background: #E8B84B;
  color: #05101F;
}

.atlas-map__header {
  border-bottom: 1px solid rgba(93, 202, 216, 0.18);
}
.atlas-map__wordmark { color: #E8B84B; }
.atlas-map__wordmark-name { color: #F4E9C7; }
.atlas-map__wordmark-tag { color: #93D5DE; opacity: 0.9; }

.atlas-map__breadcrumb { color: #C8D3E5; }
.atlas-map__breadcrumb a { color: #93D5DE; }
.atlas-map__breadcrumb a:hover,
.atlas-map__breadcrumb a:focus-visible { border-bottom-color: #E8B84B; }

.atlas-map__hero { border-bottom: 1px solid rgba(147, 213, 222, 0.20); }
.atlas-map__kicker { color: #93D5DE; text-shadow: 0 0 6px rgba(93, 202, 216, 0.35); }
.atlas-map__title  { color: #F4E9C7; }
.atlas-map__lede   { color: #C8D3E5; }

.atlas-map__canvas {
  border: 1px solid rgba(93, 202, 216, 0.25);
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, #0F2444 0%, #0A1A34 60%, #05101F 100%);
  box-shadow:
    inset 0 0 60px rgba(93, 202, 216, 0.06),
    inset 0 0 12px rgba(232, 184, 75, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.55);
}
.atlas-map__canvas::before,
.atlas-map__canvas::after { display: none; }

/* Marker · dot fills gold, ring becomes cyan, drop-shadow becomes glow */
.atlas-map__marker-ring {
  stroke: #93D5DE;
  stroke-width: 1.5;
  opacity: 0.85;
}
.atlas-map__marker-dot {
  fill: #E8B84B;
  stroke: rgba(255, 240, 200, 0.85);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(232, 184, 75, 0.75));
}
.atlas-map__marker:hover .atlas-map__marker-dot,
.atlas-map__marker:focus .atlas-map__marker-dot {
  fill: #FDFBF5;
  filter: drop-shadow(0 0 6px rgba(147, 213, 222, 0.9));
}
.atlas-map__marker:focus-visible .atlas-map__marker-dot {
  stroke: #93D5DE;
  stroke-width: 2.4;
}
.atlas-map__marker-label {
  fill: #F4E9C7;
  stroke: #05101F;
  stroke-width: 2.2px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.05em;
  opacity: 0.92;
}

/* Discovery-intelligence connection lines drawn dynamically by atlas-map.js */
.atlas-map__connection {
  fill: none;
  stroke: url(#connectionGrad);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  opacity: 0;
  animation: atlas-map-connection-appear 700ms ease-out forwards,
             atlas-map-connection-flow 22s linear infinite;
  filter: drop-shadow(0 0 3px rgba(147, 213, 222, 0.6));
}
@keyframes atlas-map-connection-appear {
  from { opacity: 0; }
  to   { opacity: 0.9; }
}
@keyframes atlas-map-connection-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -400; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-map__connection { animation: none; opacity: 0.9; }
}

/* ─── Summary Panel · glass-hologram dark card ──────────────────────────── */

.atlas-map__card {
  background:
    linear-gradient(180deg, rgba(15, 36, 68, 0.96), rgba(10, 26, 52, 0.98));
  border: 1px solid rgba(147, 213, 222, 0.35);
  color: #F4E9C7;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(93, 202, 216, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.atlas-map__card-kicker { color: #93D5DE; letter-spacing: 0.14em; }
.atlas-map__card-title  { color: #F4E9C7; }
.atlas-map__card-biblical-name { color: #93D5DE; }
.atlas-map__card-verse  { color: #F4E9C7; border-left-color: #E8B84B; }
.atlas-map__card-cite   { color: #E8B84B; }
.atlas-map__card-summary{ color: #E4EAF3; }
.atlas-map__card-chip-label { color: #93D5DE; }
.atlas-map__card-chip--person { background: #E8B84B; border-color: #E8B84B; color: #05101F; }
.atlas-map__card-chip--person:hover { background: #D9A83E; }
.atlas-map__card-chip--event  { background: rgba(147, 213, 222, 0.18); border-color: #93D5DE; color: #93D5DE; }
.atlas-map__card-chip--event:hover { background: rgba(147, 213, 222, 0.30); }
.atlas-map__card-reflection {
  background: rgba(93, 202, 216, 0.08);
  border-left-color: #93D5DE;
  color: #E4EAF3;
}

/* ─── Panel Tabs (Discovery layers) ─────────────────────────────────────── */

.atlas-map__card-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0 -0.25rem 1rem;
  padding: 0.35rem 0.25rem;
  border-bottom: 1px solid rgba(147, 213, 222, 0.18);
}
.atlas-map__card-tab {
  padding: 0.35rem 0.7rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93D5DE;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}
.atlas-map__card-tab:hover,
.atlas-map__card-tab:focus-visible {
  background: rgba(147, 213, 222, 0.10);
  color: #F4E9C7;
}
.atlas-map__card-tab:focus-visible {
  outline: 2px solid #93D5DE;
  outline-offset: 2px;
}
.atlas-map__card-tab.is-active {
  background: rgba(232, 184, 75, 0.16);
  color: #E8B84B;
  border-color: rgba(232, 184, 75, 0.55);
}
.atlas-map__card-tabpanel {
  min-height: 4rem;
  animation: atlas-map-tab-fade 260ms ease-out;
}
@keyframes atlas-map-tab-fade {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0);  }
}
.atlas-map__card-tabpanel[hidden] { display: none; }

.atlas-map__card-datum {
  margin: 0 0 0.75rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.98rem;
  color: #E4EAF3;
  line-height: 1.55;
}
.atlas-map__card-datum strong {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93D5DE;
  display: block;
  margin-bottom: 0.2rem;
}

.atlas-map__card-discovery-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  margin: 0.35rem 0;
  background: rgba(147, 213, 222, 0.06);
  border: 1px solid rgba(147, 213, 222, 0.22);
  border-radius: 6px;
  color: #F4E9C7;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}
.atlas-map__card-discovery-item:hover,
.atlas-map__card-discovery-item:focus-visible {
  background: rgba(232, 184, 75, 0.10);
  border-color: rgba(232, 184, 75, 0.5);
}
.atlas-map__card-discovery-item::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #93D5DE;
  box-shadow: 0 0 6px rgba(147, 213, 222, 0.9);
  flex-shrink: 0;
}
.atlas-map__card-discovery-title {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.02rem;
  color: #F4E9C7;
  line-height: 1.3;
}
.atlas-map__card-discovery-reason {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  color: #93D5DE;
  letter-spacing: 0.12em;
  margin-top: 0.15rem;
}

/* Actions row — primary gold, secondary cyan outline */
.atlas-map__card-action--primary {
  background: #E8B84B;
  border-color: #E8B84B;
  color: #05101F;
}
.atlas-map__card-action--primary:hover,
.atlas-map__card-action--primary:focus-visible {
  background: #F1CE73;
  color: #05101F;
}
.atlas-map__card-action--secondary {
  color: #93D5DE;
  border-color: #93D5DE;
  background: transparent;
}
.atlas-map__card-action--secondary:hover,
.atlas-map__card-action--secondary:focus-visible {
  background: rgba(147, 213, 222, 0.14);
  color: #F4E9C7;
}

/* ─── Fallback / pathways / footer · dark harmonised ────────────────────── */

.atlas-map__fallback {
  background: rgba(15, 36, 68, 0.65);
  border-color: rgba(93, 202, 216, 0.22);
  color: #E4EAF3;
}
.atlas-map__fallback-note { color: #93D5DE; }
.atlas-map__fallback-region h3 { color: #E8B84B; border-bottom-color: rgba(232, 184, 75, 0.5); }
.atlas-map__fallback-region li { border-bottom-color: rgba(147, 213, 222, 0.18); color: #E4EAF3; }
.atlas-map__fallback-region a { color: #93D5DE; }
.atlas-map__fallback-region a:hover,
.atlas-map__fallback-region a:focus-visible { border-bottom-color: #E8B84B; }

.atlas-map__pathways {
  background:
    linear-gradient(180deg, rgba(15, 36, 68, 0.75), rgba(10, 26, 52, 0.85));
  border-color: rgba(232, 184, 75, 0.35);
}
.atlas-map__pathways-kicker { color: #93D5DE; }
.atlas-map__pathways-title { color: #F4E9C7; }
.atlas-map__pathway {
  color: #F4E9C7;
  background: rgba(15, 36, 68, 0.6);
  border-color: rgba(232, 184, 75, 0.55);
}
.atlas-map__pathway:hover,
.atlas-map__pathway:focus-visible {
  background: #E8B84B;
  color: #05101F;
  border-color: #E8B84B;
}

.atlas-map__footer {
  background: linear-gradient(180deg, rgba(10, 26, 52, 0.85), rgba(5, 16, 31, 0.95));
  border-top: 1px solid rgba(147, 213, 222, 0.20);
}
.atlas-map__footer-blessing { color: #E8B84B; }
.atlas-map__footer-note { color: #93D5DE; }
.atlas-map__footer-nav a { color: #F4E9C7; }
.atlas-map__footer-nav a:hover,
.atlas-map__footer-nav a:focus-visible { border-bottom-color: #E8B84B; }

/* ─── Print ───────────────────────────────────────────────────────────────── */

@media print {
  #atlas-map-svg,
  .atlas-map__card,
  .atlas-map__pathways {
    display: none;
  }
}
