/* ========================================
   WAYFOUND — CSS (Mobile-First)
   ======================================== */

:root {
  --navy:      #1B3A6B;
  --navy-dark: #132d54;
  --navy-mid:  #2a4d86;
  --rust:      #8B3A2A;
  --rust-mid:  #a34535;
  --gold:      #B8860B;
  --gold-light:#d4a017;
  --sage:      #4e6e4e;
  --cream:     #F6F1E9;
  --cream-dark:#ede7d9;
  --sand:      #DED5BE;
  --sand-dark: #c8bda5;
  --ink:       #1A1A18;
  --ink-soft:  #2d2d2a;
  --gray:      #6B6560;
  --gray-light:#8f8883;
  --white:     #FFFFFF;
  --off-white: #FAFAF8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --nav-height:    56px;
  --bottom-nav-h:  62px;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:     0 2px 6px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.11);
  --shadow-lg:     0 10px 40px rgba(0,0,0,0.16);
  --transition:    0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  /* Bottom nav safe area on mobile */
  padding-bottom: var(--bottom-nav-h);
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Toast (above bottom nav on mobile) ── */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 22px;
  border-radius: 100px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Live Badge ── */
.live-badge {
  position: fixed;
  top: calc(var(--nav-height) + 8px);
  right: 14px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
}
.live-dot {
  width: 6px; height: 6px;
  background: #FF5555;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.35); }
}

/* ── TOP NAVIGATION (mobile base) ── */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246,241,233,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand);
  height: var(--nav-height);
}
.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

/* Desktop nav links — hidden on mobile, shown on desktop */
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--gray);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: block;
  position: relative;
}
.nav-link:hover  { color: var(--navy); background: rgba(27,58,107,0.06); }
.nav-link.active {
  color: var(--navy);
  background: rgba(27,58,107,0.1);
}

/* Nav About Button */
.nav-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--gray);
  background: none;
  border: 1.5px solid var(--sand-dark);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-about-btn:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: rgba(27,58,107,0.07);
}
/* Mobile about button — visible only on mobile */
.nav-about-mobile { display: inline-flex; }

/* ── BOTTOM NAV (T002 — mobile only) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--bottom-nav-h);
  background: rgba(246,241,233,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--sand);
  display: flex;
  align-items: stretch;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.07);
  /* Safe area for iPhone home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  padding: 6px 4px 10px;
}
.bottom-tab svg { transition: stroke var(--transition); }
.bottom-tab.active { color: var(--navy); }
.bottom-tab:active { background: rgba(27,58,107,0.05); }

/* ── MAP WRAPPER ── */
.map-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: height 0.35s ease;
  border-bottom: 2px solid var(--sand);
}
/* Full-screen map on MAP section */
.map-wrapper--full {
  /* Subtract nav bar height; bottom nav handled by body padding-bottom */
  height: calc(100dvh - var(--nav-height) - var(--bottom-nav-h));
}
/* Compact map above content sections (desktop only) */
.map-wrapper--compact { height: 32vh; min-height: 190px; }
/* Hidden: full-screen sections on mobile (T003) */
.map-wrapper--hidden  { display: none !important; }

.map-container { flex: 1; min-height: 0; }

