/* Same paper, ink and accent as the article. No global layout rules. */
.document-references{margin-top:32px;border-top:1px solid var(--line);padding-top:28px;min-width:0}
.ref-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.ref-section-head .ref-eyebrow,.ref-dialog .ref-eyebrow{font-size:10px;line-height:1.6;letter-spacing:.15em;color:var(--accent);margin-bottom:6px}
.ref-section-head h2{font-size:23px;line-height:1.5;font-weight:550}
.ref-section-head .ref-intro{font-size:14px;line-height:1.8;margin-top:6px;color:var(--muted)}
.document-references button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
.ref-open{display:inline-flex;align-items:center;gap:10px;min-height:44px;border:1px solid var(--line);background:transparent;padding:10px 14px;font-size:14px!important;border-radius:2px}
.ref-open:hover{background:var(--wash);border-color:var(--accent)}
.ref-open>span{margin-left:12px;color:var(--accent)}
.ref-tabs{display:flex;gap:12px 26px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.ref-tabs button{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 0;border:0;border-bottom:2px solid transparent;background:transparent;font-size:15px}
.ref-tabs button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}
.ref-tabs button>span,.ref-static-title>span{font-size:12px;font-variant-numeric:tabular-nums;background:var(--wash);padding:1px 8px;border-radius:20px}
.ref-panel{padding:16px 0;outline-offset:3px}
.ref-static-title{font-size:16px;margin:8px 0!important;font-weight:550}
[data-document-references][data-ref-ready] .ref-static-title{display:none}
.document-references .ref-documents{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 22px}
.ref-documents li{min-width:0;border-bottom:1px solid var(--line)}
.ref-documents a{display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;min-height:92px;gap:3px 12px;padding:14px 0}
.ref-document-kind{font-size:11px;line-height:1.8;color:var(--muted);font-weight:400}
.ref-document-title{grid-column:1;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.ref-document-arrow{grid-row:1/3;grid-column:2;color:var(--accent);align-self:center}
.ref-empty,.ref-note{font-size:13px;line-height:1.85;color:var(--muted)}
.ref-empty{padding:12px 0}
.ref-note{margin-top:6px!important}
.ref-dialog{width:calc(100vw - 40px);max-width:1600px;height:min(900px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);overflow:hidden;box-shadow:0 24px 100px rgb(0 0 0/.2)}
.ref-dialog::backdrop{background:rgb(0 0 0/.45);backdrop-filter:blur(5px)}
.ref-dialog-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.ref-dialog-head{padding:18px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;flex-shrink:0}
.ref-dialog-head h2{margin:0;font-size:23px;line-height:1.4;font-weight:550}
.ref-close{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;font-size:28px!important;background:transparent;flex-shrink:0}
.ref-close:hover{background:var(--wash)}
.ref-dialog-tools{display:flex;gap:16px 32px;align-items:end;padding:16px 24px 0;flex-shrink:0;flex-wrap:wrap}
.ref-search{display:flex;flex-direction:column;gap:5px;flex:1;min-width:180px;max-width:420px;font-size:12px;color:var(--muted)}
.ref-search input{width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--line);background:var(--paper);border-radius:2px;font:inherit;font-size:14px;color:var(--ink)}
.ref-graph-filters{display:flex;gap:6px;flex-wrap:wrap}
.ref-graph-filters button{background:transparent;border:1px solid var(--line);border-radius:2px;padding:8px 12px;min-height:42px;font-size:13px}
.ref-graph-filters button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.ref-dialog-hint{font-size:12px;color:var(--muted);padding:8px 24px 14px;margin:0;flex-shrink:0}
.ref-graph-layout{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 280px;min-height:0;border-top:1px solid var(--line)}
.ref-canvas{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--wash)}
.ref-canvas-top{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 16px;z-index:1}
.ref-center-label{font-size:11px;line-height:1.7;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted)}
.ref-zoom{display:flex;flex-shrink:0;align-items:center;border:1px solid var(--line);background:var(--paper);border-radius:3px;overflow:hidden}
.ref-zoom button{border:0;background:transparent;min-width:42px;min-height:40px;padding:6px 10px;font-size:13px}
.ref-scale{min-width:44px;text-align:center;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.ref-zoom button:hover{background:var(--wash)}
.ref-zoom button:first-child,.ref-zoom button:last-child{font-size:20px}
[data-ref-svg]{display:block;flex:1;width:100%;min-height:0;overflow:hidden;touch-action:none;user-select:none;cursor:grab}
[data-ref-svg]:active{cursor:grabbing}
.ref-edge{fill:none;stroke-width:1.4;vector-effect:non-scaling-stroke}
.ref-edge-incoming{stroke:var(--accent);opacity:.65}
.ref-edge-outgoing{stroke:var(--muted);stroke-dasharray:5 4;opacity:.65}
#ref-arrow-incoming path{fill:var(--accent)}
#ref-arrow-outgoing path{fill:var(--muted)}
.ref-node{cursor:pointer;outline:none}
.ref-node rect{fill:var(--paper);stroke:var(--line);stroke-width:1.4;vector-effect:non-scaling-stroke;transition:stroke .15s}
.ref-node:hover rect,.ref-node:focus-visible rect,.ref-node[aria-pressed=true]:not(.ref-node-current) rect{stroke:var(--accent);stroke-width:2.2}
.ref-node-kind{fill:var(--muted);font-size:12px;letter-spacing:.025em}
.ref-node-title{fill:var(--ink);font-size:16px;font-weight:500}
.ref-node-current rect{fill:var(--ink);stroke:var(--ink)}
.ref-node-current .ref-node-kind{fill:var(--paper);opacity:.65}
.ref-node-current .ref-node-title{fill:var(--paper)}
.ref-node-current:focus-visible rect{stroke:var(--accent);stroke-width:3}
.ref-legend{display:flex;justify-content:center;gap:12px 22px;flex-wrap:wrap;padding:12px 16px;font-size:11px;color:var(--muted)}
.ref-legend>span{display:flex;gap:7px;align-items:center}
.ref-legend>span:before{content:'';display:inline-block;width:18px;border-top:1px solid var(--ink)}
.ref-legend-incoming:before{border-color:var(--accent)!important}
.ref-legend-outgoing:before{border-top:1px dashed var(--muted)!important}
.ref-isolated{position:static;flex-shrink:0;padding:0 16px 10px;margin:0;text-align:center;font-size:13px;line-height:1.75;color:var(--muted)}
.ref-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ref-graph-aside{min-height:0;overflow:auto;border-left:1px solid var(--line);padding:20px;background:var(--paper);overscroll-behavior:contain}
.ref-detail{padding-bottom:22px;border-bottom:1px solid var(--line)}
.ref-detail h3{font-size:17px;line-height:1.65;font-weight:550;margin:8px 0;overflow-wrap:anywhere}
.ref-detail [data-ref-detail-summary]{font-size:13px;line-height:1.85;color:var(--muted);margin:10px 0;overflow-wrap:anywhere}
.ref-read{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;font-size:13px;border-bottom:1px solid var(--line)}
.ref-node-list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 0 8px}
.ref-node-list-head h3,.ref-node-list-head>span{font-size:12px;color:var(--muted);margin:0;font-weight:400}
.ref-node-list{list-style:none;padding:0;margin:0}
.ref-node-list li+li{border-top:1px solid var(--line)}
.ref-node-list button{text-align:start;background:transparent;border:0;width:100%;padding:12px 0;min-height:62px}
.ref-node-list button>span{display:block;font-size:10px;color:var(--muted);line-height:1.8}
.ref-node-list strong{display:block;font-size:13px;line-height:1.7;font-weight:500;overflow-wrap:anywhere}
.ref-node-list button[aria-pressed=true] strong{color:var(--accent)}
@media(max-width:900px){.ref-graph-layout{grid-template-columns:minmax(0,1fr) 230px}.ref-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.ref-dialog-head,.ref-dialog-tools{padding-inline:18px}.ref-dialog-hint{padding-inline:18px}.ref-graph-aside{padding:16px}}
@media(max-width:600px){.document-references{padding-top:22px}.ref-section-head{gap:14px}.ref-section-head h2{font-size:21px}.ref-open{width:100%;justify-content:center}.document-references .ref-documents{grid-template-columns:minmax(0,1fr)}.ref-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}.ref-dialog-head{padding:14px 16px}.ref-dialog-head h2{font-size:20px}.ref-dialog-tools{padding:12px 16px 0;gap:10px}.ref-search{max-width:none;flex-basis:100%}.ref-graph-filters{width:100%}.ref-graph-filters button{flex:1;padding-inline:6px;font-size:12px}.ref-dialog-hint{padding:8px 16px;font-size:11px}.ref-graph-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,1fr) minmax(130px,.65fr);overflow:hidden}.ref-graph-aside{border-left:0;border-top:1px solid var(--line)}.ref-canvas-top{padding:8px 12px;flex-wrap:wrap;gap:6px}.ref-center-label{width:100%;font-size:10px}.ref-zoom{margin-left:auto}.ref-zoom button{min-height:36px}.ref-legend{font-size:10px;padding:8px;gap:8px 12px}.ref-detail h3{font-size:16px}.ref-node-list{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.ref-node-list strong{font-size:12px}.ref-node-list li:nth-child(2){border-top:0}}
@media(prefers-reduced-motion:reduce){.ref-node rect{transition:none}}
@media print{.ref-dialog,.ref-tabs,.ref-open{display:none!important}.ref-panel{display:block!important}.ref-static-title{display:block!important}.ref-note{font-size:10pt}.document-references{break-inside:avoid}}

.ref-dialog:not([open]){display:none}
@media(max-height:650px){.ref-dialog-shell{overflow-y:auto}.ref-graph-layout{flex:none;min-height:360px}}
@media(max-width:600px) and (max-height:700px){.ref-dialog-shell{overflow-y:auto}.ref-graph-layout{flex:none;min-height:440px;grid-template-rows:260px 180px}}

@media(max-width:600px){.ref-detail{padding-bottom:10px}.ref-detail [data-ref-detail-summary]{display:none}.ref-detail h3{font-size:15px;margin:5px 0}.ref-node-list-head{padding:12px 0 4px}}
