/* Layout: a field guide laid over survey paper. Condensed signage type for names, a reading serif
   for history, mono for anything measured (coordinates, miles, dates). One accent: copper patina. */
:root {
  --paper: #f2f3ee;
  --paper-2: #e6e8e0;
  --paper-3: #d9dcd2;
  --ink: #1b2220;
  --ink-2: #4b5551;
  --ink-3: #5f6762;
  --rule: #c7ccc1;
  --patina: #1d6a5d;
  --patina-ink: #f2f3ee;
  --patina-soft: #d3e3dd;
  --oxide: #9c4119;
  --oxide-soft: #f1ddd2;
  --map-land: #e9ebe3;
  --map-line: #b7bdb1;
  --on-photo: #f7f6f1;
  --shade: rgba(14, 18, 17, 0.62);

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --label: "Big Shoulders Text", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.75rem;
  --t-2xl: clamp(2rem, 4.5vw, 2.75rem);
  --t-3xl: clamp(2.75rem, 7vw, 5.25rem);
  --t-4xl: clamp(4rem, 15vw, 10rem);

  --wrap: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111614; --paper-2: #19201d; --paper-3: #222a27; --ink: #e4e8e2; --ink-2: #a7b0aa; --ink-3: #87918b;
    --rule: #2f3834; --patina: #62c1aa; --patina-ink: #0d1412; --patina-soft: #1b3330; --oxide: #e8875a; --oxide-soft: #3a231a;
    --map-land: #1b2220; --map-line: #3a4440; --shade: rgba(5, 8, 7, 0.66); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111614; --paper-2: #19201d; --paper-3: #222a27; --ink: #e4e8e2; --ink-2: #a7b0aa; --ink-3: #87918b;
  --rule: #2f3834; --patina: #62c1aa; --patina-ink: #0d1412; --patina-soft: #1b3330; --oxide: #e8875a; --oxide-soft: #3a231a;
  --map-land: #1b2220; --map-line: #3a4440; --shade: rgba(5, 8, 7, 0.66); color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--patina); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; font: 600 var(--t-sm) var(--label); }
.skip:focus { top: 8px; }

picture { display: contents; } /* deploy builds wrap images in <picture> for AVIF; keep layouts as if it weren't there */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 var(--t-xs)/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; }
.h2 { font: 800 var(--t-2xl)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.h3 { font: 700 var(--t-lg)/1.15 var(--label); text-transform: uppercase; letter-spacing: 0.03em; }
.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head p { max-width: 56ch; color: var(--ink-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand .brand-badge { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: block; }
.site-footer .brand .brand-badge { width: 72px; height: 72px; }
.brand b { font: 800 1.45rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.brand b span { color: var(--patina); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a, .nav button {
  font: 600 1rem/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  background: none; border: 0; padding: 10px 12px; border-radius: 3px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav button:hover, .nav [aria-expanded="true"], .nav [aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav button svg { width: 10px; height: 10px; transition: transform .2s; }
.nav [aria-expanded="true"] svg { transform: rotate(180deg); }
.header-search { margin-left: auto; position: relative; flex: 0 1 280px; min-width: 0; }
.header-search input {
  width: 100%; font: 400 var(--t-sm) var(--mono); color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: 3px; padding: 9px 12px 9px 34px;
}
.header-search input::placeholder { color: var(--ink-3); }
.header-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 3px; width: 42px; height: 38px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

.mega { border-top: 1px solid var(--rule); background: var(--paper); box-shadow: 0 18px 30px -24px rgba(0,0,0,.35); }
.mega .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; padding-block: 24px 28px; height: auto; align-items: start; }
.state-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 16px; }
.state-grid li { min-width: 0; }
.state-grid a, .state-grid span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 5px 0; font: 500 0.95rem/1.3 var(--label); letter-spacing: 0.02em; text-decoration: none; color: var(--ink-3); border-bottom: 1px dotted var(--rule); }
.state-grid a { color: var(--ink); font-weight: 700; }
.state-grid a:hover { color: var(--patina); }
.state-grid em { font: 500 var(--t-xs) var(--mono); font-style: normal; color: var(--patina); }
.mega-note { font-size: var(--t-sm); color: var(--ink-2); display: grid; gap: 10px; }

.drawer { border-top: 1px solid var(--rule); background: var(--paper); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.drawer .wrap { display: grid; gap: 18px; padding-block: 18px 28px; height: auto; }
.drawer nav { display: grid; }
.drawer nav a { font: 700 1.25rem/1 var(--label); text-transform: uppercase; letter-spacing: 0.05em; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }

/* ---------- breadcrumb ---------- */
.crumbs { font: 500 var(--t-xs)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding-block: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--patina); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- chips & buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font: 700 0.72rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 7px 4px; border: 1px solid currentColor; border-radius: 2px; color: var(--ink-2); white-space: nowrap; background: var(--paper);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--open { color: var(--patina); }
.chip--closed { color: var(--oxide); }
.chip--living { color: var(--ink-2); }
.chip--ruins { color: var(--ink-3); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 700 0.95rem/1 var(--label); letter-spacing: 0.07em; text-transform: uppercase;
  padding: 12px 16px; border-radius: 3px; border: 1px solid var(--patina); background: var(--patina); color: var(--patina-ink); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink-2); filter: none; }
.btn svg { width: 14px; height: 14px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px 20px; }
.card { display: grid; grid-template-rows: auto 1fr; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); max-width: 100%; position: relative; }
.card figure svg.minimap { width: 100%; height: 100%; display: block; }
.minimap .state { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.minimap .pin { fill: var(--oxide); stroke: var(--paper); stroke-width: 2; vector-effect: non-scaling-stroke; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a.card:hover figure img { transform: scale(1.04); }
.card .live { position: absolute; top: 10px; left: 10px; background: var(--patina); color: var(--patina-ink); font: 700 0.7rem/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 7px 4px; border-radius: 2px; }
.card-body { display: grid; gap: 6px; align-content: start; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 { font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
a.card:hover h3 { color: var(--patina); }
.card .where { font: 500 var(--t-xs) var(--mono); color: var(--ink-2); letter-spacing: 0.04em; white-space: nowrap; }
.card p { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); margin-top: 0; font-size: var(--t-sm); }
.site-footer .wrap { padding-block: 48px 28px; display: grid; gap: 32px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 28px; }
.foot-cols h4 { font: 700 0.85rem/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink-2); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--patina); }
.foot-cols .soon { color: var(--ink-3); }
.foot-social { margin: 12px 0 0; color: var(--ink-2); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-2); font: 400 var(--t-xs)/1.5 var(--mono); }

/* ---------- home ---------- */
.hero-photo { position: relative; isolation: isolate; color: var(--on-photo); background: #1a1c1a; overflow: hidden; }
.hero-photo > img, .hero-photo > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,11,.15) 0%, rgba(10,12,11,.25) 40%, rgba(10,12,11,.82) 100%); }
.hero-photo .wrap { padding-block: clamp(120px, 22vw, 260px) clamp(32px, 5vw, 56px); display: grid; gap: 20px; }
.hero-photo .eyebrow { color: rgba(247,246,241,.8); }
/* a soft shadow keeps the text readable over the lighter hero photos (Kennecott's sky, Thurmond's depot) */
.hero-photo .eyebrow, .hero-photo h1, .hero-photo .lede, .hero-photo .quick > span, .hero-photo .photo-credit { text-shadow: 0 1px 2px rgba(10,12,11,.5), 0 0 18px rgba(10,12,11,.55); }
.hero-photo .eyebrow a { color: inherit; text-decoration-color: rgba(247,246,241,.45); text-underline-offset: 3px; }
.hero-photo .eyebrow a:hover { color: var(--on-photo); }
/* the dots' photos (assets/site.js) cross-fade; the fade is on the img, since opacity on the picture would lift it over the text */
.hero-photo > img, .hero-photo > picture > img { transition: opacity .6s ease; }
.hero-photo > img.is-off, .hero-photo > picture.is-off > img { opacity: 0; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.hero-dots { display: flex; margin-right: -8px; }
.hero-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(247,246,241,.8); transition: background-color .2s; }
.hero-dots button:hover::before { background: rgba(247,246,241,.45); }
.hero-dots button[aria-current="true"]::before { background: var(--on-photo); border-color: var(--on-photo); }
.hero-dots button:focus-visible { outline: 2px solid var(--on-photo); outline-offset: -3px; border-radius: 50%; }
.hero-photo h1 { font-size: var(--t-3xl); max-width: 12ch; }
.hero-photo .lede { color: rgba(247,246,241,.88); }
.hero-search { display: flex; gap: 8px; max-width: 560px; margin-top: 4px; }
.hero-search input { flex: 1; min-width: 0; font: 400 1rem var(--mono); padding: 14px 16px; border-radius: 3px; border: 1px solid rgba(247,246,241,.4); background: rgba(12,14,13,.55); color: var(--on-photo); }
.hero-search input::placeholder { color: rgba(247,246,241,.6); }
.hero-search .btn { border-color: var(--on-photo); background: var(--on-photo); color: #141816; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 var(--t-xs) var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247,246,241,.75); }
.quick a { color: var(--on-photo); border: 1px solid rgba(247,246,241,.35); padding: 6px 9px; border-radius: 2px; text-decoration: none; }
.quick a:hover { background: rgba(247,246,241,.12); }
.photo-credit { font: 400 0.68rem/1.3 var(--mono); color: rgba(247,246,241,.6); }
.photo-credit a { color: inherit; }

.states { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.states-intro { display: grid; gap: 18px; }
.usmap { width: 100%; height: auto; }
.usmap path { fill: var(--map-land); stroke: var(--paper); stroke-width: 1; transition: fill .15s; }
.usmap .st-live path { fill: var(--patina); }
.usmap a:hover path, .usmap a:focus path { fill: var(--oxide); }
.usmap .pin { fill: var(--oxide); stroke: var(--paper); stroke-width: 1.5; }
.usmap .pin-label { font: 600 11px var(--label); fill: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.usmap .st-label { font: 800 15px var(--display); fill: var(--patina-ink); letter-spacing: 0.06em; pointer-events: none; }
.map-caption { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 var(--t-xs) var(--mono); color: var(--ink-2); margin-top: 10px; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 10px; height: 10px; display: inline-block; border-radius: 1px; }

.guide-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: g; }
.guide-cols article { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--ink); padding-top: 16px; }
.guide-cols p { color: var(--ink-2); font-size: 0.98rem; }


/* ---------- fact sheet ---------- */
.sheet { border: 1px solid var(--ink); background: var(--paper); font-size: var(--t-sm); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 600 var(--t-xs)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.sheet dl { margin: 0; display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); }
.sheet dt, .sheet dd { padding: 9px 14px; border-bottom: 1px solid var(--rule); margin: 0; }
.sheet dt { font: 500 0.68rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-top: 11px; }
.sheet dd { font-family: var(--serif); line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.sheet dd.mono { font-family: var(--mono); font-size: 0.82rem; }
.sheet dl > :nth-last-child(-n+2) { border-bottom: 0; }
.sheet .status { color: var(--oxide); font-weight: 600; }
.copy { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 1px solid var(--rule); color: var(--ink-2); padding: 4px 6px; border-radius: 2px; cursor: pointer; margin-left: 6px; vertical-align: 1px; }
.copy:hover { border-color: var(--ink-2); color: var(--ink); }
.sheet-foot { padding: 9px 14px; border-top: 1px solid var(--rule); font: 400 0.68rem/1.4 var(--mono); color: var(--ink-3); letter-spacing: 0.03em; }

/* ---------- state hub ---------- */
.hub-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; padding-block: 12px 56px; }
.hub-hero-copy { display: grid; gap: 20px; padding-top: 12px; }
.hub-hero h1 { font-size: var(--t-3xl); }
.hub-hero .body { display: grid; gap: 14px; color: var(--ink); max-width: 58ch; }
.stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--rule); }
.stats div { padding: 12px 16px; display: grid; gap: 2px; border-right: 1px solid var(--rule); flex: 1 1 100px; }
.stats div:last-child { border-right: 0; }
.stats b { font: 800 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.stats span { font: 500 0.68rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

.mapcard { border: 1px solid var(--rule); background: var(--paper); display: grid; }
.mapcard-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.mapcard-bar label { font: 500 var(--t-xs) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
select, .field {
  font: 400 var(--t-sm) var(--mono); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px; max-width: 100%;
}
.azmap-wrap { position: relative; padding: 12px; }
.azmap { width: 100%; height: auto; max-height: 72vh; display: block; margin-inline: auto; }
.azmap .county { fill: var(--map-land); stroke: var(--map-line); stroke-width: 0.8; transition: fill .2s, opacity .2s; }
.azmap .county.on { fill: var(--patina-soft); stroke: var(--patina); }
.azmap.filtered .county:not(.on) { opacity: .55; }
.azmap .state { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.azmap .dot { fill: var(--ink); stroke: var(--paper); stroke-width: 0.8; cursor: pointer; transition: opacity .2s; }
.azmap .dot:hover, .azmap .dot:focus { fill: var(--oxide); outline: none; }
.azmap.filtered .dot.off { opacity: .12; }
.azmap .dot.guide { fill: var(--oxide); }
.azmap .guide-ring { fill: none; stroke: var(--oxide); stroke-width: 1.5; pointer-events: none; }
.azmap .city { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.2; }
.azmap .city-label { font: 500 10.5px var(--mono); fill: var(--ink-2); paint-order: stroke; stroke: var(--map-land); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.azmap .county-label { font: 600 9.5px var(--label); letter-spacing: 0.14em; fill: var(--ink-3); text-transform: uppercase; pointer-events: none; }
.azmap .guide-label { font: 800 15px var(--display); fill: var(--oxide); letter-spacing: 0.04em; paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--paper); padding: 7px 9px; border-radius: 2px; font: 500 var(--t-xs)/1.35 var(--mono); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.tip b { font: 700 0.95rem/1.1 var(--label); letter-spacing: 0.04em; text-transform: uppercase; display: block; }
.picked { border-top: 1px solid var(--rule); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: var(--t-sm); min-height: 48px; }
.picked b { font: 700 1.1rem/1 var(--label); text-transform: uppercase; letter-spacing: 0.04em; }
.picked .mono { font-size: var(--t-xs); color: var(--ink-2); }

.near { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.near section { border: 1px solid var(--rule); background: var(--paper); }
.near h3 { padding: 14px 16px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.near h3 small { font: 500 var(--t-xs) var(--mono); letter-spacing: 0.06em; color: var(--ink-2); text-transform: none; }
.near ol { list-style: none; margin: 0; padding: 0; }
.near li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.near li:last-child { border-bottom: 0; }
.near li span { font-weight: 600; }
.near li a { color: var(--patina); }
.near .mono { font-size: 0.8rem; color: var(--ink-2); text-align: right; }

.dir-tools { display: grid; gap: 14px; margin-bottom: 18px; }
.dir-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dir-search .field { flex: 1 1 260px; padding: 11px 12px; font-size: var(--t-base); }
.dir-count { font: 500 var(--t-xs) var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.county-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.county-chips button { font: 600 0.82rem/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); border-radius: 2px; cursor: pointer; }
.county-chips button span { font: 400 0.7rem var(--mono); margin-left: 4px; color: var(--ink-3); }
.county-chips button:hover { border-color: var(--ink-2); color: var(--ink); }
.county-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.county-chips button[aria-pressed="true"] span { color: var(--paper-3); }
.letters { display: flex; flex-wrap: wrap; gap: 2px; font: 600 var(--t-sm) var(--mono); }
.letters a { padding: 4px 7px; text-decoration: none; color: var(--ink-2); border-radius: 2px; }
.letters a:hover { background: var(--paper-2); color: var(--ink); }
.directory { columns: 4 220px; column-gap: 28px; }
.directory section { break-inside: avoid; margin-bottom: 18px; }
.directory h3 { font: 800 1.5rem/1 var(--display); color: var(--patina); border-bottom: 1px solid var(--rule); padding-bottom: 4px; margin-bottom: 6px; }
.directory ul { list-style: none; margin: 0; padding: 0; }
.directory li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 3px 0; font-size: 0.95rem; line-height: 1.3; }
.directory li small { font: 400 0.68rem var(--mono); color: var(--ink-3); white-space: nowrap; letter-spacing: 0.02em; }
.directory li .aka { display: block; font: italic 400 0.78rem var(--serif); color: var(--ink-3); }
.directory li a { font-weight: 600; color: var(--patina); }
.directory li a::after { content: " →"; }
.dir-empty { padding: 20px 0; color: var(--ink-2); }

.tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tips article { display: grid; gap: 8px; align-content: start; }
.tips .num { font: 500 var(--t-xs) var(--mono); color: var(--oxide); letter-spacing: 0.1em; }
.tips p { font-size: 0.95rem; color: var(--ink-2); }

.faq { display: grid; gap: 0; border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 700 1.2rem/1.25 var(--label); letter-spacing: 0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.5rem/1 var(--mono); color: var(--patina); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; display: grid; gap: 10px; }

.sources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; font-size: var(--t-sm); }
.sources ol, .sources ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
.sources a { color: var(--ink); }
.note { font: 400 var(--t-xs)/1.5 var(--mono); color: var(--ink-3); }

/* ---------- town page ---------- */
.town-hero { position: relative; isolation: isolate; color: var(--on-photo); background: #191b19; overflow: hidden; }
.town-hero > img, .town-hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.town-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,11,.35) 0%, rgba(10,12,11,.1) 35%, rgba(10,12,11,.85) 100%); }
.town-hero .wrap { padding-block: clamp(150px, 26vw, 300px) 28px; display: grid; gap: 12px; }
.town-hero .crumbs { color: rgba(247,246,241,.8); padding: 0; }
.town-hero .crumbs [aria-current] { color: var(--on-photo); }
.town-hero .crumbs li + li::before { color: rgba(247,246,241,.5); }
.town-hero h1 { font-size: var(--t-4xl); line-height: 0.82; }
.town-hero .dek { font-size: var(--t-lg); line-height: 1.45; max-width: 52ch; color: rgba(247,246,241,.9); }
.town-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: end; }
.town-hero .coords { font: 500 var(--t-sm) var(--mono); letter-spacing: 0.06em; color: rgba(247,246,241,.85); }

.alert { background: var(--oxide-soft); border-bottom: 1px solid var(--oxide); color: var(--ink); }
.alert .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding-block: 16px; }
.alert-badge { font: 700 0.8rem/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); background: var(--oxide); padding: 7px 9px 6px; border-radius: 2px; white-space: nowrap; margin-top: 2px; }
.alert p { font-size: 0.98rem; max-width: 90ch; }

