/* =========================================================================
   PA AI Data Center Map, page-specific styles
   Loaded only on /pa-data-center-map.html
   ========================================================================= */

/* ----- Visual language tokens ----------------------------------------- */
:root {
  --sf-active:    #c8281e;   /* Operational / Under Construction / Approved */
  --sf-contested: #b88318;   /* Application Filed / Proposed / Appeal / Restructured */
  --sf-emerging:  #6b6359;   /* Speculative */
  --sf-ordinance: #2a4d8a;   /* Municipal ordinance response */
  --sf-stopped:   #4f7a4d;   /* Withdrawn / Denied / Cancelled */
  --sf-other:     #8b8579;
}

/* ----- Map shell ------------------------------------------------------ */
.map-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.25rem 0 1.5rem;
  height: clamp(600px, 78vh, 880px);
  min-height: 600px;
}
@media (max-width: 960px) {
  .map-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
}

/* ----- Filter / search rail (left) ----------------------------------- */
.map-rail {
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (max-width: 960px) { .map-rail { border-right: 0; border-bottom: 1px solid var(--line); } }

.map-rail-head {
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-3);
}
.map-search {
  display: flex;
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.map-search input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  flex: 1;
  color: var(--ink);
  font-size: 0.92rem;
  min-width: 0;
}
.map-search input::placeholder { color: var(--slate-2); }
.map-search-icon {
  width: 16px; height: 16px;
  color: var(--slate-2);
  flex: 0 0 auto;
}
.map-search-clear {
  width: 18px; height: 18px;
  color: var(--slate-2);
  cursor: pointer;
  display: none;
}
.map-search.has-value .map-search-clear { display: block; }

.filter-group { margin-bottom: 0.65rem; }
.filter-group:last-child { margin-bottom: 0.25rem; }
.filter-group h5 {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-2);
  font-weight: 600;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ----- Project list --------------------------------------------------- */
.map-rail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.map-result-count {
  padding: 0.55rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-2);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}
.map-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-list-item {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 0.7rem;
  align-items: start;
  transition: background .12s;
}
.map-list-item:hover { background: var(--paper-3); }
.map-list-item.is-active { background: var(--red-soft); }
.map-list-item.is-active .map-list-name { color: var(--red-deep); }
.map-list-bar {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  margin-top: 0.2rem;
  background: var(--sf-other);
}
.map-list-bar.sf-active    { background: var(--sf-active); }
.map-list-bar.sf-contested { background: var(--sf-contested); }
.map-list-bar.sf-emerging  { background: var(--sf-emerging); }
.map-list-bar.sf-ordinance { background: var(--sf-ordinance); }
.map-list-bar.sf-stopped   { background: var(--sf-stopped); }
.map-list-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.map-list-sub {
  font-size: 0.78rem;
  color: var(--slate-2);
  margin: 0.2rem 0 0;
  line-height: 1.35;
}
.map-list-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-2);
  margin-top: 0.3rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ----- Map area ------------------------------------------------------- */
.map-canvas {
  position: relative;
  background: #e8e0cf;
}
#paLeafletMap {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}
@media (max-width: 960px) {
  .map-canvas { height: clamp(420px, 60vh, 640px); }
  #paLeafletMap { position: relative; }
}

/* Custom marker */
.dc-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sf-other);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(26,22,20,0.35), 0 0 0 1px rgba(26,22,20,0.1);
  cursor: pointer;
  transition: transform .1s ease;
}
.dc-marker:hover { transform: scale(1.18); z-index: 10; }
.dc-marker.is-selected {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ink), 0 4px 14px rgba(26,22,20,0.4);
}
.dc-marker.sf-active    { background: var(--sf-active); }
.dc-marker.sf-contested { background: var(--sf-contested); }
.dc-marker.sf-emerging  { background: var(--sf-emerging); }
.dc-marker.sf-ordinance { background: var(--sf-ordinance); }
.dc-marker.sf-stopped   { background: var(--sf-stopped); }

/* size by scale tier */
.dc-marker.scale-mega  { width: 32px; height: 32px; }
.dc-marker.scale-hyper { width: 26px; height: 26px; }
.dc-marker.scale-large { width: 22px; height: 22px; }
.dc-marker.scale-mid   { width: 18px; height: 18px; }
.dc-marker.scale-small { width: 14px; height: 14px; }
.dc-marker.scale-unknown { width: 16px; height: 16px; }

.dc-marker-icon {
  width: 60%;
  height: 60%;
  color: #fff;
  pointer-events: none;
}
.dc-marker-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--sf-active);
  animation: dcPulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes dcPulse {
  0%   { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.85); opacity: 0;    }
}