/* Map context label */
.map-context {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 800;
  background: rgba(27,58,107,0.93);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Era / Corridor Filters (T004) ── */
.era-filters {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}
.era-filters::-webkit-scrollbar { display: none; }
.era-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 9px 18px;
  border-radius: 100px;
  white-space: nowrap;
  color: var(--gray);
  background: var(--off-white);
  border: 1.5px solid var(--sand);
  transition: all var(--transition);
  min-height: 38px;
  flex-shrink: 0;
}
.era-btn:hover {
  border-color: var(--corridor-color, var(--navy));
  color: var(--corridor-color, var(--navy));
  background: rgba(27,58,107,0.04);
}
.era-btn.active {
  background: var(--corridor-color, var(--navy));
  color: var(--white);
  border-color: var(--corridor-color, var(--navy));
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* ── Site Popup (T005 — bottom sheet on mobile) ── */
.site-popup {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ink-soft);
  color: var(--cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 8px 18px 20px;
  box-shadow: 0 -6px 32px rgba(0,0,0,0.32);
  z-index: 900;
  animation: slideUpSheet 0.32s cubic-bezier(0.32, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.05);
}
@keyframes slideUpSheet {
  from { opacity: 0.4; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Drag handle for bottom sheet */
.popup-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto 12px;
}
.popup-close {
  position: absolute;
  top: 10px; right: 10px;
  color: rgba(245,240,232,0.45);
  font-size: 26px;
  line-height: 1;
  padding: 10px;
  transition: color var(--transition);
}
.popup-close:hover { color: var(--cream); }
.popup-site-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 3px;
  padding-right: 36px;
  line-height: 1.25;
}
.popup-site-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-light);
  letter-spacing: 1.2px;
  margin-bottom: 7px;
}
.popup-coords {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(245,240,232,0.4);
  margin-bottom: 12px;
}
.popup-eras {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.era-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 100px;
  color: var(--cream);
  white-space: nowrap;
}
.popup-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: rgba(245,240,232,0.88);
  line-height: 1.6;
  margin-bottom: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  quotes: none;
}
.popup-attribution {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(245,240,232,0.45);
  margin-bottom: 12px;
  padding-left: 14px;
}
.popup-condition {
  font-size: 13px;
  color: rgba(245,240,232,0.65);
  margin-bottom: 16px;
  line-height: 1.55;
}
.popup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── About Overlay / Help Drawer ── */
.about-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
}
.about-overlay.open { display: block; }
.about-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,20,18,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.about-overlay.open .about-backdrop { opacity: 1; }
.about-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 100%;
  background: var(--off-white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.14);
}
.about-overlay.open .about-drawer { transform: translateX(0); }
.about-close {
  position: sticky;
  top: 0;
  float: right;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(246,241,233,0.95);
  border-bottom-left-radius: var(--radius);
  color: var(--gray);
  z-index: 1;
  transition: color var(--transition);
}
.about-close:hover { color: var(--ink); }
.about-drawer-inner { padding: 24px 22px 48px; clear: both; }
.about-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.about-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 20px;
}
.about-columns { display: flex; flex-direction: column; gap: 20px; }
.about-col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.about-col h3:not(:first-child) { margin-top: 20px; }
.about-col ul { list-style: none; padding: 0; }
.about-col li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.about-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.about-col p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 8px;
}
.about-col a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ── Sections ── */
.section { min-height: 50vh; }
.hidden-section { display: none; }
.section-header {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 18px 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.15;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.5;
}

/* ── Buttons ── */
.btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(27,58,107,0.2);
  border: none;
}
.btn-primary:hover {
  background: var(--navy-mid);
  box-shadow: 0 4px 14px rgba(27,58,107,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245,240,232,0.22);
}
.btn-outline:hover {
  border-color: rgba(245,240,232,0.5);
  background: rgba(245,240,232,0.08);
}
.btn-sm { padding: 7px 13px; font-size: 10px; min-height: 34px; }

.section-directory .btn-outline,
.modal-card .btn-outline {
  color: var(--gray);
  border-color: var(--sand);
}
.section-directory .btn-outline:hover,
.modal-card .btn-outline:hover {
  border-color: var(--gray);
  background: rgba(0,0,0,0.03);
}

