/* Academic Project Page Template adaptation: clean typography and original paper figures. */
:root {
  --ink: #202c28;
  --muted: #58675f;
  --green: #225747;
  --green-light: #e9f0eb;
  --paper: #fff;
  --wash: #f6f7f3;
  --line: #dce3db;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
button:not(:disabled),
select {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a87b35;
  outline-offset: 5px;
}
::selection {
  background: #d9e9de;
}
.container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.reading-width {
  width: min(850px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 96px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 650;
  color: var(--green);
  line-height: 1.5;
}
.site-header {
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid #e9ede7;
  backdrop-filter: blur(12px);
}
.nav-inner {
  height: 100%;
  width: min(1280px, calc(100% - 64px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.wordmark:hover {
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.site-header nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
.site-header nav a {
  color: var(--muted);
}
.site-header nav a:hover {
  color: var(--green);
}
.hero {
  text-align: center;
  padding-top: 66px;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
}
h1 {
  font-family: var(--serif);
  font-size: clamp(45px, 5.6vw, 74px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -2.7px;
  margin-top: 23px;
}
h1 em {
  color: var(--green);
  font-weight: 400;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(31px, 3.2vw, 43px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -1.1px;
  margin-top: 13px;
}
h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.35px;
}
.publication-subtitle {
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 400;
  line-height: 1.45;
  color: #46584e;
  margin-top: 17px;
  letter-spacing: -0.4px;
}
.publication-authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--green);
  font-size: 17px;
  margin-top: 29px;
}
.publication-authors sup {
  margin-left: 3px;
}
.affiliation {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}
.author-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
sup {
  font-size: 0.65em;
}
.publication-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 8px 16px;
  border: 1px solid #d5ddd4;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  color: var(--ink);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  text-decoration: none;
  background: var(--wash);
  border-color: #97ae9d;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button.primary:hover {
  background: #173e32;
}
.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.github-mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.soon {
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  background: #edf0e9;
  color: #566354;
  border-radius: 3px;
  padding: 3px 5px;
  text-transform: uppercase;
}
.arxiv-mark {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  /* The chi descender sits below the visual center of the button label. */
  transform: translateY(-0.2em);
}
.hero-summary {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 33px;
}
.teaser {
  margin-top: 34px;
  background: var(--wash);
  border: 1px solid #e3e7df;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px 30px 24px;
}
.teaser-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.figure-number {
  font-variant-numeric: tabular-nums;
}
.teaser-image {
  max-width: 660px;
  margin: 8px auto 0;
  background: transparent !important;
}
.teaser-image img {
  width: 100%;
}
.figure-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: white;
  border-radius: 3px;
  cursor: zoom-in !important;
}
.figure-button img {
  width: 100%;
}
.expand {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 90%);
  border-radius: 50%;
  color: var(--green);
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.15s;
}
.figure-button:hover .expand,
.figure-button:focus-visible .expand {
  opacity: 1;
}
figcaption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 17px;
  text-align: left;
}
.teaser figcaption {
  max-width: 720px;
  margin: 8px auto 0;
  text-align: center;
  font-size: 13px;
}
.figure-label {
  font-weight: 650;
  color: var(--ink);
}
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  padding-top: 38px;
}
.highlights > div {
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.highlights > div + div {
  border-left: 1px solid var(--line);
}
.highlights strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--green);
}
.highlights .unit {
  font-size: 25px;
}
.highlights > div > span {
  font-size: 12px;
  color: var(--muted);
  padding-top: 5px;
}
.protocol-note {
  font-size: 10px;
  color: var(--muted);
  margin: 22px 0 62px;
}
.abstract-section {
  background: var(--wash);
  border-block: 1px solid #e5e9e0;
}
.section-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 22px;
}
.abstract-details {
  margin-top: 30px;
}
.abstract-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.abstract-details summary::-webkit-details-marker {
  display: none;
}
.abstract-details summary span {
  font-size: 23px;
  font-weight: 400;
}
.abstract-details[open] summary span {
  transform: rotate(45deg);
}
.abstract-text {
  font-size: 15px;
  line-height: 1.95;
  color: #44524a;
}
.abstract-text p {
  margin-top: 20px;
}
.abstract-text strong {
  color: #283f32;
  font-weight: 600;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 32px;
}
.section-heading > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  flex-shrink: 0;
}
.paper-figure {
  padding: 22px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  counter-reset: step;
}
.method-steps li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.step-number {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.06em;
}
.method-steps h3 {
  margin: 9px 0;
}
.method-steps p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.results-section {
  background: var(--wash);
  border-block: 1px solid #e5e9e0;
}
.results-context {
  max-width: 850px;
  font-size: 14px;
  color: var(--muted);
  margin-top: -8px;
  line-height: 1.85;
}
.results-context a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.results-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 31px;
}
.metric-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  background: #e9ede5;
  border-radius: 6px;
  gap: 2px;
}
.metric-tabs button {
  border: 0;
  padding: 7px 15px;
  color: var(--muted);
  background: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 550;
}
.metric-tabs button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 3px #1d372b0c;
  color: var(--green);
}
.mask-select {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  color: var(--ink);
  padding: 9px 28px 9px 10px;
  font-size: 12px;
}
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  margin: 23px 0 12px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 1px;
}
.legend .baseline-swatch {
  background: #b8c3b4;
  margin-left: 10px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 670px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.results-table thead {
  background: #edf1e9;
}
.results-table th,
.results-table td {
  padding: 19px 23px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #e5e9e1;
}
.results-table thead th {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding-block: 12px;
}
.results-table tbody th {
  font-weight: 550;
}
.results-table tbody tr:last-child > * {
  border-bottom: 0;
}
.results-table td:nth-child(2) {
  font-size: 12px;
  color: var(--muted);
}
.results-table .ours-column {
  background: #edf4ed;
  color: var(--green);
  font-weight: 650;
}
.results-table td:last-child {
  min-width: 185px;
}
.reduction {
  display: inline-block;
  color: var(--green);
  font-weight: 550;
  font-size: 12px;
  min-width: 51px;
}
.comparison-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 78px;
  gap: 4px;
  vertical-align: middle;
  margin-left: 11px;
}
.comparison-bars i,
.comparison-bars b {
  height: 4px;
  display: block;
  border-radius: 1px;
  background: #b8c3b4;
}
.comparison-bars b {
  background: var(--green);
}
.table-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.75;
}
.qualitative-heading {
  margin: 55px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}
