/* PROTOTYPE — overpass/map.css: the map column (the direction's §8.3): the map, the views pill, zoom, the credit line,
   the hover plate, the keyboard crosshair, the loading line, the map's messages and the welly. Owned with overpass/map.js. */

.map { position: absolute; inset: 0; }
.map .maplibregl-canvas:focus-visible { outline: none; }
.mapcol .sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.mapcol .names, .mapcol .rings { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

/* the town names (overpass/names.js, the direction's §8.9): quiet, never the map's glyph fonts, never in the way */
.nm { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; font-size: 11.5px; font-weight: 600; font-stretch: 90%; line-height: 1; letter-spacing: .01em; color: rgba(221, 232, 244, .66); text-shadow: 0 0 2px #07142B, 0 0 4px #07142B; pointer-events: none; will-change: transform; }
.nm-city { font-size: 12.5px; }
.nm.on { visibility: visible; }

/* the rings (overpass/rings.js, §8.3): only the labels and the circles take a press, never the drawing between them */
.rings .rg-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rg-lines circle { fill: none; stroke: var(--note); stroke-width: 1.5; }
.rg-lines path { fill: none; stroke: rgba(247, 198, 221, .7); stroke-width: 1; }
.rg { position: absolute; left: 0; top: 0; display: grid; justify-items: start; gap: 1px; margin: 0; padding: 2px 3px; background: none; border: 0; border-radius: 2px; color: var(--note); text-align: left; white-space: nowrap; cursor: pointer; pointer-events: auto; }
.rg-west { justify-items: end; text-align: right; }
.rg-name { font-family: var(--font-log); font-style: italic; font-size: 15px; line-height: 1.15; color: var(--note); text-shadow: 0 0 3px #07142B, 0 0 6px #07142B; }
.rg-fig { font-size: 11.5px; line-height: 1.2; color: var(--pale-2); text-shadow: 0 0 2px #07142B, 0 0 4px #07142B; font-variant-numeric: tabular-nums; }
.rg:hover .rg-name { text-decoration: underline; text-decoration-color: var(--track-lit); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rg-dot { position: absolute; left: 0; top: 0; border-radius: 50%; cursor: pointer; pointer-events: auto; }
@media (max-width: 760px) { .rg-name { font-size: 13px; } .rg-fig { font-size: 10.5px; } }

/* the loading line: 2 px of --track-lit along the instrument's top edge while the squares load */
.ov-load { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 6; background: var(--track-lit); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: transform .2s linear, opacity .3s; pointer-events: none; }
.ov-load.on { opacity: 1; }

.views { position: absolute; left: var(--inset); top: var(--inset); z-index: 4; display: flex; background: rgba(10, 27, 51, .86); padding: 4px; border-radius: var(--r-pill); max-width: calc(100% - 2 * var(--inset)); }
.views button { font-weight: 600; font-size: var(--fs-ui); color: var(--pale); background: none; border: 0; border-radius: var(--r-pill); padding: 6px 12px; cursor: pointer; white-space: nowrap; transition: background var(--t-quick), color var(--t-quick); }
.views button[aria-pressed="true"] { background: var(--cloudtop); color: var(--ink); }
.views button[aria-disabled="true"] { color: rgba(221, 232, 244, .45); }
.zoom { position: absolute; left: var(--inset); top: calc(var(--inset) + 46px); z-index: 4; display: grid; gap: 6px; }
.inst:has(.maplibregl-canvas:focus-visible) .zoom { top: calc(var(--inset) + 80px); }
.zoom button { width: 36px; height: 36px; border-radius: var(--r-round); border: 0; background: rgba(10, 27, 51, .86); color: var(--pale); cursor: pointer; display: grid; place-items: center; }
.zoom .ico { width: 18px; height: 18px; }
@media (pointer: coarse) { .zoom button { width: var(--hit); height: var(--hit); } .views button { padding: 11px 13px; } }

.credit { position: absolute; right: var(--inset); bottom: 8px; z-index: 4; max-width: calc(100% - 2 * var(--inset)); font-size: var(--fs-micro); line-height: 1.3; color: var(--pale); background: rgba(10, 27, 51, .86); padding: 3px 8px; }
.credit.credit-failed { color: var(--doubt-ink); }

.peek { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; max-width: 20rem; font-size: 12.5px; line-height: 1.25; color: #fff; background: rgba(10, 27, 51, .92); border-left: 3px solid var(--track-lit); padding: 5px 9px; will-change: transform; }
.peek b { display: block; font-weight: 650; }
.peek span { display: block; color: var(--pale); }
.peek span + span { color: var(--pale-2); }

.cross { display: none; position: absolute; left: 0; top: 0; z-index: 4; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; color: var(--track-lit); }
.inst:has(.maplibregl-canvas:focus-visible) .cross { display: block; }
.keyhint { display: none; position: absolute; left: var(--inset); top: calc(var(--inset) + 46px); z-index: 4; font-size: .8rem; background: rgba(10, 27, 51, .9); color: #fff; padding: 5px 9px; pointer-events: none; }
.inst:has(.maplibregl-canvas:focus-visible) .keyhint { display: block; }

.map-msg { position: absolute; left: var(--inset); right: var(--inset); top: 50%; transform: translateY(-50%); z-index: 5; max-width: 26rem; margin: 0 auto; font-size: .95rem; line-height: 1.45; color: var(--pale); background: rgba(10, 27, 51, .92); padding: 14px 16px; text-align: left; }
.map-msg.map-tip { top: auto; bottom: 44px; transform: none; max-width: 16rem; font-weight: 600; text-align: center; padding: 8px 12px; }

/* the welly: the page's map pin */
.welly { width: 38px; height: 38px; color: #fff; filter: var(--sh-welly); pointer-events: none; --ico-water: #6FD3FF; }
.welly svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) { .welly.drop svg { animation: ov-plant var(--t-plant) var(--ease-plant) both; } }
@keyframes ov-plant { from { transform: translateY(-22px) rotate(-10deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* the squares did not load: the key's swatches dim to 40% (overpass/key.css follows .ov-squares-failed) */
@media (max-width: 760px) {
  .views { left: 8px; top: 8px; }
  .views button { padding: 7px 11px; font-size: .84rem; }
  .zoom { left: 8px; top: 58px; }
  .credit { left: 8px; right: 8px; bottom: 6px; font-size: .62rem; }
}
