.movement-visual {
  background: #f3f4f5;
  color: #2e2d2c;
}
.movement-visual h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  max-width: none;
}
.movement-intro {
  margin: 24px 0 32px;
  font-size: 18px;
}
.movement-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  min-height: 850px;
  display: flex;
  flex-direction: column;
}
.movement-totals {
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.movement-totals strong {
  display: block;
  font-size: clamp(30px, 5vw, 66px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #bc2026;
  margin: 18px 0 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.movement-totals p {
  font-size: 13px;
  color: #626262;
}
.movement-baseline strong {
  font-size: clamp(24px, 3vw, 40px);
  color: #2e2d2c;
}
.movement-plot {
  margin: 30px 0;
  flex: 1;
}
.movement-plot svg {
  width: 100%;
  display: block;
  overflow: visible;
}
#grid line {
  stroke: #e0e1e3;
}
#grid text,
#years text {
  fill: #626262;
  font:
    14px Poppins,
    Arial,
    sans-serif;
}
#history,
#projection {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#history {
  stroke: #bc2026;
}
#projection {
  stroke: #bc2026;
  stroke-dasharray: 2 10;
}
#cursor {
  fill: #bc2026;
}
#points circle {
  fill: #bc2026;
  stroke: #fff;
  stroke-width: 2;
}
#cursor-label {
  font:
    600 18px Poppins,
    Arial,
    sans-serif;
  fill: #2e2d2c;
}
#boundary {
  stroke: #a4a4a4;
  stroke-dasharray: 4 6;
}
#boundary-label {
  font:
    12px Poppins,
    Arial,
    sans-serif;
  fill: #626262;
}
.movement-legend,
.movement-controls {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.movement-legend {
  font-size: 14px;
  color: #bc2026;
}
.movement-legend span + span {
  color: #bc2026;
}
.movement-controls button {
  padding: 10px 22px;
  border: 1px solid #bc2026;
  border-radius: 6px;
  background: white;
  color: #bc2026;
  font-size: 14px;
}
.movement-controls #replay {
  background: #bc2026;
  color: white;
}
.movement-method,
.movement-source {
  font-size: 12px;
  color: #626262;
  max-width: none;
  margin-top: 12px;
}
.movement-source a {
  text-decoration: underline;
}
.movement-card details p {
  font-size: 13px;
}
.movement-card summary {
  font-size: 12px;
}
@media (max-width: 600px) {
  .movement-card {
    padding: 20px 16px;
    min-height: 720px;
  }
  .movement-totals {
    gap: 16px;
  }
  .movement-totals strong {
    font-size: 30px;
  }
  .movement-baseline strong {
    font-size: 24px;
  }
  .movement-plot {
    display: flex;
    align-items: center;
    min-height: 260px;
  }
  .movement-plot svg {
    min-height: 240px;
  }
  .movement-legend {
    gap: 10px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .movement-plot svg {
    min-height: 0;
  }
  #grid text,
  #years text {
    font-size: 12px;
  }
  #cursor-label {
    font-size: 16px;
  }
  .movement-plot {
    min-height: 0;
  }
}

/* Reclaim the people-and-tiles area for a tall plotting surface. */
.movement-card {
  min-height: 1050px;
}
.movement-plot {
  margin: 20px 0 12px;
}
.movement-legend,
.movement-controls {
  margin-bottom: 12px;
}
.movement-notes {
  margin-top: 8px;
}
.movement-notes summary {
  color: #626262;
}
.movement-plot svg {
  max-height: 700px;
}
@media (max-width: 600px) {
  .movement-card {
    min-height: 950px;
  }
  .movement-plot svg {
    max-height: none;
  }
}

@media (max-width: 800px) {
  .movement-visual {
    padding-block: 24px;
    margin-top: 0;
  }
  .movement-visual h1 {
    font-size: 25px;
    line-height: 1.2;
  }
  .movement-intro {
    font-size: 14px;
    margin: 12px 0 18px;
  }
  .movement-card {
    padding: 18px 12px;
    min-height: 0;
  }
  .movement-totals {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .movement-baseline {
    display: none;
  }
  .movement-totals strong {
    font-size: 34px;
    margin: 6px 0;
  }
  .movement-totals p {
    font-size: 12px;
  }
  .movement-plot {
    flex: none;
    margin: 16px 0 12px;
    min-height: 0;
  }
  .movement-plot svg {
    min-height: 0;
    max-height: 260px;
  }
  #grid text,
  #years text {
    font-size: 14px;
  }
  #cursor-label {
    font-size: 16px;
  }
  #boundary-label {
    font-size: 12px;
  }
  .movement-legend {
    font-size: 12px;
    gap: 10px;
  }
  .movement-controls button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (min-width: 801px) {
  .movement-visual {
    padding-block: 22px;
    margin: 0;
  }
  .movement-visual h1 {
    font-size: 30px;
  }
  .movement-intro {
    margin: 10px 0 16px;
    font-size: 15px;
  }
  .movement-card {
    min-height: 0;
    padding: 18px 28px;
  }
  .movement-totals {
    gap: 20px;
  }
  .movement-totals strong {
    font-size: 38px;
    margin: 6px 0;
  }
  .movement-baseline strong {
    font-size: 28px;
  }
  .movement-plot {
    flex: none;
    margin: 10px 0;
  }
  .movement-plot svg {
    height: 210px;
    max-height: 210px;
  }
  .movement-controls button {
    padding: 7px 14px;
  }
  .movement-legend,
  .movement-controls {
    margin-bottom: 8px;
  }
}
@media (min-width: 801px) {
  .movement-card .movement-notes {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .movement-plot svg {
    height: 180px;
    max-height: 180px;
  }
  #grid text,
  #years text {
    font-size: 20px;
  }
  #cursor-label {
    font-size: 23px;
  }
  #boundary-label {
    font-size: 18px;
  }
}
