/* Larger reading sizes keep the model illustration while making the content usable at 100% zoom. */
body { font-size: 18px; line-height: 1.7; }
.app-shell { grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 480px); }
.story-title { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.45; }
.story-copy h3 { font-size: 24px; }
.story-copy p, .about-copy p, .dialog-intro, .scene-dialog-copy p, .empty-state p { font-size: 18px; line-height: 1.85; color: #3c505c; }
.story-eyebrow, .badge, .story-tabs button, .event-row .event-name,
.list-heading h3, .list-heading small, .original-record, .original-record small,
.original-record strong, .map-check, .timeline-row time, .timeline-row p,
.location-list-button small, .location-list-button .count, .source-links a,
.panel-footer, .panel-footer button, .primary-button, .scene-enlarge, .scene-badge,
.scene-dialog-copy .eyebrow, .text-dialog > .eyebrow, .loading-state, .toast { font-size: 16px; }
.badge { padding: 6px 11px; line-height: 1.5; }
.story-eyebrow { margin-bottom: 16px; }
.story-copy { padding-top: 24px; }
.story-tabs button, .primary-button { min-height: 48px; }
.event-row { min-height: 64px; padding: 16px 0; }
.event-row .year { font-size: 25px; min-width: 58px; }
.event-row .event-name, .timeline-row p { color: #41586a; }
.list-heading { flex-wrap: wrap; gap: 8px; }
.list-heading small { color: #566758; }
.meta-grid { gap: 12px; }
.meta-cell { align-items: flex-start; padding: 14px 12px; }
.meta-cell small { font-size: 16px; color: #58655f; }
.meta-cell strong { font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.meta-cell .icon { margin-top: 5px; }
.timeline-row { padding-left: 25px; padding-bottom: 30px; }
.timeline-row time { color: #735c34; }
.timeline-row button { font-size: 20px; padding: 10px 0; }
.original-record { color: #46585d; padding: 16px; }
.original-record summary { min-height: 44px; cursor: pointer; display: list-item; align-content: center; }
.original-record p { overflow-wrap: anywhere; }
.location-note { font-size: 16px !important; line-height: 1.8 !important; color: #58665e !important; }
.panel-footer { flex-wrap: wrap; color: #56665b; }
.panel-footer button { min-height: 44px; color: #36596a; }
.scene-enlarge { min-height: 44px; padding: 8px 12px; }
.scene-badge { max-width: 62%; text-align: left; line-height: 1.5; }
.location-hero-overlay { flex-wrap: wrap; gap: 6px; }
.location-hero-overlay span { font-size: 16px; margin-left: 0; }
.text-dialog { width: min(760px, calc(100vw - 30px)); padding: 36px; }
.text-dialog h2, .scene-dialog-copy h2 { font-size: 30px; }
.about-copy h3 { font-size: 22px; }
.dialog-close { width: 48px; height: 48px; font-size: 30px; }
.source-links a { min-height: 44px; display: flex; align-items: center; line-height: 1.7; }
.location-list-button { flex-wrap: wrap; gap: 10px 16px; }
.location-list-button > span:first-child { font-size: 22px; }
.location-list-button small { color: #53675a; }
.verification-note { margin-top: 24px; padding: 20px; background: #edf2eb; border-left: 4px solid #54866b; border-radius: 0 12px 12px 0; }
.verification-note h3 { margin: 0 0 10px; color: var(--navy); font-size: 20px; }
.verification-note p { font-size: 16px; line-height: 1.85; margin: 10px 0; color: #3c5051; }
.verification-note ul { padding-left: 20px; margin: 12px 0; }
.verification-note li { font-size: 16px; margin-bottom: 14px; }
.verification-note a { display: inline-block; padding: 6px 0; text-underline-offset: 4px; }
.verification-note li span { display: block; color: #4e625a; }
.verification-note .classification-note { border-top: 1px solid #cbd7c8; padding-top: 14px; }
.pin-label, .geographic-map .pin-label { font-size: 18px; padding: 8px 10px; color: var(--navy); }
.pin-label small { font-size: 16px; color: #52634a; }
.pin-marker { min-height: 48px; }
/* Anchor the marker tip, rather than the combined marker-and-label width, to the coordinate. */
.pin { --marker-half: 17px; transform: translate(calc(-1 * var(--marker-half)), -100%); }
.pin[data-side=left] { transform: translate(calc(-100% + var(--marker-half)), -100%); }
.pin.is-selected:before { left: calc(var(--marker-half) - 12px); }
.pin[data-side=left].is-selected:before { left: auto; right: calc(var(--marker-half) - 12px); }
.geographic-map .pin { --marker-half: 14px; }
.brand-plaque p { font-size: 16px; letter-spacing: .03em; }
.brand-caption { font-size: 12px; }
.brand-title span { font-size: 20px; }
.map-toolbar button, .view-switch button { font-size: 16px; min-height: 44px; }
.view-switch { top: 100px; }
.view-switch .icon { width: 18px; height: 18px; }
.map-zoom button { width: 48px; height: 48px; font-size: 30px; }
.focus-tray { width: min(500px, calc(100% - 100px)); }
.tray-heading h1 { font-size: 20px; }
.tray-heading button { min-width: 44px; min-height: 44px; }
.focus-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.focus-option { font-size: 16px; min-height: 46px; padding: 9px 5px; gap: 5px; }
.filter-bottom { font-size: 16px; flex-wrap: wrap; gap: 8px; }
.filter-bottom select { font-size: 18px; min-height: 44px; }
.result-summary { font-size: 16px; color: #50634f; margin-top: 10px; line-height: 1.6; }
.map-caption { font-size: 16px; bottom: 340px; max-width: calc(100% - 48px); }
.map-caption span { font-size: 14px; opacity: 1; }
.geo-credit { font-size: 14px; color: #46614f; }

@media (min-width: 821px) and (max-width: 1450px) {
  .brand-plaque { padding: 18px; left: 18px; top: 18px; }
  .brand-title { font-size: 32px; display: block; }
  .brand-title span { display: block; font-size: 18px; margin-top: 8px; }
  .brand-caption { display: none; }
  .brand-plaque p { font-size: 16px; margin-bottom: 0; }
  .map-toolbar { right: 16px; top: 18px; }
  .map-toolbar button { min-width: 44px; justify-content: center; }
  .map-toolbar button > span:last-child { display: none; }
  .view-switch { top: 178px; left: 18px; right: auto; }
  .focus-tray { left: 18px; bottom: 18px; width: min(500px, calc(100% - 98px)); padding: 14px; }
  .focus-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pin-label small { display: none; }
  .map-caption { top: 245px; left: 18px; right: auto; bottom: auto; max-width: 220px; text-align: left; font-size: 16px; }
  .map-caption span { font-size: 14px; }
}

@media (max-width: 1240px) and (min-width: 821px) {
  .app-shell { display: block; }
  .map-section { height: 850px; }
  .story-panel { height: auto; overflow: visible; }
  .story-inner { max-width: 780px; margin: auto; }
  .scene-button { width: 100%; margin: 0; border-radius: 14px; }
  .focus-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .focus-tray { width: 500px; }
  .map-caption { bottom: auto; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .map-section { height: auto; min-height: 0; max-height: none; padding-top: 190px; padding-bottom: 36px; }
  .brand-plaque { padding: 16px; left: 14px; top: 14px; max-width: calc(100% - 88px); }
  .brand-title { font-size: 30px; display: block; }
  .brand-title span { display: block; font-size: 18px; margin-top: 8px; }
  .brand-plaque p { font-size: 16px; margin-bottom: 0; }
  .brand-caption { display: none; }
  .map-toolbar { right: 12px; top: 14px; }
  .map-toolbar button { width: 44px; height: 44px; padding: 10px; }
  .map-toolbar .icon { width: 22px; height: 22px; }
  .view-switch { left: 14px; top: 156px; padding: 4px; }
  .view-switch button { font-size: 16px; padding: 8px 12px; }
  .map-viewport { position: relative; inset: auto; width: 100%; aspect-ratio: 1122 / 1402; }
  .map-world { height: 100%; width: auto; margin-top: 0; }
  .geographic-map { height: 94%; width: auto; max-width: 86%; margin-top: 0; }
  .geographic-map .pin-label, .pin-label { font-size: 16px; }
  .pin { --marker-half: 14.5px; }
  .map-zoom { bottom: auto; top: calc(190px + 85vw); right: 12px; }
  .focus-tray { position: relative; left: auto; bottom: auto; margin: 14px 14px 0; width: calc(100% - 28px); padding: 16px; }
  .tray-heading h1 { font-size: 20px; }
  .focus-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .focus-option { font-size: 16px; }
  .map-caption { position: relative; right: auto; bottom: auto; margin: 20px 18px 0; max-width: none; text-align: left; }
  .map-caption, .map-caption span { font-size: 16px; }
  .story-panel { margin-top: -20px; }
  .story-inner { padding: 26px 22px; }
  .story-title { font-size: 32px; }
  .scene-button { width: calc(100% + 44px); margin: 0 -22px; }
  .story-copy h3 { font-size: 24px; }
  .story-copy p { font-size: 18px; }
  .story-tabs button, .event-row .event-name { font-size: 18px; }
  .scene-badge { font-size: 14px; max-width: 55%; }
  .scene-enlarge { font-size: 16px; }
  .mobile-back { position: static; display: block; width: 100%; min-height: 48px; padding: 12px 22px; text-align: right; font-size: 16px; }
  .text-dialog { padding: 30px 22px; }
  .text-dialog h2 { font-size: 28px; }
  .panel-footer { padding: 16px 22px max(20px, env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .focus-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid { grid-template-columns: 1fr; }
  .brand-title { font-size: 28px; }
  .brand-plaque p { font-size: 15px; }
  .story-title { font-size: 30px; }
  .location-list-button > span:first-child { min-width: 100%; }
}