/* ── JOURNAL SECTION (T006) ── */
.journal-hero {
  position: relative;
  width: 100%;
  min-height: 200px;
  background: linear-gradient(145deg, #0f2446 0%, #1B3A6B 40%, #6b2a1e 75%, #B8860B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.journal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
}
.journal-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,18,16,0.48);
  z-index: 1;
}
.journal-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 640px;
}
.journal-hero-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
}
.journal-hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(245,240,232,0.8);
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.loading-state, .empty-state {
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 18px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray);
}
.journal-grid {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Journal Card (T006 — editorial redesign) */
.journal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.journal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* Era color bar at top of card (T006) */
.journal-era-bar {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}
/* Fixed-height image (T006) */
.journal-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--navy-dark);
  overflow: hidden;
}
.journal-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.journal-card:hover .journal-img-wrap img { transform: scale(1.03); }
.journal-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: rgba(245,240,232,0.4);
  padding: 24px;
  text-align: center;
  background: linear-gradient(145deg, #0f2446, #1B3A6B);
}
.journal-body { padding: 18px 18px 16px; }
/* Header row: name + mode badge side by side (T006) */
.journal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.journal-mode-wrap { flex-shrink: 0; }
.journal-site-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  line-height: 1.25;
}
.journal-site-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--rust);
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.journal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.journal-meta-coords { color: var(--gray-light); }
.journal-observation {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  margin-bottom: 16px;
}
/* Pull-quote treatment (T006) */
.journal-pullquote-wrap {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: rgba(139,58,42,0.05);
  border-left: 3px solid var(--rust);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.journal-pullquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: var(--rust);
  line-height: 1.6;
  margin-bottom: 6px;
  quotes: none;
}
.journal-pullquote-attr {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  font-style: normal;
}
.journal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--cream-dark);
  margin-top: 4px;
}
.journal-actions .btn {
  color: var(--navy);
  border: 1.5px solid var(--sand);
  background: transparent;
  padding: 8px 14px;
}
.journal-actions .btn:hover {
  border-color: var(--navy);
  background: rgba(27,58,107,0.05);
}

/* ── COMPARE SECTION (T007) ── */
.compare-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.compare-intro {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
}
/* Pill site picker (T007) */
.compare-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compare-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  text-align: left;
}
.compare-pill:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 10px rgba(27,58,107,0.1);
}
.compare-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 2px 10px rgba(27,58,107,0.22);
}
.compare-pill-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.compare-pill.active .compare-pill-name { color: var(--cream); }
.compare-pill-state {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gray);
}
.compare-pill.active .compare-pill-state { color: rgba(245,240,232,0.65); }

.compare-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--gray);
  font-size: 16px;
  gap: 16px;
  text-align: center;
  opacity: 0.8;
}

/* Connected vertical timeline (T007) */
.compare-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-track { display: flex; flex-direction: column; gap: 0; }
.timeline-track-item {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}
.timeline-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid;
  flex-shrink: 0;
  margin-top: 16px;
  box-shadow: 0 0 0 3px var(--cream);
  position: relative;
  z-index: 1;
}
.timeline-connector {
  flex: 1;
  width: 2px;
  border-left: 2px dashed;
  opacity: 0.3;
  margin-top: 4px;
  margin-bottom: -2px;
}

/* T007: New timeline card */
.timeline-card-new {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--sand);
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
}
.timeline-card-new:hover { box-shadow: var(--shadow-sm); }
.timeline-era-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.timeline-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 10px;
}
.timeline-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.timeline-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
}
.timeline-stat strong {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1px;
  font-weight: 700;
}

.compare-footer {
  margin-top: 20px;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow-xs);
}
.compare-timespan {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.compare-pullquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.compare-share { display: inline-flex; }

/* ── DIRECTORY SECTION (T008) ── */
.directory-controls {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 18px 12px;
}
.directory-search-row { margin-bottom: 10px; }
/* Filter pills (T008) */
.directory-filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 10px;
  padding-bottom: 2px;
}
.directory-filter-pills::-webkit-scrollbar { display: none; }
.dir-input {
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-height: 48px;
}
.dir-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}
.dir-select {
  flex-shrink: 0;
  padding: 11px 32px 11px 14px;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6560' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-height: 44px;
  white-space: nowrap;
  transition: border-color var(--transition);
  letter-spacing: 0.5px;
}
.dir-select:focus { border-color: var(--navy); }
.dir-visited-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gray);
  cursor: pointer;
  min-height: 44px;
  padding: 4px 10px;
  white-space: nowrap;
  border: 1.5px solid var(--sand);
  border-radius: 100px;
  background: var(--white);
  flex-shrink: 0;
}
.dir-visited-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.directory-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dir-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.5px;
}
.dir-gpx-btn {
  color: var(--gray) !important;
  border-color: var(--sand) !important;
  gap: 5px;
}
.dir-gpx-btn:hover {
  color: var(--navy) !important;
  border-color: var(--navy) !important;
}

