/* =========================================================================
   TIDES — Migration between Europe and the Americas, 1900–2026
   Single panel, red & white, geographic map behind flow arcs.
   ========================================================================= */

:root {
  /* ADD Associés brand palette */
  --bg:         #ffffff;
  --bg-2:       #faf3f5;
  --paper:      #fdf8f9;

  --red:        #df1d40;   /* PRIMARY brand red */
  --red-dark:   #a01429;
  --red-deep:   #6c0c1c;
  --red-light:  #f5b8c3;
  --red-wash:   #fce5ea;

  --blue:       #201a40;   /* secondary brand blue (body text) */
  --gray:       #454545;   /* secondary brand gray */

  --ink:        #201a40;   /* body text — brand blue */
  --ink-soft:   #454545;   /* secondary text — brand gray */
  --mute:       #8a8898;
  --rule:       #e6dee8;

  --land:       #f4eef0;
  --land-stroke:#dac9d0;

  --ew:         var(--red-dark);   /* Europe -> Americas, historical */
  --we:         var(--red);        /* Americas -> Europe, modern    */

  /* DIN 2014 (brand) → D-DIN (open clone, via cdnfonts) → Saira (Google
     Fonts, DIN-alike) → Arial (charter-sanctioned digital fallback). */
  --display: "DIN 2014", "D-DIN PRO", "D-DIN", "Saira Condensed", Saira, Arial, sans-serif;
  --grotesk: "DIN 2014", "D-DIN PRO", "D-DIN", Saira, Arial, sans-serif;
  --mono:    "DIN 2014", "D-DIN PRO", "D-DIN", Saira, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}

/* =========================================================================
   SIDE-BY-SIDE LAYOUT — narrative scrolls on the left, map sticks on the right
   ========================================================================= */
.scroll-region {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 0;
  background: var(--bg);
  border-bottom: 3px solid var(--red);
}
.narrative-col {
  border-right: 1px solid var(--red);
  background: var(--bg);
}
.stage-col {
  position: relative;
}

/* =========================================================================
   MASTHEAD
   ========================================================================= */
.masthead {
  padding: 56px 64px 28px 64px;
  border-bottom: 2px solid var(--red);
  background: var(--bg);
  position: relative;
}
.masthead .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.masthead-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.masthead h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 68px;
  line-height: 0.92;
  margin: 0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  flex: 1;
}
.masthead h1 .title-num {
  color: var(--red);
}
.masthead h1 .ampersand {
  font-style: italic;
  font-weight: 400;
  font-family: "Archivo", serif;
  letter-spacing: 0;
  color: var(--red);
}
.masthead .subtitle {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--red);
  max-width: 760px;
}
.masthead .subline {
  margin-top: 22px;
  max-width: 740px;
}
.masthead .subline p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 12px;
}
.masthead .subline p:last-child { margin-bottom: 0; }
.masthead .subline .subline-hint {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--red);
  text-transform: none;
}
.masthead .credit {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =========================================================================
   STICKY CAP — scrubber pinned top of viewport
   ========================================================================= */
.sticky-cap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.scrubber {
  padding: 14px 64px 16px 64px;
  position: relative;
}
.scrubber-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-right: 290px; /* room for 6-language toggle */
}
.scrubber-year {
  font-family: var(--display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}
.scrubber-era {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.scrubber-era .era-range {
  color: var(--ink-soft);
  margin-right: 12px;
}
.scrubber-track-wrap {
  position: relative;
  padding: 14px 0 10px;
  cursor: pointer;
  user-select: none;
}
.scrubber-track {
  position: relative;
  height: 2px;
  background: var(--rule);
}
.scrubber-track .tick {
  position: absolute;
  top: -5px;
  width: 1px;
  height: 12px;
  background: var(--mute);
}
.scrubber-track .tick.major {
  height: 16px;
  top: -7px;
  background: var(--ink);
}
.scrubber-track .tick-label {
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.scrubber-track .era-band {
  position: absolute;
  top: 0;
  height: 2px;
  background: var(--ink);
}
.scrubber-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--red);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--ink);
  border-radius: 50%;
  pointer-events: none;
}
.scrubber-knob::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 2px);
  width: 1px;
  height: 8px;
  background: var(--ink);
}

body.scrub-dragging { user-select: none; cursor: grabbing; }

/* =========================================================================
   LANGUAGE TOGGLE
   ========================================================================= */
