:root {
  --ink: #1a202c;
  --text: #4a5568;
  --muted: #718096;
  --green: #065f46;
  --line: #e2e8f0;
  --mint: #f0fdf4;
  --gold: #b49854;
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
a:hover {
  color: #183c2e;
}
button,
select,
input {
  font: inherit;
}
button,
a,
select,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #b18a32;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: normal;
}
p + p {
  margin-top: 18px;
}
h2 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 20px;
}
h3 {
  font-size: 19px;
  line-height: 1.4;
}
sup {
  font-size: 0.65em;
}
section[id] {
  scroll-margin-top: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -90px;
  background: var(--green);
  color: white;
  padding: 10px 20px;
  z-index: 200;
}
.skip-link:focus {
  top: 12px;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 16px 0;
}
.nav-container {
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo-main {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
  color: #2d3748;
}
.tau-symbol {
  color: var(--green);
}
.logo-attribution {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.sierra-logo {
  width: 12px;
  height: 12px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--green);
}
.mobile-menu-toggle {
  display: none;
}
.reading {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero {
  padding-top: 120px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
}
.badge {
  display: inline-block;
  font-size: 14px;
  color: var(--green);
  background: var(--mint);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
}
.project-wordmark {
  width: 200px;
  max-width: 70%;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
}
.author-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.author-line > div {
  min-width: 0;
}
.facepile {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 0;
}
.facepile a {
  flex: 0 0 40px;
  min-width: 0;
  border-radius: 50%;
  position: relative;
}
.facepile a + a {
  margin-left: -12px;
}
.facepile a:hover {
  z-index: 2;
  transform: translateY(-3px);
}
.facepile img {
  display: block;
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  border: 2px solid white;
  border-radius: 50%;
  object-fit: cover;
}
.author-names {
  font-size: 15px;
  line-height: 1.45;
}
.author-names a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  white-space: normal;
}
.author-names a:hover {
  text-decoration: underline;
}
.author-affiliations {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin-top: 4px;
}
.equal-note {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.resources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: white;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.5;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: var(--mint);
  border-color: #afc3b5;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button.primary:hover {
  background: #084c39;
}
.button.small {
  padding: 7px 12px;
  font-size: 12px;
}
.summary {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 0;
  margin-bottom: 24px;
}
.summary .eyebrow {
  margin-bottom: 10px;
}
.summary p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
@media (max-width: 640px) {
  .summary {
    padding: 18px;
  }
}
.leaderboard-section {
  max-width: 800px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}
.section-heading h3 {
  margin: 0;
  font-size: 20px;
}
.snapshot-label {
  font-size: 11px;
  text-align: right;
  color: var(--muted);
  line-height: 1.6;
}
.snapshot-label span {
  display: block;
}
.board {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fafbfc;
}
.board-top {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.board-top h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.board-top p {
  font-size: 11px;
  margin-top: 3px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 7px;
}
.controls {
  padding: 10px 16px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.select-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.25fr 1fr 1fr;
  gap: 10px;
}
.control-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--text);
  display: block;
  letter-spacing: 0.02em;
}
.control-label select {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 28px 7px 9px;
  background-color: white;
  color: var(--ink);
  font-size: 13px;
  min-height: 36px;
}
.control-label select:disabled {
  background: #f8fafc;
  color: var(--muted);
}
.models {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}
.models legend {
  float: left;
  margin-right: 24px;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 0;
}
.models label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  cursor: pointer;
}
.models input {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  margin: 0;
}
.control-help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
th,
td {
  padding: 9px 14px;
  border-bottom: 1px solid #edf2f7;
}
thead th {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  background: #f8fafc;
  white-space: nowrap;
  letter-spacing: 0.015em;
}
tbody th {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}
.rank {
  width: 52px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-left: 20px;
}
#ranking-table {
  min-width: 610px;
}
#ranking-table th:nth-child(2) {
  width: 33%;
}
.model-name {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.model-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1c7455;
}
.model-dot.gpt-5-mini {
  background: #6194ac;
}
.model-dot.qwen3-235b {
  background: #b89650;
}
.model-detail {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 17px;
  margin-top: 3px;
}
.score {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
thead th[data-metric] {
  text-align: right;
}
.selected-metric {
  background: #ecfdf5;
  color: var(--green);
  font-weight: 700;
}
#ranking-table tbody tr:last-child td,
#ranking-table tbody tr:last-child th {
  border-bottom: 0;
}
.board-bottom {
  padding: 10px 16px;
  background: white;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.board-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.board-bottom strong {
  color: var(--text);
  font-weight: 600;
}
.empty-state {
  text-align: center !important;
  padding: 35px;
  font-size: 14px;
  color: var(--muted);
}
.source-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 15px;
}
.source-note a {
  color: var(--text);
}
.metrics-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 8px 0 16px;
}
.metrics-note p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  color: var(--muted);
}
.metrics-note strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 3px;
}
.disclosure {
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.disclosure summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.disclosure summary span {
  color: var(--muted);
  font-weight: 400;
}
.disclosure .table-scroll {
  max-height: 430px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.detail-table {
  min-width: 780px;
}
.detail-table thead {
  position: sticky;
  top: 0;
}
.detail-table th,
.detail-table td {
  padding: 10px 13px;
  font-size: 11px;
}
.disclosure > p {
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--muted);
}
.note-warning {
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  background: #fcfaf5;
  color: #76623b;
  font-size: 12px;
  margin-top: 15px;
}
.content-section {
  margin-top: 48px;
}
.content-section > .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.scenario-table {
  margin-top: 0;
  font-size: 12px;
  min-width: 550px;
}
.scenario-table td,
.scenario-table th {
  font-size: 12px;
  padding: 9px 13px;
}
.scenario-table tbody tr:last-child {
  background: var(--mint);
}
.scenario-table small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.l2 {
  color: var(--green);
  font-weight: 650;
}
.figure {
  margin-top: 24px;
}
.figure a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.figure figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}
.figure figcaption a {
  display: inline;
  padding: 0;
  border: 0;
  text-decoration: underline;
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.method-steps article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: white;
}
.step-num {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.method-steps h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.method-steps p {
  font-size: 14px;
  line-height: 1.55;
  margin-top: 8px;
}
.finding {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.finding:last-of-type {
  border-bottom: 0;
}
.finding > span {
  font-size: 13px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.finding h3 {
  font-size: 19px;
}
.finding p {
  font-size: 15px;
  margin-top: 8px;
}
.research-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
pre {
  font-size: 11px;
  line-height: 1.85;
  padding: 23px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: auto;
  margin-top: 22px;
  color: var(--text);
}
.closing {
  margin: 48px 0 80px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.closing p {
  font-size: 14px;
  color: var(--muted);
}
.simple-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: #f8fafc;
}
.noscript-note {
  font-size: 12px;
  color: var(--muted);
  padding: 16px 28px;
}
@media (max-width: 950px) {
  .nav-links {
    gap: 19px;
  }
  .nav-links a {
    font-size: 13px;
  }
  .select-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 90px;
  }
  .hero {
    padding-top: 110px;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }
  .author-line {
    margin-top: 0;
  }
  .resources {
    gap: 7px;
  }
  .button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .leaderboard-section {
    margin-top: 40px;
    padding: 0 24px;
  }
  .section-heading {
    padding: 0;
    align-items: center;
  }
  .section-heading h3 {
    font-size: 20px;
  }
  .snapshot-label {
    font-size: 10px;
  }
  .board-top {
    padding: 12px;
  }
  .board-top h3 {
    font-size: 14px;
  }
  .board-top p {
    font-size: 10px;
  }
  .controls {
    padding: 12px;
  }
  .select-grid {
    gap: 13px 10px;
  }
  .control-label select {
    font-size: 12px;
    padding-left: 8px;
    padding-right: 22px;
  }
  .models {
    gap: 13px;
  }
  .models legend {
    float: none;
    width: 100%;
    margin-bottom: 8px;
  }
  .models label {
    font-size: 11px;
  }
  .control-help {
    font-size: 10px;
  }
  .board-bottom {
    padding: 12px;
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .metrics-note {
    gap: 18px;
    padding: 0 8px;
  }
  .source-note {
    padding: 0 8px;
  }
  .disclosure {
    margin-left: 8px;
    margin-right: 8px;
  }
  .disclosure summary {
    font-size: 12px;
  }
  .content-section > p {
    font-size: 15px;
  }
  .method-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .method-steps article {
    padding-top: 12px;
  }
  .method-steps h3 {
    font-size: 17px;
  }
  .method-steps p {
    font-size: 13px;
  }
  .figure a {
    padding: 7px;
  }
  .finding {
    grid-template-columns: 25px 1fr;
    gap: 10px;
  }
  .finding h3 {
    font-size: 18px;
  }
  .finding p {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .facepile a:hover {
    transform: none;
  }
}

.model-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.model-controls .models {
  margin: 0;
}
.model-controls .button {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .model-controls {
    align-items: end;
    gap: 10px;
  }
  .model-controls .button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .models {
    column-gap: 12px;
    row-gap: 9px;
  }
}

.button {
  white-space: nowrap;
}
.mobile-table-hint {
  display: none;
}
@media (max-width: 640px) {
  .board-top {
    align-items: flex-start;
  }
  .board-top .button {
    font-size: 10px;
    flex-shrink: 0;
    padding: 7px 8px;
  }
  .mobile-table-hint {
    display: block;
    font-size: 10px;
    color: var(--muted);
    padding: 10px 18px;
    margin: 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
  }
  #ranking-table {
    min-width: 520px;
  }
  #ranking-table .rank {
    width: 40px;
    padding-left: 15px;
    padding-right: 10px;
  }
  #ranking-table th:nth-child(2) {
    width: 145px;
  }
  #ranking-table th,
  #ranking-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  #ranking-table tbody th {
    font-size: 13px;
  }
  #ranking-table .score {
    font-size: 13px;
  }
  .model-name {
    gap: 7px;
  }
  .model-detail {
    margin-left: 14px;
    font-size: 9px;
  }
}