/* Directory Table — card grid on mobile (T008) */
.directory-table {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Card layout on mobile (T008) */
.dir-row {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
  position: relative;
}
.dir-row:hover {
  border-color: rgba(27,58,107,0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
/* Era accent bar on card (T008) */
.dir-era-accent {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}
.dir-id {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.8px;
}
.dir-name-col {
  padding: 10px 10px 6px;
  flex: 1;
  min-width: 0;
}
.dir-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.25;
  word-break: break-word;
}
.dir-one-line {
  display: none;
}
.dir-badges {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 10px 8px;
}
.dir-state-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--cream-dark);
  color: var(--ink);
  white-space: nowrap;
}
.dir-era-pills { display: flex; gap: 3px; flex-wrap: wrap; }
.dir-era-more {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray);
  padding: 2px 6px;
  background: var(--cream-dark);
  border-radius: 100px;
  white-space: nowrap;
}
.dir-visited-icon {
  display: none;
}
.dir-actions {
  display: flex;
  gap: 2px;
  padding: 6px 8px 8px;
  border-top: 1px solid var(--cream-dark);
}
.dir-action-btn {
  flex: 1;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--gray);
  transition: all var(--transition);
}
.dir-action-btn:hover { background: rgba(27,58,107,0.08); color: var(--navy); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.modal-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.6;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.modal-card .btn-primary { padding: 11px 22px; }
.modal-card .dir-input { width: 100%; min-width: 0; }
.modal-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rust);
  margin-top: 12px;
}

/* ── Footer ── */
.main-footer {
  background: var(--ink);
  color: rgba(245,240,232,0.55);
  padding: 28px 18px;
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.footer-inner p { font-family: var(--font-mono); font-size: 11px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-light);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cream); }

/* ── Time Slider ── */
.time-slider-wrap {
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  padding: 10px 16px 8px;
  flex-shrink: 0;
}
.time-slider-controls { display: flex; align-items: center; gap: 10px; }
.time-slider-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream-dark);
  border: 1.5px solid var(--sand);
  border-radius: 100px;
  padding: 8px 14px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.time-slider-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(27,58,107,0.22);
}
.time-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: var(--sand);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  --slider-color: #B8860B;
}
.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--slider-color);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.15s;
}
.time-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.time-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--slider-color);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.time-slider-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 5px;
  transition: color 0.3s;
  color: var(--navy);
}

/* ── Map Legend ── */
.map-legend {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 800;
  font-family: var(--font-mono);
  font-size: 10px;
}
.map-legend-toggle {
  display: block;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--ink);
  background: rgba(246,241,233,0.95);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 32px;
  margin-left: auto;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}
.map-legend-toggle:hover { background: var(--cream-dark); }
.map-legend-body {
  display: none;
  background: rgba(246,241,233,0.97);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: 6px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}
