.st-top50-answer-module {
  --st-top50-fire: #c94a1a;
  --st-top50-ink: #111111;
  --st-top50-soft: #404756;
  --st-top50-rule: #e2e2e2;
  --st-top50-paper: #ffffff;
  --st-top50-wash: #fafaf8;
  padding: clamp(36px, 6vw, 72px) 24px;
  background: var(--st-top50-paper);
  color: var(--st-top50-ink);
}

.st-top50-answer-module__inner {
  max-width: 880px;
  margin: 0 auto;
}

.st-top50-jumps {
  display: grid;
  gap: 8px;
  margin: 16px 0 28px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--st-top50-rule, #e2e2e2);
  border-left: 4px solid var(--st-top50-fire, #c94a1a);
  font-size: 14px;
  line-height: 1.4;
}

.st-top50-jumps strong {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.st-top50-jumps a { color: #1f4e79; text-underline-offset: 2px; }

.st-top50-first-view-answer {
  margin: 16px 0 22px;
  padding: 18px 20px;
  background: var(--st-top50-wash, #fafaf8);
  border: 1px solid var(--st-top50-rule, #e2e2e2);
  border-left: 5px solid var(--st-top50-fire, #c94a1a);
  color: var(--st-top50-ink, #111111);
}

.st-top50-first-view-answer > strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.st-top50-first-view-answer p { margin: 0 0 10px; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.st-top50-first-view-answer a { color: #1f4e79; font-weight: 600; text-underline-offset: 3px; }

[data-top50-id],
[data-top50-tool-for] { scroll-margin-top: 118px; }

.st-top50-answer-module__label {
  margin: 0 0 10px;
  color: var(--st-top50-fire);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.st-top50-answer-module h2 {
  margin: 0 0 16px;
  color: var(--st-top50-ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.st-top50-answer-module__answer {
  margin: 0;
  padding: 24px 26px;
  background: var(--st-top50-wash);
  border-left: 5px solid var(--st-top50-fire);
  color: var(--st-top50-ink);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.55;
}

.st-top50-answer-module__action {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--st-top50-paper);
  border: 1px solid var(--st-top50-rule);
  color: var(--st-top50-soft);
  font-size: 16px;
  line-height: 1.5;
}

.st-top50-answer-module__action strong {
  display: block;
  margin-bottom: 4px;
  color: var(--st-top50-ink);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.st-top50-tool {
  --st-top50-ink: #111111;
  --st-top50-soft: #404756;
  --st-top50-rule: #e2e2e2;
  --st-top50-wash: #fafaf8;
  --st-top50-fire: #c94a1a;
  margin-top: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--st-top50-rule);
  border-top: 4px solid var(--st-top50-ink);
}

.st-top50-tool__eyebrow {
  margin: 0 0 5px;
  color: var(--st-top50-fire);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.st-top50-tool h3 {
  margin: 0 0 14px;
  color: var(--st-top50-ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(19px, 2.5vw, 23px);
  line-height: 1.25;
}

.st-top50-tool table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.42;
}

.st-top50-tool th,
.st-top50-tool td {
  padding: 11px 12px;
  border: 1px solid var(--st-top50-rule);
  text-align: left;
  vertical-align: top;
}

.st-top50-tool thead th {
  background: var(--st-top50-ink);
  color: #fff;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.st-top50-tool tbody th {
  width: 34%;
  background: var(--st-top50-wash, #fafaf8);
  color: var(--st-top50-ink, #111111);
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.42;
  text-transform: none;
}

.st-top50-tool__close {
  margin: 14px 0 0;
  color: var(--st-top50-soft);
  font-size: 14px;
  line-height: 1.5;
}

.st-top50-tool__close strong,
.st-top50-sources strong {
  display: block;
  margin-bottom: 3px;
  color: var(--st-top50-ink);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.st-top50-worked-example {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--st-top50-rule);
}

.st-top50-worked-example__eyebrow {
  margin: 0 0 5px;
  color: #1f4e79;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.st-top50-worked-example h4 {
  margin: 0 0 10px;
  color: var(--st-top50-ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.3;
}

.st-top50-worked-example__boundary {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f4f1eb;
  border-left: 3px solid #5c7c9f;
  color: var(--st-top50-soft);
  font-size: 13px;
  line-height: 1.5;
}

.st-top50-worked-example__boundary strong,
.st-top50-worked-example__verdict strong {
  color: var(--st-top50-ink);
}

.st-top50-worked-example__table-wrap {
  max-width: 100%;
  overflow: visible;
}

.st-top50-worked-example table,
.st-top50-worked-example tbody {
  display: block;
  width: 100%;
}

.st-top50-worked-example table {
  min-width: 0;
  font-size: 13px;
}

.st-top50-worked-example thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.st-top50-worked-example tbody tr {
  display: block;
  width: 100%;
  border: 1px solid var(--st-top50-rule);
}

.st-top50-worked-example tbody tr + tr { margin-top: 10px; }

.st-top50-worked-example th,
.st-top50-worked-example td {
  display: block;
  width: 100% !important;
  min-width: 0;
  border: 0;
}

.st-top50-worked-example tbody th {
  width: 100%;
  border-bottom: 1px solid var(--st-top50-rule);
}

.st-top50-worked-example tbody td + td { border-top: 1px dashed var(--st-top50-rule); }

.st-top50-worked-example td::before {
  display: block;
  margin-bottom: 3px;
  color: var(--st-top50-soft);
  content: attr(data-label);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.st-top50-worked-example__verdict {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #eef3f7;
  border: 1px solid #c6d4e0;
  color: var(--st-top50-soft);
  font-size: 14px;
  line-height: 1.5;
}

.st-top50-sources {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f4f1eb;
  border-left: 3px solid #5c7c9f;
  color: var(--st-top50-soft);
  font-size: 13px;
  line-height: 1.5;
}

.st-top50-sources p { margin: 0; }
.st-top50-sources a { color: #1f4e79; text-underline-offset: 2px; }
.st-top50-sources__links { margin-top: 9px !important; }
.st-top50-sources__links strong { margin-bottom: 4px; }
.st-top50-sources__links span { padding: 0 4px; color: #8a8f98; }

.st-top50-answer-module__item + .st-top50-answer-module__item {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--st-top50-rule);
}

.st-top50-visual {
  --st-top50-visual-accent: #5c7c9f;
  --st-top50-visual-number: #5c1a1a;
  margin: 20px 0 0;
  padding: 20px;
  overflow: hidden;
  background: #111111;
  border: 1px solid #111111;
  color: #ffffff;
}

.st-top50-visual figcaption {
  margin: 0 0 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.22;
}

.st-top50-visual figcaption span {
  display: block;
  margin-bottom: 6px;
  color: #d8d0c2;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.st-top50-visual__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: stretch;
}

.st-top50-visual__node {
  min-width: 0;
  padding: 15px 14px;
  background: #ffffff;
  border-top: 4px solid var(--st-top50-visual-accent);
  color: #111111;
  font-size: 14px;
  line-height: 1.35;
}

.st-top50-visual__node b {
  display: block;
  margin-bottom: 9px;
  color: var(--st-top50-visual-number);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
}

.st-top50-visual__connector {
  position: relative;
}

.st-top50-visual__connector::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  right: 6px;
  height: 1px;
  background: #d8d0c2;
}

.st-top50-visual__connector::after {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  right: 3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #d8d0c2;
  border-right: 1px solid #d8d0c2;
  transform: rotate(45deg);
}

.st-top50-visual--risk,
.st-top50-visual--diagnostic { --st-top50-visual-accent: #c94a1a; }
.st-top50-visual--gate,
.st-top50-visual--threshold,
.st-top50-visual--receipt { --st-top50-visual-accent: #c9a227; }
.st-top50-visual--proof,
.st-top50-visual--test { --st-top50-visual-accent: #0d7377; }
.st-top50-visual--scale,
.st-top50-visual--fork { --st-top50-visual-accent: #5c1a1a; }

/* Parallel evidence, rights, and choice visuals must not look like timelines. */
.st-top50-visual--diagnostic .st-top50-visual__track,
.st-top50-visual--proof .st-top50-visual__track,
.st-top50-visual--receipt .st-top50-visual__track,
.st-top50-visual--map .st-top50-visual__track,
.st-top50-visual--scale .st-top50-visual__track,
.st-top50-visual--fork .st-top50-visual__track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.st-top50-visual--diagnostic .st-top50-visual__connector,
.st-top50-visual--proof .st-top50-visual__connector,
.st-top50-visual--receipt .st-top50-visual__connector,
.st-top50-visual--map .st-top50-visual__connector,
.st-top50-visual--scale .st-top50-visual__connector,
.st-top50-visual--fork .st-top50-visual__connector { display: none; }

@media (max-width: 540px) {
  .st-top50-answer-module { padding-right: 20px; padding-left: 20px; }
  .st-top50-answer-module__answer { padding: 20px; }
  .st-top50-visual { padding: 18px; }
  .st-top50-visual__track { grid-template-columns: 1fr; }
  .st-top50-visual__connector { height: 22px; }
  .st-top50-visual__connector::before { top: 3px; bottom: 5px; left: 50%; right: auto; width: 1px; height: auto; }
  .st-top50-visual__connector::after { top: auto; bottom: 2px; right: auto; left: calc(50% - 3px); transform: rotate(135deg); }
  .st-top50-visual--diagnostic .st-top50-visual__track,
  .st-top50-visual--proof .st-top50-visual__track,
  .st-top50-visual--receipt .st-top50-visual__track,
  .st-top50-visual--map .st-top50-visual__track,
  .st-top50-visual--scale .st-top50-visual__track,
  .st-top50-visual--fork .st-top50-visual__track { grid-template-columns: 1fr; }
  .st-top50-tool { padding: 16px; }
  .st-top50-tool table,
  .st-top50-tool tbody,
  .st-top50-tool tr,
  .st-top50-tool th,
  .st-top50-tool td { display: block; width: 100%; }
  .st-top50-tool table { table-layout: auto; }
  .st-top50-tool tbody th,
  .st-top50-tool tbody td { width: 100% !important; }
  .st-top50-tool thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .st-top50-tool tbody th { border-bottom: 0; }
  .st-top50-tool tbody td { border-top: 0; }
  .st-top50-tool tbody tr + tr th { margin-top: 10px; }
}
