:root {
  --paper: #fbfaf6;
  --white: #fffefa;
  --ink: #282725;
  --body: #54524e;
  --muted: #77736d;
  --faint: #9c9891;
  --rule: #ddd9d0;
  --rule-dark: #b9b4aa;
  --focus: #6d5685;
  --accent: #8a5a75;
  --sans: "Avenir Next", Avenir, "Gill Sans", "Helvetica Neue", "PingFang SC", sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --page: 1420px;
  --side: clamp(20px, 4.6vw, 76px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, white);
  outline-offset: 3px;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--ink);
  color: white;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  text-decoration: none;
  top: 12px;
  transform: translateY(-180%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.back-link {
  color: var(--muted);
  font-size: 10px;
  left: 28px;
  letter-spacing: .09em;
  position: absolute;
  text-decoration: none;
  top: 22px;
  transition: color .18s ease;
  z-index: 2;
}

.back-link:hover {
  color: var(--ink);
}

main,
footer {
  margin: 0 auto;
  max-width: var(--page);
  padding-left: var(--side);
  padding-right: var(--side);
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero {
  display: grid;
  gap: clamp(48px, 9vw, 150px);
  grid-template-columns: minmax(300px, .86fr) minmax(480px, 1.55fr);
  padding: clamp(82px, 9vw, 128px) 0 54px;
}

.hero-title {
  align-self: start;
}

.hero h1 {
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .99;
  margin: 0;
  max-width: 540px;
}

.subtitle {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 21px);
  font-style: italic;
  line-height: 1.45;
  margin: 22px 0 0;
  max-width: 420px;
}

.hero-copy {
  color: var(--body);
  font-size: 14px;
  max-width: 850px;
  padding-top: 27px;
}

.hero-copy p {
  margin: 0 0 15px;
  max-width: 790px;
}

.hero-copy .limitation {
  border-left: 2px solid var(--rule-dark);
  color: var(--muted);
  font-size: 12px;
  margin-top: 23px;
  max-width: 720px;
  padding: 2px 0 2px 16px;
}

.reading-guide {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 210px minmax(470px, 1fr) minmax(230px, .62fr);
  padding: 24px 0 46px;
}

.guide-heading h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0;
}

.guide-items {
  display: grid;
  gap: 11px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-items p {
  border-top: 1px solid var(--rule);
  margin: 0;
  padding-top: 8px;
}

.guide-items b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
}

.guide-items span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.5;
}

.color-key {
  font-size: 10px;
}

.color-key > div > span {
  display: block;
  margin-bottom: 6px;
}

.color-key i {
  background: linear-gradient(90deg, #e7bd53, #db7658 32%, #ae5f70 58%, #735f91 80%, #47768d);
  display: block;
  height: 12px;
}

.color-key b {
  color: var(--muted);
  display: flex;
  font-size: 9px;
  font-weight: 400;
  justify-content: space-between;
}

.color-key em {
  font-style: normal;
}

.color-key p {
  color: var(--muted);
  line-height: 1.45;
  margin: 9px 0 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.visualization {
  padding: 26px 0 56px;
}

.controls {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(230px, 300px) minmax(190px, 1fr) auto auto;
  margin: 0 auto;
  max-width: 1280px;
}

.search-control {
  position: relative;
}

.search-control > label,
.control-group legend,
.mode-heading > p {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.search-field {
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  display: flex;
  height: 44px;
}

.search-field:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}

.search-field input {
  background: transparent;
  border: 0;
  min-width: 0;
  outline: 0;
  padding: 0 13px;
  width: 100%;
}

.search-field input::placeholder {
  color: var(--faint);
}

#clear-search {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--rule);
  cursor: pointer;
  display: none;
  font-size: 21px;
  min-width: 44px;
}

#clear-search.visible {
  display: block;
}

.search-results {
  background: var(--white);
  border: 1px solid var(--rule-dark);
  box-shadow: 0 9px 22px rgb(43 39 35 / 10%);
  display: none;
  left: 0;
  list-style: none;
  margin: 5px 0 0;
  max-height: 330px;
  overflow: auto;
  padding: 4px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 12;
}

.search-results.open {
  display: block;
}

.search-results li {
  border-radius: 2px;
  cursor: pointer;
  padding: 9px 10px;
}

.search-results li[aria-selected="true"],
.search-results li:hover {
  background: #f0ede6;
}

.search-results strong,
.search-results span {
  display: block;
}

.search-results strong {
  font-size: 12px;
  font-weight: 600;
}

.search-results span {
  color: var(--muted);
  font-size: 10px;
}