.lang-toggle {
  display: inline-flex;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  flex-shrink: 0;
}
.lang-toggle button {
  background: transparent;
  border: 1.25px solid var(--ink);
  color: var(--ink);
  padding: 6px 12px 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  line-height: 1;
  transition: background 120ms ease, color 120ms ease;
}
.lang-toggle button:hover { background: var(--red-wash); }
.lang-toggle button.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.lang-toggle button + button { border-left: 0; }
.lang-toggle button.active + button { border-left: 1.25px solid var(--ink); }
.lang-toggle button + button.active { border-left: 1.25px solid var(--red); }

.sticky-cap .lang-toggle {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 2;
}


/* =========================================================================
   STAGE — single map panel, sticky beneath the scrubber
   ========================================================================= */
.stage {
  position: sticky;
  top: 152px;
  z-index: 20;
  background: var(--bg);
}
.panel {
  position: relative;
  padding: 18px 28px 18px;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 580px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.panel-head .panel-tag {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.panel-head .era-tag {
  font-family: var(--display);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
}
.panel-head .panel-range {
  font-family: var(--mono);
  color: var(--ink-soft);
}

.panel-map {
  flex: 1;
  position: relative;
}
.panel-map svg.world-map {
  display: block;
  width: 100%;
  height: auto;
}

/* Continent shapes */
.continent {
  fill: var(--land);
  stroke: var(--land-stroke);
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
}
.graticule {
  fill: none;
  stroke: var(--land-stroke);
  stroke-width: 0.4;
  stroke-opacity: 0.4;
  vector-effect: non-scaling-stroke;
}
.sphere {
  fill: var(--paper);
  stroke: none;
}

/* Country dots & labels */
.country-dot {
  fill: var(--ink);
  transition: r 200ms ease, fill 200ms ease;
}
.country-dot.active { fill: var(--ink); }
.country-dot.endpoint-active {
  fill: var(--red);
  stroke: var(--bg);
  stroke-width: 1.2;
}
.country-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  fill: var(--ink);
}
.country-label.muted { fill: var(--mute); opacity: 0.6; }
.country-label.endpoint-active {
  fill: var(--red);
  font-weight: 700;
}

/* Clickable country nodes — invite the click the eye expects */
.country-hit { fill: transparent; }
.country-node.clickable { cursor: pointer; }
.country-node.clickable .country-label {
  pointer-events: auto;
  cursor: pointer;
}
.country-node.clickable:hover .country-dot {
  fill: var(--red);
}
.country-node.clickable:hover .country-label {
  fill: var(--red);
  font-weight: 700;
}
.country-node.picked .country-dot {
  fill: var(--red);
  stroke: var(--bg);
  stroke-width: 1.4;
}

/* Arcs */
.arc {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  transition: stroke-opacity 200ms ease, stroke-width 180ms ease;
}
.arc.ew { stroke: var(--ew); }
.arc.we { stroke: var(--we); stroke-dasharray: 5 3; }
.arc.dim { stroke-opacity: 0.12 !important; }
.arc.hover {
  stroke-opacity: 1 !important;
}
.arc-hit {
  fill: none;
  stroke: transparent;
  pointer-events: stroke;
  cursor: pointer;
}

/* Volume callout */
.volume-callout {
  position: absolute;
  left: 30px;
  top: 60px;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 5;
}
.volume-callout .v {
  display: block;
  font-size: 64px;
  color: var(--red);
}
.volume-callout .l {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--ink-soft);
  max-width: 220px;
}

/* Legend */
.panel-foot {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.legend-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 24px;
}
.legend-swatch {
  width: 26px;
  height: 2.5px;
  background: var(--ew);
}
.legend-swatch.we {
  background: transparent;
  background-image: linear-gradient(to right, var(--we) 0 5px, transparent 5px 8px, var(--we) 8px 13px, transparent 13px 16px, var(--we) 16px 21px, transparent 21px 24px, var(--we) 24px 26px);
}
.legend-hint {
  color: var(--mute);
}

