/* 06-components/map-viewer — the full-bleed terrain-console root (design-system
   gap #1). The interactive viewer is the site's one surface that owns the viewport:
   the page declares content_for(:full_bleed) so brief 01's shell yields it OUTSIDE
   the centred reading column, and this root fixes itself over the whole viewport
   while the site chrome scrolls underneath. Chosen mechanism, stated once here so
   the shell and the viewer agree on who owns the viewport: position:fixed inset:0,
   below the CRT overlay (z 9998, so the tube still rolls over the glass) and above
   the document. The map provides its own back-to-atlas escape, so covering the
   masthead costs the reader nothing. */
.c-map-viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: var(--ground);
}

/* The live OpenLayers canvas fills the glass end to end. */
.c-map-viewer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Back-to-atlas control pinned to the top-left of the glass. Carries its own
   opaque scrim (gap #3) so the ghost button stays legible over bright tiles. */
.c-map-viewer__back {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 12;
  background: var(--surface);
}
