/* ────────────────────────────────────────────────────────────────────────────
   Two Routes to the Pacific — Scrollytelling Layout
   mamook-website/assets/css/scrollytelling.css
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Page layout: sticky map left, scrolling narrative right ── */
.two-routes-page {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  background-color: #0d1117;
  color: #e6e1d6;
}

.two-routes__map {
  position: sticky;
  top: 0;
  width: 55%;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
  background: #1a2332;
}

/* Leaflet map fills the sticky container */
.two-routes__leaflet {
  width: 100% !important;
  height: 100% !important;
}

/* ── Narrative column ── */
.two-routes__narrative {
  width: 45%;
  padding: 0;
  position: relative;
  z-index: 10;
}

/* ── Chapter sections ── */
.two-routes__chapter {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 3rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.two-routes__chapter:first-child {
  min-height: 100vh;
  border-bottom: none;
}

.two-routes__chapter-body {
  max-width: 480px;
}

.two-routes__chapter-number {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8832a;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.two-routes__chapter h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: #f5f0e8;
  margin: 0 0 1rem;
}

.two-routes__chapter-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c9bfb0;
  margin: 0;
}

/* Active chapter: slightly brighter text */
.two-routes__chapter.is-active .two-routes__chapter-lead {
  color: #e6e1d6;
}

/* ── Elevation chart row ── */
/* Stacked small multiples, not a two-up row.
 *
 * These were side by side, which left each chart about 200px wide inside the
 * narrative column — the x-axis ticks collided and the apparatus outweighed the
 * plot. Stacking gives each figure the full column and puts the two profiles on
 * a common horizontal baseline, which is what makes a shared y-domain readable.
 * The x-axes are deliberately NOT shared: the routes are 2,609 km and 8,259 km
 * long, so distance positions are not comparable between the two and the
 * figures should not imply they are. */
.two-routes__elevation-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.two-routes__chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.9rem 1rem 1rem;
}

.two-routes__chart--loading {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-routes__chart-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

/* ── Figure apparatus ──
 *
 * Caption, measured summary, source line, and table fallback. These are what
 * separate a figure from a decoration: the reader can see what was measured,
 * where it came from, and what its stated limitation is, without leaving the
 * page. The table also carries identity for anyone who cannot separate the two
 * series by colour — the green is a deliberate low-chroma brand value that
 * fails the dataviz chroma floor, so colour is never the only encoding.
 */
.two-routes__chart-caption {
  display: block;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #d1d5db;
  margin-bottom: 0.6rem;
}

.two-routes__chart-caption .two-routes__chart-label {
  display: inline;
  margin-bottom: 0;
  color: #e5e7eb;
}

.two-routes__chart-figno {
  font-weight: 600;
  color: #f3f4f6;
}

.two-routes__chart-status {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* A failed figure must look failed, not absent. */
.two-routes__chart--unavailable {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}

.two-routes__chart--unavailable .two-routes__chart-status {
  color: #fca5a5;
}

.two-routes__chart-status-detail {
  font-size: 0.68rem;
  color: #9ca3af;
  margin: 0.35rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-word;
}

.two-routes__chart-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0.6rem 0 0;
}

.two-routes__chart-stats div {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.two-routes__chart-stats dt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0;
}

.two-routes__chart-stats dd {
  font-size: 0.78rem;
  color: #e5e7eb;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.two-routes__chart-source {
  font-size: 0.68rem;
  line-height: 1.5;
  color: #9ca3af;
  margin: 0.6rem 0 0;
}

.two-routes__chart-source em {
  color: #cbd5e1;
}

.two-routes__chart-source-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  opacity: 0.75;
}

.two-routes__chart-table {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: #9ca3af;
}

.two-routes__chart-table summary {
  cursor: pointer;
  padding: 0.2rem 0;
}

.two-routes__chart-table summary:hover {
  color: #e5e7eb;
}