/* Hover tooltip */
.flow-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--bg);
  border: 1.5px solid var(--red);
  padding: 10px 14px 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  z-index: 50;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(74, 16, 16, 0.12);
  min-width: 160px;
  transform: translate(-50%, calc(-100% - 14px));
}
.flow-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--red);
}
.flow-tooltip .ft-route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.flow-tooltip .ft-arrow {
  color: var(--red);
  font-weight: 400;
}
.flow-tooltip .ft-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--red);
  line-height: 1;
}
.flow-tooltip .ft-unit {
  color: var(--ink-soft);
  margin-left: 4px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.flow-tooltip .ft-era {
  margin-top: 8px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 9.5px;
}

/* =========================================================================
   NARRATIVE
   ========================================================================= */
.narrative {
  position: relative;
  background: var(--bg);
}
.scene {
  min-height: 78vh;
  padding: 56px 40px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: start;
}
.scene:last-child { border-bottom: 0; }
.scene-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 68px;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--red);
}
.scene-num .of {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.scene-body { max-width: 680px; }
.scene-range {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.scene-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.scene-headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 14px 0 18px;
  text-wrap: balance;
}
.scene-deck {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  max-width: none;
}
.scene-figures {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1.5px solid var(--red);
  padding-top: 14px;
}
.scene-fig {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.scene-fig .fig-v {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--red);
}
.scene-fig .fig-l {
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  line-height: 1.35;
}
/* Country figures highlight their flows on the map when hovered */
.scene-fig.fig-country {
  cursor: pointer;
  border-top: 2px solid transparent;
  margin-top: -2px;
  padding-top: 2px;
  transition: border-color 140ms ease;
}
.scene-fig.fig-country:hover { border-top-color: var(--red); }
.scene-fig.fig-country .fig-v {
  transition: color 140ms ease;
}
.scene-fig.fig-country:hover .fig-l { color: var(--red); }

/* =========================================================================
   COLOPHON
   ========================================================================= */
.colophon {
  padding: 0;
  border-top: 3px solid var(--red);
  background: var(--bg-2);
}

/* --- Epilogue (probate-genealogy bridge to ADD Associés) --- */
.epilogue {
  padding: 80px 64px 64px;
  background: var(--red);
  color: #fff;
}
.epilogue-tag {
  font-family: var(--grotesk);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
}
.epilogue-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 28px;
  max-width: 900px;
  text-wrap: balance;
  color: #fff;
}
.epilogue-lead {
  font-family: var(--grotesk);
  font-size: 18px;
  line-height: 1.55;
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
}
.epilogue-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 20px 11px;
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  background: #fff;
  text-decoration: none;
  border: 1.5px solid #fff;
  transition: background 150ms ease, color 150ms ease;
}
.epilogue-cta:hover {
  background: transparent;
  color: #fff;
}
/* Ensure the epilogue (white-on-red) is never dimmed by body-color tweaks
   or stray direct-edit overrides. */
.epilogue,
.epilogue .epilogue-tag,
.epilogue .epilogue-title,
.epilogue .epilogue-lead { color: #fff !important; }
.epilogue .epilogue-tag { color: rgba(255,255,255,0.82) !important; }

/* --- Sources / closing essay --- */
.colophon-grid {
  padding: 64px 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-2);
}
.colophon h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
  color: var(--ink);
}
.colophon p {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 540px;
  color: var(--ink);
  margin: 0 0 14px;
}
.colophon .sources {
  font-family: var(--grotesk);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --- Footer with copyright + made-by --- */
.page-footer {
  padding: 22px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  font-family: var(--grotesk);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--bg-2);
}
.page-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.page-footer a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}


/* =========================================================================
   ADD ASSOCIÉS BRAND MARK
   Typographic placeholder — replace .brand-wordmark with the official
   <img src="logo.svg"> when available.
   ========================================================================= */
.masthead-brandline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--red);
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 320px;
}
.brand-add {
  font-family: var(--grotesk);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--red);
  line-height: 1;
}
.brand-rule {
  width: 64px;
  height: 2.5px;
  background: var(--red);
  margin: 6px 0 4px;
}
.brand-associes {
  font-family: var(--grotesk);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
}

/* =========================================================================
   Typography touch-ups for DIN
   ========================================================================= */
