/* Cartographic furniture: north arrow, scale bar, legend (js/mapkit.js). */
.mk-north { background: rgba(251, 248, 241, .94); border-radius: 6px; box-shadow: 0 0 0 1px rgba(23, 33, 31, .14); }
.mk-north button { display: block; width: 44px; height: 54px; padding: 3px 0 2px; border: 0; background: none; cursor: pointer; }
.mk-north svg { width: 100%; height: 100%; transition: transform .15s linear; }
.mk-north text { font: 700 11px/1 system-ui, sans-serif; fill: #17211F; }
.mk-north .dark { fill: #17211F; } .mk-north .light { fill: #FBF8F1; stroke: #17211F; stroke-width: 1.2; stroke-linejoin: round; }

.maplibregl-ctrl-scale { background: rgba(251, 248, 241, .9); border: 2px solid #17211F; border-top: 0; color: #17211F; font: 600 11px/1.5 system-ui, sans-serif; font-feature-settings: "tnum"; padding: 0 6px; }

.mk-legend { background: rgba(251, 248, 241, .95); border-radius: 6px; box-shadow: 0 0 0 1px rgba(23, 33, 31, .14); padding: 8px 10px 6px; width: 230px; max-height: 42vh; overflow-y: auto; font: 12px/1.3 system-ui, sans-serif; color: #17211F; pointer-events: auto; }
.mk-legend[hidden] { display: none; }
.mk-h { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5B625E; margin-bottom: 5px; }
.mk-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.mk-row.mk-wide { display: block; }
.mk-row.mk-wide .mk-t { display: block; margin-bottom: 3px; }
.mk-sw { flex: none; width: 16px; height: 12px; border-radius: 2px; background: var(--c); opacity: .85; box-shadow: inset 0 0 0 1px rgba(23, 33, 31, .25); }
.mk-line { flex: none; width: 16px; height: 0; border-top: 3px solid var(--c); border-radius: 2px; }
.mk-dot { flex: none; width: 11px; height: 11px; margin: 0 2.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #FBF8F1, 0 0 0 2.5px rgba(23, 33, 31, .25); }
.mk-cat { background: conic-gradient(#1C6E6A 0 25%, #C98A5C 0 50%, #7A5AA6 0 75%, #D9B44A 0); opacity: 1; }
.mk-img { background: linear-gradient(90deg, #F2E6C9, #C2341D); opacity: 1; }
.mk-ramp { display: block; height: 8px; border-radius: 2px; }
.mk-ticks { display: flex; justify-content: space-between; color: #5B625E; font-size: 11px; margin-top: 2px; font-feature-settings: "tnum"; }

/* Presentation: scale it with the screen like the rest of the deck. */
body.deck .mk-legend { width: 15vw; min-width: 210px; font-size: max(12px, .72rem); max-height: 34vh; }
body.deck .maplibregl-ctrl-top-left { top: 3vh; left: 3vw; }
body.deck .maplibregl-ctrl-top-left .maplibregl-ctrl { margin: 0 0 8px; }

/* Opening slide (relief point cloud): north arrow + elevation legend. */
.relief-north { position: absolute; right: 3vw; top: 6vh; width: 44px; height: 54px; z-index: 2; }
.relief-north svg { width: 100%; height: 100%; }
body.deck .relief-key { position: absolute; right: 3vw; bottom: 13vh; z-index: 2; width: 15vw; min-width: 190px; }
@media (max-width: 860px) { .relief-key, .relief-north { display: none; } }