.search-results .no-results {
  color: var(--muted);
  cursor: default;
}

.mode-heading {
  padding-bottom: 2px;
  text-align: center;
}

.mode-heading h2 {
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1;
  margin: 0;
}

.control-group {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.control-group legend {
  padding: 0;
}

.segmented {
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  display: flex;
  min-height: 44px;
  overflow: hidden;
  width: fit-content;
}

.segmented button {
  background: var(--white);
  border: 0;
  cursor: pointer;
  font-size: 11px;
  min-height: 42px;
  min-width: 50px;
  padding: 8px 12px;
}

.segmented button + button {
  border-left: 1px solid var(--rule-dark);
}

.segmented button[aria-pressed="true"] {
  background: #dedbd4;
  color: #1e1d1b;
}

.mode-copy {
  border-bottom: 1px solid var(--rule);
  margin: 19px auto 0;
  max-width: 1280px;
  min-height: 50px;
  padding: 0 0 13px;
  text-align: center;
}

.mode-copy p {
  color: var(--muted);
  font-size: 11px;
  margin: 0 auto;
  max-width: 730px;
}

.mode-copy .play-caption {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  margin-top: 5px;
}

.selection-summary {
  background: #f2efe8;
  border-left: 3px solid var(--accent);
  margin: 24px auto 18px;
  max-width: 1280px;
  padding: 18px 20px;
}

.selection-heading {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.summary-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .07em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.selection-heading h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.original-term {
  color: var(--muted);
  font-size: 13px;
  margin: 1px 0 0;
}

.text-button,
.story-link {
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.text-button {
  flex: 0 0 auto;
  font-size: 11px;
  margin-top: 3px;
}

#selection-copy {
  color: var(--body);
  font-size: 12px;
  margin: 12px 0 0;
}

.translation-review {
  color: #775738;
  font-size: 10px;
  margin: 9px 0 0;
}

.mode-mismatch {
  align-items: center;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 12px;
}

.mode-mismatch p {
  color: var(--body);
  font-size: 11px;
  margin: 0;
}

.mode-mismatch button {
  background: var(--ink);
  border: 0;
  color: white;
  cursor: pointer;
  min-height: 38px;
  padding: 7px 12px;
}

.observation-details {
  border-top: 1px solid var(--rule);
  margin-top: 13px;
  padding-top: 9px;
}

.observation-details summary,
.methodology summary {
  color: var(--body);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .03em;
}

.table-scroll {
  margin-top: 9px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 10px;
  min-width: 560px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--rule);
  padding: 6px 8px;
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.chart-frame {
  margin-top: 18px;
  position: relative;
}

.chart-status {
  color: var(--muted);
  left: 50%;
  margin: 0;
  position: absolute;
  top: 170px;
  transform: translateX(-50%);
  z-index: 5;
}

.chart-status.hidden {
  display: none;
}

.chart-status.error {
  color: #963f3f;
}

.chart-note {
  color: var(--muted);
  font-size: 10px;
  margin: 0 auto 10px;
  max-width: 820px;
  text-align: center;
}

.mobile-range-actions {
  display: none;
}

.focus-stage {
  min-height: 440px;
  position: relative;
  width: 100%;
}

#focus-chart {
  display: block;
  height: auto;
  overflow: visible;
  touch-action: manipulation;
  width: 100%;
}

.rank-rule {
  stroke: #e7e3da;
  stroke-width: 1;
}

.rank-rule.rank-one {
  stroke: #c9c4b9;
}

.axis-rank,
.axis-year,
.axis-title {
  fill: #65615b;
  font-family: var(--sans);
  font-size: 10px;
}

.axis-title {
  font-size: 11px;
}

.trajectory {
  fill: none;
  opacity: .66;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transition: opacity .15s ease, stroke-width .15s ease;
}

.trajectory-hit {
  fill: none;
  pointer-events: stroke;
  stroke: transparent;
  stroke-linecap: round;
  stroke-width: 16;
}

.observation-point {
  cursor: pointer;
  fill: var(--white);
  opacity: .92;
  stroke-width: 1.7;
  transition: opacity .15s ease, r .15s ease;
}

.observation-hit {
  cursor: pointer;
  fill: transparent;
  stroke: none;
}

.term-group.is-muted .trajectory,
.term-group.is-muted .observation-point {
  opacity: .07;
}

.term-group.is-active .trajectory {
  opacity: 1;
  stroke-width: 4.4;
}

.term-group.is-active .observation-point {
  fill: var(--white);
  opacity: 1;
  stroke-width: 2.5;
}

.term-group.is-active .observation-point,
.observation-group.is-year-active .observation-point {
  r: 5.5px;
}

.hover-guide {
  pointer-events: none;
  stroke: #595650;
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.hover-year-label {
  fill: #393733;
  font-size: 11px;
  font-weight: 600;
  paint-order: stroke;
  pointer-events: none;
  stroke: var(--paper);
  stroke-width: 5px;
}

.active-label {
  fill: #292825;
  font-size: 12px;
  font-weight: 600;
  paint-order: stroke;
  pointer-events: none;
  stroke: var(--paper);
  stroke-linejoin: round;
  stroke-width: 5px;
}

.tooltip {
  background: rgb(255 254 250 / 98%);
  border: 1px solid var(--rule-dark);
  box-shadow: 0 7px 20px rgb(44 39 34 / 10%);
  color: var(--body);
  font-size: 11px;
  line-height: 1.45;
  max-width: 280px;
  min-width: 220px;
  padding: 11px 12px;
  pointer-events: none;
  position: absolute;
  z-index: 8;
}

.tooltip[hidden] {
  display: none;
}

.tooltip strong,
.tooltip .tooltip-original,
.tooltip .tooltip-year,
.tooltip .tooltip-note {
  display: block;
}

.tooltip > span {
  display: block;
}

.tooltip strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.tooltip-original {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}

.tooltip-year {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 5px;
}

.tooltip-note {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 9px;
  margin-top: 7px;
  padding-top: 6px;
}

.overview-header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin: 2px 12px 4px;
}

.overview-header p {
  font-size: 11px;
  margin: 0;
}

.overview-header b {
  font-weight: 600;
}

.overview-header span {
  color: var(--muted);
  font-size: 9px;
}

.overview-stage {
  height: 104px;
  position: relative;
}

#overview-chart {
  cursor: ew-resize;
  display: block;
  height: 100%;
  touch-action: none;
  width: 100%;
}