.scrubber-year,
.scene-num,
.scene-fig .fig-v,
.volume-callout .v,
.flow-tooltip .ft-value {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Slightly tighten display caps for DIN's natural width */
.masthead h1 {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.scene-headline {
  font-weight: 700;
  letter-spacing: -0.005em;
}
.scene-label,
.panel-head .panel-tag,
.panel-head .era-tag {
  font-family: var(--grotesk);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Captions in DIN, tracked-out */
.country-label,
.scrubber-era,
.scrubber-track .tick-label,
.meta,
.credit,
.panel-foot,
.scene-range,
.scene-fig,
.colophon .sources,
.flow-tooltip,
.lang-toggle {
  font-family: var(--grotesk);
}

/* Re-color a few borders/rules to brand red as primary accent */
.masthead { border-bottom: 3px solid var(--red); }
.sticky-cap { border-bottom: 1px solid var(--red); }
.stage { border-bottom: 3px solid var(--red); }
.colophon { border-top: 3px solid var(--red); }
.scene-figures { border-top: 1.5px solid var(--red); }

/* Body text reads in brand blue */
.scene-deck,
.colophon p,
.masthead .subline {
  color: var(--blue);
}

/* Headlines stay blue, but era labels and big numbers in red */
.scene-headline { color: var(--blue); }
.scene-fig .fig-v { color: var(--red); }
.scene-num { color: var(--red); }
.scrubber-year { color: var(--red); }
.volume-callout .v { color: var(--red); }
.scene-label { color: var(--red); }
.colophon h2 { color: var(--blue); }
.masthead h1 { color: var(--blue); }
.masthead h1 .ampersand { color: var(--red); font-style: italic; font-weight: 400; }


/* =========================================================================
   TWEAK-DRIVEN STYLES
   ========================================================================= */

/* Narrative position swap */
.scroll-region.layout-right { grid-template-columns: 1fr 440px; }
.scroll-region.layout-right .narrative-col {
  grid-column: 2;
  border-right: none;
  border-left: 1px solid var(--red);
}
.scroll-region.layout-right .stage-col { grid-column: 1; }

/* Body text color tweak */
.page.body-gray .scene-deck,
.page.body-gray .colophon p,
.page.body-gray .masthead .subline {
  color: var(--gray);
}
.page.body-gray .scene-headline,
.page.body-gray .masthead h1,
.page.body-gray .colophon h2 {
  color: var(--gray);
}
.page.body-gray .country-dot { fill: var(--gray); }

/* Arc style variants */
.arc.style-dashed.ew { stroke: var(--red); stroke-dasharray: none; }
.arc.style-dashed.we { stroke: var(--red); stroke-dasharray: 6 4; }

.arc.style-bicolor.ew { stroke: var(--blue); stroke-dasharray: none; }
.arc.style-bicolor.we { stroke: var(--red); stroke-dasharray: none; }

.arc.style-mono.ew { stroke: var(--red); stroke-dasharray: none; }
.arc.style-mono.we { stroke: var(--red); stroke-dasharray: none; }

/* Legend swatches mirror arc style */
.legend-line.legend-dashed .legend-swatch.ew { background: var(--red); }
.legend-line.legend-dashed .legend-swatch.we {
  background: transparent;
  background-image: linear-gradient(to right, var(--red) 0 5px, transparent 5px 8px, var(--red) 8px 13px, transparent 13px 16px, var(--red) 16px 21px, transparent 21px 24px, var(--red) 24px 26px);
}
.legend-line.legend-bicolor .legend-swatch.ew { background: var(--blue); background-image: none; }
.legend-line.legend-bicolor .legend-swatch.we { background: var(--red); background-image: none; }
.legend-line.legend-mono .legend-swatch.ew { background: var(--red); background-image: none; }
.legend-line.legend-mono .legend-swatch.we { background: var(--red); background-image: none; }


/* =========================================================================
   250th-ANNIVERSARY BADGE (masthead)
   ========================================================================= */
.anniversary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.anniversary-row .anniversary-badge { margin: 0; }
.anniversary-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0 0 22px;
  padding: 8px 16px 7px;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.anniversary-badge .ab-star { color: var(--red); font-size: 13px; line-height: 1; }
.us-flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 1.5px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.3);
}
.anniversary-badge .us-flag { box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.45); }

/* =========================================================================
   INTRO — reduced executive summary (between masthead & sticky cap)
   ========================================================================= */
.intro-exec {
  padding: 44px 64px 52px;
  border-bottom: 1px solid var(--red);
  background: var(--bg);
}
.intro-exec-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}
.intro-exec-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 900px;
  text-wrap: balance;
}
.intro-exec-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
}
.intro-exec-cols p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--blue);
  margin: 0;
}

/* =========================================================================
   USA FOCUS BAND (before colophon)
   ========================================================================= */
.usa-focus {
  background: var(--blue);
  color: #fff;
  padding: 64px 64px 60px;
  border-top: 3px solid var(--red);
}
.usa-focus-inner { max-width: 1000px; }
.usa-focus-head { margin-bottom: 20px; }
.usa-focus-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}
.usa-focus-tag .ab-star { color: var(--red); }
.usa-focus-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px;
  max-width: 860px;
  text-wrap: balance;
}
.usa-focus-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.usa-focus-body p {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0;
}
.usa-focus-stats {
  display: flex;
  gap: 56px;
  border-top: 1.5px solid rgba(255,255,255,0.3);
  padding-top: 24px;
}
.usa-focus-stats .ufs { display: flex; flex-direction: column; gap: 6px; }
.usa-focus-stats .v {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--red-light);
}
.usa-focus-stats .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  max-width: 260px;
  line-height: 1.4;
}

