:root {
  color-scheme: light;
  --paper: #f5f1e7;
  --ink: #172e2b;
  --muted: #4f5c53;
  --line: #c7c3b4;
  --gold: #ae8950;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b95020; outline-offset: 3px; }
.skip { position: absolute; z-index: 5; transform: translateY(-150%); background: white; color: black; padding: .8rem; }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mast { background: #152725; color: #fff5df; border-bottom: 2px solid #ae925f; }
.mast-inner, .wrap { width: min(1216px, calc(100% - clamp(32px, 8vw, 128px))); margin-inline: auto; }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 14px; }
.brand span { font-size: 1.6rem; font-variant: small-caps; letter-spacing: .015em; }
.brand small, .eyebrow { font: 650 .7rem/1.35 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.brand small { color: #e3c589; padding-left: 14px; border-left: 1px solid #688078; }
.home-link, footer { font: 550 .78rem/1.4 var(--sans); }
.home-link, footer a { text-decoration: none; }
.home-link span, footer a span { color: #b69660; margin-left: .25em; }
.home-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-title { display: flex; align-items: end; justify-content: space-between; gap: 50px; padding-block: clamp(32px, 5vw, 67px) clamp(27px, 3.5vw, 44px); }
.eyebrow { color: #526053; margin: 0; display: flex; align-items: center; gap: 10px; }
.rule { width: 33px; height: 1px; background: var(--gold); }
h1, h2, h3, p { margin: 0; }
h1 { font: 400 clamp(3.25rem, 6.6vw, 6.4rem)/1.04 var(--serif); letter-spacing: -.065em; margin: .13em 0 -.08em; }
h1 i { font-weight: 400; letter-spacing: -.075em; }
h1 span { display: block; white-space: nowrap; }
.page-title > div { min-width: 0; }
.intro { font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.5; color: #46554d; max-width: 360px; }
.atlas { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr); align-items: start; gap: clamp(25px, 3.5vw, 56px); }
.map-panel { background: #182b28; color: #fff5dc; border: 1px solid #243b33; border-radius: 3px; box-shadow: 0 9px 22px -17px #17231e; overflow: hidden; min-width: 0; }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px clamp(14px, 2vw, 25px); border-bottom: 1px solid #536559; }
.map-bar h2 { font: 400 1.15rem/1.3 var(--serif); }
.zoom-tools { display: none; align-items: center; gap: 3px; font: 550 .78rem/1 var(--sans); }
.atlas-ready .zoom-tools { display: flex; }
.zoom-tools button { min-width: 40px; min-height: 40px; font: 400 1.45rem/1 var(--sans); color: #fff5dc; background: transparent; border: 1px solid transparent; border-radius: 2px; padding: 0 7px; cursor: pointer; }
.zoom-tools button:hover:enabled { color: white; background: #34493f; }
.zoom-tools button:disabled { color: #839184; cursor: default; }
.zoom-tools output { min-width: 4ch; text-align: center; color: #d6d8c6; font-variant-numeric: tabular-nums; }
.zoom-tools .fit { margin-left: 5px; border-color: #627465; padding: 0 10px; min-height: 34px; font: 580 .73rem/1.1 var(--sans); }
.map-field { position: relative; isolation: isolate; background-color: #263c37; background-image: linear-gradient(#c4d8bb0b 1px,transparent 1px), linear-gradient(90deg,#c4d8bb0b 1px,transparent 1px); background-size: 20px 20px; overflow: hidden; }
.map-field:focus-visible { outline-offset: -4px; z-index: 2; }
.map-sheet, .map-sheet img { display: block; width: 100%; height: auto; }
.atlas-ready .map-field { height: clamp(520px, 71svh, 810px); touch-action: none; user-select: none; cursor: grab; }
.atlas-ready .map-field.is-dragging { cursor: grabbing; }
.atlas-ready .map-sheet { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.pin { display: none; }
.atlas-ready .pin {
  position: absolute; top: var(--y); left: var(--x); display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0; background: transparent; border: 0; cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--inverse-scale, 1)); transform-origin: center;
}
.district-pin span { position:absolute; bottom: 66%; left: 50%; transform: translateX(-50%); min-width: 23px; height: 23px; padding: 2px 3px 0; border-radius: 50%; border: 1px solid #ffedc3; background: #203d36; color: #fff9e8; box-shadow: 0 1px 3px #1c261980; font: 700 13px/17px var(--sans); }
.district-pin::after { content: ""; position: absolute; top: 31%; left: calc(50% - 1px); width: 2px; height: 8px; background: #203d36; }
.case-pin span { border-radius: 4px; padding-inline: 6px; white-space: nowrap; background: #55452b; }
.atlas-ready .landmark-pin { width: 24px; height: 24px; }
.landmark-pin::before { content: ""; width: 11px; height: 11px; transform: rotate(45deg); background: #803c26; border: 2px solid #fff1c9; box-shadow: 0 0 0 1px #472e1e; }
.landmark-pin:is(:hover, .is-selected)::before { background: #401e14; box-shadow: 0 0 0 2px #5b321f, 0 0 0 5px #fff1c9b3; }
.pin:hover, .pin.is-selected { z-index: 1; }
.district-pin:hover span, .district-pin.is-selected span { background: #86391c; }
.map-caption { display: flex; align-items: flex-start; gap: 14px; padding: 17px clamp(15px, 2vw, 25px) 6px; border-top: 1px solid #536559; }
.caption-rule { width: 26px; height: 1px; background: #c1a468; flex: none; margin-top: 12px; }
.map-caption h3 { font: 400 1.23rem/1.25 var(--serif); }
.map-caption p { margin: 3px 0; color: #e2e1d3; font: 400 .91rem/1.45 var(--sans); }
.map-help { display: none; color: #bcc9bc; margin: 0; padding: 6px clamp(14px, 2vw, 25px) 15px; font: 400 .74rem/1.5 var(--sans); }
.atlas-ready .map-help { display: block; }
.pointer-icon { color: #e2be7e; font-size: 1rem; margin-right: .45em; }
.map-index { padding-top: 4px; }
.map-index h2 { font: 400 clamp(1.45rem, 2.05vw, 1.9rem)/1.14 var(--serif); letter-spacing: -.035em; }
.visit h2 { margin: 5px 0 10px; font-size: clamp(1.9rem, 2.6vw, 2.35rem); }
.map-index p:not(.eyebrow, .code-example) { font: 400 1rem/1.5 var(--serif); color: #37453c; }
.map-index strong { font-weight: 700; }
.code-example { margin-top: 13px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #e9e5d7; border-left: 2px solid #a78950; font: 400 .79rem/1.45 var(--sans); }
.code-example strong { font: 650 1.18rem/1 monospace; color: #394c43; }
.case-example { margin-top: 12px; }
.case-example .inline-place { padding: 0; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.guide-group { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.districts { margin-top: 11px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 6px; }
.place { text-align: left; appearance: none; cursor: default; background: transparent; border: none; }
.atlas-ready .place { cursor: pointer; }
.district { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 4px 3px; border-radius: 2px; font: 550 .82rem/1.25 var(--sans); }
.key { display: grid; place-items: center; flex: 0 0 22px; height: 22px; background: #e1e6d9; border: 1px solid #afbaaa; color: #354c40; font: 600 .72rem/1 var(--sans); border-radius: 50%; }
.atlas-ready .place:hover, .place.is-selected { background-color: #e6e3d6; }
.place.is-selected .key { background: #27473d; color: white; }
.landmark-index { margin-top: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.landmark-place { display: flex; align-items: baseline; gap: 7px; min-height: 44px; padding: 9px 2px; font: 550 .84rem/1.3 var(--sans); border-top: 1px solid #d8d3c4; }
.address { min-width: 3ch; font: 600 .75rem/1.4 monospace; color: #77452d; }
footer { margin-top: clamp(30px, 4vw, 52px); padding: 21px 0 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; color: #536053; }
footer span span { padding-inline: .5em; color: #8f8976; }
@media (max-width: 930px) { .page-title { gap: 24px; } .intro { max-width: 290px; } .atlas { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 22px; } }
@media (max-width: 740px) {
  .mast-inner { min-height: 55px; }
  .brand { gap: 9px; } .brand span { font-size: 1.29rem; } .brand small { padding-left: 9px; font-size: .58rem; }
  .home-link { font-size: .72rem; }
  .page-title { display: block; padding-block: 29px 23px; }
  h1 { font-size: clamp(2.2rem, 9.5vw, 4.6rem); }
  .intro { max-width: 48ch; margin-top: 14px; line-height: 1.4; }
  .atlas { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .atlas-ready .map-field { height: clamp(330px, 57svh, 580px); }
  .map-bar { padding: 4px 10px 4px 14px; }
  .zoom-tools button { min-height: 42px; }
  .map-index { padding: 0; }
  .district { min-height: 44px; }
}
@media (max-width: 375px) {
  .mast-inner,.wrap { width: calc(100% - 24px); }
  .zoom-tools { gap: 0; } .zoom-tools button { min-width: 33px; } .zoom-tools .fit { padding-inline: 6px; margin-left: 3px; }
}
