/* Shared navigation and the shorter two-part history. */
.site-header nav { gap: .65rem 1.4rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.intro { padding-bottom: 1.8rem; }
.continue-story { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0; margin-top: 1.8rem; border-top: 1px solid var(--line); }
.continue-story h2 { font: 400 1.9rem/1.2 var(--serif); margin: 0 0 .65rem; }
.continue-story p:not(.eyebrow) { color: var(--muted); margin: 0; }
.story-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border: 1px solid var(--up); border-radius: 4px; color: var(--up); white-space: nowrap; text-decoration: none; }
.story-button:hover { background: #6bd5c412; }
.story-page { max-width: 1240px; }
.story-intro { padding: 2.5rem 0 0; }
.story-intro h1 { font-size: clamp(2.6rem, 4vw, 3.9rem); }
.story-intro > p:not(.eyebrow) { color: #c5d1da; max-width: 700px; margin: 1.2rem 0 1.5rem; }
.story-chapters { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.story-chapters a { min-height: 44px; display: inline-flex; align-items: center; }
.story-page #incorporation { padding-top: 2.2rem; }

/* The Leaflet map uses its container's width; no sideways page scrolling. */
.map-shell { overflow: hidden; background: #e5e9e7; isolation: isolate; }
#boundary-map.real-map { display: block; width: 100%; min-width: 0; height: 480px; background: #e5e9e7; }
.map-help { color: var(--muted); font-size: .8rem; margin-bottom: .75rem; }
.map-loading { position: absolute; left: 12px; right: 12px; bottom: 32px; z-index: 900; padding: .6rem .75rem; background: #102131e8; color: #fff; border-radius: 4px; font-size: .8rem; pointer-events: none; }
.map-loading[hidden] { display: none; }
.map-unavailable { padding: 1.5rem; color: #173044; }
.real-map .leaflet-control-zoom a { width: 42px; height: 42px; line-height: 42px; color: #183142; }
.real-map .leaflet-control-attribution { font-size: 10px; line-height: 1.4; padding: 3px 5px; color: #294658; background: #ffffffed; max-width: calc(100% - 12px); }
.real-map .leaflet-control-attribution a { color: #14527a; text-underline-offset: 2px; }
.real-map .city-map-label { background: #102131f0; border: 0; color: white; font: 600 12px/1.25 system-ui, sans-serif; box-shadow: 0 2px 8px #0003; padding: 5px 7px; }
.real-map .selected-map-label { border: 1px solid #efb762; color: #ffe1af; padding: 6px 9px; }
.real-map .selected-map-label.leaflet-tooltip-bottom::before { border-bottom-color: #efb762; }
.real-map .leaflet-popup-content-wrapper { color: #173044; background: #fff; border-radius: 5px; }
.real-map .leaflet-popup-content { font: 14px/1.5 system-ui, sans-serif; margin: 15px 18px; }
.city-popup p { margin: .4rem 0 .65rem; }
.city-popup strong { display: block; font-size: 16px; margin-bottom: .6rem; }
.city-popup .popup-history { line-height: 1.5; }
.city-popup .citation { color: #146957; }
.city-popup .popup-year { border-top: 1px solid #dbe4e8; padding-top: .6rem; color: #526b7b; font-size: 12px; }
.map-actions { display: flex; flex-wrap: wrap; gap: .4rem; flex-shrink: 0; }
.map-head > div:first-child { max-width: 460px; }
.map-head #map-summary { font-size: .8rem; line-height: 1.5; }
.place-buttons { margin-bottom: .6rem; }
#proposal-legend[hidden] { display: none; }
.real-map .leaflet-interactive:focus-visible { outline: 3px solid #0b1621; outline-offset: 3px; }
.map-legend .swatch.hp { background: #ba741b; }
.map-legend .swatch.up { background: #168a76; }
.map-legend .swatch.dallas { background: #627b92; }
.map-legend .swatch.proposal { background: #ce503a; }
.place-buttons button { min-height: 44px; }
@media (max-width: 760px) {
  .site-header nav { gap: .1rem 1.1rem; }
  .site-header { gap: .6rem; }
  .intro h1 { font-size: 2.4rem; }
  .map-panel { padding: .85rem; }
  #boundary-map.real-map { min-width: 0; height: 430px; }
  .map-head { align-items: flex-start; }
  .map-head .subtle-button { min-height: 44px; }
  .continue-story { align-items: flex-start; flex-direction: column; gap: 1.15rem; margin-top: 1rem; }
  .continue-story h2 { font-size: 1.7rem; }
  .story-intro { padding-top: 1.8rem; }
  .story-intro h1 { font-size: 2.4rem; }
  .story-intro h1 br { display: none; }
  .story-chapters { gap: .2rem 1rem; }
  .timeline-head { flex-wrap: wrap; }
  .timeline-head .step-actions { margin-left: auto; }
}
@media (max-width: 380px) {
  main { padding-left: .7rem; padding-right: .7rem; }
  #boundary-map.real-map { height: 410px; }
  .map-head { flex-wrap: wrap; }
}