/* Wide content scrolls inside its own container; the page never scrolls sideways. */
.two-routes__chart-table-scroll {
  max-height: 240px;
  overflow: auto;
  margin-top: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.two-routes__chart-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.two-routes__chart-table th,
.two-routes__chart-table td {
  padding: 0.2rem 0.5rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.two-routes__chart-table thead th {
  position: sticky;
  top: 0;
  background: #111827;
  color: #e5e7eb;
  font-weight: 600;
}

/* Figure source line on the case-study page (light surface). */
.case-study__figure-source {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #4b5563;
  margin: 0.5rem 0 0;
}

.case-study__stat-note {
  display: block;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #6b7280;
  margin-top: 0.3rem;
}

/* ── No-JS fallback ── */
.two-routes__noscript {
  padding: 4rem 2.5rem;
  max-width: 480px;
}

.two-routes__noscript h1 {
  font-size: 2rem;
  color: #f5f0e8;
  margin-bottom: 1rem;
}

.two-routes__noscript p {
  color: #c9bfb0;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   QI LI — Grain texture: visceral register, touch-memory of parchment/journal
   ════════════════════════════════════════════════════════════════════════════ */

.two-routes__narrative::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ════════════════════════════════════════════════════════════════════════════
   CINEMATIC TRANSITIONS — Chapter type determines map behaviour
   Mackenzie: slow drift; Lewis-Clark: snap; Synthesis: dual-glow reveal
   ════════════════════════════════════════════════════════════════════════════ */

/* Synthesis reveal — both routes glow once when chapter 6 activates */
.two-routes__map--synthesis .leaflet-overlay-pane svg path {
  animation: route-pulse-synthesis 1.4s ease-out forwards;
}

@keyframes route-pulse-synthesis {
  0%   { opacity: 0.18; }
  40%  { opacity: 1; filter: drop-shadow(0 0 8px rgba(200, 131, 42, 0.5)) drop-shadow(0 0 6px rgba(61, 107, 79, 0.4)); }
  100% { opacity: 1; filter: drop-shadow(0 0 2px rgba(200, 131, 42, 0.15)); }
}

/* Route focus dimming — non-active route fades when a single route is focused */
.two-routes__map--focus-mackenzie .leaflet-overlay-pane svg path[data-route="lewis-clark"] {
  opacity: 0.2;
  transition: opacity 800ms ease;
}
.two-routes__map--focus-lewis-clark .leaflet-overlay-pane svg path[data-route="mackenzie"] {
  opacity: 0.2;
  transition: opacity 800ms ease;
}

/* ── Mobile: stack map above narrative ── */
@media (max-width: 768px) {
  .two-routes-page {
    flex-direction: column;
  }

  .two-routes__map {
    position: relative;
    width: 100%;
    height: 50vh;
    top: auto;
  }

  .two-routes__narrative {
    width: 100%;
  }

  .two-routes__chapter {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .two-routes__elevation-row {
    flex-direction: column;
  }
}

/* ── Leaflet popup styling (dark theme) ── */
.leaflet-popup-content-wrapper {
  background: #1e2d3e;
  color: #e6e1d6;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-tip {
  background: #1e2d3e;
}

.leaflet-popup-content {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════════
   NARRATOR PRESENCE — Route-focus tinting
   Weber: narrator visible through design elements making elements salient.
   ════════════════════════════════════════════════════════════════════════════ */

/* Mackenzie chapters — warm amber left border + subtle warm background wash */
.two-routes__chapter[data-route-focus="mackenzie"] {
  border-left: 3px solid #c8832a;
}
.two-routes__chapter[data-route-focus="mackenzie"] .two-routes__chapter-body {
  background: linear-gradient(135deg, rgba(200, 131, 42, 0.06) 0%, transparent 60%);
  border-radius: 8px;
  padding: 1.25rem;
  margin: -1.25rem;
}
.two-routes__chapter[data-route-focus="mackenzie"] .two-routes__chapter-number {
  color: #c8832a;
}

/* Lewis & Clark chapters — cool steel left border + subtle cool background wash */
.two-routes__chapter[data-route-focus="lewis-clark"] {
  border-left: 3px solid #3d6b4f;
}
.two-routes__chapter[data-route-focus="lewis-clark"] .two-routes__chapter-body {
  background: linear-gradient(135deg, rgba(61, 107, 79, 0.06) 0%, transparent 60%);
  border-radius: 8px;
  padding: 1.25rem;
  margin: -1.25rem;
}
.two-routes__chapter[data-route-focus="lewis-clark"] .two-routes__chapter-number {
  color: #3d6b4f;
}

/* Resolution / synthesis chapters — gradient border spanning both route colors */
.two-routes__chapter[data-route-focus="both"] {
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, #c8832a 0%, #3d6b4f 100%) 1;
}
.two-routes__chapter[data-route-focus="both"] .two-routes__chapter-number {
  color: #c8832a;
}

/* ── Act label — narrator announces position in narrative arc ── */
.two-routes__act-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.45);
  margin-bottom: 0.35rem;
}

/* ── Callout bullets — narrator draws attention to key plot points ── */
.two-routes__callouts {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.two-routes__callouts li {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #b0a99a;
  padding-left: 1.1rem;
  position: relative;
}
.two-routes__callouts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.two-routes__callouts--mackenzie li::before { background: #c8832a; opacity: 0.8; }
.two-routes__callouts--lewis-clark li::before { background: #3d6b4f; opacity: 0.8; }
.two-routes__callouts--both li::before { background: #9ca3af; opacity: 0.7; }

/* ── Pull quote — expedition journal as narrator's voice ── */
.two-routes__pull-quote {
  margin: 1.5rem 0 0;
  padding: 0.875rem 1.1rem;
  border-left: 2px solid #c8832a;
  background: rgba(200, 131, 42, 0.05);
  border-radius: 0 6px 6px 0;
}
.two-routes__pull-quote--lewis-clark {
  border-left-color: #3d6b4f;
  background: rgba(61, 107, 79, 0.05);
}
.two-routes__pull-quote--both {
  border-left-color: #6b7280;
  background: rgba(255, 255, 255, 0.03);
}
.two-routes__pull-quote p {
  font-family: "Cormorant Garant", ui-serif, Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: #d4c9b8;
  margin: 0 0 0.5rem;
}
.two-routes__pull-quote-attribution {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.38);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

/* ════════════════════════════════════════════════════════════════════════════
   SEQUENTIALITY — Chapter progress indicator
   Weber: "breadcrumb navigation placed on the right"
   ════════════════════════════════════════════════════════════════════════════ */

.two-routes__progress {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-left: auto;
  width: 28px;
  pointer-events: none;
  z-index: 20;
  float: right;
  margin-top: -50vh; /* cancel sticky offset so it doesn't push layout */
}

.two-routes__progress-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.two-routes__progress-act-label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.28);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin-bottom: 4px;
  line-height: 1;
}

.two-routes__progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 225, 214, 0.2);
  background: transparent;
  margin: 4px 0;
  transition: background 300ms ease, border-color 300ms ease, transform 200ms ease;
}

.two-routes__progress-dot--mackenzie {
  border-color: rgba(200, 131, 42, 0.4);
}
.two-routes__progress-dot--lewis-clark {
  border-color: rgba(61, 107, 79, 0.4);
}
.two-routes__progress-dot--both {
  border-color: rgba(230, 225, 214, 0.3);
}
.two-routes__progress-dot.is-active {
  transform: scale(1.4);
  background: currentColor;
}
.two-routes__progress-dot--mackenzie.is-active {
  background: #c8832a;
  border-color: #c8832a;
  box-shadow: 0 0 6px rgba(200, 131, 42, 0.5);
}
.two-routes__progress-dot--lewis-clark.is-active {
  background: #3d6b4f;
  border-color: #3d6b4f;
  box-shadow: 0 0 6px rgba(61, 107, 79, 0.5);
}
.two-routes__progress-dot--both.is-active {
  background: #e6e1d6;
  border-color: #e6e1d6;
}

/* Connector line between dots */
.two-routes__progress-connector {
  width: 1px;
  height: 12px;
  background: rgba(230, 225, 214, 0.1);
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════════════════
   TEMPORAL DIMENSION — Timeline bar in map footer
   Weber: "timelines are well suited for storytelling"
   ════════════════════════════════════════════════════════════════════════════ */

.two-routes__timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(13, 17, 23, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
  z-index: 1000;
  gap: 6px;
}

.two-routes__timeline-track {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 16px;
}

.two-routes__timeline-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.4);
  width: 96px;
  flex-shrink: 0;
  white-space: nowrap;
}

.two-routes__timeline-bar-outer {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  position: relative;
  overflow: visible;
}

.two-routes__timeline-bar-inner {
  height: 100%;
  border-radius: 2px;
  transition: width 600ms ease;
}
.two-routes__timeline-bar-inner--mackenzie {
  background: linear-gradient(to right, rgba(200, 131, 42, 0.4), #c8832a);
}
.two-routes__timeline-bar-inner--lewis-clark {
  background: linear-gradient(to right, rgba(61, 107, 79, 0.4), #3d6b4f);
}

.two-routes__timeline-scrubber {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0d1117;
  transition: left 600ms ease;
}
.two-routes__timeline-scrubber--mackenzie { background: #c8832a; }
.two-routes__timeline-scrubber--lewis-clark { background: #3d6b4f; }

.two-routes__timeline-date {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgba(230, 225, 214, 0.3);
  white-space: nowrap;
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   MARTINI-GLASS — Explorable layer toggle (ch 6, "showing" mode)
   Weber: "at the mouth of the glass the narrator steps back"
   ════════════════════════════════════════════════════════════════════════════ */

.two-routes__explore-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background: rgba(13, 17, 23, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: explore-panel-in 400ms ease forwards;
}

@keyframes explore-panel-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.two-routes__explore-title {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.4);
  margin-bottom: 0.25rem;
}

.two-routes__explore-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  color: rgba(230, 225, 214, 0.7);
  transition: color 150ms ease;
  font-family: inherit;
}
.two-routes__explore-toggle:hover { color: #e6e1d6; }

.two-routes__explore-swatch {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.two-routes__explore-swatch--mackenzie           { background: #c8832a; }
.two-routes__explore-swatch--mackenzie-corridor  { background: rgba(200, 131, 42, 0.45); }
.two-routes__explore-swatch--lewis-clark         { background: #3d6b4f; }
.two-routes__explore-swatch--territories         { background: #6b4fa0; }
.two-routes__explore-swatch--historical          { background: #b79b6e; }
.two-routes__explore-swatch--photo-evidence       { background: #b07a2c; }

/* 1814 L&C track map — aged-document treatment so it reads as a historical
   reconnaissance artifact beneath the route linework, not a neutral backdrop.
   The class is applied to the georaster layer container (GridLayer className). */
.historical-1814-raster {
  filter: sepia(0.35) saturate(0.72) contrast(0.92) brightness(1.03);
  transition: opacity 900ms ease;
}
/* Recede the historical base whenever a Mackenzie chapter takes focus. */
.two-routes__map--focus-mackenzie .historical-1814-raster { opacity: 0.15 !important; }

.two-routes__explore-toggle.is-off {
  opacity: 0.35;
  text-decoration: line-through;
}
.two-routes__explore-toggle.is-off .two-routes__explore-swatch {
  opacity: 0.25;
}

/* ── Source attribution panel (inside explore panel) ── */
.two-routes__source-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  max-width: 260px;
}

.two-routes__source-panel-title {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.4);
  margin-bottom: 0.5rem;
}

.two-routes__source-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.two-routes__source-panel li {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(230, 225, 214, 0.65);
}

.two-routes__source-panel li strong {
  color: rgba(230, 225, 214, 0.9);
  font-weight: 600;
}

.two-routes__source-quality {
  color: rgba(200, 131, 42, 0.85);
  font-style: italic;
}

/* ── Counter-archive quote panel ── */
.two-routes__counter-archive {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1001;
  max-width: 340px;
  background: rgba(13, 17, 23, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 131, 42, 0.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  animation: explore-panel-in 400ms ease forwards;
}

.two-routes__counter-archive blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.two-routes__counter-archive p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e6e1d6;
  margin: 0 0 0.75rem;
  font-style: italic;
}

.two-routes__counter-archive footer {
  font-size: 0.75rem;
  color: rgba(230, 225, 214, 0.7);
  margin-bottom: 0.5rem;
}

.two-routes__counter-archive cite {
  display: block;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(230, 225, 214, 0.5);
  font-style: normal;
}

@media (max-width: 768px) {
  .two-routes__counter-archive {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 0 1rem 1rem;
    max-width: none;
  }
}

/* ── Corps record quote panel ──
   The expedition's own commanders' record turned against the narrative built
   on it — an "inside-out" counter-archive (GIS-157), deliberately styled with
   a distinct accent (--penpot-color-ocean-mid, #1e4d6b) rather than the
   Indigenous counter-archive panel's amber above, so a viewer can tell the two
   source types apart at a glance without reading the citation first. */
.two-routes__corps-record {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1001;
  max-width: 340px;
  background: rgba(13, 17, 23, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(30, 77, 107, 0.45);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  animation: explore-panel-in 400ms ease forwards;
}

.two-routes__corps-record blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.two-routes__corps-record p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e6e1d6;
  margin: 0 0 0.75rem;
  font-style: italic;
}

.two-routes__corps-record footer {
  font-size: 0.75rem;
  color: rgba(230, 225, 214, 0.7);
  margin-bottom: 0.5rem;
}

.two-routes__corps-record cite {
  display: block;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(230, 225, 214, 0.5);
  font-style: normal;
}

@media (max-width: 768px) {
  .two-routes__corps-record {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 0 1rem 1rem;
    max-width: none;
  }
}

/* Map container must be positioned to allow absolute children */
.two-routes__map { position: relative; }

/* ════════════════════════════════════════════════════════════════════════════
   CALLIGRAPHIC ROUTES — mark-making difference encodes the epistemological argument
   ════════════════════════════════════════════════════════════════════════════ */

/* Mackenzie: organic amber glow — a trail drawn by relationship */
.route-line--mackenzie {
  filter: drop-shadow(0 0 3px rgba(200, 131, 42, 0.45));
}

/* Lewis-Clark: no glow — bureaucratic precision has no warmth */
.route-line--lewis-clark {
  filter: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   TERRITORY LABELS — presence, not claim
   Cormorant Garant italic at low opacity; the land holds a name, not a border
   ════════════════════════════════════════════════════════════════════════════ */

.leaflet-tooltip.territory-label {
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: "Cormorant Garant", ui-serif, Georgia, serif;
  font-style: italic;
  font-size: 0.75rem;
  color: rgba(180, 160, 210, 0.55);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.04em;
  padding: 0;
}

.leaflet-tooltip.territory-label::before {
  display: none;
}

/* ── Narrow mobile: hide progress indicator ── */
@media (max-width: 480px) {
  .two-routes__progress { display: none; }
  .two-routes__timeline-label { width: 64px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   HAWKINS — Typography as mode signal
   Hawkins (2015): "We treated text akin to images, rendering its appearance
   malleable rather than set in terms of format, font and size."
   The typeface IS the epistemological argument.
   ════════════════════════════════════════════════════════════════════════════ */

/* Mackenzie chapters — Cormorant Garant serif: embodied, relational, organic */
.two-routes__chapter[data-route-focus="mackenzie"] h2 {
  font-family: "Cormorant Garant", ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.18;
}

/* Lewis & Clark chapters — DM Sans sans-serif: systematic, bureaucratic, precise */
.two-routes__chapter[data-route-focus="lewis-clark"] h2 {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: 0.025em;
  line-height: 1.22;
  text-transform: none;
}

/* Resolution / both — Cormorant Garant at lighter weight: unresolved, holding tension */
.two-routes__chapter[data-route-focus="both"] h2 {
  font-family: "Cormorant Garant", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.005em;
  font-style: italic;
  line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════════════════════
   HAWKINS — Pull quote as floating footnote
   Hawkins: "Floating free from the base of the page... a formal assertion of
   the multiply authored nature of the text."
   Attribution moved above the quote; slight rotation signals borrowed text.
   ════════════════════════════════════════════════════════════════════════════ */

/* Flip attribution above the quote text */
.two-routes__pull-quote {
  display: flex;
  flex-direction: column;
  transform: rotate(-0.4deg);
  transform-origin: left center;
  border-left-width: 3px;
}

.two-routes__pull-quote-attribution {
  order: -1;
  margin-bottom: 0.45rem;
  margin-top: 0;
}

.two-routes__pull-quote p {
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   HAWKINS — Material note: different register of knowing
   Hawkins: "geological diagrams alongside parish maps... the geologic, botanic
   and folkloric came to sit alongside oral histories."
   Rendered in monospace at a different visual weight — data, not narrative.
   ════════════════════════════════════════════════════════════════════════════ */

.two-routes__material-note {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(230, 225, 214, 0.35);
  letter-spacing: 0.01em;
}

.two-routes__material-note::before {
  content: '◈ ';
  color: rgba(230, 225, 214, 0.2);
}

/* ════════════════════════════════════════════════════════════════════════════
   HAWKINS — Mode Comparison Widget (chapter 6)
   Hawkins: "novel disjunctions of the dissimilar... differences retained as a
   means to generate instability."
   Two columns, deliberately asymmetric.
   ════════════════════════════════════════════════════════════════════════════ */

.two-routes__mode-comparison {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.two-routes__mode-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.two-routes__mode-col {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.two-routes__mode-col--mackenzie {
  background: rgba(200, 131, 42, 0.07);
  border-top: 2px solid #c8832a;
}

.two-routes__mode-col--lewis-clark {
  background: rgba(61, 107, 79, 0.07);
  border-top: 2px solid #3d6b4f;
}

.two-routes__mode-col-heading {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.two-routes__mode-col--mackenzie .two-routes__mode-col-heading {
  color: #c8832a;
}

.two-routes__mode-col--lewis-clark .two-routes__mode-col-heading {
  color: #3d6b4f;
}

.two-routes__mode-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.two-routes__mode-row-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.3);
}

.two-routes__mode-row-value {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(230, 225, 214, 0.75);
}

.two-routes__mode-divider {
  text-align: center;
  padding: 0.6rem 0 0.2rem;
  font-family: "Cormorant Garant", ui-serif, serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(230, 225, 214, 0.3);
  letter-spacing: 0.04em;
}

/* The basis and comparability notes. A rate whose denominators are not stated
 * is not a finding; these carry the definition the figures are computed on. */
.two-routes__mode-basis {
  font-size: 0.68rem;
  line-height: 1.55;
  color: rgba(230, 225, 214, 0.5);
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(230, 225, 214, 0.08);
}

.two-routes__mode-basis strong {
  color: rgba(230, 225, 214, 0.72);
}

.two-routes__mode-basis--caveat {
  border-top: 0;
  padding-top: 0.25rem;
  font-style: italic;
}

.two-routes__timeline-days {
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

/* Mobile: stack columns vertically */
@media (max-width: 540px) {
  .two-routes__mode-comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Historic-photograph media blocks (Act-3 coda) ───────────────────────── */
.two-routes__media-group {
  margin: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.two-routes__media {
  margin: 0;
}

.two-routes__media-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.two-routes__media figcaption,
.two-routes__media-credit {
  display: block;
}

.two-routes__media-caption {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e6e1d6;
  margin: 0.6rem 0 0.4rem;
}

.two-routes__media-credit {
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(230, 225, 214, 0.5);
}
.two-routes__media-credit a {
  color: rgba(200, 131, 42, 0.75);
  text-decoration: none;
}
.two-routes__media-credit a:hover { color: #c8832a; }

/* Gated placeholder — no image is ever emitted for these */
.two-routes__media--gated .two-routes__media-withheld {
  border: 1px dashed rgba(200, 131, 42, 0.4);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  background: rgba(200, 131, 42, 0.06);
}
.two-routes__media-withheld-label {
  display: block;
  font-family: "Cormorant Garant", ui-serif, serif;
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(200, 131, 42, 0.9);
  margin-bottom: 0.5rem;
}

/* Land acknowledgment (protocol-required, foot of coda) */
.two-routes__land-ack {
  margin: 1.75rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(230, 225, 214, 0.6);
}

/* Photo-evidence map popup */
.two-routes__photo-popup { max-width: 220px; }
.two-routes__photo-popup-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}
.two-routes__photo-popup-date {
  font-size: 0.72rem;
  color: #6b7280;
}
.two-routes__photo-popup-caption {
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 0.35rem 0;
}
.two-routes__photo-popup-credit {
  display: block;
  font-size: 0.64rem;
  line-height: 1.35;
  color: #6b7280;
}

/* Known-limitation flag on a figure. Deliberately visible rather than tucked
 * into a tooltip: an artefact a reader finds unacknowledged costs more
 * credibility than one the figure names itself. */
.two-routes__chart-caveat {
  font-size: 0.68rem;
  line-height: 1.5;
  color: #d6b271;
  background: rgba(200, 131, 42, 0.08);
  border-left: 2px solid rgba(200, 131, 42, 0.5);
  padding: 0.45rem 0.6rem;
  margin: 0.6rem 0 0;
  border-radius: 0 4px 4px 0;
}

.two-routes__chart-caveat strong {
  color: #e8c48c;
}
