/* ==========================================================================
   PAGES · MAP POPOVER (map#index hover) — the choropleth's hover card printed
   as a small slip on warm paper: hairline rule, page shadow, a mono score
   numeral. The redundant score apparatus (numeral + band word + badge vernier)
   is built by the .op-badge the slip carries; this layer only grounds and
   styles the slip. The JS sets position:fixed / left / top inline.
   Token-only — no raw colour below 01-settings.
   ========================================================================== */

.map-popup {
  inline-size: max-content;
  max-inline-size: 18rem;
  padding: var(--space-xs) var(--space-sm);
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-page);
  color: var(--text);
  font-family: var(--font-furniture);
  opacity: 1;
  transition: opacity 0.18s ease;
}
.map-popup.hidden { display: none; }

.map-popup__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.map-popup__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.map-popup__name {
  font-family: var(--font-reading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
  color: var(--text);
}

/* Every measured figure is mono — the score reads as instrument output. */
.map-popup__score {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.map-popup__context {
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* A thin reading rule under the data, echoing the figure plate's hairlines. */
.map-popup__sparkline {
  block-size: 2px;
  background: var(--rule);
}
.map-popup__sparkline-fill {
  block-size: 100%;
  background: var(--accent);
}

/* Link is ink with a rubric underline — never default browser blue. */
.map-popup__link {
  align-self: flex-start;
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 0.2em;
}
.map-popup__link:hover { color: var(--link-hover); }