/* Recorded traces are static disclosures, usable without JavaScript. */
.trace-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.trace-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.trace-card-heading {
  padding: 18px 20px;
  background: var(--mint);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trace-card-heading h3 {
  font-size: 19px;
}
.trace-outcome {
  font-size: 12px;
  font-weight: 650;
  color: var(--green);
  white-space: nowrap;
}
.trace-outcome-fail {
  color: #865124;
}
.trace-steps {
  list-style: none;
  padding: 0 20px;
  margin: 0;
}
.trace-steps li {
  padding: 21px 0;
}
.trace-steps li + li {
  border-top: 1px solid var(--line);
}
.trace-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 650;
}
.trace-steps code {
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.trace-steps p {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 8px;
}
.trace-steps blockquote {
  margin: 0;
  padding: 0 0 0 13px;
  border-left: 2px solid var(--green);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.trace-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  margin: 22px 0 16px;
}
.trace-messages {
  list-style: none;
  margin: 22px 0;
  padding: 0;
}
.trace-message {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.trace-message pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.75 var(--font);
  background: #f8fafc;
  padding: 14px;
  margin: 10px 0 0;
  border-radius: 6px;
}
.trace-message summary {
  cursor: pointer;
  color: var(--green);
  font-size: 14px;
}
.trace-metadata {
  font-size: 12px;
  line-height: 1.65;
}
.trace-metadata dt {
  font-weight: 650;
  color: var(--ink);
  margin-top: 12px;
}
.trace-metadata dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .trace-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
}

