.bench-page .bench-hero {
  max-width: 850px;
  padding-block: 82px 58px;
}

.bench-hero h1 {
  margin: 0;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.bench-intro {
  margin: 22px 0 0;
  color: var(--text-bright);
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.35;
}

.bench-summary {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.bench-actions,
.artifact-links,
.report-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.bench-actions {
  margin-top: 30px;
}

.bench-actions > a:not(.button),
.artifact-links > a:not(.button),
.report-links a {
  color: var(--violet);
  font-size: 14px;
  text-underline-offset: 4px;
}

.evaluation-record {
  margin: 0;
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  border-block: 1px solid var(--line);
}

.evaluation-record dt {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.evaluation-record dd {
  margin: 0;
  color: var(--text-bright);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.evaluation-record dd span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}

.bench-section-nav {
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.bench-section-nav a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.bench-section-nav a:hover {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bench-section {
  padding-block: 70px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 30px;
}

.bench-section h2 {
  margin: 0 0 24px;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.bench-section h3 {
  margin: 28px 0 12px;
  color: var(--text-bright);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.bench-section p {
  max-width: 78ch;
  margin-block: 14px;
  line-height: 1.7;
}

.bench-section p a,
.bench-section dd a {
  color: var(--violet);
  text-underline-offset: 3px;
}

.bench-section-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.bench-section-heading h2,
.bench-section-heading h3 {
  margin: 0;
}

.bench-section-heading > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  text-align: right;
}

.bench-section-heading > p span {
  display: block;
}

.table-scroll {
  max-width: 100%;
  margin-block: 28px 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-raised);
  scrollbar-color: var(--line-strong) var(--surface);
}

.table-scroll:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.results-table {
  width: 100%;
  min-width: 990px;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.results-table th,
.results-table td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

.results-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

.results-table td {
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.45;
}

.results-table th:first-child,
.results-table td:first-child {
  min-width: 240px;
  max-width: 310px;
  padding-left: 20px;
  text-align: left;
  white-space: normal;
}

.results-table td:first-child {
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 13px;
}

.results-table tr:last-child td {
  border-bottom: 0;
}

.results-table .algo {
  background: color-mix(in srgb, var(--violet) 5%, var(--surface-raised));
}

.results-table .algo td:first-child {
  color: var(--violet);
  font-weight: 600;
}

.results-table .floor td {
  color: var(--text-muted);
}

.results-table .lead {
  color: var(--text-bright);
  font-weight: 700;
}

.results-table .range {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 400;
}

.results-table .badflag {
  color: #d7a38d;
}

.results-table .okflag {
  color: var(--violet);
}

.bench-section .note {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.table-help {
  display: none;
  color: var(--text-muted);
  font-size: 12px;
}

.protocol-details {
  margin-top: 28px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.protocol-details summary {
  width: fit-content;
  color: var(--text-bright);
  font-size: 14px;
  cursor: pointer;
}

.protocol-details summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 5px;
}

.protocol-details > div {
  padding-top: 10px;
}

.protocol-details p {
  color: var(--text-muted);
  font-size: 14px;
}

.finding-summary {
  max-width: 860px;
}

.finding-summary h3 {
  margin-top: 0;
}

.finding-list {
  max-width: 86ch;
  margin: 28px 0 0;
  padding-left: 20px;
}

.finding-list li {
  margin-top: 18px;
  padding-left: 5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.finding-list strong {
  color: var(--text-bright);
  font-weight: 600;
}

.subsection-heading {
  margin-top: 52px;
}

.subsection-heading h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.audit-definitions {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.audit-definitions dt {
  margin-bottom: 8px;
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 600;
}

.audit-definitions dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.method-grid h3:first-child {
  margin-top: 0;
}

.method-grid p {
  color: var(--text-muted);
}

.scope-note {
  max-width: 880px;
  margin-block: 36px;
  padding: 22px 26px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface-raised);
}

.scope-note h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.scope-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.artifact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 64px;
}

.artifact-links {
  margin-top: 26px;
}

.report-note {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.report-note h3 {
  margin-top: 0;
}

.report-note p {
  color: var(--text-muted);
  font-size: 14px;
}

.report-links {
  margin-top: 20px;
}

.bench-page code,
.bench-page pre {
  font-family: var(--font-mono);
  font-size: 12px;
}

.bench-page p code {
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--surface-raised);
  color: var(--text-bright);
  overflow-wrap: anywhere;
}

.bench-page pre {
  margin-block: 16px;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--text-bright);
  line-height: 1.7;
}

.citation-section {
  border-bottom: 0;
}

.citation-section pre {
  max-width: 740px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1050px) {
  .table-help {
    display: block;
  }
}

@media (max-width: 760px) {
  .evaluation-record {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .method-grid,
  .artifact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .audit-definitions {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bench-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .bench-section-heading > p {
    text-align: left;
  }

  .report-note {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .bench-page .bench-hero {
    padding-block: 54px 38px;
  }

  .bench-summary {
    font-size: 16px;
  }

  .bench-actions {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .bench-section {
    padding-block: 48px;
  }

  .bench-section-nav {
    gap: 12px 22px;
  }

  .scope-note {
    padding: 20px;
  }

  .bench-page pre {
    padding: 16px;
    font-size: 11px;
  }

  .bench-page .site-nav nav a:last-child {
    display: inline;
  }
}