.map-legend--open .map-legend-body { display: block; }
.map-legend-section { margin-bottom: 8px; }
.map-legend-section:last-child { margin-bottom: 0; }
.map-legend-heading {
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 5px;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.3;
}
.map-legend-item svg { flex-shrink: 0; }

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  color: rgba(255,255,255,0.6);
  font-size: 34px;
  line-height: 1;
  padding: 12px;
  min-width: 44px; min-height: 44px;
  cursor: pointer;
  z-index: 3001;
  transition: color var(--transition);
}
.lightbox-close:hover { color: #fff; }
.lightbox-img {
  max-width: 90vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: var(--shadow-lg);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 48px;
  line-height: 1;
  padding: 16px;
  min-width: 54px; min-height: 54px;
  cursor: pointer;
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  border-radius: 50%;
}
.lightbox-nav:hover { color: #fff; background: rgba(255,255,255,0.08); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-bottom {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  z-index: 3001;
}
.lightbox-caption {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  padding: 0 24px;
}
.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

/* ── Journal Thumbnails ── */
.journal-thumbstrip {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
  overflow-x: auto;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--cream-dark);
  scrollbar-width: none;
}
.journal-thumbstrip::-webkit-scrollbar { display: none; }
.journal-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color var(--transition), transform var(--transition);
}
.journal-thumb:hover { border-color: var(--navy); transform: scale(1.05); }

/* ── Active States ── */
.journal-card--active {
  box-shadow: 0 0 0 3px var(--navy), var(--shadow-md) !important;
  transform: translateY(-2px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.dir-row--active {
  box-shadow: 0 0 0 2px var(--navy), var(--shadow-xs) !important;
  background: rgba(27,58,107,0.04) !important;
}

/* ── Journal Count Badge & Mode Tag ── */
.journal-count-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy);
  background: rgba(27,58,107,0.09);
  padding: 2px 9px;
  border-radius: 100px;
  vertical-align: middle;
}
.journal-mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--sage);
  background: rgba(78,110,78,0.11);
  padding: 4px 10px;
  border-radius: 100px;
  min-height: 28px;
}

/* ── Popup Cross-Links & Route Info ── */
.popup-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.popup-crosslink { font-size: 10px !important; padding: 5px 11px !important; }
.popup-routes { margin-bottom: 14px; }
.popup-routes-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(245,240,232,0.45);
  display: block;
  margin-bottom: 5px;
}
.popup-route-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 9px;
  border: 1px solid;
  border-radius: 100px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ── Compare Site Summary ── */
