.territory-atlas { margin:1rem 0; border:1px solid #736e58; border-radius:5px; overflow:hidden; background:#252b26; color:#f1ecd9; }
.territory-atlas .atlas-bar,.territory-atlas .district-info { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:.6rem 1rem; padding:.75rem 1rem; }
.territory-atlas .atlas-bar h3 { margin:0; color:#f0d69b; }
.territory-atlas .atlas-bar label { display:flex; align-items:center; gap:.55rem; margin:0; }
.territory-atlas .atlas-bar select { width:auto; max-width:100%; margin:0; }
.territory-atlas .atlas-sheet { position:relative; isolation:isolate; width:100%; aspect-ratio:660 / 350; min-height:225px; overflow:hidden; background:#435044; border-block:1px solid #857f65; }
.atlas-sheet svg { width:100%; height:100%; display:block; position:absolute; inset:0; }
.atlas-sheet path[data-district] { cursor:pointer; }
.territory-atlas .district-pin { background:#1b221fee; color:#fff9e6; border:1px solid #a4a28b; padding:.32rem .55rem; min-width:0; width:max-content; max-width:41%; height:auto; line-height:1.18; text-align:left; box-shadow:0 2px 6px #14191370; white-space:normal; }
.atlas-sheet .district-pin { position:absolute; transform:translate(-50%,-50%); margin:0; }
.territory-atlas .district-pin[aria-pressed="true"] { border:2px solid #f0cd87; }
.territory-atlas .district-pin:focus-visible { outline:2px solid white; outline-offset:2px; }
.district-pin span,.district-pin strong,.district-info small { display:block; }
.territory-atlas .district-pin span { font-size:.76rem; color:#e0d7bd; }
.territory-atlas .district-pin strong { margin-top:.15rem; font-size:.95rem; overflow-wrap:anywhere; }
.district-info small { color:#c3c2b3; }
@media(max-width:540px){.territory-atlas .atlas-bar,.territory-atlas .district-info{padding:.6rem}.territory-atlas .district-pin{padding:.25rem .36rem}.territory-atlas .district-pin span{font-size:.7rem}.territory-atlas .district-pin strong{font-size:.82rem}}

@media (min-width:761px) and (max-width:1000px) {
  .layout:has(.territory-atlas) > .left-column {grid-column:1}
  .layout > #content:has(.territory-atlas) {grid-column:2}
}
/* Each label is centred within its district on the 660 × 350 atlas. */
@media(max-width:540px) {
  details.target > .territory-atlas {margin-inline:-.75rem}
  .territory-atlas .atlas-sheet {min-height:300px}
  .atlas-sheet .district-pin span {overflow-wrap:anywhere}
  .atlas-sheet .district-pin strong {display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
  .atlas-sheet .district-pin {max-width:35%}
}
.atlas-sheet[data-atlas-city="newyork"] .harbour { left:22.27%; top:67.14%; }
.atlas-sheet[data-atlas-city="newyork"] .business { left:45.76%; top:26.86%; }
.atlas-sheet[data-atlas-city="newyork"] .nightlife { left:74.39%; top:66.00%; }
.atlas-sheet[data-atlas-city="chicago"] .harbour { left:72.42%; top:65.71%; }
.atlas-sheet[data-atlas-city="chicago"] .business { left:43.18%; top:24.29%; }
.atlas-sheet[data-atlas-city="chicago"] .nightlife { left:23.64%; top:69.14%; }
.atlas-sheet[data-atlas-city="losangeles"] .harbour { left:73.03%; top:74.00%; }
.atlas-sheet[data-atlas-city="losangeles"] .business { left:55.91%; top:23.71%; }
.atlas-sheet[data-atlas-city="losangeles"] .nightlife { left:22.73%; top:53.14%; }
.atlas-sheet[data-atlas-city="miami"] .harbour { left:35.91%; top:73.14%; }
.atlas-sheet[data-atlas-city="miami"] .business { left:22.88%; top:24.86%; }
.atlas-sheet[data-atlas-city="miami"] .nightlife { left:77.58%; top:31.71%; }
.atlas-sheet[data-atlas-city="lasvegas"] .harbour { left:19.70%; top:28.86%; }
.atlas-sheet[data-atlas-city="lasvegas"] .business { left:74.39%; top:32.57%; }
.atlas-sheet[data-atlas-city="lasvegas"] .nightlife { left:45.76%; top:74.29%; }
.atlas-sheet[data-atlas-city="sanfrancisco"] .harbour { left:76.06%; top:26.86%; }
.atlas-sheet[data-atlas-city="sanfrancisco"] .business { left:71.36%; top:70.29%; }
.atlas-sheet[data-atlas-city="sanfrancisco"] .nightlife { left:27.42%; top:62.00%; }
.atlas-sheet[data-atlas-city="palermo"] .harbour { left:71.67%; top:34.29%; }
.atlas-sheet[data-atlas-city="palermo"] .business { left:23.94%; top:36.57%; }
.atlas-sheet[data-atlas-city="palermo"] .nightlife { left:54.09%; top:75.14%; }
.atlas-sheet[data-atlas-city="london"] .harbour { left:77.58%; top:56.00%; }
.atlas-sheet[data-atlas-city="london"] .business { left:56.36%; top:21.71%; }
.atlas-sheet[data-atlas-city="london"] .nightlife { left:21.52%; top:70.00%; }
.atlas-sheet[data-atlas-city="mexico"] .harbour { left:74.24%; top:70.57%; }
.atlas-sheet[data-atlas-city="mexico"] .business { left:50.00%; top:27.14%; }
.atlas-sheet[data-atlas-city="mexico"] .nightlife { left:21.67%; top:72.29%; }
.atlas-sheet[data-atlas-city="medellin"] .harbour { left:31.21%; top:70.00%; }
.atlas-sheet[data-atlas-city="medellin"] .business { left:70.45%; top:67.14%; }
.atlas-sheet[data-atlas-city="medellin"] .nightlife { left:37.42%; top:22.86%; }
.atlas-sheet[data-atlas-city="tokyo"] .harbour { left:75.91%; top:41.14%; }
.atlas-sheet[data-atlas-city="tokyo"] .business { left:26.52%; top:25.14%; }
.atlas-sheet[data-atlas-city="tokyo"] .nightlife { left:23.48%; top:71.43%; }
.atlas-sheet[data-atlas-city="budapest"] .harbour { left:63.33%; top:72.29%; }
.atlas-sheet[data-atlas-city="budapest"] .business { left:73.94%; top:26.00%; }
.atlas-sheet[data-atlas-city="budapest"] .nightlife { left:23.33%; top:60.00%; }
