/* ---------------------------------------------------------------
   The module skyline (landing-skyline.js): every study module as a
   cube, stacked by section and grouped by division. The canvas does
   the drawing; this styles the frame, the tooltip
   and the division legend around it.
   --------------------------------------------------------------- */
.skyline-band { padding: 0 0 64px; }
.skyline { position: relative; }
/* No frame: the districts float on the page background. --pad is kept at 0
   so the tooltip's origin still matches the stage's. */
.skyline { --pad: 0px; }
.skyline-body { position: relative; padding: 0 0 6px; }
.skyline-stage { position: relative; width: 100%; height: 240px; overflow: hidden; }
.skyline-stage canvas { position: absolute; top: 0; left: 0; display: block; outline: none; }
.skyline-stage:has(canvas:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.skyline-tip {
  position: absolute; top: var(--pad); left: var(--pad); z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; gap: 1px; max-width: 200px;
  padding: 3px 7px 4px; border-radius: 4px;
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent); color: var(--ink);
  border: 1px solid var(--line, var(--border, rgba(14,42,45,.12))); box-shadow: 0 2px 8px rgba(14,42,45,.08);
  transition: opacity .15s;
}
.skyline-tip-eyebrow {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .08em; line-height: 1.3;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.skyline-tip-eyebrow b { font-weight: 600; }
.skyline-tip-title {
  font-family: var(--font-module, var(--font-division, Georgia, serif)); font-size: 11px; line-height: 1.2;
  font-variation-settings: "opsz" 36, "SOFT" 20;
}
.skyline-tip-dia { font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; color: var(--text-muted); margin-top: 1px; }
.skyline-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 18px; padding: 10px 0 0; font-size: 12.5px; color: var(--text-muted);
}
.skyline-hint { flex: 1; min-width: 220px; }
.skyline-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.skyline-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 6px;
  border-radius: 999px; border: 1px solid var(--line, var(--border, rgba(14,42,45,.12))); background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; cursor: pointer;
  transition: opacity .3s, border-color .2s, background .2s;
}
.skyline-chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--dc); }
.skyline-chip small { font-size: 10px; color: var(--text-muted); }
.skyline-chip:hover, .skyline-chip.on { border-color: var(--dc); background: color-mix(in srgb, var(--dc) 14%, transparent); }
.skyline-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skyline-legend.isolating .skyline-chip:not(.on) { opacity: .5; }
.skyline-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .skyline-foot { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .skyline-chip, .skyline-tip { transition: none; }
}

/* Compact: just the city, for the division pages' hero. */
.skyline-compact .skyline-foot { display: none; }
.skyline-compact .skyline-body { padding: 0; }