/* =========================================================================
   FOOTER ACTIONS — send to colleague + download PDF
   ========================================================================= */
.footer-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.footer-action {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 22px;
  border: 1.5px solid var(--red);
  background: var(--bg);
  color: var(--red);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 130ms ease, color 130ms ease;
}
.footer-action:hover { background: var(--red); color: #fff; }
.footer-action .fa-icon { font-size: 16px; line-height: 1; }
.footer-action.primary {
  background: var(--red);
  color: #fff;
}
.footer-action.primary:hover { background: var(--red-dark); }

/* Methodology block (colophon right column) */
.methodo h2 { margin: 0 0 10px; }
.methodo-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 480px;
}
.methodo-list { margin: 0; padding: 0; }
.methodo-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.methodo-row dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin: 0;
  padding-top: 1px;
}
.methodo-row dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--blue);
}
.methodo-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--mute);
}
@media (max-width: 720px) {
  .methodo-row { grid-template-columns: 1fr; gap: 4px; }
}
.footer-action.primary {
  background: var(--red);
  color: #fff;
}
.footer-action.primary:hover { background: var(--red-dark); }

/* Methodology block (colophon right column) */
.methodo h2 { margin: 0 0 10px; }
.methodo-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 480px;
}
.methodo-list { margin: 0; padding: 0; }
.methodo-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.methodo-row dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin: 0;
  padding-top: 1px;
}
.methodo-row dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--blue);
}
.methodo-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--mute);
}
@media (max-width: 720px) {
  .methodo-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Map: USA-focus emphasis — dimmed non-focus arcs already handled by .dim;
   focus arcs get a touch more weight via .arc.focus */
.arc.focus { stroke-opacity: 1 !important; }

/* =========================================================================
   RESPONSIVE — stack the two-column blocks on narrow widths
   ========================================================================= */
@media (max-width: 720px) {
  .intro-exec-cols,
  .usa-focus-body { grid-template-columns: 1fr; gap: 20px; }
  .usa-focus-stats { flex-direction: column; gap: 24px; }
}


/* =========================================================================
   FOOTER ACTIONS — extra breathing room from the page edge
   ========================================================================= */
.footer-actions {
  margin-top: 24px;
  margin-bottom: 40px;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: none;
}

/* =========================================================================
   SEND-TO-A-COLLEAGUE MODAL
   ========================================================================= */
.send-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 20, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.send-modal {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  padding: 34px 34px 30px;
  box-shadow: 0 30px 80px rgba(26, 20, 16, 0.32);
}
.send-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}
.send-close:hover { color: var(--red); }
.send-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.send-modal-intro {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--blue);
  margin: 0 0 22px;
  max-width: 92%;
}
.send-field { display: block; margin-bottom: 16px; }
.send-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.send-field-row .send-field { margin-bottom: 16px; }
.send-field > span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 600;
}
.send-field input,
.send-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--rule);
  background: #fff;
  padding: 11px 12px;
  font-family: var(--grotesk);
  font-size: 14px;
  color: var(--blue);
  outline: none;
  border-radius: 0;
  resize: vertical;
}
.send-field input:focus,
.send-field textarea:focus { border-color: var(--red); }
.send-field input::placeholder,
.send-field textarea::placeholder { color: var(--mute); }
.send-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 4px;
  cursor: pointer;
}
.send-consent input {
  margin: 2px 0 0;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--red);
  cursor: pointer;
}
.send-consent span {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.send-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.send-btn {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  border: 1.5px solid var(--red);
  transition: background 130ms ease, color 130ms ease;
}
.send-btn.ghost { background: transparent; color: var(--red); }
.send-btn.ghost:hover { background: var(--red-wash); }
.send-btn.primary { background: var(--red); color: #fff; }
.send-btn.primary:hover { background: var(--red-dark); }
.send-btn:disabled { opacity: 0.5; cursor: default; }

/* Direct-send result / error states */
.send-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 8px 12px;
}
.send-result-check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 28px;
  line-height: 54px;
  margin-bottom: 16px;
}
.send-result-msg {
  font-size: 15px;
  line-height: 1.5;
  color: var(--blue);
  max-width: 320px;
  margin: 0;
}
.send-error {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--red-dark);
  margin: 4px 0 0;
}
.send-error a { color: var(--red); font-weight: 700; }
