/* Editorial discovery: linked fields, not indiscriminate recommendations. */
.thematic-entry.spread { display:block; padding-block:clamp(2.5rem,5vw,5.5rem); }
.thematic-entry > aside { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.35rem 1.5rem; align-items:end; margin-bottom:1.8rem; }
.thematic-entry > aside .rubric { grid-column:1/-1; }
.thematic-entry > aside h2 { margin:0; font-size:clamp(2.2rem,4.4vw,4.3rem); }
.thematic-entry .theme-actions { display:flex; flex-wrap:wrap; gap:.8rem 1.3rem; justify-content:flex-end; }
.thematic-entry .theme-actions a { white-space:nowrap; font-family:var(--sans); font-size:.88rem; }
.thematic-entry .thematic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:transparent; border:0; gap:1rem; }
.thematic-entry .theme-entry { display:grid; grid-template-columns:1fr auto; align-content:start; gap:.6rem; position:relative; min-width:0; min-height:0; padding:0 0 1rem; background:transparent; border-bottom:1px solid var(--line); text-decoration:none; }
.thematic-entry .theme-entry:hover { background:transparent; color:var(--ink); }
.thematic-entry .theme-entry:hover h3 { color:var(--accent); }
.thematic-entry .theme-entry svg { grid-column:1/-1; width:100%; height:auto; display:block; border-radius:.35rem; background:#111a26; }
.thematic-entry .theme-entry .theme-number { color:var(--accent); padding:.15rem 0; }
.thematic-entry .theme-entry h3 { grid-column:1/-1; font:600 clamp(1.15rem,1.6vw,1.5rem)/1.2 var(--sans); padding:0; letter-spacing:-.027em; margin:0; }
.thematic-entry .theme-entry p { grid-column:1/-1; font:.9rem/1.5 var(--sans); color:var(--mute); margin:0; max-width:unset; }
.thematic-entry .theme-entry .theme-count { font:600 .7rem/1.4 var(--sans); color:var(--mute); justify-self:end; }
.thematic-entry .theme-arrow { position:static; font-size:1rem; grid-column:2; justify-self:end; }
.theme-diagram .grid { stroke:#a5bbd2; stroke-opacity:.12; fill:none; }
.theme-diagram .trace { stroke:#9ad4eb; stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.theme-diagram .warm { stroke:#f6a596; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.theme-diagram .surface { fill:#25394c; stroke:#7dabc4; stroke-width:1; }
.theme-diagram .terminal { fill:#9ad4eb; }.theme-diagram .accent { fill:#f6a596; }
.theme-diagram .muted { stroke:#8ba0ba; stroke-width:1; stroke-dasharray:4 5; fill:none; }
main[data-page="graph"] .pagehead { padding-block:clamp(2.3rem,5vw,4rem) 1.4rem; }
main[data-page="graph"] .pagehead h1 { font-size:clamp(2.9rem,5.5vw,5.6rem); }
.constellation { background:var(--paper); border-radius:.5rem; }
.constellation-toolbar { gap:1rem; align-items:flex-end; background:var(--plate); }
.constellation-toolbar .atlas-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.65rem 1rem; flex:1; max-width:42rem; }
.atlas-tools > label { display:grid; gap:.25rem; font:600 .73rem/1.4 var(--sans); color:var(--mute); min-width:0; }
.atlas-tools :is(input,select) { width:100%; min-width:0; min-height:2.35rem; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:.25rem; padding:.35rem .55rem; font:500 .8rem/1.4 var(--sans); }
.atlas-tools .atlas-find { grid-column:1/-1; }
.constellation-toolbar .atlas-tools .constellation-picker { display:grid; color:var(--mute); }
.constellation-toolbar .atlas-tools .constellation-picker select { max-width:100%; }
.atlas-topic-count { grid-column:1/-1; color:var(--mute); font:500 .75rem/1.4 var(--sans); }
.constellation-layout { grid-template-columns:minmax(0,2.35fr) minmax(18rem,1fr); }
.constellation-map { background:#111a26; color:#eef5ff; }
.constellation-map svg { background:radial-gradient(ellipse at center,#1e3449,#111a26 76%); }
.constellation-map figcaption { color:#d4deea; border-top-color:#3c4a5a; }
.constellation-orbits ellipse { stroke:#7593a8; opacity:.45; }
.constellation-edge { stroke:#7692ac; opacity:.20; }
.constellation-edge.is-connected { stroke:#9ad4eb; stroke-width:2.5; opacity:1; }
.constellation-edge.is-incoming { stroke:#f6a596; stroke-dasharray:5 3; }
.constellation-map .legend-out::before { border-color:#9ad4eb; }
.constellation-map .legend-in::before { border-color:#f6a596; }
.constellation-node .node-dot { fill:#b7c9dc; stroke:#111a26; opacity:.65; }
.constellation-node.is-topic-match .node-dot { fill:#f6d495; opacity:1; stroke:#111a26; }
.constellation-node.is-topic-outside:not([data-selected]):not(.is-connected) .node-dot { opacity:.14; }
.constellation-edge.is-topic-outside:not(.is-connected) { opacity:.045; }
.constellation-edge.is-topic-match:not(.is-connected) { stroke:#d9bd82; opacity:.55; }
.constellation-node.is-connected .node-dot { fill:#9ad4eb; opacity:1; }
.constellation-node[data-selected] .node-dot { fill:#f6a596; stroke:#fff; stroke-width:2.7; opacity:1; }
.constellation-node[data-selected] .node-hit,.constellation-node:focus .node-hit { stroke:#f6a596; }
.constellation-node text { fill:#eef5ff; stroke:#111a26; }
.constellation-inspector { gap:.85rem; align-items:stretch; background:var(--paper); padding:clamp(1rem,2vw,1.5rem); }
.constellation-cover { max-height:9.2rem; object-position:left; width:auto; max-width:100%; align-self:flex-start; }
.constellation-copy h2 { font-size:clamp(1.24rem,2vw,1.7rem); }
.constellation-copy .constellation-degree { color:var(--accent); }
.constellation-actions { margin-top:0; }
.atlas-neighbors { border-top:1px solid var(--line); padding-top:.8rem; }
.atlas-neighbors h3 { font:650 .82rem/1.4 var(--sans); margin:0 0 .6rem; }
.atlas-neighbors ul { display:grid; gap:.6rem; }
.atlas-neighbors li { display:grid; gap:.2rem; border-bottom:1px solid var(--line); padding-bottom:.55rem; min-width:0; }
.atlas-neighbors li > a { font:600 .83rem/1.4 var(--sans); overflow-wrap:anywhere; }
.atlas-neighbors li > small { font:500 .68rem/1.4 var(--sans); color:var(--mute); }
.atlas-neighbors details summary { font:600 .79rem/1.4 var(--sans); cursor:pointer; color:var(--accent); margin-top:.7rem; }
.atlas-neighbors .reader-link { color:var(--secondary); }
.atlas-neighbors .no-relations { font:.8rem/1.45 var(--sans); color:var(--mute); }
@media(max-width:950px) { .thematic-entry .thematic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .constellation-layout { grid-template-columns:minmax(0,1fr); } .constellation-inspector { display:grid; grid-template-columns:minmax(5rem,.45fr) minmax(0,1fr); } .constellation-actions,.atlas-neighbors { grid-column:1/-1; } .constellation-cover { width:100%; } }
@media(max-width:620px) { .thematic-entry > aside { grid-template-columns:1fr; } .thematic-entry .theme-actions { justify-content:flex-start; } .thematic-entry .thematic-grid { grid-template-columns:1fr; gap:1.2rem; } .constellation-toolbar .atlas-tools { width:100%; flex-basis:100%; grid-template-columns:1fr; } .atlas-tools .atlas-find,.atlas-topic-count { grid-column:auto; } .constellation-inspector { grid-template-columns:minmax(0,1fr); } .constellation-cover { width:auto; max-height:7rem; } }

.constellation-toolbar { align-items:center; }
.constellation-toolbar .atlas-tools { max-width:48rem; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
.atlas-tools .atlas-find { grid-column:auto; }
.atlas-neighbors h3:not(:first-child) { margin-top:.9rem; }
.constellation-map .legend-topic::before { width:.7rem;height:.7rem;background:#f6d495;border:0;border-radius:50%; }
@media(max-width:620px) { .constellation-toolbar .atlas-tools {grid-template-columns:minmax(0,1fr);} }

.constellation-toolbar > .constellation-picker[hidden]{display:none!important;}
.constellation-toolbar .atlas-tools{flex:1;min-width:0;}

.constellation-toolbar:has(>.atlas-tools) > .constellation-picker{display:none!important;}