.publication-meta {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}
#ranking-table {
  background: white;
}
#ranking-table tbody tr:hover {
  background: #f7fafc;
}
.closing-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.closing-brand .mascot {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.closing h2 {
  margin-bottom: 10px;
}
.simple-footer a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 4px 12px #00000014;
    padding: 8px 24px 14px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 9px 0;
    font-size: 15px;
  }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #2d3748;
    border-radius: 1px;
  }
}
@media (max-width: 640px) {
  .resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .resources .button {
    white-space: normal;
    text-align: center;
    min-height: 42px;
    padding: 9px 10px;
  }
  .content-section {
    margin-top: 40px;
  }
  .content-section > p {
    font-size: 16px;
  }
  .trace-transcript {
    margin-left: 0;
    margin-right: 0;
  }
  .closing {
    padding: 20px;
    margin-bottom: 60px;
  }
  .closing .resources {
    grid-template-columns: 1fr;
  }
}

/* The article tells one story; the dashboard expands only where it needs width. */
.ideas-list {
  padding-left: 24px;
  margin: 0 0 24px;
}
.ideas-list li + li {
  margin-top: 14px;
}
.ideas-list strong {
  color: var(--ink);
}
.results-section {
  margin-top: 48px;
}
.results-section .figure {
  margin-top: 0;
}
/* Give explanatory copy the article's reading width before each visual. */
.visual-intro {
  max-width: 752px;
  margin-bottom: 24px;
}
.metric-summary {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 16px;
  line-height: 1.7;
}
.metric-summary strong {
  color: var(--text);
}
.trace-example-body {
  padding-bottom: 12px;
}
.trace-example-body > p {
  font-size: 15px;
}
.trace-example > summary {
  font-size: 15px;
}
@media (max-width: 640px) {
  .results-section {
    margin-top: 40px;
  }
  .results-section .leaderboard-section {
    margin-top: 20px;
  }
  .metric-summary {
    padding: 0;
  }
  .select-grid {
    gap: 9px 10px;
  }
  .control-help {
    margin-top: 8px;
  }
}

