/* Documentary nodes use SFUMIA's native vector icons and light node chrome. */
.node-library-page{max-width:none}
.node-library-page .reading-layout{display:block;max-width:1280px}
.node-library-page .article-head{max-width:900px}
.node-library-page .node-reference-content>p{max-width:960px}
.node-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 28px;margin:28px 0 42px;align-items:start}
.node-tile{min-width:0;scroll-margin-top:110px}
.node-tile>summary{display:block;list-style:none;cursor:pointer;padding:10px;border-radius:12px}
.node-tile>summary::-webkit-details-marker{display:none}
.node-tile>summary:hover{background:var(--wash)}
.node-tile>summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.native-node{display:block;position:relative;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 4px 14px #22385914;color:var(--ink);text-align:start}
.native-node-head{display:flex;align-items:center;gap:8px;padding:11px 12px;border-bottom:1px solid var(--line);background:var(--subtle);border-radius:8px 8px 0 0;line-height:1.3;min-height:48px}
.native-node-head>svg{width:17px;height:17px;flex:none}
.native-node-head>bdi{font-size:.86rem;font-weight:650;flex:1;min-width:0;overflow-wrap:anywhere}
.node-grip{color:var(--muted);font-size:15px;letter-spacing:-3px;padding-inline-end:3px}
.native-node-body{display:flex;flex-direction:column;justify-content:center;padding:13px 15px;min-height:86px;font-size:.75rem}
.node-mini-row{display:flex;gap:12px;justify-content:space-between;line-height:1.45;padding:5px 0}
.node-mini-row>bdi:first-child{min-width:0;color:var(--muted)}
.node-mini-row>bdi:last-child{flex:none;max-width:52%;overflow-wrap:anywhere}
.node-file{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}
.node-file>svg{width:30px;height:30px}
.node-file>bdi{font-size:.83rem}
.node-socket{position:absolute;top:calc(50% - 5px);width:10px;height:10px;border:2px solid var(--node-color);border-radius:50%;background:var(--surface)}
.socket-in{left:-6px}.socket-out{right:-6px;background:var(--node-color)}
.node-card-purpose{display:block;font-size:.84rem;line-height:1.5;margin:14px 0 9px;color:var(--muted)}
.node-card-action{display:flex;gap:7px;align-items:center;color:var(--accent);font-size:.8rem;font-weight:600}
.node-card-action>svg{width:15px;height:15px}
.node-library-note{color:var(--muted);font-size:.82rem;margin:22px 0!important}
.node-tile[open]{grid-column:1/-1}
.node-tile[open]>summary{max-width:320px}
.node-sheet{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-top:12px}
.node-sheet>h2{margin-bottom:18px}
.node-sheet>p{margin:15px 0;line-height:1.7}
.node-sheet .article-details{margin:20px 0}
.node-sheet .tool-directory{margin-top:20px}
.node-sheet-dialog{width:min(850px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:24px}
.node-sheet-dialog .node-sheet{border:0;padding:0;margin:0}
.node-sheet-dialog .node-sheet>h2:first-child{display:none}
.node-sheet-dialog .dialog-top{position:sticky;top:-24px;background:var(--surface);padding:10px 0 18px;z-index:2;align-items:start}
.node-sheet-dialog .parameter-table{max-height:none}
.canvas-example{margin:30px 0 40px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:20px;overflow:hidden}
.visual-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.visual-heading h2{font-size:1.2rem;margin-top:5px}
.canvas-controls{display:flex;gap:6px;align-items:center}
.canvas-controls>button{min-width:36px;min-height:36px;border:1px solid var(--line);border-radius:6px;font-size:.82rem;padding:5px 9px;background:var(--surface)}
.canvas-controls>button:disabled{opacity:.5}
.canvas-controls output{font-size:.75rem;min-width:48px;text-align:center;color:var(--muted)}
.canvas-example>p{font-size:.84rem;line-height:1.55;margin:14px 0}
.demo-viewport{position:relative;height:380px;overflow:auto;background-color:var(--subtle);background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:18px 18px;border:1px solid var(--line);border-radius:8px;direction:ltr;overscroll-behavior:contain}
.demo-space{position:relative;min-width:100%;min-height:100%;overflow:hidden}
.demo-board{position:absolute;left:0;top:0;width:880px;height:420px;transform-origin:0 0}
.demo-wires{position:absolute;inset:0;width:880px;height:420px;pointer-events:none;overflow:visible}
.demo-wires path{fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round}
.demo-node{position:absolute;width:205px;display:block;padding:0;cursor:grab;touch-action:none;border-radius:8px}
.demo-node:active{cursor:grabbing}
.demo-node:focus-visible{outline-offset:6px}
.demo-node .native-node-head{padding:9px 10px;min-height:40px}
.demo-node .native-node-head>bdi{font-size:12px}
.demo-node .native-node-body{min-height:65px;padding:12px}
.demo-node .node-file>svg{width:24px;height:24px}
.canvas-footnote,.canvas-connections{color:var(--muted);font-size:.77rem!important}
.canvas-connections{border-top:1px solid var(--line);padding-top:12px;overflow-wrap:anywhere}
.product-view{margin:28px 0 38px}
.view-image{position:relative;display:block;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--subtle)}
.view-image img{display:block;width:100%;height:auto}
.view-image:focus-visible{outline:3px solid var(--focus)}
.view-marker{position:absolute;display:grid;place-items:center;width:27px;height:27px;background:#182b46;color:white;border:2px solid white;border-radius:50%;font:700 13px/1 Arial,sans-serif;box-shadow:0 1px 6px #0007;transform:translate(-50%,-50%)}
.product-view figcaption{margin-top:12px;font-size:.86rem;line-height:1.5}
.product-view figcaption>span{display:block;font-size:.76rem;color:var(--muted);margin-top:4px}
.view-areas{list-style:none;padding:0!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px!important}
.view-areas li{font-size:.8rem;display:flex;gap:9px;line-height:1.5}
.view-areas li>span{display:grid;place-items:center;flex:none;width:21px;height:21px;border-radius:50%;background:var(--wash);color:var(--ink);font-size:.74rem;font-weight:700}
@media(min-width:1550px){.node-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.node-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}}
@media(max-width:650px){.node-grid{gap:16px}.node-tile>summary{padding:6px}.native-node-head{padding:9px 8px;gap:5px}.native-node-head>bdi{font-size:.78rem}.native-node-head>svg{width:14px;height:14px}.native-node-body{padding:10px 8px}.node-mini-row{font-size:.68rem;gap:5px}.node-card-purpose{font-size:.78rem}.node-grip{display:none}.canvas-example{padding:14px}.demo-viewport{height:245px}.view-areas{grid-template-columns:1fr}.node-sheet-dialog{padding:18px}.node-sheet-dialog .dialog-top{top:-18px}.node-sheet-dialog .dialog-top h2{font-size:1.2rem}.node-library-page .article-head h1{font-size:1.85rem}}
@media(max-width:370px){.node-grid{grid-template-columns:1fr}}
@media print{
 .node-grid{display:block}.node-tile{break-inside:auto;margin-bottom:22px}.node-tile>summary{max-width:260px;break-inside:avoid}.node-tile>summary .node-card-purpose,.node-card-action{display:none}
 .node-tile:not(:has(.article-details)){break-inside:avoid;page-break-inside:avoid}
 .node-sheet{border:0;padding:0}.node-sheet>h2{display:none}.node-sheet-dialog{display:none!important}.node-tile[open]{display:block}
 .canvas-example{break-inside:avoid}.demo-viewport{height:300px}.canvas-controls{display:none}
 .native-node{box-shadow:none}.product-view{break-inside:avoid}.view-image{max-width:100%}.view-areas{grid-template-columns:repeat(3,minmax(0,1fr))}
}