.overview-line {
  fill: none;
  opacity: .16;
  stroke-linecap: round;
  stroke-width: 1.1;
}

.overview-dot {
  opacity: .3;
  stroke: none;
}

.overview-mask {
  fill: rgb(251 250 246 / 78%);
  pointer-events: none;
}

.overview-window {
  fill: transparent;
  stroke: #625e58;
  stroke-width: 1.5;
}

.overview-handle rect {
  fill: #625e58;
}

.overview-handle line {
  stroke: #f8f6f0;
  stroke-width: 1;
}

.insights,
.methodology {
  display: grid;
  gap: clamp(52px, 9vw, 150px);
  grid-template-columns: minmax(270px, .82fr) minmax(500px, 1.6fr);
  padding: 58px 0 62px;
}

.insights header h2,
.methodology header h2 {
  font-size: clamp(34px, 3.7vw, 53px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 0;
}

.insight-copy {
  color: var(--body);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.9;
  max-width: 820px;
}

.insight-copy p {
  margin: 0 0 21px;
}

.story-link {
  font-family: inherit;
  font-size: inherit;
}

.story-link:hover,
.text-button:hover {
  color: #a3465f;
}

.methodology {
  border-top: 1px solid var(--rule);
}

.method-copy {
  color: var(--body);
  display: grid;
  gap: 30px 42px;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
}

.method-copy section {
  border-top: 1px solid var(--rule);
  padding-top: 11px;
}

.method-copy h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 8px;
}

.method-copy p {
  font-size: 12px;
  margin: 0 0 10px;
}

.review-list {
  columns: 2;
  color: var(--muted);
  font-size: 10px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.review-list li {
  break-inside: avoid;
  margin-bottom: 5px;
}

.review-list span {
  color: var(--body);
  display: block;
}

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  display: grid;
  font-size: 9px;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  letter-spacing: .02em;
  padding-bottom: 30px;
  padding-top: 21px;
}

footer p {
  margin: 0;
}

footer p:nth-child(2) {
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

@media (max-width: 1080px) {
  .hero {
    gap: 70px;
    grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.3fr);
  }

  .reading-guide {
    grid-template-columns: 180px 1fr;
  }

  .color-key {
    grid-column: 2;
    max-width: 390px;
  }

  .controls {
    grid-template-columns: minmax(230px, 1fr) minmax(190px, 1fr) auto;
  }

  .play-control {
    grid-column: 3;
    grid-row: 2;
  }

  .control-group:not(.play-control) {
    grid-column: 3;
    grid-row: 1;
  }

  .search-control,
  .mode-heading {
    grid-row: 1 / 3;
  }
}

