/* ReLEAF navigation map, the painted version. Needs navmap.css for the head. */
.nma .nma-stage { position: relative; }
.nma .nma-scroll { overflow: hidden; border-radius: 22px; }
.nma .nma-inner { position: relative; }
.nma .nma-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.nma .nma-svg a { outline: none; }

/* the ground, and the dusk that falls on it when a place is lit */
.nma .nma-ground { transition: filter .6s cubic-bezier(.2,.7,.2,1); }
.nma .nma-dusk { fill: #1b2a3c; opacity: 0; pointer-events: none; mix-blend-mode: multiply; transition: opacity .6s cubic-bezier(.2,.7,.2,1); }
.nma[data-lit] .nma-dusk { opacity: .42; }
.nma .nma-paper { fill: #000; pointer-events: none; }

/* the places */
.nma .nma-place { cursor: pointer; }
.nma .nma-hit { fill: transparent; }
.nma .nma-art { transition: filter .5s cubic-bezier(.2,.7,.2,1); }
.nma .nma-litlayer .nma-art { filter: drop-shadow(0 0 10px var(--glow, #8ddc5a)) drop-shadow(0 0 34px color-mix(in srgb, var(--glow, #8ddc5a) 55%, transparent)); }
.nma a.nma-active .nma-art { filter: drop-shadow(0 0 12px var(--glow, #8ddc5a)) drop-shadow(0 0 44px color-mix(in srgb, var(--glow, #8ddc5a) 70%, transparent)); }
.nma.nma-looping .nma-litlayer a.nma-active .nma-art { animation: nma-breathe-glow 1.8s ease-in-out infinite; }
@keyframes nma-breathe-glow { 0%, 100% { filter: drop-shadow(0 0 8px var(--glow, #8ddc5a)) drop-shadow(0 0 24px color-mix(in srgb, var(--glow, #8ddc5a) 45%, transparent)); } 50% { filter: drop-shadow(0 0 16px var(--glow, #8ddc5a)) drop-shadow(0 0 60px color-mix(in srgb, var(--glow, #8ddc5a) 85%, transparent)); } }
.nma .nma-place.nma-is-here .nma-art { filter: drop-shadow(0 0 12px var(--glow, #8ddc5a)) drop-shadow(0 0 40px color-mix(in srgb, var(--glow, #8ddc5a) 60%, transparent)); }

/* the lit routes between a place and its neighbours */

/* the name tags: a frosted white callout with a notch, the page's colour as a dot */
.nma .nma-tag { opacity: 0; pointer-events: none; transition: opacity .35s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 3px 10px rgba(20, 30, 20, .18)); }
.nma .nma-tag.nma-show { opacity: 1; }
.nma .nma-tag__bg { fill: rgba(255, 255, 255, .94); stroke: rgba(23, 23, 23, .06); stroke-width: 1; }
.nma .nma-tag__notch { fill: rgba(255, 255, 255, .94); }
.nma .nma-tag__dot { fill: var(--s-ink, #171717); }
.nma .nma-tag__t { font-size: 22px; font-weight: 600; fill: #1d1d1f; text-anchor: middle; dominant-baseline: middle; letter-spacing: -.012em; }

/* text painted into the picture */

/* the caption under the valley */
.nma .nma-cap { display: grid; gap: 10px; margin: 18px 2px 0; min-height: 120px; }
.nma .nma-cap__head { display: grid; gap: 2px; }
.nma .nma-cap__eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s-ink, #6b6b6b); }
.nma .nma-cap__name { font-size: 20px; font-weight: 650; letter-spacing: -.015em; color: #171717; text-decoration: none; }
.nma .nma-cap__line { font-size: 14px; color: #6b6b6b; }
.nma .nma-cap__links { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.nma .nma-cap__links a { display: grid; gap: 1px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: #171717; text-decoration: none; transition: background .15s; }
.nma .nma-cap__links a:hover { background: var(--s-pill, #f5f5f5); }
.nma .nma-cap__links b { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.nma .nma-cap__links span { font-size: 12.5px; color: #6b6b6b; }
.nma .nma-cap__links i { font-style: normal; justify-self: start; }

@media (max-width: 760px) {
  .nma .nma-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--nm-pad, 20px)); border-radius: 0; }
  .nma .nma-scroll::-webkit-scrollbar { display: none; }
  .nma .nma-inner { width: 1100px; }
  .nma .nma-inner--page { width: 1000px; }
}

/* the legend of zones under the valley, and the two lanes under the page road */
.nma .nma-legend { list-style: none; margin: 14px 2px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nma .nma-legend li { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--s-ink); }
.nma .nma-legend li::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--s-line); }
.nma .nma-cap--page { min-height: 0; }
.nma .nma-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.nma .nma-lanecol h4 { margin: 4px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b6b6b; }
.nma .nma-lanes .nma-cap__links { grid-template-columns: 1fr; margin: 0; }
.nma .nma-cap__links a.nma-lit { background: var(--s-pill, #f5f5f5); }
@media (max-width: 640px) { .nma .nma-lanes { grid-template-columns: 1fr; } }

/* the picture frame */
.nma .nma-scroll { box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .07); }
.nma .nma-svg { border-radius: inherit; }
/* keyboard focus on a place */
.nma .nma-svg a:focus { outline: none; }
.nma .nma-svg a:focus-visible .nma-hit { stroke: #fff; stroke-width: 3; stroke-dasharray: 8 8; }
/* the "you are here" beacon */
.nma .nma-beacon { pointer-events: none; }
.nma .nma-beacon__ring { fill: none; stroke: var(--glow, #8ddc5a); stroke-width: 3; opacity: .7; transform-origin: 0 0; transform-box: fill-box; animation: nma-breathe 3.2s ease-in-out infinite; }
.nma .nma-beacon__pin { animation: nma-bob 3.2s ease-in-out infinite; }
@keyframes nma-breathe { 0%, 100% { transform: scale(.85); opacity: .35; } 50% { transform: scale(1.1); opacity: .8; } }
@keyframes nma-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
/* the disclosure under each picture */
@media (prefers-reduced-motion: reduce) { .nma .nma-beacon__ring, .nma .nma-beacon__pin { animation: none; } }

/* the page scenes */
.nma .nma-inner--scene { position: relative; }
.nma .nma-lanes--scene { grid-template-columns: 1fr auto 1fr; }
.nma .nma-lanecol--peer { min-width: 200px; }
@media (max-width: 760px) { .nma .nma-inner--scene { width: 1100px; } .nma .nma-lanes--scene { grid-template-columns: 1fr; } }

/* the page's own thing lights up when the scene first comes into view */
.nma.nma-waiting .nma-place.nma-is-here .nma-art { filter: none; }
.nma.nma-waiting .nma-beacon { opacity: 0; }
.nma .nma-beacon { transition: opacity .8s ease .6s; }
.nma.nma-arrive .nma-place.nma-is-here .nma-art { animation: nma-glow-in 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes nma-glow-in {
  0% { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); }
  55% { filter: drop-shadow(0 0 18px var(--glow, #8ddc5a)) drop-shadow(0 0 70px var(--glow, #8ddc5a)); }
  100% { filter: drop-shadow(0 0 12px var(--glow, #8ddc5a)) drop-shadow(0 0 40px color-mix(in srgb, var(--glow, #8ddc5a) 60%, transparent)); }
}