/* Keep the model row and export footer compact without hiding any controls. */
.models {
  min-inline-size: 0;
  line-height: 1.4;
  column-gap: 12px;
}
.models legend {
  position: absolute;
  float: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
  padding: 0;
}
.board-bottom p {
  line-height: 1.5;
}
@media (max-width: 640px) {
  .model-controls {
    align-items: center;
  }
  .models {
    gap: 8px;
  }
  .board-bottom {
    flex-direction: row;
    align-items: center;
  }
  .board-bottom .button {
    padding: 7px 9px;
    font-size: 11px;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .author-line {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .facepile {
    width: max-content;
    justify-content: flex-start;
  }
}

/* Separate the localization comparison from the model comparison below it. */
#localization-results-title {
  margin-bottom: 20px;
}
#localization-results {
  margin-bottom: 32px;
}

/* Selectable, responsive paper figures. */
.html-diagram {
  --diagram-radius: 8px;
  color: var(--ink);
}
.html-diagram .diagram-heading {
  margin-bottom: 10px;
}
.html-diagram .diagram-kicker {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.html-diagram .diagram-heading p {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.html-diagram .diagram-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--green);
}
.html-diagram .scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.html-diagram .scenario-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--diagram-radius);
  overflow: hidden;
  background: #fff;
}
.html-diagram .scenario-card > header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
  min-height: 0;
}
.html-diagram h3 {
  font-size: 14px;
  line-height: 1.35;
  margin-top: 5px;
}
.html-diagram .scenario-instruction,
.html-diagram .scenario-request {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
}
.html-diagram .scenario-instruction {
  min-height: 0;
}
.html-diagram .scenario-request {
  background: #fcfaf5;
  border-top: 1px solid #eee7d6;
  border-bottom: 1px solid #eee7d6;
  min-height: 0;
}
.html-diagram .scenario-request .diagram-icon {
  color: #87703b;
}
.html-diagram .scenario-instruction > div,
.html-diagram .scenario-request > div {
  min-width: 0;
}
.html-diagram .diagram-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.html-diagram .scenario-card p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.html-diagram .diagram-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: #f8fafc;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.html-diagram .diagram-badge.is-localized {
  color: var(--green);
  background: var(--mint);
  border-color: #c8e6d6;
}
.html-diagram .scenario-details {
  flex: 1;
  margin: 0;
  padding: 0 12px;
}
.html-diagram .scenario-row {
  padding: 8px 0;
}
.html-diagram .scenario-row + .scenario-row {
  border-top: 1px solid var(--line);
}
.html-diagram .scenario-row dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}
.html-diagram .scenario-row dt .diagram-badge {
  margin-left: auto;
}
.html-diagram .scenario-row dd {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.html-diagram .scenario-row code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  white-space: normal;
  font-size: 11px;
}
.html-diagram .scenario-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #c8e6d6;
  background: var(--mint);
  text-align: center;
}
.html-diagram .scenario-metrics > div + div {
  border-left: 1px solid #d7e9df;
}
.html-diagram .scenario-metrics dt {
  font-size: 11px;
  color: var(--text);
}
.html-diagram .scenario-metrics dd {
  margin: 3px 0 0;
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.html-diagram .pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: 'offline runtime audit';
  gap: 10px;
}
.html-diagram .pipeline-group {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #c8e6d6;
  border-radius: var(--diagram-radius);
  background: #f7fcf9;
}
.html-diagram .pipeline-offline {
  grid-area: offline;
  display: flex;
  flex-direction: column;
}
.html-diagram .pipeline-runtime { grid-area: runtime; }
.html-diagram .pipeline-audit {
  grid-area: audit;
  border-color: #e8dfc9;
  background: #fcfaf5;
}
.html-diagram .pipeline-audit .diagram-kicker { color: #87703b; }
.html-diagram .pipeline-group h3 { font-size: 15px; }
.html-diagram .pipeline-feed,
.html-diagram .pipeline-output {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
}
.html-diagram .pipeline-feed .diagram-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.html-diagram .pipeline-group ol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}
.html-diagram .pipeline-offline ol {
  grid-template-columns: 1fr;
}
.html-diagram .pipeline-group header { min-height: 42px; }
.html-diagram .pipeline-feed,
.html-diagram .pipeline-output { min-height: 32px; }
.html-diagram .pipeline-group li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-width: 0;
}
.html-diagram .pipeline-group li > div { min-width: 0; }
.html-diagram .pipeline-number {
  display: grid;
  place-items: center;
  flex: 0 0 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.html-diagram .pipeline-audit .pipeline-number { background: #87703b; }
.html-diagram .pipeline-group h4 {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.html-diagram .pipeline-group li p {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .html-diagram .scenario-grid { grid-template-columns: 1fr; }
  .html-diagram .scenario-card > header,
  .html-diagram .scenario-instruction,
  .html-diagram .scenario-request { min-height: 0; }
  .html-diagram .pipeline-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'offline' 'runtime' 'audit';
  }
  .html-diagram .pipeline-group ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .html-diagram .pipeline-group header,
  .html-diagram .pipeline-feed,
  .html-diagram .pipeline-output { min-height: 0; }
  .html-diagram .pipeline-feed .diagram-icon { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .html-diagram .diagram-heading p { font-size: 16px; }
  .html-diagram .pipeline-group { padding: 10px; }
  .html-diagram .pipeline-group ol { grid-template-columns: 1fr; }
}

/* Compact labels keep stacked examples short without reducing text size. */
@media (max-width: 1100px) {
  .html-diagram .scenario-card > header {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .html-diagram .scenario-card > header h3 { margin-top: 0; }
  .html-diagram .scenario-row {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }
  .html-diagram .scenario-row dt { flex-wrap: wrap; gap: 4px; }
  .html-diagram .scenario-row dt .diagram-icon { display: none; }
  .html-diagram .scenario-row dd { margin: 0; }
}
@media (min-width: 1101px) {
  .html-diagram .pipeline-group {
    display: grid;
    grid-template-rows: auto auto 1fr;
  }
  .html-diagram .pipeline-group ol { grid-template-rows: repeat(4, minmax(0, 1fr)); }
}

/* Smaller comparison text and shared row tracks align both settings. */
#figure-1 .diagram-heading p { font-size: 16px; }
#figure-1 h3 { font-size: 12px; }
#figure-1 .scenario-card p,
#figure-1 .scenario-row dd { font-size: 11px; }
#figure-1 .scenario-row code { font-size: 10px; }
#figure-1 .diagram-label,
#figure-1 .scenario-row dt,
#figure-1 .scenario-metrics dt { font-size: 10px; }
#figure-1 .scenario-metrics dd { font-size: 18px; }
#figure-1 figcaption { font-size: 11px; }
@media (min-width: 1101px) {
  #figure-1 .scenario-grid { row-gap: 0; }
  #figure-1 .scenario-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
    row-gap: 0;
  }
  #figure-1 .scenario-details { display: contents; }
  #figure-1 .scenario-row { padding: 8px 12px; }
}

#figure-1 .scenario-row .tool-description {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

/* Keep examples on single lines; database records remain free to wrap. */
#figure-1 .scenario-card h3,
#figure-1 .scenario-card p,
#figure-1 .scenario-row:not(:nth-child(2)) dd,
#figure-1 .scenario-row:not(:nth-child(2)) code {
  white-space: nowrap;
  overflow-wrap: normal;
}
#figure-1 .scenario-row:nth-child(3) dd { font-size: 10px; }

@media (max-width: 640px) {
  #figure-1 .scenario-row:not(:nth-child(2)) {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  #figure-1 .scenario-row:nth-child(3) dd { font-size: 9px; }
  #figure-1 .scenario-card h3 { font-size: 11px; }
}

#figure-1 .database-line {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
}
@media (max-width: 640px) {
  #figure-1 .scenario-row:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* Language badges share one size and a consistent right edge. */
#figure-1 .diagram-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 18px;
  padding: 0;
  line-height: 1;
}
#figure-1 .scenario-instruction > div { flex: 1; }
#figure-1 .diagram-label .diagram-badge { margin-left: auto; }
@media (max-width: 1100px) {
  #figure-1 .scenario-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* Compact the localization settings overview. */
.visual-intro.settings-intro {
  margin-bottom: 14px;
  line-height: 1.5;
}
.scenario-table thead th {
  padding-top: 8px;
  padding-bottom: 8px;
}
.scenario-table small {
  line-height: 1.4;
  margin-top: 2px;
}
.research-note.settings-note {
  margin-top: 12px;
  line-height: 1.5;
}

.robustness-formula {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 18px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 7px;
  background: #fcfaf5;
}
.robustness-formula > div { flex: 1; min-width: 0; }
.robustness-formula h4 { margin: 0; color: var(--ink); font-size: 13px; }
.robustness-formula p { margin-top: 5px; color: var(--text); font-size: 12px; line-height: 1.6; }
.robustness-formula math { flex: 0 0 auto; margin: 0; color: var(--green); font-size: 24px; }
@media (max-width: 640px) {
  .robustness-formula { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .robustness-formula math { align-self: center; }
}
