/* nodemap.css — the node-map navigator's shared styling (nodemap.js), linked from both templates.
   Two hosts use it: the home hero's jacked-in #nodemap (its hero-relative layering stays in home.html)
   and the full-screen `nav` easter-egg overlay (navmap.js, any page). */

/* kill text selection (and show a grab cursor) while dragging the graph around */
body.nm-dragging, body.nm-dragging *{ user-select:none; -webkit-user-select:none; cursor:grabbing !important; }
.nm-node{position:absolute; transform:translate(-50%,-50%); pointer-events:auto; cursor:pointer;
  display:grid; place-items:center; border-radius:50%; text-decoration:none; transition:transform .12s ease-out;}
.nm-node .lbl{position:absolute; top:100%; left:50%; transform:translateX(-50%); margin-top:6px;
  font-family:var(--disp); font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color:#eafcff; white-space:nowrap; text-shadow:0 0 8px rgba(53,224,208,.5); transition:color .15s, text-shadow .15s;}
.nm-node .sub{display:block; font-family:var(--mono); font-weight:400; font-size:10px; letter-spacing:1px;
  text-transform:none; color:var(--dim); text-shadow:none; margin-top:2px; text-align:center;}
.nm-node:hover .lbl,.nm-node.hot .lbl{color:#fff; text-shadow:0 0 14px rgba(53,224,208,.85);}
/* hover scale is folded into nodemap.js's per-frame transform (via hotv) — no CSS transform here */
.nm-node.center .lbl{margin-top:8px;}  /* hub label hangs below the node like the satellites */

/* ---- the `nav` overlay: the map on its own dark field, full screen, under the CRT veil (z 9990 < 9998)
   so the scanlines ride over it like everything else ---- */
.nm-overlay{ position:fixed; inset:0; z-index:9990;
  background:radial-gradient(120% 90% at 50% 50%, color-mix(in srgb, var(--bg) 70%, #0c1a1c), var(--bg) 70%); }
.nm-overlay .nm-host .nm-gl{ position:fixed; inset:0; width:100%; height:100%; display:block; z-index:0; }
.nm-overlay .nm-host .nm-labels{ position:fixed; inset:0; z-index:6; pointer-events:none; }
.nm-overlay .nm-host.nm-warping .nm-gl{ z-index:80; }   /* the dive's white-out covers the whole overlay */
/* « back: drawn as one more node (glowing dot + uppercase label + mono sub) so it belongs to the map */
.nm-back{ position:fixed; top:22px; left:24px; z-index:20; display:flex; align-items:center; gap:12px;
  padding:6px 8px; background:none; border:0; cursor:pointer; color:inherit; font:inherit; }
.nm-back .dot{ width:14px; height:14px; border-radius:50%; flex:none;
  background:radial-gradient(circle, #eafcff 0 22%, var(--cyan) 46%, transparent 72%);
  box-shadow:0 0 12px color-mix(in srgb, var(--cyan) 80%, transparent); transition:box-shadow .15s, transform .15s; }
.nm-back .lbl{ font-family:var(--disp); font-weight:700; font-size:14px; letter-spacing:2px; text-transform:uppercase;
  color:#eafcff; text-shadow:0 0 8px rgba(53,224,208,.5); text-align:left; transition:color .15s, text-shadow .15s; }
.nm-back .sub{ display:block; font-family:var(--mono); font-weight:400; font-size:10px; letter-spacing:1px;
  text-transform:none; color:var(--dim); text-shadow:none; margin-top:1px; }
.nm-back:hover .lbl, .nm-back:focus-visible .lbl{ color:#fff; text-shadow:0 0 14px rgba(53,224,208,.85); }
.nm-back:hover .dot, .nm-back:focus-visible .dot{ transform:scale(1.25); box-shadow:0 0 20px var(--cyan); }
.nm-back:focus-visible{ outline:none; }
