/* /history/ (src/pages/history.mjs, js/history.js), rebuild 2026-11-25: a live then-and-now pair leads, with a
   chooser of every street pair under it; then story cards, landmark cards and the one 1928 card. Shares the lh- card
   and section classes in local-hub.css. Class prefix hi-. */
.hi-checked { margin: var(--sp-8) 0 0; font-size: .82rem; color: var(--ink-3); }
/* pages.css .ph + .sec and then-now.css .st-swipe img load later at the same weight, hence the longer selectors */
.ph + .hi-lead.lh-sec { padding-top: var(--sp-8); }
.hi-stage { display: grid; gap: var(--sp-16); }
.hi-view { min-width: 0; }
.hi-view .nb-swipe { box-shadow: var(--shadow-2); }
.hi-view .nb-swipe { background: var(--ink); }
/* one frame for every pair (portrait or wide), so the chooser never moves the page; both photos fit the same box, so
   they stay lined up */
.hi-view .st-swipe .nb-swipe-now img, .hi-view .st-swipe .nb-swipe-then img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3 !important; object-fit: contain; }
.hi-view .nb-swipe .hi-cred { font-size: .75rem; line-height: 1.35; color: var(--ink-3); }
.hi-info { display: grid; align-content: start; justify-items: start; gap: var(--sp-8); }
.hi-name { margin: 0; font-size: var(--h2-sec); line-height: 1.1; }
.hi-years { margin: 0; font: 600 .9rem/1.3 var(--sans); color: var(--ink-2); }
.hi-cap { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.hi-next { margin: 0; font-size: .82rem; color: var(--ink-3); }
.hi-info .btn { margin-top: var(--sp-8); }
.hi-picks { list-style: none; display: flex; gap: var(--sp-12); margin: var(--sp-24) 0 0; padding: 0 0 var(--sp-8); overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.hi-picks li { flex: 0 0 132px; scroll-snap-align: start; }
.hi-pick { display: grid; gap: var(--sp-8); color: var(--ink); text-decoration: none; }
.hi-pick img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-tag); background: var(--paper-3); filter: sepia(.2) saturate(.85); box-shadow: 0 0 0 1px var(--line); transition: filter .2s, box-shadow .2s; }
.hi-pick span { display: grid; gap: 2px; font: 600 .82rem/1.3 var(--sans); }
.hi-pick small { font-weight: 400; font-size: .75rem; color: var(--ink-3); }
.hi-pick:hover img { filter: none; }
.hi-pick[aria-current="true"] img { filter: none; box-shadow: 0 0 0 2px var(--tile); }
.hi-pick[aria-current="true"] span { color: var(--tile); }
.hi-pick:focus-visible { outline: 2px solid var(--tile); outline-offset: 3px; border-radius: var(--r-tag); }
.hi-stories { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-16); }
.hi-stories .lh-ph { aspect-ratio: 16 / 10; }
.hi-stories .is-lead .lh-t b { font-size: var(--h3-card); }
.hi-marks .lh-t small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hi-air-sec .lh-street { box-shadow: var(--shadow-1); }
@media (min-width: 700px) {
  .hi-stories { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hi-picks li { flex-basis: 156px; }
}
@media (min-width: 900px) {
  .hi-view .st-swipe .nb-swipe-now img, .hi-view .st-swipe .nb-swipe-then img { aspect-ratio: 3 / 2 !important; }
  .hi-stage { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: var(--sp-32); align-items: center; }
  .hi-picks { flex-wrap: wrap; overflow: visible; gap: var(--sp-16); }
  .hi-picks li { flex: 0 0 calc((100% - 7 * var(--sp-16)) / 8); }
}
@media (prefers-reduced-motion: reduce) { .hi-pick img { transition: none; } }