.compare-site-summary {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.compare-site-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 7px;
}
.compare-site-meta { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.compare-site-state,
.compare-site-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--cream-dark);
  color: var(--ink);
}
.compare-site-desc {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.6;
}
.compare-site-eras { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.compare-journal-link {
  color: var(--navy) !important;
  border: 1.5px solid var(--sand) !important;
  background: transparent !important;
  margin-top: 8px;
  cursor: pointer;
}
.compare-journal-link:hover {
  border-color: var(--navy) !important;
  background: rgba(27,58,107,0.05) !important;
}
.compare-routes-info {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  margin-top: 12px;
  line-height: 1.7;
}

/* ── Section Transitions ── */
.section:not(.hidden-section) { animation: sectionFadeIn 0.28s ease; }
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Directory Journal Badge ── */
.dir-journal-badge {
  font-size: 8px;
  color: var(--rust);
  vertical-align: middle;
  margin-left: 3px;
}

/* ── Utilities ── */
.hidden { display: none !important; }

/* ══════════════════════════════════════
   DESKTOP ENHANCEMENTS (min-width: 769px)
   ══════════════════════════════════════ */
@media (min-width: 769px) {

  /* Reset body padding — bottom nav hidden */
  body { padding-bottom: 0; }

  /* Hide bottom nav on desktop (T002) */
  .bottom-nav { display: none; }

  /* Show desktop nav links (T002) */
  .nav-links { display: flex; }

  /* Hide mobile-only about button */
  .nav-about-mobile { display: none; }

  .nav-inner { padding: 0 28px; }
  .nav-logo { font-size: 23px; }
  --nav-height: 60px;

  /* Map wrapper desktop sizes */
  .map-wrapper--full    { height: calc(100vh - 60px); }
  .map-wrapper--compact { height: 36vh; min-height: 220px; }

  /* Desktop popup as left-side card (T005) */
  .site-popup {
    left: 20px;
    right: auto;
    bottom: 20px;
    width: 380px;
    max-height: calc(100% - 60px);
    padding: 20px 22px 22px;
    border-radius: var(--radius-lg);
  }
  .popup-drag-handle { display: none; }
  .popup-site-name { font-size: 19px; }

  /* Toast regular position on desktop */
  .toast { bottom: 28px; }

  /* Live badge */
  .live-badge { top: 14px; right: 20px; }

  .about-drawer { width: 460px; max-width: 460px; }
  .about-drawer-inner { padding: 36px 32px 56px; }
  .about-title { font-size: 28px; }
  .about-lead { font-size: 16px; }
  .about-columns { flex-direction: row; gap: 36px; }
  .about-col { flex: 1; }

  .era-filters { padding: 10px 24px; }
  .era-btn { font-size: 10px; padding: 8px 18px; }

  .map-context { font-size: 10px; padding: 6px 14px; }

  .section-header { padding: 52px 28px 36px; }
  .section-title { font-size: 36px; }
  .section-subtitle { font-size: 17px; }

  .journal-hero { min-height: 300px; }
  .journal-hero-title { font-size: 42px; }
  .journal-hero-subtitle { font-size: 18px; }
  .journal-hero-content { padding: 70px 28px; }

  .journal-grid { padding: 0 28px 68px; gap: 36px; }
  /* Fixed image height on desktop (T006) */
  .journal-img-wrap { height: 290px; }
  .journal-img-placeholder { font-size: 24px; }
  .journal-body { padding: 22px 24px 20px; }
  .journal-site-name { font-size: 22px; }
  .journal-observation { font-size: 17px; }
  .journal-pullquote { font-size: 18px; }

  /* Compare layout: side-by-side on desktop (T007) */
  .compare-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    padding: 0 28px 68px;
    align-items: start;
  }
  .compare-pills { flex-direction: column; gap: 6px; }
  .compare-pill { width: 100%; }

  /* Directory: list view on desktop (T008) */
  .directory-controls { padding: 0 28px 16px; }
  .directory-filter-pills {
    flex-wrap: nowrap;
    overflow: visible;
    align-items: center;
  }
  .dir-input { min-width: 220px; }
  .dir-select { white-space: nowrap; }

  .directory-table {
    padding: 0 28px 68px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  /* Row layout on desktop */
  .dir-row {
    display: grid;
    grid-template-columns: 4px 110px 1fr auto auto auto;
    flex-direction: unset;
    padding: 0;
    align-items: center;
    gap: 0;
    overflow: visible;
  }
  .dir-era-accent {
    height: 100%;
    width: 4px;
    border-radius: 0;
    align-self: stretch;
  }
  .dir-id {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--gray);
    letter-spacing: 0.8px;
    padding: 14px 10px 14px 16px;
  }
  .dir-name-col {
    padding: 14px 16px;
    min-width: 0;
  }
  .dir-name {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dir-one-line {
    display: block;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 14px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dir-badges {
    padding: 0 8px;
    flex-wrap: nowrap;
  }
  .dir-visited-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    font-size: 14px;
    padding: 0 4px;
  }
  .dir-actions {
    padding: 8px 12px;
    border-top: none;
    gap: 4px;
    flex: none;
  }
  .dir-action-btn { flex: none; width: 36px; height: 36px; }
  .dir-row:hover { transform: none; }

  .modal-card { padding: 36px; }
  .modal-title { font-size: 24px; }

  .time-slider-wrap { padding: 10px 28px 8px; }
  .time-slider-label { font-size: 12px; }
  .time-slider::-webkit-slider-thumb { width: 20px; height: 20px; }
  .time-slider::-moz-range-thumb { width: 20px; height: 20px; }

  .lightbox-nav { font-size: 60px; padding: 24px; }
  .lightbox-prev { left: 28px; }
  .lightbox-next { right: 28px; }

  .journal-thumb { width: 82px; height: 62px; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .main-footer { padding: 36px 28px; }

  .compare-site-name { font-size: 22px; }
  .timeline-desc { font-size: 15px; }
}

/* Leaflet overrides */
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  box-shadow: var(--shadow-md);
}
