:root{--ink:#17251f;--paper:#fdfdfb;--line:#cbd5cf;--green:#dcece5;--blue:#d0e3fc;--salmon:#f3ddd2;--violet:#e7e1ef;--header:78px;--filters:59px;--footer:47px}*{box-sizing:border-box}html,body{margin:0;height:100%;width:100%;overflow:hidden;font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--paper);color:var(--ink)}button,input{font:inherit}button,a{cursor:pointer}button:focus-visible,input:focus-visible,.map-node:focus-visible,.edge-label:focus-visible{outline:3px solid #b73230;outline-offset:2px}
#header{height:var(--header);display:flex;align-items:center;gap:16px;border-bottom:1px solid #c0cec6;background:#fff;padding:9px 21px;position:relative;z-index:20}.brand{display:flex;align-items:center;gap:9px;flex-shrink:0;border-right:1px solid #ccd8d0;padding-right:18px}.brand strong{font-weight:950;font-size:33px;letter-spacing:-.08em}.brand small{font-size:9px;letter-spacing:.08em;line-height:1.4;color:#657568;font-weight:800;max-width:92px}.head-title{flex:1;min-width:0}.head-title small{display:block;font-size:9px;font-weight:850;letter-spacing:.16em;color:#70847c}.head-title h1{font-weight:900;letter-spacing:-.035em;font-size:17px;line-height:1.07;margin:4px 0}.head-title p{font-size:10px;margin:0;color:#63746c;font-weight:650}.toolbar{display:flex;gap:6px;align-items:center}.toolbar button,.search,#filterbar button{min-height:37px;padding:0 11px;background:white;border:1px solid #b6c8bd;color:var(--ink);font-size:10px;font-weight:850;white-space:nowrap}.toolbar button:hover,.toolbar button.on,.toolbar button.dark-btn,#filterbar .filter-chip.enabled{background:#17251f;color:#fff}.search{display:flex;align-items:center;gap:7px;min-width:180px;width:215px}.search input{border:0;outline:0;min-width:0;width:100%;font-size:11px;background:transparent}#filterbar{position:relative;z-index:15;background:#fafbf9;display:flex;gap:7px;align-items:center;padding:8px 20px;height:var(--filters);border-bottom:1px solid #cbd5cf}.filter-caption{letter-spacing:.14em;font-size:10px;font-weight:900;color:#728177;margin-right:6px;white-space:nowrap}#filterchips{display:flex;gap:6px}#filterbar button.filter-chip{background:#fff;color:#333;border:1px solid #c0cec6}#filterbar button.filter-chip.enabled{background:#17251f;color:#fff}#filterchips small{margin-left:5px;color:inherit;opacity:.65}.filter-note{font-size:9px;font-weight:800;color:#728177;letter-spacing:.07em;margin-left:auto;white-space:nowrap}#filterbar button:hover{outline:1px solid #607c6d}
#viewport{position:absolute;top:calc(var(--header) + var(--filters));bottom:var(--footer);left:0;right:0;overflow:hidden;touch-action:none;background:#f8f9f7;cursor:grab;overscroll-behavior:contain}#viewport.grabbing{cursor:grabbing}#canvas{position:absolute;left:0;top:0;width:2850px;height:1970px;transform-origin:0 0;will-change:transform}.world-grid{pointer-events:none;position:absolute;inset:0;background-image:linear-gradient(#e3e8e480 1px,transparent 1px),linear-gradient(90deg,#e3e8e480 1px,transparent 1px);background-size:50px 50px}#mapintro{position:absolute;left:50px;top:50px;width:405px;min-height:205px;border:1px solid #c9d5cc;background:#ffffffee;box-shadow:0 8px 20px #354a4020;padding:23px;z-index:3;display:flex;flex-direction:column;gap:12px}#mapintro small{font-size:12px;letter-spacing:.13em;font-weight:800;color:#65786a}#mapintro b{font-size:29px;line-height:.98;font-weight:950;letter-spacing:-.035em}#mapintro span{font-size:14px;line-height:1.5;color:#43544b}#edgeSvg{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:visible}.edge{fill:none;stroke:#96aaa2;stroke-width:3;opacity:.85}.edge.analitica{stroke:#bd998c;stroke-dasharray:12 7}.edge.teorica{stroke:#9b8fb8;stroke-dasharray:10 8}.edge.focus,.edge.tour-active{stroke:#147769;stroke-width:5;stroke-dasharray:none;opacity:1}.edge.dim{opacity:.1}#edgeLabels{position:absolute;inset:0;z-index:4;pointer-events:none}.edge-label{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;background:#fffffff5;border:1px solid #d4ddd7;border-left:3px solid #77988c;border-radius:2px;color:#324a42;padding:7px 9px;line-height:1;font-size:13px;font-weight:850;white-space:nowrap;box-shadow:0 3px 5px #0000000e;cursor:pointer}.edge-label.analitica{border-left-color:#cc9d89}.edge-label.teorica{border-left-color:#a99cc7}.edge-label.dim{opacity:.18}.edge-label.hidden{display:none}.edge-label.focus{border-color:#167468;color:#075548;z-index:5}
#nodesLayer{position:absolute;inset:0;z-index:3;pointer-events:none}.map-node{position:absolute;display:flex;flex-direction:column;pointer-events:auto;overflow:hidden;border:2px solid #abc1b6;border-radius:4px;background:#fff;box-shadow:0 7px 15px #48655519;touch-action:none;cursor:grab;text-align:left;padding:0;color:#192820;user-select:none;-webkit-user-select:none}.map-node:active{cursor:grabbing}.map-node.evidence{background:#e7f2ff;border-color:#a9c9ec}.map-node.operation{background:#e2f1e9;border-color:#b1d2c3}.map-node.concept,.map-node.hub{background:#f5e8df;border-color:#dfbba7}.map-node.theory{background:#f0ecf5;border-color:#d7cbe8}.map-node.selected,.map-node.tour-active{outline:4px solid #1a7865;outline-offset:3px;z-index:6}.map-node.dim{opacity:.2}.map-node .node-inner{padding:19px 21px;display:flex;flex-direction:column;gap:9px;flex:1}.map-node .node-kind{font-size:12px;font-weight:900;letter-spacing:.06em;color:#789086}.map-node h3{font-size:22px;line-height:1.05;font-weight:950;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}.map-node .node-sub{font-size:13px;color:#64766c}.map-node .node-tags{font-size:11px;color:#6b8b7c;margin-top:auto;font-weight:700}.map-node.evidence .node-inner{flex-direction:row;gap:15px;padding:12px}.map-node.evidence img{width:127px;height:126px;object-fit:cover;flex-shrink:0;border:1px solid #bed3e3}.map-node .node-content{min-width:0;display:flex;flex-direction:column;gap:7px;flex:1}.map-node.evidence h3{font-size:21px}.map-node.theory h3{font-size:23px}/* Semantic zoom: content changes with scale (not just size).
   Overview: category, title, connective structure. Reading: image, subtitle, primary links.
   Detail: keywords and every relation label. Focused links remain visible at any scale. */
#canvas.lod-overview .map-node .node-sub,
#canvas.lod-overview .map-node .node-tags,
#canvas.lod-reading .map-node .node-tags{display:none}
#canvas.lod-overview .map-node.evidence img{display:none}
#canvas.lod-overview .map-node .node-inner{justify-content:center;padding:11px 16px;gap:6px}
#canvas.lod-overview .map-node.evidence .node-inner{padding:16px 21px}
#canvas.lod-overview .map-node h3{font-size:24px;line-height:1.05}
#canvas.lod-overview .map-node.evidence h3{font-size:27px}
#canvas.lod-overview .map-node.operation .node-inner{padding:8px 12px;gap:4px}
#canvas.lod-overview .map-node.operation h3{font-size:23px}
#canvas.lod-overview .map-node.theory h3{font-size:24px}
#canvas.lod-overview .map-node .node-kind{font-size:11px;line-height:1.1}
#canvas.lod-overview .edge:not(.focus):not(.tour-active){opacity:.46;stroke-width:2.4}
#canvas.lod-overview .edge.analitica:not(.focus):not(.tour-active),
#canvas.lod-overview .edge.teorica:not(.focus):not(.tour-active){opacity:.25}
#canvas.lod-reading .map-node .node-inner{gap:7px}
#canvas.lod-detail .map-node .node-tags{display:block}
#canvas.lod-detail .map-node.selected .node-tags{color:#1a6252;font-weight:850}

#zoomControls{position:absolute;right:19px;bottom:20px;display:grid;gap:4px;z-index:6}#zoomControls button{width:48px;height:48px;border:1px solid #b8ccc1;background:white;color:#13251b;font-size:26px;font-weight:500;line-height:1}#zoomControls button:hover{background:#e6f0e8}#hint{position:absolute;bottom:20px;left:21px;z-index:5;background:#fffe;border:1px solid #d3ded5;padding:12px;font-size:10px;letter-spacing:.07em;color:#6a7a6f;pointer-events:none}#viewstatus{position:absolute;bottom:20px;right:82px;z-index:5;padding:11px;border:1px solid #b8cbbd;background:#fffe;font-size:10px;font-weight:800;color:#416252;pointer-events:none}footer{height:var(--footer);position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #bdcabe;background:#fff;padding:0 20px;font-size:10px;font-weight:850;letter-spacing:.06em}footer button{border:0;background:none;font-size:10px;font-weight:800;color:#263b2e}
#inspector{position:absolute;right:0;top:0;bottom:0;width:min(440px,100%);z-index:12;background:#fff;border-left:1px solid #c8d4cb;box-shadow:-10px 0 26px #102a212b;display:flex;flex-direction:column;transform:translateX(102%);transition:transform .18s}#inspector.open{transform:translateX(0)}.inspect-head{display:flex;justify-content:space-between;gap:10px;padding:19px;border-bottom:1px solid #dae3da}.inspect-head small{color:#678276;font-size:10px;font-weight:800;letter-spacing:.14em}.inspect-head h2{font-size:27px;letter-spacing:-.04em;line-height:1.04;margin:7px 0 0}.inspect-head button,.bottom-head button{width:38px;height:38px;border:1px solid #ccd8ce;background:white;font-size:27px}.inspect-body{flex:1;padding:19px;overflow:auto;overscroll-behavior:contain}.inspect-body p{font-size:14px;line-height:1.65;color:#395149}.inspect-body h3,.modal-body h3{font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin:25px 0 9px;color:#607f6b}.inspect-body img{max-width:100%;width:100%;max-height:290px;object-fit:contain;border:1px solid #ddd;background:#f4f5f3}.inspect-body a,.modal-body a{color:#19543f;text-decoration:underline;overflow-wrap:anywhere}.inspect-body small{color:#637b6e;font-size:11px;line-height:1.5}.inspect-body .tag{display:inline-block;border:1px solid #d0dfd3;background:#e7f0e9;padding:6px 9px;font-size:11px;margin:0 5px 6px 0}.inspect-body .relation{display:block;text-align:left;width:100%;border:1px solid #dce6df;background:#f7faf7;padding:11px;margin:6px 0;font-size:12px;color:#274c3a}.inspect-body .relation span{display:block;font-size:11px;color:#678074;padding-top:4px}.inspect-body textarea{width:100%;min-height:100px;border:1px solid #bacdc0;padding:10px;resize:vertical;font-size:13px}.inspect-body .status{font-size:10px;letter-spacing:.1em;font-weight:750;color:#5a7b67}
.bottom-panel,.tour-panel,.download-panel,.modal-panel{position:absolute;z-index:15;background:#fff;border:1px solid #b9c9bc;box-shadow:0 12px 28px #173d292c;display:none}.bottom-panel.open{display:flex}.tour-panel.open,.download-panel.open,.modal-panel.open{display:block}.bottom-panel{left:14px;top:14px;width:min(380px,calc(100% - 28px));max-height:calc(100% - 28px);flex-direction:column}.bottom-head{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 15px;border-bottom:1px solid #e2e8e2}.bottom-head strong{font-size:12px;letter-spacing:.08em}.nodes-list{overflow:auto;padding:9px;display:grid;gap:5px;overscroll-behavior:contain}.nodes-list button{min-height:46px;background:#f7faf8;border:1px solid #d4ded6;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;padding:9px;font-size:12px;font-weight:850}.nodes-list small{font-size:9px;color:#56735e}.tour-panel,.download-panel,.modal-panel{right:16px;top:16px;width:min(365px,calc(100% - 32px))}.tour-panel>p,.download-panel>p{font-size:13px;line-height:1.6;padding:0 15px}.tour-actions{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:12px}.tour-actions button{border:1px solid #cad6cd;background:#fff;padding:10px;font-size:10px;font-weight:900}.tour-actions button:disabled{opacity:.35}.tour-actions span{font-size:11px;color:#728578}.download-actions{display:flex;gap:8px;padding:15px}.download-actions a{flex:1;text-align:center;padding:12px;background:#17251f;color:white;text-decoration:none;font-size:12px;font-weight:850}.download-panel>small{font-size:11px;color:#6a8072;display:block;margin:0 15px 17px}.modal-panel{width:min(430px,calc(100% - 32px))}.modal-body{padding:10px 19px 25px;max-height:65vh;overflow:auto}.modal-body p{font-size:13px;line-height:1.65;color:#3c5346}
@media(max-width:1300px){:root{--header:122px}#header{display:grid;grid-template-columns:auto 1fr;grid-template-rows:40px 44px;gap:6px 12px;align-content:center}.brand{grid-column:1}.head-title{grid-column:2}.toolbar{grid-row:2;grid-column:1/-1;overflow-x:auto;scrollbar-width:none;max-width:100%;padding:3px 0}.toolbar>*{flex-shrink:0}#filterbar{overflow-x:auto;scrollbar-width:none}.filter-note{display:none}}
@media(max-width:700px){:root{--header:154px;--filters:51px;--footer:39px}#header{grid-template-columns:1fr;grid-template-rows:34px 47px 45px;padding:5px 10px;gap:4px}.brand{border-right:0}.brand strong{font-size:25px}.brand small{font-size:8px}.head-title{grid-row:2;grid-column:1}.head-title small{font-size:8px}.head-title h1{font-size:14px;margin:2px 0}.head-title p{font-size:9px}.toolbar{grid-row:3;grid-column:1}.toolbar button,.search{height:38px;font-size:10px}.search{width:135px;min-width:135px}#filterbar{padding:5px 10px}.filter-caption{display:none}#filterchips{gap:4px}#filterbar .filter-chip{padding:0 7px;font-size:9px;height:36px}#filterbar .filter-chip small{display:none}#verifiedBtn,#helpButton{flex-shrink:0}footer{padding:0 8px;font-size:8px}footer span:last-child{display:none}#hint{display:none}#viewstatus{bottom:11px;left:8px;right:auto;font-size:8px}#zoomControls{right:8px;bottom:8px}#zoomControls button{width:43px;height:43px}#inspector{width:100%;border:0}.inspect-head{padding:13px}.inspect-body{padding:15px}.bottom-panel{top:auto;bottom:0;left:0;width:100%;max-height:73%}.tour-panel,.download-panel,.modal-panel{top:8px;right:8px;width:calc(100% - 16px)}.map-node h3{font-size:21px}}

#mobileListButton{display:none;position:absolute;left:12px;bottom:17px;z-index:8;min-height:46px;background:#17251f;color:#fff;border:1px solid #17251f;padding:0 14px;font-size:11px;letter-spacing:.07em;font-weight:850;box-shadow:0 6px 20px #17251f30}#mobileListButton span{font-size:17px;margin-left:8px}
@media(max-width:700px){#mobileListButton{display:block;bottom:14px;left:10px}#viewstatus{left:10px;bottom:70px}footer{gap:5px}footer span:first-child{display:none}footer #status{white-space:nowrap}}
/* Hidden inspector must not cast a shadow or cover the mobile map. */
#inspector:not(.open){visibility:hidden;pointer-events:none;box-shadow:none}
#inspector.open{visibility:visible;pointer-events:auto}

#exitPresentation{display:none;position:fixed;right:18px;top:15px;z-index:30;padding:13px 16px;background:#17251f;color:#fff;border:1px solid #fff;font-weight:800;font-size:11px;letter-spacing:.07em;opacity:.85}body.presentation #header,body.presentation #filterbar,body.presentation footer{display:none}body.presentation #viewport{top:0;bottom:0}body.presentation #exitPresentation{display:block}body.presentation #exitPresentation:hover{opacity:1}
@media(min-width:701px){#listButton{display:none}}


/* Reversible, in-session repositioning: only visible after a node is selected. */
.toolbar button:disabled{opacity:.40;cursor:not-allowed}
.toolbar button:disabled:hover{background:#fff;color:var(--ink)}
.inspect-actions{padding:11px 19px;border-bottom:1px solid #dae3da;background:#f7faf7}
.inspect-actions:has(> button[hidden]){display:none}
.inspect-actions button{width:100%;min-height:43px;border:1px solid #9eb8a8;background:#e3f0e8;color:#214638;font-size:11px;font-weight:900;letter-spacing:.06em;text-align:center}
.inspect-actions button:not(:disabled):hover{background:#cce4d5}
.inspect-actions button:disabled{opacity:.45;cursor:not-allowed}
.inspect-actions button[hidden]{display:none}
@media(max-width:700px){.inspect-actions{padding:10px 13px}.inspect-actions button{min-height:46px}}

/* MALLA: preserve the introduction as a readable, unobstructed map landmark. */
#mapintro{z-index:9;isolation:isolate;box-shadow:0 8px 24px #354a4030;min-height:0;gap:10px}
#mapintro b{font-size:clamp(22px,2vw,29px);line-height:1.04;overflow-wrap:normal}
#mapintro span{overflow-wrap:break-word}
#nodesLayer{z-index:3}
#edgeLabels{z-index:4}
