/* Puskin commercial territories: the shared forest, ink and gold palette. */
.territory-section{padding-top:30px;border-top:1px solid var(--line);scroll-margin-top:110px}
.territory-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:24px}
.territory-heading .micro-label{color:var(--yellow);font-size:8px;letter-spacing:1.5px}
body[data-theme] .territory-heading h2{font-size:clamp(28px,2.6vw,38px);line-height:1.2;letter-spacing:-1px;margin:12px 0 0}
.territory-heading h2 em{font-family:Georgia,serif;font-weight:400}
.territory-heading>p{max-width:285px;font-size:12px;line-height:1.8;color:var(--text-muted)}
.territory-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(290px,1fr);border:1px solid var(--line);background:rgba(5,16,9,.35)}
.territory-canvas{min-width:0;padding:24px 24px 18px;background-image:linear-gradient(#abc58c05 1px,transparent 1px),linear-gradient(90deg,#abc58c05 1px,transparent 1px);background-size:35px 35px}
.territory-map-top{display:flex;justify-content:space-between;gap:12px;color:var(--text-soft);font-size:8px;letter-spacing:1.8px}
.territory-map-top>span:first-child{color:var(--yellow)}
.territory-map{display:block;width:100%;height:auto;margin:7px 0 0;overflow:visible}
.territory-county{cursor:pointer;outline:none}
.territory-county>.territory-shape{stroke:#0c2317;stroke-width:1.25;stroke-linejoin:round;transition:filter .16s,stroke .16s;vector-effect:non-scaling-stroke}
.territory-claudiu>.territory-shape{fill:#357851}.territory-catalin>.territory-shape{fill:#a2b478}.territory-mihai>.territory-shape{fill:#d9ba58}.territory-shared>.territory-shape{fill:url(#territory-shared)}
.territory-county:hover>.territory-shape{filter:brightness(1.17);stroke:#f1f4e7;stroke-width:2}
.territory-county:focus-visible>.territory-shape,.territory-county.is-selected>.territory-shape{stroke:#f1f4e7;stroke-width:2.8;filter:brightness(1.07)}
.territory-map text{stroke:none}
.territory-code{font-family:DM,Arial,sans-serif;font-size:13px;font-weight:600;fill:#0b2214;pointer-events:none;letter-spacing:.3px}
.territory-claudiu .territory-code{fill:#f1f4e7}
.territory-county:focus-visible .territory-code,.territory-county.is-selected .territory-code{font-weight:700}
.territory-capital-ring{fill:none;stroke:#f1f4e7;stroke-width:1.7;pointer-events:none}
.territory-county>.territory-capital-leader{fill:none;stroke:#c5d1af;stroke-width:1;pointer-events:none}
.territory-capital-badge{fill:#0b2014;stroke:#d9ba58;stroke-width:1;vector-effect:non-scaling-stroke}
.territory-capital-label{fill:#f1f4e7;font-family:DM,Arial,sans-serif;font-size:12px;font-weight:500;pointer-events:none}
.territory-county:focus-visible .territory-capital-badge{stroke:#fff;stroke-width:3}
.territory-legend{display:flex;flex-wrap:wrap;gap:11px 20px;padding-top:12px;border-top:1px solid var(--line)}
.territory-legend-item{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--text-muted);line-height:1.5}
.territory-legend-item:hover{color:var(--yellow)}
.territory-legend-item>span{width:9px;height:9px;background:#357851;flex-shrink:0;border:1px solid #fff2}
.territory-legend-item.legend-catalin>span{background:#a2b478}.territory-legend-item.legend-mihai>span{background:#d9ba58}
.territory-map-note{color:var(--text-soft);font-size:10px;line-height:1.7;margin-top:12px;max-width:100%}
.territory-panel{padding:26px;border-left:1px solid var(--line);min-width:0;background:rgba(12,32,19,.58)}
.territory-panel>label{display:block;color:var(--yellow);font-size:8px;letter-spacing:1.2px;margin-bottom:10px}
.territory-panel select{display:block;width:100%;min-height:46px;padding:10px 34px 10px 13px;border:1px solid #b1bf9560;background:#102719;color:var(--text);font:inherit;font-size:14px;border-radius:0;cursor:pointer}
.territory-selection{padding:24px 0 17px;border-bottom:1px solid var(--line)}
.territory-selection>.micro-label{font-size:7px;color:var(--text-soft);letter-spacing:1.5px}
body[data-theme] .territory-selection h3{font-size:30px;line-height:1.15;letter-spacing:-.8px;margin:8px 0}
.territory-selection>p{font-size:11px;color:var(--text-muted);line-height:1.7}
.territory-agent{padding:20px 0 0}
.territory-agent+.territory-agent{border-top:1px solid var(--line);margin-top:20px}
.territory-agent>.micro-label{font-size:7px;color:var(--text-soft);letter-spacing:1.2px;text-transform:uppercase}
body[data-theme] .territory-agent h4{font-size:20px;line-height:1.25;letter-spacing:-.4px;margin:7px 0 10px;font-weight:500}
.territory-phone{display:flex;align-items:center;justify-content:space-between;color:var(--yellow);font-size:21px;line-height:1.5;gap:12px;font-variant-numeric:tabular-nums}
.territory-phone>span{font-size:20px}
.territory-email{display:block;color:var(--text-muted);font-size:11px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.territory-email:hover{color:var(--yellow)}
.territory-agent-actions{display:flex;gap:12px;margin-top:13px}
.territory-agent-actions a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border:1px solid var(--line-strong);font-size:10px;min-height:38px;flex:1}
.territory-agent-actions a:first-child{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
.territory-agent-actions a:hover{border-color:var(--yellow)}
.territory-directory{border-bottom:1px solid var(--line);margin-top:8px}
.territory-directory summary{display:flex;align-items:center;justify-content:space-between;gap:15px;list-style:none;cursor:pointer;padding:20px 0;font-size:11px;color:var(--text-muted)}
.territory-directory summary::-webkit-details-marker{display:none}
.territory-directory summary>span{color:var(--yellow);font-size:18px}
.territory-directory[open] summary>span{transform:rotate(45deg)}
.territory-directory>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0 0 23px}
body[data-theme] .territory-directory h3{font-size:15px;font-weight:500;margin-bottom:9px}
.territory-directory p{color:var(--text-muted);font-size:11px;line-height:1.8}
.territory-attribution{margin-top:12px;color:var(--text-soft);font-size:9px;line-height:1.8;opacity:.8}
.territory-attribution a{text-decoration:underline;text-underline-offset:3px}
.territory-jump{color:var(--yellow);font-size:11px;display:inline-block;padding:7px 0;text-decoration:underline;text-underline-offset:4px}
.territory-nojs{font-size:11px;line-height:1.8;padding-top:15px;color:var(--text-muted)}
.person-card[id^="agent-"]{scroll-margin-top:110px}
@media(max-width:1000px){
 .territory-layout{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr)}
 .territory-canvas{padding:20px 14px}.territory-panel{padding:22px}
 .territory-map-top{font-size:7px;letter-spacing:1px}.territory-map-top>span:last-child{letter-spacing:.5px}
 .territory-legend{gap:9px 14px}.territory-legend-item{font-size:9px}
}
@media(max-width:760px){
 .territory-heading{display:block;margin-bottom:20px}.territory-heading>p{margin-top:12px;max-width:100%;font-size:11px}
 .territory-layout{grid-template-columns:1fr}.territory-canvas{padding:19px 18px 16px}
 .territory-panel{padding:23px;border-left:0;border-top:1px solid var(--line)}
 .territory-map-note{font-size:9px}.territory-legend-item{font-size:10px}
 .territory-selection{padding-top:22px}.territory-directory>div{grid-template-columns:1fr;gap:20px}
 .territory-agent-actions a{min-height:44px}.territory-jump{font-size:10px;line-height:1.7}
}
@media(prefers-reduced-motion:reduce){.territory-county>.territory-shape{transition:none}}
