#people-view{height:calc(100dvh - 82px);display:flex;flex-direction:column;background:radial-gradient(ellipse at 42% 50%,#27301e,#131611 70%)}.p-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 30px 14px;border-bottom:1px solid var(--border)}.p-heading h2{font:30px var(--serif);margin:8px 0 0}.p-view-buttons{display:flex;gap:8px}.p-filters{padding:13px 30px;display:flex;gap:14px;border-bottom:1px solid var(--border);align-items:end}.p-filters label{font:8px var(--mono);color:var(--muted);letter-spacing:.7px;flex:1;min-width:0}.p-filters label:nth-child(2){flex:1.7}.p-filters input,.p-filters select{margin-top:7px;height:36px;width:100%;font:10px var(--sans);padding:8px;color:var(--text);background:#1a2116;border:1px solid #404a33;border-radius:3px}.p-filters button{font-size:24px;padding:5px}.p-body{min-height:0;flex:1;display:flex}.p-stage{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}.p-meta{padding:14px 24px 0;display:flex;justify-content:space-between;gap:12px;color:#a1ac91;font:8px/1.6 var(--mono)}#p-map{min-height:0;position:relative;flex:1;overflow:hidden}#p-graph{width:100%;height:100%;touch-action:none;cursor:grab}.p-line{stroke:#ad9d54;stroke-width:1.1}.p-line.alleged{stroke-dasharray:7 5;stroke:#a8a5c2}.p-line-hit{fill:none;stroke:transparent;stroke-width:14;cursor:pointer}.p-line-hit:focus{stroke:#e8cc6740;outline:none}.p-flow{fill:#edcf69;pointer-events:none}.p-node{cursor:pointer;transition:opacity .2s}.p-node text{fill:#d6deca;font:12px var(--sans);paint-order:stroke;stroke:#182014;stroke-width:4;stroke-linejoin:round;pointer-events:none}.p-node .p-sub{fill:#a0ad8d;font:8px var(--mono);letter-spacing:1px}.p-portrait{filter:grayscale(1)}.p-glow{fill:none;stroke:#e8cc67;stroke-width:1;opacity:.12}.p-node.selected .p-glow,.p-node:focus .p-glow{opacity:1;stroke-width:2}.p-node:focus{outline:none}.p-node.selected .p-portrait{filter:grayscale(.5)}.p-map-note{position:absolute;bottom:18px;left:24px;color:#8b987d;font:8px/1.8 var(--mono);pointer-events:none}.p-controls{position:absolute;right:20px;bottom:20px;display:flex;border:1px solid #4c553c;background:#172012e8;border-radius:4px}.p-controls button{width:34px;height:33px}.p-legend{border-top:1px solid var(--border);padding:12px 24px;display:flex;flex-wrap:wrap;gap:8px 17px;font:9px var(--sans);color:#b5bea8}.p-legend span{display:flex;align-items:center;gap:6px}.p-legend i{width:7px;height:7px;border-radius:50%}.p-legend small{flex-basis:100%;font:8px/1.6 var(--mono);color:#849375}#p-profile{width:365px;flex-shrink:0;border-left:1px solid #414835;background:#eae8d9;color:#2f3b27;padding:24px;overflow:auto;scrollbar-width:thin;scrollbar-color:#b1b89d #eae8d9}#p-profile .eyebrow{color:#7d866d;font-size:8px}#p-profile h2{font:28px/1.15 var(--serif);margin:11px 0}#p-profile button:hover{color:#8b6526}#p-profile a{color:#6a633c}.p-profile-head{display:flex;gap:17px;align-items:center}.p-profile-head>img{width:89px;height:105px;object-fit:cover;object-position:center 25%;filter:grayscale(1);border:1px solid #c4c8b4}.p-profile-head p{font:9px var(--mono);color:#778467}.p-fine{font:10px/1.7 var(--sans);color:#788369}.p-photo-credit{font-size:8px}.p-status-summary{display:flex;gap:6px;flex-wrap:wrap;margin:17px 0}.p-status-summary span,.p-role{display:block;border-left:3px solid var(--status-color);padding:5px 7px;background:#ffffff42;font:9px/1.5 var(--mono)}.p-section-label{font:9px/1.6 var(--mono);letter-spacing:1px;color:#8b783c;margin:25px 0 12px}.p-route{border-left:1px solid #c3ba8b;margin:0 0 8px;padding-left:12px}.p-route button{display:block;font-size:11px;text-align:left;padding:3px 0}.p-route span{display:block;color:#8d8157;font:8px/1.6 var(--mono);padding:3px 0}.p-case-card{border:1px solid #c8ccb9;padding:13px;margin:12px 0;background:#f4f2e54d}.p-case-card>button{display:block;text-align:left;font:17px/1.3 var(--serif);margin:13px 0 7px;padding:0}.p-case-card>p{font:11px/1.7 var(--sans);color:#637255}.p-case-card .p-fine{font-size:8px}.p-relationship{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border-bottom:1px solid #c8ccb9;padding:12px 0}.p-relationship img{width:37px;height:43px;object-fit:cover;filter:grayscale(1)}.p-relationship span{flex:1}.p-relationship b{font-size:11px;font-weight:500}.p-relationship small{display:block;font-size:9px;color:#798569;line-height:1.5;margin-top:4px}.p-edge-people{display:flex;align-items:center;gap:10px;margin:25px 0}.p-edge-people button{width:45%;text-align:center}.p-edge-people img{width:80px;height:95px;object-fit:cover;filter:grayscale(1)}.p-edge-people span{display:block;font-size:11px;margin-top:10px}.p-edge-note{font:13px/1.8 var(--sans)}#p-tooltip{position:absolute;max-width:235px;padding:10px 13px;background:#f0edda;color:#37452b;border:1px solid #aaa379;box-shadow:0 5px 25px #0004;font:11px/1.6 var(--sans);pointer-events:none;z-index:4}#p-grid{flex:1;overflow:auto;padding:23px;display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:14px;align-content:start}.p-card{border:1px solid #3d4832;text-align:left;background:#1d2618;padding:10px;min-width:0}.p-card.selected{border-color:var(--yellow)}.p-card>img{width:100%;height:145px;object-fit:cover;object-position:center 25%;filter:grayscale(1)}.p-card strong{font:16px/1.3 var(--serif);display:block;margin:10px 0 6px}.p-card>span{font:8px var(--mono);color:#94a184}.p-card>div{display:flex;gap:5px;margin-top:10px}.p-card i{display:inline-block;width:16px;height:3px}.p-no-results{font-size:12px;color:var(--muted)}
@media(max-width:1100px){header{gap:20px}.motto{display:none}nav button{padding:12px 13px}.p-filters{gap:9px;padding:12px 20px}#p-profile{width:320px;padding:20px}.p-toolbar{padding:16px 20px}.p-meta{flex-direction:column;gap:3px}}
@media(max-width:780px){body.people-mode{overflow:auto}.people-mode header{position:sticky;top:0;z-index:9;background:var(--bg);height:65px}header{gap:8px;padding:0 15px}.brand{gap:12px}.brand>span{font-size:8px;letter-spacing:1px}.brand>b{font-size:38px}nav button{font-size:10px;padding:10px 8px}#criteria{margin-left:0;padding-left:8px;font-size:9px}.people-mode #people-view{height:auto;min-height:calc(100dvh - 65px)}.p-toolbar{padding:18px 17px;align-items:start;gap:8px}.p-heading h2{font-size:24px}.p-heading .eyebrow{font-size:7px}.p-view-buttons{flex-direction:column;gap:6px}.p-view-buttons .outline{font-size:8px;padding:7px}.p-filters{padding:12px 17px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.p-filters label:nth-child(2){grid-column:2}.p-filters label{font-size:7px}.p-filters select,.p-filters input{font-size:11px}.p-filters button{justify-self:end}.p-body{flex-direction:column}.p-stage{min-height:560px}#p-map{height:460px;flex:none}#p-graph{height:460px}.p-meta{font-size:7px;padding:12px 17px}.p-map-note{font-size:7px;left:17px;bottom:9px;width:60%}.p-controls{right:15px;bottom:12px}.p-controls button{width:28px;height:29px}.p-legend{padding:12px 17px;font-size:8px;gap:9px}#p-profile{width:100%;border-left:0;border-top:1px solid #b5bba4;padding:24px;overflow:visible}.p-profile-head>img{width:105px;height:120px}#p-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));max-height:65vh;padding:17px;gap:10px}.p-card>img{height:150px}.p-node text{font-size:15px}.p-node .p-sub{font-size:10px}}
@media(prefers-reduced-motion:reduce){.p-node{transition:none}}

/* Mobile profiles use the same overlay placement as dossier sheets. */
.p-profile-bar{display:none}
@media(max-width:780px){
 body.people-mode.person-profile-open{overflow:hidden}
 #p-profile{position:fixed;top:65px;right:0;bottom:0;width:min(440px,100%);z-index:19;display:flex;flex-direction:column;padding:0;border:0;overflow:hidden;transform:translateX(102%);visibility:hidden;pointer-events:none;transition:transform .32s,visibility .32s;box-shadow:-18px 0 60px #0006}
 #p-profile.open{transform:translateX(0);visibility:visible;pointer-events:auto}
 .p-profile-bar{display:flex;min-height:54px;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #c8ccb9;background:#eae8d9}
 .p-profile-bar>span{font:9px var(--mono);letter-spacing:1px;color:#7d866d}
 #p-close-profile{width:44px;height:44px;font-size:20px}
 #p-profile-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:24px 24px max(24px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){#p-profile{transition:none}}
/* Stable relationship zones. Judicial status remains encoded only in portrait rings. */
.p-zones{display:flex;gap:8px;padding:11px 30px;border-bottom:1px solid var(--border);overflow-x:auto;flex-shrink:0}.p-zones button{white-space:nowrap;border:1px solid #4a4b3c;border-radius:18px;padding:8px 13px;font-size:10px;color:#bfc4af}.p-zones button.active{background:#e8cc67;color:#29291b;border-color:#e8cc67}.p-zones b{font-size:9px;margin-left:6px;font-weight:400}.p-zone-area{fill:#34392b;fill-opacity:.35;stroke:#798261;stroke-opacity:.23;stroke-width:1}.p-zone-title{fill:#d6cf9a;font:19px var(--serif);letter-spacing:.3px}.p-zone-description{fill:#909c7d;font:9px var(--mono)}.p-edge-caption{fill:#f3e3a0;font:11px var(--sans);paint-order:stroke;stroke:#1b2416;stroke-width:5px;pointer-events:none}.p-node text{font-size:11px}.p-node .p-sub{font-size:8px}.p-placement{background:#dedfc9;padding:13px;margin:18px 0;border-left:3px solid #9b8a48}.p-placement>b{font:16px var(--serif)}.p-placement p{font-size:11px;line-height:1.6}.p-placement small{font-size:9px;line-height:1.6;display:block}#people-view:not(.p-has-profile) #p-profile{display:none}.p-profile-bar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c8ccb9;margin-bottom:20px;padding-bottom:10px;font:9px var(--mono);color:#7d866d}#p-close-profile{width:34px;height:34px;font-size:18px}#p-unlinked{padding:10px 24px;border-top:1px solid #414835;font-size:10px;flex-shrink:0;color:#aeb79b}#p-unlinked summary{cursor:pointer}#p-unlinked>div{display:flex;flex-wrap:wrap;gap:8px;max-height:150px;overflow:auto;margin-top:12px}#p-unlinked button{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #455037;padding:5px 10px;font-size:10px}#p-unlinked img{width:25px;height:30px;object-fit:cover;filter:grayscale(1)}.p-view-buttons{flex-wrap:wrap}.p-node{transition:opacity .2s}.p-map-note{background:#172012c9;padding:4px 7px;border-radius:3px}
@media(min-width:781px){#p-profile{width:340px}.p-filters{padding-top:9px;padding-bottom:9px}.p-toolbar{padding-top:14px;padding-bottom:12px}.p-legend{padding-top:8px;padding-bottom:8px}}
@media(max-width:780px){.p-zones{padding:10px 17px;gap:6px}.p-zones button{font-size:10px;padding:8px 10px}.p-profile-bar{margin-bottom:0;padding:0 20px}.p-node text{font-size:13px}.p-node .p-sub{font-size:9px}.p-stage{min-height:490px}.p-map-note{max-width:58%;font-size:6px}.p-heading h2{font-size:23px}.p-view-buttons .outline{font-size:8px}#p-unlinked{padding:12px 17px}}

/* Spatial sectors: quiet shared ink, distinct angular territory, no status colours. */
.p-zone-area{fill:#b4ad78;fill-opacity:.045;stroke:#b4ad78;stroke-opacity:.19;stroke-width:1;stroke-dasharray:3 9;stroke-linejoin:round;pointer-events:none}.p-zone-title{fill:#e1d7a4;font:13px var(--mono);letter-spacing:2px}.p-zone-description{fill:#a6b18f;font:10px var(--mono)}.p-zone-title,.p-zone-description{pointer-events:none;paint-order:stroke;stroke:#182014;stroke-width:3px}
@media(max-width:780px){.p-zone-title{font-size:17px;letter-spacing:1px}.p-zone-description{font-size:12px}}

/* Small photographic prints pinned to the personal dossier. */
.p-profile-head{align-items:flex-start;gap:20px;padding-top:12px;margin-bottom:17px}.p-profile-heading{min-width:0;flex:1}.portrait-print{position:relative;flex:0 0 99px;width:99px;padding:6px 6px 17px;background:linear-gradient(125deg,#fffef8,#eeeade);transform:rotate(-3deg);box-shadow:1px 2px 2px #302d2525,4px 7px 13px #302d2530;border:1px solid #d5d0c2;margin:3px 0 4px}.portrait-print img{display:block;width:100%;height:112px;object-fit:cover;filter:grayscale(1);border:1px solid #d2cfc3}.photo-pin{position:absolute;z-index:2;top:-7px;left:48%;width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#d6b87f 0 12%,#9e7e43 34%,#62502f 77%);box-shadow:1px 2px 2px #201e1770}.photo-pin:after{content:'';position:absolute;top:9px;left:8px;width:2px;height:12px;background:linear-gradient(90deg,#d5d2c5,#625f54);transform:rotate(-27deg);transform-origin:top;z-index:-1;box-shadow:2px 1px 2px #2d2a2440}#p-profile .p-profile-head h2{font-size:clamp(23px,2.2vw,29px);line-height:1.12;margin:9px 0 10px;overflow-wrap:anywhere}#p-profile .p-identity{font:500 12px/1.5 var(--sans);color:#435036;margin:0}.p-tenure{display:block;margin-top:5px;font:10px/1.5 var(--mono);color:#847044}.p-identity-source{display:inline-block;font:8px var(--mono);margin:7px 0 0;text-underline-offset:3px}#p-profile .p-file-count{font:9px/1.5 var(--mono);color:#7a846b;margin:12px 0 0}.p-photo-credit{margin-top:6px;line-height:1.65}
@media(max-width:780px){.p-profile-head{gap:18px}.portrait-print{flex-basis:102px;width:102px}.portrait-print img{height:119px}#p-profile .p-profile-head h2{font-size:27px}#p-profile .p-identity{font-size:12px}}
@media(max-width:360px){.p-profile-head{gap:13px}.portrait-print{flex-basis:83px;width:83px}.portrait-print img{height:98px}#p-profile .p-profile-head h2{font-size:24px}}