@media (max-width: 780px) {
  .back-link {
    left: 20px;
    top: 16px;
  }

  .hero,
  .insights,
  .methodology {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    max-width: 650px;
  }

  .reading-guide {
    grid-template-columns: 1fr;
  }

  .guide-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-key {
    grid-column: 1;
    max-width: 430px;
  }

  .controls {
    align-items: end;
    grid-template-columns: 1fr auto;
  }

  .search-control {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mode-heading {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .control-group:not(.play-control) {
    grid-column: 1;
    grid-row: 3;
  }

  .play-control {
    grid-column: 2;
    grid-row: 3;
  }

  .method-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --side: 18px;
  }

  body {
    font-size: 14px;
  }

  .hero {
    gap: 30px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .hero-copy {
    font-size: 13px;
  }

  .guide-items {
    grid-template-columns: 1fr;
  }

  .reading-guide {
    padding-bottom: 36px;
  }

  .visualization {
    padding-top: 20px;
  }

  .controls {
    gap: 15px 9px;
  }

  .mode-heading h2 {
    font-size: 24px;
  }

  .control-group {
    width: 100%;
  }

  .control-group legend {
    white-space: nowrap;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .play-control {
    min-width: 106px;
  }

  .selection-summary {
    margin-top: 18px;
    padding: 15px;
  }

  .selection-heading h3 {
    font-size: 19px;
  }

  .mode-mismatch {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-note {
    text-align: left;
  }

  .mobile-range-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr 1.25fr 1fr;
    margin: 12px 0 8px;
  }

  .mobile-range-actions button {
    background: var(--white);
    border: 1px solid var(--rule-dark);
    cursor: pointer;
    font-size: 10px;
    min-height: 40px;
    padding: 6px 4px;
  }

  .focus-stage {
    min-height: 410px;
  }

  .tooltip {
    bottom: 10px !important;
    left: 10px !important;
    max-width: none;
    min-width: 0;
    position: fixed;
    right: 10px;
    top: auto !important;
  }

  .overview-header {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }

  .overview-stage {
    height: 116px;
  }

  .insights,
  .methodology {
    padding: 45px 0;
  }

  .insight-copy {
    font-size: 17px;
  }

  .review-list {
    columns: 1;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer p:nth-child(2),
  footer p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* Baby Names–inspired editorial layout */
:root {
  --paper: #fff;
  --white: #fff;
  --ink: #333;
  --body: #555;
  --muted: #858585;
  --faint: #aaa;
  --rule: #e7e7e7;
  --rule-dark: #c3c3c3;
  --page: 1320px;
  --side: clamp(22px, 4vw, 58px);
}

body {
  background: #fff;
  font-size: 13px;
  line-height: 1.62;
}

.back-link {
  left: 24px;
  top: 18px;
}

.hero {
  align-items: start;
  display: grid;
  gap: clamp(56px, 8vw, 116px);
  grid-template-columns: minmax(270px, .7fr) minmax(560px, 1.8fr);
  padding: 48px 0 42px;
}

.hero-title {
  padding-top: 5px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 3.25vw, 46px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 auto;
  max-width: 390px;
}

.hero h1 i {
  font-style: normal;
}

.hero-context {
  color: #aaa;
  font-size: 11px;
  letter-spacing: .02em;
  margin: 11px 0 0;
}

.hero-copy {
  color: #555;
  font-size: 12px;
  max-width: none;
  padding-top: 0;
}

.hero-copy p {
  line-height: 1.72;
  margin: 0 0 12px;
  max-width: 850px;
}

.hero-copy .limitation {
  border-left: 0;
  color: #8c8c8c;
  font-size: 11px;
  margin: 5px 0 0;
  max-width: 820px;
  padding: 0;
}

.reference-legends {
  display: grid;
  gap: clamp(50px, 7vw, 90px);
  grid-template-columns: 1fr 1fr;
  margin: 28px auto 0;
  max-width: 790px;
}

.hero-legend {
  text-align: center;
}

.hero-legend > span {
  display: block;
  font-size: 10px;
  margin-bottom: 5px;
}

.hero-legend .color-ramp {
  background: linear-gradient(90deg, #f3cd65, #ee9565 31%, #d36b70 58%, #a26091 78%, #77548e);
  display: block;
  height: 15px;
}

.hero-legend > b {
  color: #777;
  display: flex;
  font-size: 9px;
  font-weight: 400;
  justify-content: space-between;
}

.hero-legend > b em {
  font-style: normal;
}

.marks-legend > i {
  align-items: center;
  display: flex;
  height: 15px;
  justify-content: space-between;
  position: relative;
}

.marks-legend > i::before {
  background: #b7b7b7;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 7px;
}

.marks-legend > i b {
  background: white;
  border: 2px solid #aaa;
  border-radius: 50%;
  height: 8px;
  position: relative;
  width: 8px;
}

.marks-legend p {
  color: #888;
  font-size: 9px;
  line-height: 1.4;
  margin: 5px 0 0;
}

.visualization {
  padding: 20px 0 42px;
}

.controls {
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  grid-template-columns: minmax(230px, 290px) 1fr auto auto;
  max-width: none;
}

.search-control > label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.search-field {
  height: 36px;
}

.search-field input {
  font-size: 12px;
}

#clear-search {
  min-width: 36px;
}

.mode-heading {
  padding: 0;
}

.mode-heading > p {
  display: none;
}

.mode-heading h2 {
  font-size: 23px;
  letter-spacing: .045em;
}

.control-group {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto;
}

.control-group:not(.play-control) legend {
  display: none;
}

.control-group legend {
  font-size: 10px;
  line-height: 1.25;
  margin: 0;
  max-width: 48px;
}

.segmented {
  min-height: 36px;
}

.segmented button {
  font-size: 11px;
  min-height: 34px;
  padding: 6px 11px;
}

.segmented button[aria-pressed="true"] {
  background: #dedede;
}

.mode-copy {
  border-bottom: 0;
  margin-top: 7px;
  min-height: 0;
  padding: 0 0 7px;
}

.mode-copy p {
  font-size: 10px;
}

.selection-summary {
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
  border-left: 0;
  border-top: 1px solid #e0e0e0;
  margin: 8px auto 13px;
  padding: 12px 16px;
}

.selection-heading h3 {
  font-size: 18px;
}

.summary-kicker {
  font-size: 8px;
}

#selection-copy {
  margin-top: 8px;
}

.chart-frame {
  margin-top: 5px;
}

.chart-note {
  font-size: 9px;
  margin-bottom: 2px;
}

.focus-stage {
  min-height: 450px;
}

.trajectory {
  opacity: .78;
  stroke-width: 3.4;
}

.term-group.is-active .trajectory {
  stroke-width: 5.8;
}

.observation-point {
  r: 3.2px;
  stroke-width: 1.5;
}

.term-group.is-active .observation-point,
.observation-group.is-year-active .observation-point {
  r: 5px;
}

.rank-rule {
  stroke: #ececec;
}

.axis-rank,
.axis-year,
.axis-title {
  fill: #696969;
}

.overview-header {
  margin-top: -4px;
}

.overview-stage {
  height: 88px;
}

.overview-line {
  opacity: .22;
}

.insights {
  display: block;
  margin: 0 auto;
  max-width: 1100px;
  padding: 36px 0 40px;
}

.insights > h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.insight-copy {
  column-gap: 42px;
  columns: 2;
  color: #555;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.72;
  max-width: none;
}

.insight-copy p {
  break-inside: avoid;
  margin: 0 0 13px;
}

.story-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}

.methodology {
  display: block;
  margin: 0 auto;
  max-width: 1100px;
  padding: 35px 0 40px;
}

.methodology header h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.method-copy {
  gap: 25px 42px;
  max-width: none;
}

.method-copy p {
  font-size: 11px;
}

footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 22px;
  justify-content: center;
  padding-bottom: 24px;
  padding-top: 18px;
  text-align: center;
}

footer p,
footer p:nth-child(2),
footer p:last-child {
  text-align: center;
}

@media (max-width: 960px) {
  .hero {
    gap: 52px;
    grid-template-columns: minmax(240px, .7fr) minmax(470px, 1.6fr);
  }

  .controls {
    gap: 20px;
    grid-template-columns: minmax(210px, 260px) 1fr auto;
  }

  .search-control,
  .mode-heading {
    grid-row: 1 / 3;
  }

  .control-group:not(.play-control) {
    grid-column: 3;
    grid-row: 1;
  }

  .play-control {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .hero {
    gap: 36px;
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .hero-title {
    text-align: center;
  }

  .hero h1 {
    max-width: 430px;
  }

  .controls {
    grid-template-columns: 1fr auto;
  }

  .search-control {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mode-heading {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .control-group:not(.play-control) {
    grid-column: 1;
    grid-row: 3;
  }

  .play-control {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .reference-legends {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .control-group {
    display: block;
  }

  .control-group legend {
    margin-bottom: 5px;
    max-width: none;
  }

  .segmented {
    width: 100%;
  }

  .overview-stage {
    height: 108px;
  }

  .insight-copy {
    columns: 1;
  }

  .method-copy {
    grid-template-columns: 1fr;
  }
}
