/* Public reference views: shared instrument tokens, no external chart runtime. */
.reference-byline{font-size:13px;color:var(--ink-1);margin:0 0 20px}
.reference-jumps,.reference-actions{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}
.reference-jumps{padding:16px 0;border-block:1px solid var(--rule);margin-bottom:28px}
.reference-jumps a{font-size:14px;text-decoration:underline;text-underline-offset:4px}
.reference-archive-note{padding:18px;background:var(--surface-2);border-left:3px solid var(--ink-0)}
.reference-history,.reference-evolution,.reference-related,.topic-knowledge{padding-block:30px;margin-top:24px;border-top:1px solid var(--rule)}
.reference-history>p,.reference-evolution>p,.reference-related>p,.topic-knowledge>p{max-width:74ch;color:var(--ink-1);font-size:14px;line-height:1.65}
.reference-history-list{list-style:none;margin:22px 0;padding:0;border-left:1px solid var(--rule)}
.reference-history-list li{position:relative;margin:0;padding:0 0 24px 24px}
.reference-history-list li:before{content:"";position:absolute;left:-4px;top:8px;width:7px;height:7px;background:var(--ink-1);border-radius:50%}
.reference-history-list a{display:grid;grid-template-columns:64px 1fr;gap:7px 14px;text-decoration:none}
.reference-history-list strong,.reference-history-list .d-meta{grid-column:2;font-weight:400}
.reference-history-list strong{font-size:17px;line-height:1.45}
.reference-history-list time,.reference-revision{font-family:var(--font-mono);font-size:12px;color:var(--ink-1)}
.reference-history-list a:hover strong{text-decoration:underline}
.reference-history-more summary,.reference-related summary,.evidence-flow-details summary,.topic-map-records>summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:14px;line-height:1.5}
.reference-related details,.evidence-flow-details details,.topic-connection{border-bottom:1px solid var(--rule)}
.reference-related summary span{display:block;color:var(--ink-1);font-size:12px}
.reference-related li,.evidence-flow-details li,.topic-connection li{font-size:14px;line-height:1.6;margin-bottom:10px;overflow-wrap:anywhere}
.reference-related ul,.evidence-flow-details ul,.topic-connection ul{padding-left:22px}
.reference-reuse .reference-actions{gap:8px}
.reference-reuse p{font-size:14px;line-height:1.6}
.reference-copy-status:empty{display:none}
.evidence-sankey{max-width:640px;margin:22px auto 0}
.evidence-sankey svg{display:block;width:100%;height:auto;overflow:visible}
.evidence-sankey text{font:18px var(--font-mono);fill:var(--ink-0)}
.evidence-sankey rect{fill:var(--ink-0)}
.evidence-flow{stroke:none}
.evidence-flow-retained{fill:var(--ink-1);fill-opacity:.4}
.evidence-flow-added{fill:var(--positive);fill-opacity:.5}
.evidence-flow-removed{fill:var(--negative);fill-opacity:.35}
.evidence-flow-details summary{display:flex;gap:10px;align-items:center}
.evidence-flow-details summary b{margin-left:auto;font-family:var(--font-mono);font-weight:500}
.evidence-key{height:10px;width:20px;background:var(--ink-1);display:inline-block}
.evidence-key-added{background:var(--positive)}
.evidence-key-removed{background:var(--negative)}
.topic-knowledge{margin-block:48px}
.topic-map-controls{display:flex;flex-wrap:wrap;gap:8px;margin-block:20px}
.topic-map-selector{display:none}
.topic-map-controls[hidden],.topic-map-canvas[hidden]{display:none}
.topic-map-controls button{white-space:normal;min-height:44px;height:auto;text-align:left;font-size:13px}
.topic-map-controls button[aria-pressed=true]{background:var(--ink-0);color:var(--surface-0)}
.topic-map-canvas{display:grid;grid-template-columns:minmax(120px,1fr) 120px minmax(150px,1.5fr);position:relative;align-items:center;padding-block:24px}
.topic-map-centre{font-family:var(--font-serif);font-size:24px;line-height:1.25;padding:18px 0}
.topic-map-centre small,.topic-map-neighbours small{display:block;font:12px/1.5 var(--font-mono);color:var(--ink-1);margin-top:8px}
.topic-map-lines{width:120px;height:100%;position:absolute;left:0;top:0;overflow:visible}
.topic-map-lines path{fill:none;stroke:var(--ink-1);stroke-opacity:.45}
.topic-map-links{height:100%;position:relative;min-height:80px}
.topic-map-neighbours{display:grid;gap:14px}
.topic-map-neighbours a{display:block;min-height:60px;padding:10px 0 10px 16px;border-left:3px solid var(--ink-1);font-size:15px;line-height:1.4;text-decoration:none}
.topic-map-neighbours a:hover{text-decoration:underline}
.topic-map-status{min-height:1.5em}
.topic-connection summary{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:14px 0;font-size:14px;cursor:pointer}
.topic-connection summary b{white-space:nowrap;font:12px var(--font-mono)}
.reference-jumps a:focus-visible,.topic-map-controls button:focus-visible,.reference-history-list a:focus-visible{outline:2px solid var(--ink-0);outline-offset:5px}
.public-topic-page .dossier-hero{margin-bottom:18px}
.public-topic-page .topic-version-panel{margin-block:30px}
.public-topic-page .topic-version-panel h2{font-size:20px;margin-bottom:14px}
.public-topics-index .topics-intro>p:not(.hero-tagline){max-width:72ch;line-height:1.6}
@media(max-width:639px){
 .topic-map-controls button{display:none}
 .topic-map-selector{display:grid;gap:8px;width:100%;font-size:13px}
 .topic-map-selector select{min-height:44px;max-width:100%;width:100%;font:inherit;color:var(--ink-0);background:var(--surface-0);border:1px solid var(--rule);padding:8px;border-radius:4px}
 .reference-history,.reference-evolution,.reference-related{padding-block:24px}
 .reference-history-list a{grid-template-columns:44px 1fr;gap:6px 10px}
 .reference-history-list strong{font-size:16px}
 .evidence-sankey text{font-size:23px}
 .topic-map-canvas{grid-template-columns:minmax(80px,1fr) 34px minmax(120px,1.5fr)}
 .topic-map-lines{width:34px}
 .topic-map-centre{font-size:18px;overflow-wrap:anywhere}
 .topic-map-neighbours a{font-size:14px;padding-left:9px}
 .topic-connection summary{display:block}
 .topic-connection summary b{display:block;margin-top:7px}
 .reference-jumps{gap:12px 18px}
 .reference-actions .ui-button{min-height:44px}
}
@media print{.topic-map-controls,.reference-actions button{display:none}.reference-history-more>ol{display:block}.reference-jumps{display:none}}
