.knowledge-hero{padding-bottom:38px}.graph-invite{margin:0 0 32px;border:1px solid #315578;background:linear-gradient(110deg,#112c48,#0d1728);padding:25px 30px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:24px}.graph-invite h2{font-size:clamp(22px,3vw,30px);margin:8px 0}.graph-invite p{color:#b2c7d9;margin:0;font-size:14px}.graph-link,.kg-reset{display:inline-block;border:1px solid #5e9bce;background:#133553;color:#dbf0ff;border-radius:7px;padding:12px 16px;text-decoration:none;white-space:nowrap;font:600 12px system-ui;letter-spacing:.4px}.graph-link:hover,.kg-reset:hover{background:#1d527d}.kg-shell{border:1px solid #27415a;border-radius:13px;overflow:hidden;background:#0a1422;margin-bottom:80px}.kg-controls{padding:17px;display:flex;align-items:end;gap:12px;border-bottom:1px solid #21354b;flex-wrap:wrap}.kg-controls label{font:600 11px system-ui;color:#9cb8d1;display:grid;gap:7px;flex:1;min-width:140px}.kg-controls input,.kg-controls select{background:#101f31;color:#eaf4ff;border:1px solid #34516a;border-radius:6px;padding:11px;min-width:0;width:100%;font:13px system-ui}.kg-reset{height:40px;cursor:pointer}.kg-content{display:grid;grid-template-columns:minmax(0,1fr) 270px;min-height:570px}.kg-canvas-wrap{position:relative;min-height:550px;overflow:hidden;background:radial-gradient(ellipse at 45% 45%,#142a43 0%,#0a1422 72%)}#kg-graph{display:block;width:100%;height:100%;min-height:550px;touch-action:none;cursor:grab}#kg-graph:active{cursor:grabbing}.kg-hint{position:absolute;bottom:16px;left:19px;pointer-events:none;font:10px ui-monospace,monospace;color:#7792ad;letter-spacing:1px}.kg-details{padding:25px 21px;border-left:1px solid #29435b;background:#0d1b2c;overflow-wrap:anywhere}.kg-details h2{font-size:22px;line-height:1.2;color:#f0f7ff;margin:16px 0}.kg-details p{color:#b7c7d8;line-height:1.65;font-size:13px}.kg-details .kg-detail-meta{font-size:11px;color:#8ca7bd;text-transform:uppercase;letter-spacing:.8px}.kg-details a{color:#8ed2ff;text-decoration:underline;text-underline-offset:4px}.kg-details .kg-rel{padding:8px 0;border-bottom:1px solid #284259;font-size:12px}.kg-legend{display:flex;flex-wrap:wrap;gap:12px 19px;padding:18px;border-top:1px solid #21354b}.kg-legend span{font:11px system-ui;color:#b5ccdf}.kg-legend i{width:10px;height:10px;display:inline-block;border-radius:50%;margin-right:6px}.kg-caveat{font-size:12px;line-height:1.7;color:#9eb5c9;border-top:1px solid #21354b;padding:16px 20px;margin:0}.kg-edge{stroke:#48657e;stroke-opacity:.24;stroke-width:1}.kg-edge.related{stroke:#72bded;stroke-opacity:.44;stroke-dasharray:5 6;stroke-width:1.7}.kg-edge.selected{stroke:#d9edff;stroke-opacity:.8;stroke-width:2}.kg-node{cursor:pointer}.kg-node circle{stroke:#c0dcf7;stroke-opacity:.25;stroke-width:1.2}.kg-node.selected circle{stroke:white;stroke-width:2.5}.kg-node text{fill:#d4e6f8;font:10px system-ui;pointer-events:none;paint-order:stroke;stroke:#071322;stroke-width:3px;stroke-linejoin:round}.kg-node.faded{opacity:.12}.kg-edge.faded{opacity:.06}.kg-node:focus-visible circle{stroke:white;stroke-width:4}.kg-node.hidden,.kg-edge.hidden{display:none}@media(max-width:800px){.kg-content{grid-template-columns:1fr}.kg-canvas-wrap{min-height:440px}#kg-graph{min-height:440px}.kg-details{border-left:0;border-top:1px solid #29435b}.graph-invite{align-items:flex-start;flex-direction:column}}

/* Stable connected map: no continuous force animation or clipping */
#kg-graph{user-select:none}
.kg-node circle{transition:stroke .16s,stroke-width .16s}
.kg-edge{stroke-opacity:.32}
.kg-edge.related{stroke-opacity:.56}

/* Mathematical statements, typeset in the selected-node inspector */
.kg-details .kg-math-description{color:#d5e3f0;line-height:1.85;font-size:14px;margin:16px 0 22px;overflow-wrap:break-word;}
.kg-math-description mjx-container[display="true"]{overflow-x:auto;overflow-y:hidden;max-width:100%;padding:8px 0;}
.kg-details{min-width:0;}
.kg-details .kg-rel{overflow-wrap:anywhere;}
/* Prominent primary action: open mathematical graph */
.graph-invite{position:relative;padding:34px 38px;min-height:205px;overflow:hidden;border:1px solid #4b9cda;background:radial-gradient(ellipse at 85% 35%,rgba(46,144,215,.30),transparent 55%),linear-gradient(115deg,#143956,#0a1b2e 75%);box-shadow:0 12px 42px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.08);}
.graph-invite::before{content:'◌';font:220px Georgia,serif;position:absolute;right:17%;top:-88px;color:rgba(112,184,250,.08);pointer-events:none;}
.graph-invite .tag{color:#88d4ff;font-weight:750;letter-spacing:1.5px;}
.graph-invite h2{font-size:clamp(28px,3.4vw,39px);letter-spacing:-.9px;margin:10px 0 12px;color:#f0faff;}
.graph-invite p{max-width:500px;font-size:15px;line-height:1.6;color:#b7d2e8;}
.graph-invite > div{position:relative;z-index:1;}
.graph-link{position:relative;z-index:1;background:#91d1ff;color:#061625;border:1px solid #b3e0ff;font-size:13px;font-weight:800;letter-spacing:.6px;padding:18px 23px;border-radius:9px;box-shadow:0 6px 25px rgba(40,158,249,.23);transition:transform .2s,background .2s,box-shadow .2s;}
.graph-link:hover{transform:translateY(-2px);background:#c2e9ff;color:#061625;box-shadow:0 10px 32px rgba(40,158,249,.38);text-decoration:none;}
.graph-link:focus-visible{outline:3px solid white;outline-offset:4px;}
@media(max-width:800px){.graph-invite{padding:27px 24px;min-height:0}.graph-link{width:100%;text-align:center;}}

.kg-math-description{font-size:15px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-line;color:#e7f1fb;margin:16px 0}
.kg-math-description mjx-container[display="true"]{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:8px 0}
.kg-math-status{font-size:10px;letter-spacing:.06em;color:#88bad6;margin:8px 0 14px;text-transform:uppercase}
