/* Original visualization, isolated from the shared navigation and page styles. */
.atlas-map{--ink:#050e18;--ink-2:#07131f;--panel:#0c1e2c;--panel-2:#142b3e;--line:#294456;--line-soft:#1d3446;--text:#e9f2f7;--muted:#aec3d1;--faint:#8a9eaf;--accent:#b49bfa;--accent-soft:#b49bfa14;--c-rec:#A98BE8;--c-vec:#5BB8D7;--c-tec:#E2A23B;--c-out:#E06A6A;--c-def:#6FBF8F;--new:#E06A6A;--display:Manrope,Arial,sans-serif;--body:Manrope,Arial,sans-serif;--mono:Plex,monospace;color:var(--text);font-family:var(--body);line-height:1.6;min-width:0}
.atlas-map button,.atlas-map input{font-weight:600}.atlas-map button:focus-visible,.atlas-map input:focus-visible,.atlas-map .node:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.atlas-meta{display:flex;flex-wrap:wrap;gap:12px 26px;font:11px Plex,monospace;text-transform:uppercase;letter-spacing:.06em;color:#a9c4cf;margin:0 0 22px}.atlas-map .legend{margin-bottom:22px}.atlas-map .explorer{margin-bottom:28px}.atlas-map .stage{height:640px}.atlas-map .explorer.fs-fallback{z-index:1000}.taxonomy-readable{border-top:1px solid #91d6e333;padding-top:22px}.taxonomy-readable>summary{cursor:pointer;font-weight:700;color:#dcebf2;margin-bottom:22px}.taxonomy-readable>summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px}

.atlas-map .legend{display:flex;flex-wrap:wrap;gap:8px}
.atlas-map .legend button{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  background:var(--panel);border:1px solid var(--line);color:var(--text);
  font-family:var(--mono);font-size:12.5px;padding:8px 14px;border-radius:999px;
}
.atlas-map .legend button:hover{border-color:var(--accent)}
.atlas-map .legend .dot{width:9px;height:9px;border-radius:50%;flex:none}/* ---------- explorer ---------- */
.atlas-map .explorer{border:1px solid var(--line);border-radius:10px;background:var(--ink-2);overflow:hidden;margin-block:12px 64px}
.atlas-map .toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line-soft);background:var(--panel)}
.atlas-map .searchbox{position:relative;flex:1 1 220px;max-width:340px}
.atlas-map .searchbox input{
  width:100%;background:var(--ink);border:1px solid var(--line);border-radius:6px;
  color:var(--text);font-family:var(--body);font-size:14px;padding:9px 12px 9px 34px;
}
.atlas-map .searchbox input::placeholder{color:var(--faint)}
.atlas-map .searchbox svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:15px;height:15px;stroke:var(--faint);fill:none;stroke-width:2;pointer-events:none}
.atlas-map .results{position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;max-height:280px;overflow-y:auto;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.atlas-map .results button{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line-soft);color:var(--text);font-family:var(--body);font-size:13.5px;padding:9px 12px;cursor:pointer}
.atlas-map .results button:last-child{border-bottom:0}
.atlas-map .results button:hover{background:var(--accent-soft)}
.atlas-map .results .path{display:block;font-family:var(--mono);font-size:10.5px;color:var(--faint);margin-top:1px}
.atlas-map .results[hidden]{display:none}
.atlas-map .tb-btn{
  background:none;border:1px solid var(--line);border-radius:6px;color:var(--muted);
  font-family:var(--mono);font-size:12px;padding:8px 12px;cursor:pointer;white-space:nowrap;
}
.atlas-map .tb-btn:hover{color:var(--text);border-color:var(--accent)}
.atlas-map .tb-hint{margin-left:auto;font-family:var(--mono);font-size:11.5px;color:var(--faint)}
.atlas-map .stage{position:relative;display:flex;min-height:540px}
.atlas-map #atlas-tree{flex:1;min-width:0;touch-action:none;cursor:grab;display:block}
.atlas-map #atlas-tree:active{cursor:grabbing}
.atlas-map #atlas-tree .link{fill:none;stroke:var(--line);stroke-width:1.3px}
.atlas-map #atlas-tree .node{cursor:pointer}
.atlas-map #atlas-tree .node circle{stroke-width:1.6px}
.atlas-map #atlas-tree .node text{font-family:var(--body);font-size:13px;fill:var(--text);paint-order:stroke;stroke:var(--ink-2);stroke-width:3px;stroke-linejoin:round}
.atlas-map #atlas-tree .node .count{font-family:var(--mono);font-size:10px;fill:var(--faint);stroke:none}
.atlas-map #atlas-tree .node.sel text{fill:var(--accent);font-weight:600}
.atlas-map #atlas-tree .newflag{font-family:var(--mono);font-size:9px;letter-spacing:.05em;fill:var(--new);stroke:none}/* ---------- fullscreen ---------- */
.atlas-map .explorer:fullscreen{display:flex;flex-direction:column;margin:0;border:0;border-radius:0;background:var(--ink-2)}
.atlas-map .explorer:fullscreen .stage{flex:1;min-height:0}
.atlas-map .explorer:fullscreen .detail{max-height:none}
.atlas-map .explorer.fs-fallback{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;margin:0;border:0;border-radius:0}
.atlas-map .explorer.fs-fallback .stage{flex:1;min-height:0}
.atlas-map .explorer.fs-fallback .detail{max-height:none}
body.atlas-fs-lock{overflow:hidden}/* ---------- detail panel ---------- */
.atlas-map .detail{
  width:340px;flex:none;border-left:1px solid var(--line-soft);background:var(--panel);
  padding:22px;overflow-y:auto;max-height:640px;
}
.atlas-map .detail .domain-chip{display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.atlas-map .detail .domain-chip .dot{width:8px;height:8px;border-radius:50%}
.atlas-map .detail h3{font-family:var(--display);font-weight:700;font-size:21px;line-height:1.2;margin:0 0 4px;text-wrap:balance}
.atlas-map .badge-new{display:inline-block;font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;color:var(--new);border:1px solid var(--new);border-radius:4px;padding:1px 7px;margin:6px 0 0}
.atlas-map .detail .kindtag{margin-left:auto;font-family:var(--mono);font-size:10px;letter-spacing:.06em;color:var(--faint);border:1px solid var(--line);border-radius:4px;padding:1px 6px}
.atlas-map .detail .domain-chip{width:100%}
.atlas-map .detail .crumbpath{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-family:var(--mono);font-size:11px;color:var(--faint);margin-bottom:8px}
.atlas-map .detail .crumbpath i{font-style:normal;color:var(--line);margin:0 1px}
.atlas-map .detail .desc{color:var(--muted);font-size:14px;margin:16px 0 0}
.atlas-map .detail .desc .exlbl,.atlas-map .detail .kidlist .exlbl{display:block;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-bottom:6px}
.atlas-map .detail .atlas{margin:16px 0 0;border:1px solid var(--line);border-radius:8px;padding:11px 12px;background:var(--ink-2)}
.atlas-map .detail .atlas .exlbl{display:block;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-bottom:7px}
.atlas-map .detail .atlink{display:inline-block;font-size:13.5px;color:var(--text);text-decoration:none;line-height:1.4}
.atlas-map .detail .atlink:hover{color:var(--accent)}
.atlas-map .detail .aid{font-family:var(--mono);font-size:12px;color:var(--accent);margin-right:5px}
.atlas-map .detail .ameta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.atlas-map .detail .aexact,.atlas-map .detail .aext,.atlas-map .detail .atac{font-family:var(--mono);font-size:10.5px;letter-spacing:.04em;padding:2px 7px;border-radius:4px;border:1px solid var(--line)}
.atlas-map .detail .aexact{color:var(--c-def);border-color:rgba(111,191,143,.4)}
.atlas-map .detail .aext{color:var(--muted)}
.atlas-map .detail .atac{color:var(--c-vec);border-color:rgba(91,184,215,.4)}
.atlas-map .detail .atacwrap{display:flex;flex-wrap:wrap;gap:6px}
.atlas-map .detail .atactic{font-family:var(--mono);font-size:11.5px;color:var(--c-vec);text-decoration:none;border:1px solid rgba(91,184,215,.4);border-radius:4px;padding:3px 8px}
.atlas-map .detail .atactic:hover{background:rgba(91,184,215,.12);color:var(--text)}
.atlas-map .detail .atlas.mit .anote{color:var(--faint);font-size:12px;margin:7px 0 0}
.atlas-map .detail .anodirect{font-size:13px;color:var(--muted)}
.atlas-map .detail .kidlist{margin:18px 0 0}
.atlas-map .detail .kidlist .kidlead{font-size:12.5px;color:var(--faint);margin:0 0 10px}
.atlas-map .detail .kidbtn{display:flex;align-items:center;gap:9px;width:100%;text-align:left;background:var(--ink-2);border:1px solid var(--line-soft);border-radius:7px;color:var(--text);font-family:var(--body);font-size:13.5px;padding:9px 11px;margin-bottom:6px;cursor:pointer;transition:border-color .12s,background .12s}
.atlas-map .detail .kidbtn:hover{border-color:var(--accent);background:var(--panel-2)}
.atlas-map .detail .kidbtn .kdot{width:7px;height:7px;border-radius:50%;flex:none}
.atlas-map .detail .kidbtn .kname{flex:1;min-width:0}
.atlas-map .detail .kidbtn .karrow{color:var(--faint);font-size:13px;flex:none}
.atlas-map .detail .kidbtn:hover .karrow{color:var(--accent)}
.atlas-map .detail .kidbtn .mini-new{font-family:var(--mono);font-size:9px;letter-spacing:.05em;color:var(--new);border:1px solid var(--new);border-radius:3px;padding:0 4px;flex:none}
.atlas-map .detail .ex{border-left:2px solid var(--accent);background:var(--accent-soft);border-radius:0 6px 6px 0;padding:10px 12px;font-size:13.5px;color:var(--text);margin:16px 0 0}
.atlas-map .detail .ex .exlbl{display:block;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:4px}
.atlas-map .detail .srcs{margin:16px 0 0}
.atlas-map .detail .srcs .exlbl{display:block;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-bottom:6px}
.atlas-map .detail .srcs a{display:block;font-size:13px;color:var(--c-vec);text-decoration:none;padding:3px 0}
.atlas-map .detail .srcs a:hover{text-decoration:underline}
.atlas-map .detail .hintline{font-size:13px;color:var(--faint);margin-top:18px}
.atlas-map .detail-close{display:none;position:absolute;top:10px;right:12px;background:none;border:0;color:var(--muted);font-size:22px;line-height:1;cursor:pointer;padding:6px}

/* ---------- responsive ---------- */
@media(max-width:900px){
.atlas-map .stage{min-height:480px}
.atlas-map .detail{
    position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;z-index:50;
    max-height:62vh;border-left:0;border-top:1px solid var(--line);
    border-radius:14px 14px 0 0;box-shadow:0 -18px 48px rgba(0,0,0,.55);
    transform:translateY(105%);transition:transform .25s ease;
  }
.atlas-map .detail.open{transform:translateY(0)}
.atlas-map .detail-close{display:block}
.atlas-map .tb-hint{display:none}
}

.atlas-map .explorer{margin-bottom:28px}.atlas-map .explorer.fs-fallback{z-index:1000}.atlas-map .explorer:fullscreen .stage,.atlas-map .explorer.fs-fallback .stage{height:auto}.atlas-map .detail .desc,.atlas-map .detail .ex,.atlas-map .detail .hintline{line-height:1.75}.atlas-map .node text{font-weight:600}.atlas-map .results button:focus-visible{outline-offset:-3px}.atlas-map .detail-close{z-index:2}.atlas-map .detail h3{padding-right:14px}@media(max-width:900px){.atlas-map .stage{height:540px}.atlas-map .detail{z-index:1001}.atlas-map .searchbox{flex-basis:100%;max-width:none}.atlas-map .legend button{font-size:11px;padding:7px 10px}.atlas-map .toolbar{gap:8px}.atlas-map .tb-btn{padding:8px 10px}}@media(prefers-reduced-motion:reduce){.atlas-map *{scroll-behavior:auto!important;transition:none!important}}