.qualitative-heading p {
  color: var(--muted);
  font-size: 12px;
}
.held-out {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 54px;
  margin-top: 35px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.held-out h3 {
  margin: 10px 0 12px;
}
.held-out p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.iou-table {
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.iou-table caption {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 12px;
}
.iou-table th,
.iou-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: right;
}
.iou-table tr > :first-child {
  text-align: left;
  padding-left: 0;
}
.iou-table th {
  font-weight: 500;
}
.iou-table thead th {
  font-size: 10px;
  color: var(--muted);
}
.iou-table .best {
  font-weight: 700;
  color: var(--green);
}
.dataset-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 95px;
}
.dataset-layout .section-intro {
  font-size: 16px;
}
.dataset-layout p:not([class]) {
  font-size: 14px;
  color: var(--muted);
}
.dataset-counts {
  display: flex;
  gap: 45px;
  margin: 25px 0;
}
.dataset-counts div {
  display: flex;
  flex-direction: column;
}
.dataset-counts strong {
  font-size: 33px;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
  line-height: 1.25;
}
.dataset-counts span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.dataset-cta {
  margin-top: 28px;
}
.pending-resource {
  cursor: default;
}
.button.pending-resource.primary {
  background: #3c6252;
  border-color: #3c6252;
}
.data-examples {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 28px 17px;
}
.data-examples img {
  mix-blend-mode: multiply;
}
.data-examples .figure-button {
  background: transparent;
}
.data-examples figcaption {
  text-align: center;
}
.scaling-heading {
  margin: 58px 0 24px;
}
.scaling-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 9px;
}
.robustness-section {
  background: #eef2eb;
  border-block: 1px solid #e0e7dd;
}
.robustness-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 115px;
  align-items: center;
}
.robustness-grid h2 {
  font-size: 39px;
}
.robustness-grid p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
.robustness-grid .figure-button {
  background: transparent;
}
.robustness-grid img {
  mix-blend-mode: multiply;
}
.robustness-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.robustness-stat strong {
  font-family: var(--serif);
  font-size: 45px;
  font-weight: 400;
  color: var(--green);
  line-height: 1.2;
  letter-spacing: -1px;
}
.robustness-stat strong span {
  font-size: 24px;
}
.robustness-stat > span {
  font-size: 12px;
}
.text-link {
  font-size: 12px;
  font-weight: 550;
  display: inline-block;
  margin-top: 24px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.citation-section {
  background: var(--wash);
  border-top: 1px solid #e5e9e0;
  padding-block: 65px;
}
.citation-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
}
.citation-heading h2 {
  font-size: 35px;
}
.copy-button {
  font-size: 11px;
  min-height: 36px;
  padding: 7px 11px;
}
pre {
  background: #edf0e8;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 25px 28px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.9;
  margin: 24px 0 0;
  color: #35463b;
}
code {
  font: inherit;
}
.copy-status {
  font-size: 11px;
  min-height: 20px;
  color: var(--green);
  margin-top: 9px;
}
footer {
  padding-block: 34px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.footer-inner > p {
  font-size: 10px;
  text-align: center;
  line-height: 1.9;
  color: var(--muted);
}
.footer-inner p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.back-top {
  font-size: 11px;
  color: var(--muted);
  padding-top: 6px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 50px 24px 20px;
  width: min(95vw, 1500px);
  max-height: 94vh;
  background: #fff;
  color: var(--ink);
}
dialog::backdrop {
  background: #12271ed9;
  backdrop-filter: blur(4px);
}
dialog > img {
  max-height: 75vh;
  width: 100%;
  object-fit: contain;
}
dialog > p {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 9px;
  border: 0;
  background: none;
  color: var(--green);
  padding: 5px;
  font-size: 12px;
}
.dialog-close span {
  font-size: 22px;
  vertical-align: -2px;
  margin-left: 8px;
}
.skip-link {
  position: fixed;
  top: 0;
  left: 12px;
  z-index: 100;
  background: var(--green);
  color: white;
  padding: 10px 15px;
  transform: translateY(-120%);
}
.skip-link:focus {
  transform: translateY(0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1440px) {
  .hero {
    padding-top: 77px;
  }
}
@media (max-width: 1000px) {
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 15px;
  }
  .section-heading > p br {
    display: none;
  }
  .dataset-layout {
    gap: 45px;
  }
  .robustness-grid {
    gap: 55px;
  }
  .held-out {
    gap: 25px;
    grid-template-columns: 1fr 1.2fr;
  }
  .results-table th,
  .results-table td {
    padding-inline: 16px;
  }
  .qualitative-heading {
    display: block;
  }
  .qualitative-heading p {
    margin-top: 7px;
  }
  .hero h1 {
    font-size: 60px;
  }
}
@media (max-width: 700px) {
  .container,
  .reading-width {
    width: calc(100% - 36px);
  }
  .nav-inner {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 60px;
  }
  .wordmark {
    font-size: 17px;
  }
  .brand-mark {
    height: 28px;
    width: 28px;
  }
  .site-header nav {
    gap: 17px;
    font-size: 11px;
  }
  .site-header nav a:last-child {
    display: none;
  }
  .section {
    padding-block: 60px;
  }
  .hero {
    padding-top: 41px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .hero h1 {
    font-size: clamp(39px, 9.1vw, 58px);
    letter-spacing: -1.8px;
    margin-top: 20px;
  }
  .publication-subtitle {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 14px;
    max-width: 440px;
    margin-inline: auto;
  }
  .desktop-break {
    display: none;
  }
  .publication-authors {
    gap: 15px;
    font-size: 14px;
    margin-top: 22px;
  }
  .affiliation {
    font-size: 12px;
  }
  .author-note {
    font-size: 10px;
  }
  .publication-links {
    gap: 7px;
    margin-top: 20px;
  }
  .publication-links .button {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 40px;
  }
  .publication-links .primary {
    padding-inline: 14px;
  }
  .hero-summary {
    font-size: 14px;
    margin-top: 27px;
  }
  .teaser {
    margin-top: 25px;
    padding: 15px 13px 18px;
    border-radius: 6px;
  }
  .teaser-topline {
    font-size: 8px;
    letter-spacing: 0.05em;
  }
  .teaser-image {
    margin-block: 16px 9px;
  }
  .teaser figcaption {
    font-size: 11px;
    line-height: 1.7;
  }
  .highlights {
    padding-top: 28px;
    grid-template-columns: 1fr 0.8fr 1.5fr;
  }
  .highlights > div {
    padding-inline: 9px;
  }
  .highlights strong {
    font-size: 27px;
    letter-spacing: -0.9px;
  }
  .highlights .unit {
    font-size: 18px;
  }
  .highlights > div > span {
    font-size: 9px;
    line-height: 1.5;
  }
  .protocol-note {
    font-size: 9px;
    line-height: 1.65;
    margin: 18px 0 36px;
  }
  h2 {
    font-size: 32px;
  }
  .section-intro {
    font-size: 16px;
  }
  .abstract-text {
    font-size: 14px;
    line-height: 1.85;
  }
  .section-heading {
    margin-bottom: 23px;
  }
  .section-heading > p {
    font-size: 13px;
  }
  .paper-figure {
    padding: 12px;
  }
  .paper-figure figcaption {
    font-size: 11px;
    margin-top: 13px;
  }
  .method-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .method-steps li {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 10px;
    padding-top: 16px;
  }
  .method-steps h3 {
    margin: 0;
    font-size: 17px;
  }
  .method-steps p {
    grid-column: 2;
    margin-top: 7px;
  }
  .step-number {
    padding-top: 3px;
  }
  .results-context {
    font-size: 13px;
  }
  .results-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 23px;
  }
  .metric-tabs button {
    padding: 7px 13px;
  }
  .metric-tabs {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mask-select {
    justify-content: space-between;
    width: 100%;
  }
  .mask-select select {
    min-width: 145px;
  }
  .results-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
  }
  .results-table {
    font-size: 12px;
    min-width: 635px;
  }
  .results-table th,
  .results-table td {
    padding: 16px 14px;
  }
  .results-table td:last-child {
    min-width: 170px;
  }
  .table-note {
    font-size: 10px;
  }
  .qualitative-heading {
    margin-top: 40px;
  }
  .held-out {
    grid-template-columns: 1fr;
    gap: 23px;
    margin-top: 25px;
    padding-top: 25px;
  }
  .iou-table {
    width: 100%;
    font-size: 11px;
  }
  .iou-table th,
  .iou-table td {
    padding-inline: 5px;
  }
  .dataset-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .dataset-layout h2 br {
    display: none;
  }
  .dataset-counts {
    gap: 50px;
  }
  .data-examples {
    max-width: 420px;
    width: 100%;
    margin: auto;
    padding: 20px;
  }
  .data-examples img {
    max-height: 370px;
    object-fit: contain;
  }
  .scaling-heading {
    margin-top: 39px;
  }
  .scaling-heading h3 {
    font-size: 18px;
  }
  .scaling-heading p {
    font-size: 13px;
  }
  .robustness-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .robustness-grid h2 {
    font-size: 32px;
  }
  .robustness-grid figure {
    max-width: 370px;
    margin: auto;
    width: 100%;
  }
  .citation-heading h2 {
    font-size: 32px;
  }
  pre {
    font-size: 10px;
    padding: 17px;
    line-height: 1.9;
  }
  .copy-button {
    font-size: 10px;
    gap: 6px;
    padding: 7px 9px;
  }
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
  }
  .footer-inner > p {
    order: 3;
    width: 100%;
    text-align: left;
    font-size: 9px;
  }
  .back-top {
    margin-left: auto;
  }
  .expand {
    opacity: 1;
    width: 25px;
    height: 25px;
    font-size: 15px;
    right: 4px;
    bottom: 4px;
  }
  dialog {
    padding: 46px 12px 14px;
  }
  dialog > p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media print {
  .site-header,
  .publication-links,
  .expand,
  .copy-button,
  .results-controls,
  .back-top {
    display: none;
  }
  .section {
    padding-block: 30px;
  }
  .container,
  .reading-width {
    width: 100%;
  }
  .hero {
    padding-top: 0;
  }
  .paper-figure,
  figure,
  table {
    break-inside: avoid;
  }
  .hero h1 {
    font-size: 40px;
  }
  body {
    font-size: 11pt;
  }
  a {
    color: inherit;
  }
  .teaser-image {
    max-width: 400px;
  }
  .section {
    background: white;
  }
  pre {
    white-space: pre-wrap;
  }
}

/* Keep the comparison visible without horizontal scrolling on phones. */
.mobile-baseline {
  display: none;
}
@media (max-width: 700px) {
  .results-table {
    min-width: 0;
    font-size: 11px;
  }
  .results-table th,
  .results-table td {
    padding: 15px 8px;
  }
  .results-table th:first-child {
    padding-left: 10px;
  }
  .results-table th:nth-child(2),
  .results-table td:nth-child(2) {
    display: none;
  }
  .results-table td:last-child {
    min-width: 0;
  }
  .results-table thead th {
    font-size: 9px;
    white-space: normal;
    padding-block: 11px;
  }
  .results-table .comparison-bars {
    display: none;
  }
  .results-table .reduction {
    min-width: 0;
    font-size: 11px;
  }
  .mobile-baseline {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 3px;
  }
}

/* Progressive enhancement: controls only appear once their JS is ready. */
[hidden] {
  display: none !important;
}
.figure-button:hover {
  text-decoration: none;
}
/* Keep the reading position and layout fixed while a figure is open. */
html {
  scrollbar-gutter: stable;
}
html:has(#figure-dialog[open]),
html:has(#figure-dialog[open]) body {
  overflow: hidden;
}
dialog {
  overscroll-behavior: contain;
}
.dialog-original {
  position: absolute;
  left: 24px;
  top: 19px;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .dialog-original {
    left: 12px;
    font-size: 11px;
  }
}
