/* Explicit levels and one uniform world transform per item; no zoom-driven reflow. */
#map{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;overflow-anchor:none;scroll-behavior:auto;touch-action:none;user-select:none;cursor:grab;background:#f8faf7}
#map::-webkit-scrollbar{display:none}
#pan-surface{position:relative;overflow:hidden;min-width:100%;min-height:100%;background:#f8faf7 radial-gradient(circle at 0 0,#a8b7ca45 1px,transparent 1px);background-size:26px 26px}
#map.dragging{cursor:grabbing}
#map.navigating{cursor:progress}
#map:focus{outline:none}
#map:focus-visible{box-shadow:inset 0 0 0 2px #8ba7c4}
#labels{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2}
.atlas-node{position:absolute;pointer-events:auto;isolation:isolate;cursor:pointer}
.atlas-node.selected{outline:none}
.territory-surface{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;overflow:visible}
.territory-surface path{fill:var(--territory);fill-opacity:.32;stroke:var(--territory);stroke-opacity:.5;stroke-width:1}
.atlas-node[data-shape="1"] .territory-surface{transform:scaleX(-1)}
.atlas-node[data-shape="2"] .territory-surface{transform:scaleY(-1)}
.node-copy{position:absolute;inset:0;padding:30px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;overflow:hidden}
.node-title{font:23px/1.17 var(--serif);letter-spacing:-.35px;margin:0;text-align:left;white-space:normal;padding:0;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;flex-shrink:0}
.node-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.5;margin:14px 0 0;color:#35475a;flex-shrink:0}
.atlas-node[data-mode="compact"] .node-title,.atlas-node[data-mode="compact"] .node-description{padding-right:46px}
.overview-art{position:absolute;right:26px;top:50%;transform:translateY(-50%);width:48px;height:65px;object-fit:contain;pointer-events:none}
.perspective-art{position:absolute;right:24px;top:50%;transform:translateY(-50%);width:119px;height:158px;object-fit:contain;pointer-events:none}
.atlas-node[data-visual="person"] .node-title{font-size:28px;padding-right:113px}
.atlas-node[data-visual="person"] .node-description{font-size:14px;padding-right:115px}
.atlas-node[data-visual="person"] .territory-surface path{fill-opacity:.17;stroke:none}
/* Every item shares one soft surface and the same reading order. */
.atlas-node[data-visual="record"] .node-copy{padding:30px}
.record-heading{display:flex;align-items:flex-start;gap:13px;flex-shrink:0;min-width:0}
.record-heading>div{min-width:0}
.record-heading .node-title{font-size:20px;line-height:1.2;-webkit-line-clamp:5}
.company-logo{position:relative;display:inline-flex;width:64px;height:48px;align-items:center;justify-content:center;border:0;border-radius:0;background:transparent;flex-shrink:0;overflow:hidden;font:600 17px var(--sans);color:#687c91}
.company-logo img{position:absolute;inset:0;width:100%;height:100%;padding:2px;background:transparent;object-fit:contain}
.company-logo.logo-missing{background:#edf1f5}
.node-summary{flex:0 1 auto;display:flex;gap:12px;align-items:flex-start;min-height:0;min-width:0;overflow:hidden}
.node-summary .node-description{flex:1;min-width:0;margin-top:12px;font-size:13px;line-height:1.5;-webkit-line-clamp:6}
.record-media{width:86px;margin:10px 0 0;flex-shrink:0}
.record-media img{width:100%;height:66px;object-fit:contain;background:#f6f8fa;border-radius:5px}
.record-media figcaption{font-size:8px;line-height:1.3;color:var(--muted);margin-top:3px}
.record-media.media-large{width:100%;margin:20px 0}
.media-large img{height:200px}
.media-large figcaption{font-size:10px}
/* One perspective breadcrumb, followed by actual enclosing research groups. */
#map-breadcrumbs{display:flex;align-items:center;gap:10px;flex-shrink:0;min-height:44px;padding:5px 32px;overflow:auto;white-space:nowrap;font-size:11px;background:var(--paper)}
#map-breadcrumbs button{min-height:34px;padding:6px 0;color:#5d6b87;flex-shrink:0}
#map-breadcrumbs button[aria-current="location"]{color:var(--ink);font-weight:600}
#map-breadcrumbs button:hover{text-decoration:underline}
#map-breadcrumb-trail{display:flex;align-items:center;gap:10px}
#map-breadcrumb-trail>span{color:#bbc3d2}
.persona-change{display:flex;gap:8px;align-items:center;white-space:nowrap;text-align:left}
#ancestor-jump{font:11px var(--sans);max-width:145px;border:1px solid #dce3ee;background:white;border-radius:6px;padding:3px;color:var(--muted)}
/* Counts are announced without covering the lower row's actions. */
#level-range{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.map-bottom{position:absolute;right:0;bottom:0;justify-content:flex-end;background:transparent;pointer-events:none;z-index:3}
.map-bottom .map-controls{pointer-events:auto}
/* Shared record content inside the evidence inspector. */
#inspector .company-logo{width:78px;height:62px;margin:0 0 18px}
.graph-source{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}
.graph-source b{font-size:10px;font-weight:500;color:#57718e}
.graph-source p{margin:8px 0}
.graph-source small{font-size:10px;color:var(--muted)}
.graph-link{margin:16px 0;border-bottom:1px solid var(--line);padding-bottom:15px}
.graph-link .kicker{margin:0}
.graph-link .entry{border:0;padding:10px 0}
.graph-link details{font-size:11px;color:var(--muted)}
.relation-direction{font-size:11px;line-height:1.6;color:var(--muted)}
@media(min-width:701px) and (max-width:1000px){#map-breadcrumbs{padding-inline:24px}}
@media(max-width:700px){
 #map-breadcrumbs{padding:5px 18px;font-size:10px;gap:8px}
}

/* Overview content is deliberately lighter; local zoom never changes disclosure. */
.atlas-node[data-mode="compact"] .node-copy{padding:25px 30px}
.atlas-node[data-mode="compact"] .node-title{font-size:26px}
.atlas-node[data-mode="compact"] .node-description{font-size:13px;-webkit-line-clamp:2;margin-top:10px}
.atlas-node[data-visual="person"] .perspective-art{height:135px;width:110px}
.atlas-node[data-visual="person"] .node-description{font-size:14px;-webkit-line-clamp:3}

.atlas-node:hover .territory-surface path{fill-opacity:.48;stroke-opacity:.9}
.atlas-node:focus-visible{outline:none}
.atlas-node:focus-visible .territory-surface path,.atlas-node.selected .territory-surface path{stroke:#355f86;stroke-opacity:1;stroke-width:2}
/* A small, whole-item response confirms a click without competing with navigation. */
.atlas-node{transition:scale 170ms cubic-bezier(.2,.8,.2,1),translate 170ms cubic-bezier(.2,.8,.2,1),filter 170ms ease}
@media(hover:hover) and (pointer:fine){#map:not(.dragging):not(.navigating):not([data-gesture="pan"]) .atlas-node:hover{translate:0 -4px;scale:1.025;filter:drop-shadow(0 8px 9px #263f5025)}}
.atlas-node:focus-visible{translate:0 -4px;scale:1.025;filter:drop-shadow(0 8px 9px #263f5025)}
#map:not(.dragging) .atlas-node:active{translate:0 0;scale:.975;filter:drop-shadow(0 1px 2px #263f5020)}
@media(prefers-reduced-motion:reduce){.atlas-node{transition:none}#map .atlas-node:hover,#map .atlas-node:focus-visible,#map .atlas-node:active{translate:none;scale:1}}

.map-controls #overview{display:grid;place-items:center;min-width:40px;padding:6px 10px}
