:root { --archive-ink: #141414; --archive-paper: #f7f4ed; --archive-muted: #58534b; --archive-accent: #c2410c; --archive-rule: #ded8ce; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--archive-ink); background: var(--archive-paper); font: 16px/1.6 Arial, sans-serif; }
a { color: var(--archive-accent); text-underline-offset: 4px; }
a, button { transition: background-color 200ms ease-out, box-shadow 200ms ease-out; }
a:focus-visible, button:focus-visible, .leaflet-interactive:focus-visible { outline: 2px solid var(--archive-accent); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -128px; left: 16px; z-index: 2000; padding: 12px 16px; background: white; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.archive-nav { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 48px; border-bottom: 1px solid var(--archive-rule); }
.archive-logo { display: inline-flex; align-items: center; min-height: 44px; }
.archive-logo img { display: block; width: 128px; height: 64px; object-fit: contain; }
.archive-home { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; }
.archive-inner { width: 100%; max-width: 1280px; margin: 0 auto; }
.archive-hero { padding: 96px 48px; border-bottom: 1px solid var(--archive-rule); }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 14ch; font-size: 61px; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.archive-hero p { max-width: 55ch; margin-top: 24px; color: var(--archive-muted); }
.archive-hero > div > a { display: inline-flex; min-height: 44px; align-items: center; gap: 16px; margin-top: 24px; font-weight: 700; }
.archive-section { padding: 96px 48px; }
.archive-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
h2 { font-size: 39px; line-height: 1.2; letter-spacing: -.02em; }
.archive-heading p { max-width: 55ch; color: var(--archive-muted); margin-top: 16px; }
#eventCount { flex-shrink: 0; font-size: 13px; }
.archive-status { margin-bottom: 16px; padding: 16px; border: 1px solid var(--archive-rule); border-radius: 8px; }
.archive-retry { min-height: 44px; padding: 8px 16px; margin-bottom: 24px; border: 1px solid var(--archive-rule); border-radius: 8px; color: var(--archive-accent); background: white; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.map-shell { position: sticky; top: 24px; min-width: 0; }
.real-map { height: 560px; width: 100%; border: 1px solid var(--archive-rule); border-radius: 8px; background: #e7e3dc; z-index: 0; }
.map-status { margin-top: 12px; font-size: 13px; color: var(--archive-muted); }
.leaflet-container { font-family: Arial, sans-serif; }
.leaflet-touch .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 25px; }
.leaflet-control-attribution { font-size: 13px; max-width: calc(100% - 64px); }
.leaflet-control-attribution a { display: inline-flex; align-items: center; min-height: 44px; }
.leaflet-popup-content { margin: 16px 24px; font-size: 13px; line-height: 1.6; }
.leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.leaflet-popup-close-button { min-width: 44px; min-height: 44px; }
.archive-pin { background: transparent; border: 0; }
.archive-pin span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--archive-ink); color: white; border: 2px solid white; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-size: 13px; font-weight: 700; }
.archive-pin.is-selected span { background: var(--archive-accent); }
.timeline-panel { min-width: 0; }
h3 { font-size: 20px; line-height: 1.4; margin-bottom: 24px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline-year { font-size: 25px; font-weight: 700; padding: 0 0 16px; }
.timeline-year:not(:first-child) { padding-top: 32px; }
.time-card { padding: 24px 0; border-top: 1px solid var(--archive-rule); scroll-margin-top: 24px; }
.time-date { color: var(--archive-muted); font-size: 13px; }
.time-select { display: flex; align-items: center; gap: 12px; padding: 8px 0; min-height: 44px; border: 0; background: transparent; text-align: left; color: var(--archive-ink); font-size: 20px; font-weight: 700; line-height: 1.4; }
.time-number { flex-shrink: 0; width: 32px; font-size: 13px; color: var(--archive-muted); }
.time-select:hover, .time-card.active .time-select { color: var(--archive-accent); }
.time-meta { margin-top: 8px; color: var(--archive-muted); overflow-wrap: anywhere; }
.time-actions { display: flex; flex-wrap: wrap; column-gap: 24px; margin-top: 12px; }
.time-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; }
.archive-footer { padding: 32px 48px; border-top: 1px solid var(--archive-rule); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.archive-footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .archive-layout { grid-template-columns: 1fr; gap: 32px; }
  .map-shell { position: static; }
  .real-map { height: 400px; }
}
@media (max-width: 600px) {
  .archive-nav { padding: 8px 24px; gap: 16px; }
  .archive-home { font-size: 13px; }
  .archive-hero, .archive-section { padding: 64px 24px; }
  h1 { font-size: 36px; }
  h2 { font-size: 31px; }
  .archive-heading { display: block; }
  .real-map { height: 360px; }
  .archive-footer { padding: 24px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a, button { transition: none; } }