.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { font: 600 0.9rem/1 var(--label); letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 14px 12px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-bottom-color: var(--patina); }

.town-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding-block: 40px 24px; }
.town-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 64px); display: grid; gap: 16px; }
.prose { display: grid; gap: 56px; min-width: 0; }
.prose section { display: grid; gap: 16px; min-width: 0; scroll-margin-top: calc(var(--header-h) + 60px); }
.prose p { max-width: 68ch; }
.prose h2 { font: 800 var(--t-2xl)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.prose .kicker { font: 500 var(--t-xs) var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--oxide); }
.prose .first::first-letter { font: 800 4.4em/0.8 var(--display); float: left; margin: 0.06em 0.08em 0 0; color: var(--patina); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); margin-left: 6px; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 10px 0 10px 22px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 17px; width: 9px; height: 9px; background: var(--paper); border: 1.5px solid var(--ink-2); border-radius: 50%; }
.timeline li.mark::before { background: var(--oxide); border-color: var(--oxide); }
.timeline time { font: 500 var(--t-sm)/1.6 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.timeline span { line-height: 1.5; }

.pull { border-left: 3px solid var(--oxide); padding: 4px 0 4px 18px; font: italic 400 1.3rem/1.45 var(--serif); color: var(--ink); max-width: 56ch; }

.remains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.remains li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 10px; align-items: baseline; padding-right: 12px; }
.remains li::before { content: "▲"; font-size: 0.6rem; color: var(--patina); transform: translateY(-2px); }