/* Leaflet tooltip override (quick hover view) */
.leaflet-tooltip.dc-tooltip {
  background: var(--ink);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: 240px;
  white-space: normal;
}
.leaflet-tooltip.dc-tooltip:before { display: none; }
.dc-tooltip-name { font-weight: 700; color: #fff; display: block; }
.dc-tooltip-meta { color: #d6cabc; font-size: 0.74rem; font-family: var(--font-mono); margin-top: 0.2rem; }
.dc-tooltip-stats { color: #d6cabc; font-size: 0.78rem; margin-top: 0.25rem; }

/* Legend overlay */
.map-legend-card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
  max-width: 220px;
}
.map-legend-card h6 {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-2);
}
.map-legend-card ul { list-style: none; margin: 0; padding: 0; }
.map-legend-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.18rem 0;
  font-size: 0.78rem;
  color: var(--ink);
}
.map-legend-swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px var(--line-2);
}

/* ----- Mini-profile slide-out panel ----------------------------------- */
.mini-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  width: min(360px, calc(100% - 32px));
  max-height: calc(100% - 24px);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 600;
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.mini-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mini-panel-head {
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.mini-panel-head .mini-panel-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 28px; height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  background: transparent;
}
.mini-panel-head .mini-panel-close:hover { background: var(--paper-3); color: var(--ink); }
.mini-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--line);
  color: var(--ink);
}
.status-pill .chip-dot { width: 7px; height: 7px; }
.status-pill.sf-active    { background: var(--red-soft);  color: var(--red-deep); }
.status-pill.sf-contested { background: var(--gold-soft); color: #5a4509; }
.status-pill.sf-emerging  { background: var(--paper-3);   color: var(--slate); }
.status-pill.sf-ordinance { background: #e3eaf6;          color: #1f3a6e; }
.status-pill.sf-stopped   { background: var(--green-soft);color: #2f4d2d; }

.attr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--paper-3);
  color: var(--slate);
  letter-spacing: 0.02em;
}
.attr-pill svg {
  width: 12px; height: 12px;
  flex: 0 0 auto;
}
.attr-pill.is-power-nuclear { background: #e8efe6; color: #2f4d2d; }
.attr-pill.is-power-gas     { background: #fbe7e3; color: var(--red-deep); }
.attr-pill.is-power-hydro   { background: #e0eef3; color: #194e64; }
.attr-pill.is-power-grid    { background: #f0e9d8; color: #6a4d10; }
.attr-pill.is-power-unknown { background: var(--line); color: var(--slate); }
.attr-pill.is-brown         { background: #ece4d6; color: #5a4f3e; }
.attr-pill.is-green         { background: #e3eede; color: #2f4d2d; }
.attr-pill.is-scale         { background: var(--ink); color: #fff; }

.mini-panel h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.mini-panel .mini-codename {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.mini-locator {
  font-size: 0.86rem;
  color: var(--slate);
  margin: 0.45rem 0 0;
}

.mini-panel-body {
  padding: 0.95rem 1.1rem 0.5rem;
  overflow-y: auto;
  flex: 1;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 0.9rem;
  margin: 0 0 0.85rem;
}
.mini-stat {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}
.mini-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.mini-stat-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 0.15rem;
}
.mini-stat-value.is-empty { color: var(--slate-2); font-weight: 500; }

.mini-summary {
  font-size: 0.88rem;
  color: var(--slate);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.mini-panel-foot {
  padding: 0.75rem 1.1rem 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
  background: var(--paper);
}
.mini-panel-foot .btn { flex: 1; justify-content: center; }

/* ----- Full profile modal -------------------------------------------- */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: stretch;
  justify-content: center;
  background: rgba(26, 22, 20, 0.55);
  backdrop-filter: blur(2px);
  padding: 0;
}
.profile-modal.is-open { display: flex; }
.profile-modal-card {
  background: var(--paper);
  width: 100%;
  max-width: 920px;
  max-height: 100%;
  margin: auto;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: profileIn .25s var(--ease);
}
@media (min-width: 720px) {
  .profile-modal { padding: 2rem; }
  .profile-modal-card { border-radius: 14px; max-height: 95vh; }
}
@keyframes profileIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.profile-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}
.profile-modal-close:hover { background: #fff; color: var(--red); }

.profile-head {
  padding: 1.5rem 1.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--sf-other);
  position: relative;
}
.profile-head.sf-active    { border-bottom-color: var(--sf-active); }
.profile-head.sf-contested { border-bottom-color: var(--sf-contested); }
.profile-head.sf-emerging  { border-bottom-color: var(--sf-emerging); }
.profile-head.sf-ordinance { border-bottom-color: var(--sf-ordinance); }
.profile-head.sf-stopped   { border-bottom-color: var(--sf-stopped); }
.profile-head h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 0.4rem 0 0.3rem;
  letter-spacing: -0.02em;
  max-width: 32ch;
}
.profile-head .mini-codename { color: #d6cabc; }
.profile-head .mini-locator { color: #d6cabc; }
.profile-head .mini-status-row { margin-bottom: 0; }
.profile-head .status-pill {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.profile-head .status-pill.sf-active    { background: var(--red);     color: #fff; }
.profile-head .status-pill.sf-contested { background: var(--gold);    color: #fff; }
.profile-head .status-pill.sf-emerging  { background: rgba(255,255,255,0.18); color: #fff; }
.profile-head .status-pill.sf-ordinance { background: var(--sf-ordinance); color: #fff; }
.profile-head .status-pill.sf-stopped   { background: var(--green);   color: #fff; }

.profile-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: var(--paper);
}

.profile-section {
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid var(--line);
}
.profile-section:last-child { border-bottom: 0; }
.profile-section.alt { background: var(--paper-2); }
.profile-section.tinted { background: var(--paper-3); }
.profile-section h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.profile-section h3 svg {
  width: 18px; height: 18px;
  color: var(--red);
  flex: 0 0 auto;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem 1rem;
}
@media (max-width: 640px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}
.profile-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
.profile-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 0.2rem;
}
.profile-stat-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.2;
}
.profile-stat-value.is-empty { color: var(--slate-2); font-weight: 500; font-size: 0.95rem; }
.profile-stat-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--slate-2);
  margin-top: 0.15rem;
}

.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.profile-section .body-text { font-size: 0.95rem; color: var(--slate); margin: 0; line-height: 1.6; }
.profile-section.tinted .body-text { color: var(--ink); }

.operator-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.operator-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 0.6rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: start;
}
.operator-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  font-weight: 600;
}
.operator-name { font-weight: 700; color: var(--ink); margin: 0; line-height: 1.3; }
.operator-meta { font-size: 0.78rem; color: var(--slate-2); margin-top: 0.18rem; }
.operator-notes { font-size: 0.82rem; color: var(--slate); margin-top: 0.3rem; }

.timeline-list { list-style: none; margin: 0; padding: 0 0 0 1rem; position: relative; }
.timeline-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.timeline-row {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
}
.timeline-row::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0.85rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--red);
}
.timeline-row.event-vote_approval::before { border-color: var(--green); }
.timeline-row.event-vote_denial::before,
.timeline-row.event-withdrawal::before    { border-color: var(--sf-stopped); }
.timeline-row.event-application_filed::before { border-color: var(--sf-contested); }
.timeline-row.event-litigation_filed::before, .timeline-row.event-ruling::before  { border-color: var(--sf-ordinance); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-2);
  letter-spacing: 0.04em;
}
.timeline-title {
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0.15rem 0 0.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.timeline-actor {
  font-size: 0.78rem;
  color: var(--slate-2);
}
.timeline-source { font-size: 0.78rem; }

.impact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.impact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  border: 1px solid var(--line);
  border-left-width: 4px;
}
.impact-row.mag-High { border-left-color: var(--red); }
.impact-row.mag-Medium { border-left-color: var(--gold); }
.impact-row.mag-Low { border-left-color: var(--slate-2); }
.impact-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 700;
}
.impact-mag {
  font-size: 0.7rem;
  color: var(--slate-2);
  margin-top: 0.1rem;
}
.impact-desc { font-size: 0.86rem; color: var(--slate); margin: 0; line-height: 1.45; }
.impact-desc strong { color: var(--ink); }

.filing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.filing-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.filing-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--slate-2);
}
.filing-type { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.filing-status { color: var(--red-deep); }
.filing-desc { font-size: 0.88rem; color: var(--slate); margin: 0.4rem 0 0; line-height: 1.45; }

.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.related-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--ink);
}
.related-list a:hover { border-color: var(--red); color: var(--red); }
.related-list .rel-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-2);
}

.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.source-list li {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--slate);
  padding-left: 1rem;
  position: relative;
}
.source-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 700;
}
.source-list a { word-break: break-word; }

/* Empty state */
.map-empty {
  padding: 1.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--slate-2);
  text-align: center;
}

/* Loading state */
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--slate-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  z-index: 100;
}
.map-loading.is-hidden { display: none; }