.shots { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.shots li { padding: 10px 0; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.shots b { font-weight: 600; margin-right: 4px; }
.prose section > .h3 { margin-top: 12px; }

.visits { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.visit { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.visit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.visit-head .mono { font-size: var(--t-xs); color: var(--ink-2); }
.visit-road { font-size: var(--t-sm); color: var(--ink-2); }
.visit-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.share { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--rule); background: var(--paper-2); max-width: 760px; scroll-margin-top: calc(var(--header-h) + 60px); }
.share label { display: grid; gap: 6px; font: 600 var(--t-xs)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.share label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); }
.share input:not([type=checkbox]):not([type=file]), .share select, .share textarea { font: 400 1rem/1.4 var(--serif); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 9px 10px; width: 100%; text-transform: none; letter-spacing: 0; }
.share textarea { resize: vertical; }
.share .cf-turnstile { min-height: 65px; }  /* the widget's height, held before site.js loads it so the send button doesn't move */
.share input[type=file] { font: 400 var(--t-sm) var(--serif); text-transform: none; letter-spacing: 0; }
.share .check { grid-template-columns: auto minmax(0, 1fr); align-items: start; font: 400 var(--t-sm)/1.45 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); }
.share .check input { margin-top: 3px; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.share-send { display: grid; gap: 10px; justify-items: start; }
.share .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.share-thanks { display: none; padding: 12px 16px; border-left: 3px solid var(--patina); background: var(--paper-2); font-weight: 600; }
.share-thanks:target { display: block; }
@media (max-width: 560px) { .share-row { grid-template-columns: minmax(0, 1fr); } .share { padding: 14px; } }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
figure.fig { margin: 0; display: grid; gap: 8px; min-width: 0; }
figure.fig img { width: 100%; border: 1px solid var(--rule); background: var(--paper-2); }
figure.fig figcaption { font: 400 var(--t-xs)/1.5 var(--mono); color: var(--ink-2); }
figure.fig figcaption b { color: var(--ink); font-weight: 600; }
.story { display: grid; gap: 20px; margin-top: 20px; }
.story > p { margin: 0; }

.routes-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.route-btn { flex: 1 1 220px; text-align: left; display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 3px; cursor: pointer; font: inherit; }
.route-btn b { font: 700 1.05rem/1.1 var(--label); letter-spacing: 0.05em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.route-btn b i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.route-btn span { font: 500 var(--t-xs) var(--mono); color: var(--ink-2); }
.route-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.areamap { position: relative; border: 1px solid var(--rule); overflow: hidden; background: var(--paper-2); }
.areamap[hidden] { display: none; }
.areamap img { width: 100%; }
.areamap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.areamap .rt { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, stroke-width .2s; }
.areamap .rt-casing { stroke: #fff; stroke-width: 16; opacity: .9; }
.areamap .rt-nogales { stroke: #b4441a; stroke-width: 8; }
.areamap .rt-tucson { stroke: #1d6a5d; stroke-width: 8; }
.areamap .rt-group { transition: opacity .2s; }
.areamap .rt-group.dim { opacity: .28; }
.areamap .pl-dot { fill: #1b2220; stroke: #fff; stroke-width: 3; }
.areamap .pl-ruby { fill: #b4441a; stroke: #fff; stroke-width: 5; }
.areamap .pl-label { font: 600 30px "Big Shoulders Text", "Arial Narrow", sans-serif; letter-spacing: 1.5px; text-transform: uppercase; fill: #1b2220; paint-order: stroke; stroke: #fff; stroke-width: 8px; stroke-linejoin: round; }
.areamap .pl-big { font: 800 52px "Big Shoulders Display", "Arial Narrow", sans-serif; fill: #b4441a; }
.areamap .offmap { font: 500 26px "IBM Plex Mono", monospace; fill: #1d6a5d; paint-order: stroke; stroke: #fff; stroke-width: 7px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.steps li::before { content: counter(s); font: 600 var(--t-sm) var(--mono); color: var(--paper); background: var(--ink); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.steps .mono { font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap; }
.route-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 var(--t-sm) var(--mono); color: var(--ink-2); }
.route-sum b { color: var(--ink); font-weight: 600; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.callout { border: 1px solid var(--rule); background: var(--paper-2); padding: 16px 18px; display: grid; gap: 10px; }
.callout ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.97rem; }
.callout h3 { font: 700 1rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; }

.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gallery button { padding: 0; border: 0; background: var(--paper-3); cursor: zoom-in; display: block; overflow: hidden; position: relative; aspect-ratio: 4 / 3; max-width: 100%; grid-column: span 2; }
.gallery button.wide { grid-column: span 4; aspect-ratio: auto; }
.gallery button.wide img { height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; text-align: left; color: #f7f6f1; font: 500 0.72rem/1.3 var(--mono); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 94vh; color: #f7f6f1; }
dialog.lightbox::backdrop { background: rgba(8,10,9,.88); }
dialog.lightbox figure { margin: 0; display: grid; gap: 10px; }
dialog.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin-inline: auto; }
dialog.lightbox figcaption { font: 400 var(--t-xs)/1.5 var(--mono); color: #d8dbd4; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
dialog.lightbox figcaption a { color: inherit; }
dialog.lightbox:not(.single) img { cursor: pointer; }
dialog.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; display: grid; place-items: center; padding: 0; background: rgba(20,24,22,.55); color: #f7f6f1; border: 0; border-radius: 3px; cursor: pointer; }
dialog.lightbox .lb-nav:hover, dialog.lightbox .lb-nav:focus-visible { background: rgba(20,24,22,.9); }
dialog.lightbox .lb-nav svg { width: 24px; height: 24px; }
dialog.lightbox .lb-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
dialog.lightbox .lb-next { right: max(10px, env(safe-area-inset-right, 0px)); }
dialog.lightbox.single .lb-nav { display: none; }
dialog.lightbox .close { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); background: #f7f6f1; color: #141816; border: 0; border-radius: 3px; font: 700 0.85rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 12px; cursor: pointer; }

.nearby { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0 24px; border-top: 1px solid var(--rule); }
.nearby li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.nearby li span { font-weight: 600; }
.nearby li small { font: 400 var(--t-xs) var(--mono); color: var(--ink-2); white-space: nowrap; }

.credits { font: 400 var(--t-xs)/1.5 var(--mono); color: var(--ink-2); display: grid; gap: 4px; margin: 0; padding-left: 1.2em; }
.credits a { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-search { display: none; }
  .menu-btn { display: inline-flex; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .tips { grid-template-columns: 1fr 1fr; }
  .town-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .town-aside { position: static; order: -1; }
  .near { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .states, .hub-hero, .sources { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .guide-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mega .wrap { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery button, .gallery button.wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .gallery button.wide img { height: 100%; }
}
@media (max-width: 560px) {
  :root { --header-h: 56px; }
  .brand b { font-size: 1.2rem; }
  .site-header .brand .brand-badge { width: 38px; height: 38px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .tips { grid-template-columns: minmax(0, 1fr); }
  .hero-search { flex-direction: column; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .steps li { grid-template-columns: 34px minmax(0, 1fr); }
  .steps .mono { grid-column: 2; }
  .stats div { flex-basis: 33%; }
  .alert .wrap { grid-template-columns: minmax(0, 1fr); }
  .directory { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- additions: alerts, archive gallery, record gaps ---------- */
.hero-search > svg { display: none; }
.alert--open { background: var(--patina-soft); border-bottom-color: var(--patina); }
.alert--open .alert-badge { background: var(--patina); color: var(--patina-ink); }
.alert--unknown { background: var(--paper-2); border-bottom-color: var(--ink-3); }
.alert--unknown .alert-badge { background: var(--ink-2); color: var(--paper); }
.town-hero--map > img, .town-hero--map > picture > img { filter: saturate(.6) contrast(1.05); }
.archive { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.archive-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.gallery--archive { grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); }
.gallery--archive button { grid-column: auto; aspect-ratio: 4 / 3; }
.gallery--archive button span { font-size: 0.66rem; padding: 14px 7px 6px; }
dialog.lightbox img.small { width: min(640px, 90vw); max-height: 70vh; object-fit: contain; image-rendering: auto; }
.gaps .gaplist { list-style: none; margin: 0; padding: 6px 14px; display: grid; gap: 0; }
.gaps .gaplist li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dotted var(--rule); color: var(--ink-2); font-size: 0.9rem; }
.gaps .gaplist li:last-child { border-bottom: 0; }
.gaps .gaplist li::before { content: "○"; font: 600 0.8rem var(--mono); color: var(--oxide); width: 12px; }
.gaps .gaplist li.ok { color: var(--ink); }
.gaps .gaplist li.ok::before { content: "✓"; color: var(--patina); }
.suggest { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px 0; background: var(--paper); border: 1px solid var(--ink-2); border-radius: 3px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.45); color: var(--ink); max-height: 340px; overflow-y: auto; }
.suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; cursor: pointer; font-size: 0.95rem; align-items: baseline; }
.suggest li b { font: 700 1rem/1.2 var(--label); letter-spacing: 0.03em; text-transform: uppercase; }
.suggest li b:has(.type-glyph) { display: flex; align-items: center; gap: 6px; }
.suggest li b .type-glyph { position: static; flex: none; transform: none; }
.suggest li small { font: 400 var(--t-xs) var(--mono); color: var(--ink-2); text-align: right; min-width: 0; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--paper-2); }
.suggest li.none { color: var(--ink-2); cursor: default; font: 400 var(--t-sm) var(--mono); }
.hero-search { position: relative; }
.drawer .header-search, .info .header-search { display: block; max-width: none; flex: none; }
.home-states { margin-top: 36px; }
.home-states .state-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 1100px) { .cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gallery button.wide { aspect-ratio: 8 / 3; }
.gallery button.wide img { height: 100%; }
.nearby { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.nearby li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.town-hero--map::after { background: linear-gradient(180deg, rgba(10,12,11,.45) 0%, rgba(10,12,11,.25) 35%, rgba(10,12,11,.88) 100%); }
.town-hero--map > img, .town-hero--map > picture > img { filter: saturate(.75); object-position: 50% 50%; }
@media (max-width: 860px) {
  .gallery button.wide { aspect-ratio: 4 / 3; }
  .gallery:not(.gallery--archive) button:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 8 / 3; }
}
/* ---------- internal: photographers ---------- */
.ph-list { display: grid; border-top: 1px solid var(--ink); }
.ph-contact-filter { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: .9rem; }
.ph-contact-filter input { accent-color: var(--patina); width: 18px; height: 18px; }
.ph { display: grid; grid-template-columns: 96px minmax(0, 1fr) 88px; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.ph-thumb { width: 96px; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-none { color: var(--ink-3); font: 400 1.2rem var(--mono); }
.ph-main { display: grid; gap: 6px; min-width: 0; }
.ph-main h3 { font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.ph-main .aka { font: italic 400 .85rem var(--serif); color: var(--ink-3); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ph-bio { font-size: .9rem; color: var(--ink-2); max-width: 80ch; }
.ph-towns, .ph-links { font-size: .9rem; }
.ph-links a, .ph-towns a { color: var(--patina); }
.ph-nums { display: grid; grid-template-columns: auto; justify-items: end; text-align: right; }
.ph-nums b { font: 800 1.8rem/1 var(--display); font-variant-numeric: tabular-nums; }
.ph-nums span { font: 500 .66rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.org-list li span { white-space: normal; }
@media (max-width: 560px) { .ph { grid-template-columns: 64px minmax(0, 1fr); } .ph-thumb { width: 64px; } .ph-nums { grid-column: 2; display: flex; gap: 6px 10px; align-items: baseline; justify-items: start; } .ph-nums span { margin: 0 8px 0 0; } }
/* ---------- homepage Route 66 feature ---------- */
.home-route66 { background: var(--paper-2); }
.route66-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.route66-copy p { max-width: 52ch; }
.route66-shield { display: block; width: clamp(144px, 20vw, 240px); margin-bottom: 20px; }
.route66-shield img { display: block; width: 100%; height: auto; }
.route66-copy .btn { margin-top: 12px; }
.route66-photo { margin: 0; }
.route66-photo > a { display: block; }
.route66-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.route66-photo figcaption { margin-top: 8px; font: 400 .7rem/1.5 var(--mono); color: var(--ink-2); }
.guide-directory .guide-group { margin-top: 36px; scroll-margin-top: 90px; }
.guide-map-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.guide-map-controls label { font-family: var(--label); }
.guide-map-controls select { max-width: 100%; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; }
.guide-map-frame { position: relative; border: 1px solid var(--rule); background: var(--paper-2); }
.guide-map { display: block; width: 100%; aspect-ratio: 975 / 610; }
.guide-map path { fill: var(--map-land); stroke: var(--paper); stroke-width: 1; vector-effect: non-scaling-stroke; }
.guide-map [data-guide-state] path { fill: var(--patina); fill-opacity: .2; }
.guide-map [data-guide-state]:hover path, .guide-map [data-guide-state]:focus path { fill-opacity: .5; }
.guide-map-hit { fill: transparent; }
.guide-map-dot { fill: var(--oxide); stroke: var(--paper); stroke-width: .7; vector-effect: non-scaling-stroke; pointer-events: none; }
.guide-map-town:hover .guide-map-dot, .guide-map-town:focus .guide-map-dot { fill: var(--ink); stroke-width: 2; }
@media (max-width: 760px) { .route66-feature { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- town guides on the homepage and hubs ---------- */
.guide-more { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 16px; }
.guide-more summary { cursor: pointer; font: 600 var(--t-sm)/1.4 var(--sans, inherit); }
.guide-list { list-style: none; margin: 12px 0 0; padding: 0; columns: 13rem auto; column-gap: 24px; }
.guide-list li { break-inside: avoid; padding: 3px 0; }
.guide-group { margin-top: 18px; }
.guide-group .h3 { margin: 0; }
.guide-group .muted { font-weight: 400; }

/* ---------- promo video ---------- */
.promo-band { background: var(--paper-2); border-top: 1px solid var(--rule); }
.promo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.promo-copy { display: grid; gap: 14px; }
.promo-fig { margin: 0; display: grid; gap: 8px; min-width: 0; }
.promo-fig video { width: 100%; height: auto; aspect-ratio: 16 / 9; max-width: 100%; display: block; background: #111614; border: 1px solid var(--rule); }
/* a YouTube video: its thumbnail (4:3 with bars, cropped to 16:9) and a play button until site.js swaps in the player */
.promo-fig .yt, .promo-fig iframe { width: 100%; aspect-ratio: 16 / 9; display: block; background: #111614; border: 1px solid var(--rule); }
.promo-fig .yt { position: relative; overflow: hidden; }
.promo-fig .yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-fig .yt-btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: var(--patina); color: var(--patina-ink); box-shadow: 0 2px 12px rgba(0, 0, 0, .45); transition: background .15s; }
.promo-fig .yt:hover .yt-btn, .promo-fig .yt:focus-visible .yt-btn { background: var(--ink); }
@media (max-width: 860px) { .promo { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
/* a hub with a vertical cut shows it on phones and the horizontal one on wider screens */
.promo-fig .promo-v { display: none; aspect-ratio: 9 / 16; width: min(100%, 440px); justify-self: center; }
@media (max-width: 860px) { .promo-fig--dual .promo-h { display: none; } .promo-fig--dual .promo-v { display: block; } }
/* ---------- weather box ---------- */
.wx .wx-now { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; align-items: center; }
.wx-ico { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wx-next .wx-ico { width: 22px; height: 22px; }
.wx-now div { display: grid; gap: 2px; min-width: 0; }
.wx-temp { font: 800 2.6rem/0.9 var(--display); font-variant-numeric: tabular-nums; }
.wx-name { font: 700 0.95rem/1.1 var(--label); letter-spacing: .05em; text-transform: uppercase; }
.wx-short { font-size: 0.92rem; line-height: 1.35; }
.wx-wind { font: 400 0.72rem/1.4 var(--mono); color: var(--ink-2); }
.wx-warn { margin: 0 14px 12px; padding: 8px 10px; background: var(--oxide-soft); border-left: 3px solid var(--oxide); font-size: 0.88rem; }
.wx-next { list-style: none; margin: 0; padding: 0 14px 10px; display: grid; }
.wx-next li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.wx-next li span { font: 600 0.85rem var(--label); letter-spacing: .04em; text-transform: uppercase; }
.wx-next li b { font: 600 0.9rem var(--mono); font-variant-numeric: tabular-nums; }
.wx-next li small { grid-column: 2 / -1; font-size: 0.8rem; color: var(--ink-2); line-height: 1.3; }
.wx-empty { padding: 14px; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- historic maps ---------- */
.hmap { display: grid; gap: 10px; }
.hmap-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hmap-tabs button { display: grid; gap: 2px; text-align: left; padding: 8px 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 3px; cursor: pointer; font: inherit; }
.hmap-tabs button b { font: 800 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; }
.hmap-tabs button span { font: 400 0.68rem var(--mono); color: var(--ink-2); }
.hmap-tabs button[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper-2); }
.hmap img { width: 100%; height: auto; background: var(--paper-2); }

/* record pages (build_records): a lighter head and a pinned USGS map */
.record-head { padding-block: 8px 28px; display: grid; gap: 10px; border-bottom: 1px solid var(--rule); }
.record-head .dek { font-size: var(--t-lg); color: var(--ink-2); max-width: 60ch; margin: 0; }
.record-map-box { position: relative; }
.record-map-box img { width: 100%; height: auto; display: block; }
.record-pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--oxide); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.35); }
blockquote.wiki { margin: 0 0 16px; padding: 14px 18px; border-left: 3px solid var(--rule); background: var(--paper-2); }
blockquote.wiki p { margin: 0 0 8px; }
blockquote.wiki footer { font: 400 var(--t-xs)/1.5 var(--mono); color: var(--ink-3); }
.sheet-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: var(--t-sm); }
.sheet-list b { font-family: var(--mono); margin-right: 8px; }

/* state maps: popular pins at state scale, every site once a county is zoomed (assets/site.js) */
.azmap .county { cursor: pointer; vector-effect: non-scaling-stroke; }
.azmap .county:hover { fill: var(--patina-soft); }
.azmap .county:focus-visible { outline: none; stroke: var(--patina); stroke-width: 2.5; }
.azmap .state { vector-effect: non-scaling-stroke; pointer-events: none; }
.azmap .dot { vector-effect: non-scaling-stroke; }
.azmap .dot:not(.top) { fill: var(--ink-2); opacity: .5; pointer-events: none; }
.azmap .dot.top { stroke-width: 1.5; }
.azmap .top-ring { fill: none; stroke: var(--oxide); stroke-width: 1.5; pointer-events: none; }
.azmap .top-label { font: 800 15px var(--display); fill: var(--ink); letter-spacing: 0.04em; paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.azmap .dot.top.guide + .top-ring + .top-label, .azmap .top-label { fill: var(--oxide); }
.azmap.zoomed .top-ring, .azmap.zoomed .top-label, .azmap.zoomed .county-label, .azmap.zoomed .city, .azmap.zoomed .city-label { display: none; }
.azmap.zoomed .dot:not(.in) { opacity: .08; pointer-events: none; }
.azmap.zoomed .dot.in { opacity: 1; pointer-events: auto; fill: var(--ink); stroke-width: 1.5; cursor: pointer; }
.azmap.zoomed .dot.in[data-guide] { fill: var(--oxide); }
.azmap.zoomed .dot.in:hover, .azmap.zoomed .dot.in:focus { fill: var(--patina); outline: none; }
.azmap .zlabel { font-family: var(--mono); font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--map-land); stroke-linejoin: round; cursor: pointer; }
.azmap .zlabel.zguide { font-family: var(--display); font-weight: 800; fill: var(--oxide); letter-spacing: 0.03em; }
.map-back { position: absolute; top: 18px; left: 18px; z-index: 3; font: 600 0.8rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 11px; background: var(--ink); color: var(--paper); border: 0; border-radius: 2px; cursor: pointer; }
.picked-go { font-weight: 600; }
@media (max-width: 560px) { .azmap .top-minor { display: none; } }
/* town guides on the state maps: the type's glyph on a paper disc ringed in the type's colour (maps.py); records stay plain dots */
.azmap .dot.typed { fill: var(--paper); opacity: 1; stroke-width: 1; }
.azmap .dot.typed.top, .azmap.zoomed .dot.typed.in { fill: var(--paper); stroke-width: 1.4; }
.azmap .dot.typed:hover, .azmap .dot.typed:focus, .azmap.zoomed .dot.typed.in:hover, .azmap.zoomed .dot.typed.in:focus { fill: var(--patina-soft); }
.azmap .tg { pointer-events: none; transition: opacity .2s; }
.azmap.filtered .dot.off + .tg, .azmap.zoomed .dot:not(.in) + .tg { opacity: .08; }
.azmap.by-type .dot:not(.tmatch), .azmap.by-type .dot:not(.tmatch) + .tg, .azmap.by-type .dot:not(.tmatch) + .tg + .top-label,
.azmap.by-type .dot:not(.tmatch) + .top-ring, .azmap.by-type .dot:not(.tmatch) + .top-ring + .top-label { opacity: .1; pointer-events: none; }
.azmap.by-type .dot.tmatch:not(.top) { pointer-events: auto; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px 12px; border-top: 1px solid var(--rule); }
.map-legend .map-caption { margin: 0; }
.map-types { display: flex; flex-wrap: wrap; gap: 6px; }
.map-types .type-filter { padding: 5px 10px; font-size: var(--t-xs); }

/* ---------- about, privacy and the other site pages (build/pages/info.py) ---------- */
.info { display: grid; grid-template-columns: minmax(0, 1fr) 240px; grid-template-areas: "head head" "body toc"; gap: 28px 56px; padding-block: 24px clamp(48px, 7vw, 88px); align-items: start; }
.info-head { grid-area: head; display: grid; gap: 16px; max-width: 64ch; }
.info-head h1 { font-size: var(--t-3xl); }
.info-body { grid-area: body; display: grid; gap: 36px; max-width: 68ch; min-width: 0; }
.info-body section { display: grid; gap: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.info-body p { line-height: 1.6; }
.info-toc { grid-area: toc; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px); display: grid; gap: 10px; border-left: 1px solid var(--rule); padding-left: 18px; }
.info-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.info-toc a { text-decoration: none; color: var(--ink-2); }
.info-toc a:hover { color: var(--patina); }
.info .info-search { max-width: 480px; margin-left: 0; }
.info-body .btn + .btn { margin-left: 8px; }
.info-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.info-portrait { flex: none; width: 160px; height: auto; border-radius: 50%; }
@media (max-width: 860px) { .info { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "toc" "body"; } .info-toc { position: static; } }
.info--404 { padding-bottom: 8px; }
.info .info-search svg { display: block; }
.info--404 + .section { border-top: 0; padding-top: 24px; }

/* ---------- day trip PDF download (build/pages/town.py itinerary_card) ---------- */
.itin { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-2); max-width: 68ch; }
.itin-thumb img { width: 150px; height: auto; border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: rotate(-1.5deg); transition: transform .15s; }
.itin-thumb:hover img { transform: rotate(0deg) scale(1.02); }
.itin-copy { display: grid; gap: 8px; justify-items: start; }
.itin-copy p:not(.eyebrow) { font-size: var(--t-sm); color: var(--ink-2); }
.itin .btn .muted { color: inherit; opacity: .75; font-weight: 400; }
@media (max-width: 560px) { .itin { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; } .itin-thumb img { width: 96px; } }

/* ---------- town types (build/pages/category.py, home types strip) ---------- */
.type-hero { display: grid; gap: 14px; padding-block: 24px 8px; }
.type-hero > * { max-width: 72ch; }
.type-hero h1 { font-size: var(--t-3xl); }
.type-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.type-chips a { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); font: 600 var(--t-sm)/1.2 var(--label); letter-spacing: .03em; }
.type-chips a:hover { border-color: var(--patina); color: var(--patina); }
.type-chips .muted { font-weight: 400; }
.type-others { margin-top: 8px; }
.type-badge { display: block; flex: none; border-radius: 50%; }
.type-chips a .type-badge { margin: -4px 2px -4px -8px; }
.type-chips a { align-items: center; }
.type-hero--badge { grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; align-items: center; }
.type-hero--badge > * { max-width: none; }
.type-hero--badge > .type-badge { width: 168px; height: 168px; aspect-ratio: 1; }  /* a fixed box, so the hero never resizes as the badge loads */
.type-hero-copy { display: grid; gap: 14px; max-width: 72ch; }
.type-fig { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 180px; background: var(--paper-2); }
@media (max-width: 560px) { .type-hero--badge { grid-template-columns: minmax(0, 1fr); } .type-hero--badge > .type-badge { width: 112px; height: 112px; } }
.card figure .type-fig .type-badge { width: 62%; height: auto; max-width: 168px; aspect-ratio: 1; object-fit: contain; }
.card:hover figure .type-fig .type-badge { transform: rotate(-4deg) scale(1.04); }

/* ---------- town types on cards, lists, hubs and guides (kit.categories glyph/icon) ---------- */
.type-glyph { flex: none; display: inline-block; vertical-align: -2px; }
.type-glyph-none { display: inline-block; width: 13px; flex: none; }
.card-type { position: absolute; top: 8px; right: 8px; line-height: 0; }
.card-type .type-badge { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.type-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border: 1px solid var(--rule); border-radius: 999px; font: 600 0.72rem/1.2 var(--label); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.guide-list li { display: flex; align-items: center; gap: 6px; }
.type-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.type-filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 var(--t-sm)/1.2 var(--label); letter-spacing: .03em; cursor: pointer; }
.type-filter:hover { border-color: var(--patina); }
.type-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.type-filter[aria-pressed="true"] .muted { color: inherit; opacity: .7; }
.type-filter:focus-visible { outline: 2px solid var(--patina); outline-offset: 2px; }
.town-type { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.town-type a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(247, 243, 230, .92); color: #1d211f; font: 600 var(--t-sm)/1.2 var(--label); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.town-type a:hover { background: #fff; }
.type-link { display: inline-flex; align-items: center; gap: 5px; }
.cards--more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .cards--more { grid-template-columns: minmax(0, 1fr); } }
#more .kicker { display: inline-flex; align-items: center; gap: 6px; }

/* Route 66 page: the road log, numbered as a westbound driver meets the towns */
.r66-intro { max-width: 65ch; margin: 0 0 20px; }
.r66-state { margin: 0 0 24px; }
.r66-log { margin: 0; padding-left: 2.2em; display: grid; gap: 12px; }
.r66-log li { padding-left: 4px; }
.r66-log li::marker { font: 600 var(--t-sm)/1 var(--label); color: #8c2f39; }
.r66-name { font-weight: 600; margin-right: 10px; }
.r66-type { display: inline-flex; gap: 6px; align-items: center; font-size: var(--t-xs); color: var(--ink-3); }
.r66-note { margin: 4px 0 0; font-size: var(--t-sm); max-width: 70ch; }
.guide-list li .type-glyph + a + .type-glyph { margin-left: 6px; }

/* Route 66 page: the stylized road map */
.r66m { margin: 8px 0 28px; }
.r66m-scroll { overflow-x: auto; }
.r66m svg { display: block; width: 100%; min-width: 640px; height: auto; }
.r66m-st { fill: var(--paper); stroke: var(--rule); stroke-width: .8; }
.r66m-on { fill: var(--paper-2); }
.r66m-road { fill: none; stroke: #8c2f39; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.r66m-city { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.4; }
.r66m-end { fill: var(--ink); stroke: none; }
.r66m-label { font: 500 11px/1 var(--label); fill: var(--ink-2); letter-spacing: .02em; }
.r66m-endlabel { font-weight: 700; fill: var(--ink); }
.r66m-guide line { stroke: #8c2f39; stroke-width: 1.2; }
.r66m-dot { fill: #fff; stroke: #8c2f39; stroke-width: 2; }
.r66m-badge { fill: #8c2f39; }
.r66m-guide text { font: 700 11px/1 var(--label); fill: #fff; }
.r66m-guide:hover .r66m-badge, .r66m-guide:focus .r66m-badge { fill: var(--ink); }
.r66m figcaption { font-size: var(--t-xs); color: var(--ink-3); margin-top: 8px; max-width: 75ch; }
.r66m-branch { fill: none; stroke: #8c2f39; stroke-width: 1.4; stroke-dasharray: 4 3; opacity: .8; }

/* ---------- then and now: aerial before/after slider (build/pages/town.py then_now_html, site.js) ---------- */
.ba { position: relative; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--paper-3); margin: 18px 0 8px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; border: 1px solid var(--rule); container-type: inline-size; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer picture { display: contents; }
.ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; margin: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; z-index: 3; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; color: #1b2220;
  box-shadow: 0 1px 4px rgba(0,0,0,.4); display: grid; place-items: center; }
.ba-knob svg { width: 18px; height: 18px; }
.ba:focus-visible { outline: 3px solid var(--oxide); outline-offset: 3px; }
.ba-tag, .ba-lbl { position: absolute; color: #fff; background: rgba(12,15,13,.66); border-radius: .18em; padding: .22em .45em; line-height: 1.1;
  white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ba-tag { top: 2cqw; font: 700 clamp(13px, 3cqw, 40px)/1.1 var(--display); letter-spacing: .02em; transition: opacity .12s linear; }
.ba-tag.l { left: 2cqw; } .ba-tag.r { right: 2cqw; }
.ba-lbl { font: 600 clamp(10px, 1.9cqw, 22px)/1.1 var(--label); letter-spacing: .02em; display: none;
  white-space: normal; width: max-content; max-width: max(4em, min(45cqw, var(--room, 45cqw))); }  /* a long label wraps before it runs off a narrow frame */
.ba-lbl.lr { transform: translate(0, -50%); } .ba-lbl.ll { transform: translate(-100%, -50%); }
.ba-lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.ba-lead line { stroke: #fff; stroke-width: 1.5; } .ba-lead line.halo { stroke: rgba(0,0,0,.55); stroke-width: 4; }
.ba-lead circle { fill: #fff; stroke: rgba(0,0,0,.7); stroke-width: 1.5; }
.ba.labels-on .ba-lbl, .ba.labels-on .ba-lead { display: block; }
.ba-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font: 400 var(--t-xs)/1.4 var(--mono); color: var(--ink-2); }
.ba-toggle { font: 600 var(--t-sm) var(--label); letter-spacing: .02em; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 14px 6px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.ba-toggle .sw { width: 28px; height: 16px; border-radius: 8px; background: var(--paper-3); position: relative; transition: background .15s; }
.ba-toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); transition: left .15s; }
.ba-toggle[aria-pressed="true"] .sw { background: var(--oxide); } .ba-toggle[aria-pressed="true"] .sw::after { left: 14px; }
.ba-toggle:focus-visible { outline: 3px solid var(--oxide); outline-offset: 2px; }
.ba-hint { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; background: var(--oxide-soft); color: var(--ink);
  border: 1px solid var(--oxide); border-bottom: 0; font: 600 1.05rem/1.35 var(--label); letter-spacing: .02em; }
.ba-hint svg { flex: none; width: 22px; height: 22px; color: var(--oxide); }
.ba-hint + .ba { margin-top: -16px; border-color: var(--oxide); }  /* sits flush under the hint, across the section's grid gap */
.ba-ctrl button { margin-left: auto; }
.ba-still { margin: 24px 0 0; display: grid; gap: 8px; }
.ba-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); border: 1px solid var(--rule); container-type: inline-size; }
.ba-frame picture { display: contents; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.ba-frame .ba-lbl, .ba-frame .ba-lead { display: block; }
.ba-still figcaption { font: 400 var(--t-xs)/1.5 var(--mono); color: var(--ink-2); }
.ba-still figcaption b { color: var(--ink); font-weight: 600; }
.ba-credit { font: 400 var(--t-xs)/1.5 var(--mono); color: var(--ink-2); margin-top: 10px; }
.ba-credit a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .ba-tag, .ba-toggle .sw, .ba-toggle .sw::after { transition: none; } }
