:root {
  color-scheme: light;
  --text: #222;
  --muted: #555;
  --light: #f7f7f7;
  --line: #ddd;
  --link: #1772d0;
  --button: #363636;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  padding-top: 54px;
  padding-bottom: 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #666;
  font-size: 15px;
  font-weight: 500;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 1080px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 22px;
  font-size: 18px;
}

.authors a,
.authors span {
  color: var(--link);
  font-weight: 500;
}

.authors sup,
.affiliation sup {
  font-size: 0.7em;
}

.affiliation {
  max-width: 850px;
  margin: 12px auto 0;
  color: #444;
  font-size: 16px;
  text-align: center;
}

.affiliation p {
  margin: 2px 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.button:hover {
  background: #111;
  color: #fff;
  text-decoration: none;
}

.button.primary {
  background: var(--button);
  color: #fff;
}

.section-kicker {
  display: none;
}

.split {
  display: block;
}

.copy {
  max-width: 960px;
  margin: 0 auto;
}

.copy p,
.section-heading p,
.level-card p,
.eval-grid p,
.method-grid p,
.subsection-heading p {
  color: var(--text);
}

.copy p {
  margin: 0 0 16px;
  font-size: 17px;
  text-align: justify;
}

.copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading p:last-child {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 17px;
  text-align: left;
}

.teaser,
.wide-figure,
.visual-panel,
.playbook {
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.teaser img,
.wide-figure img,
.visual-panel img,
.playbook img {
  width: 100%;
  background: #fff;
}

figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.pain-card {
  padding: 26px 28px 8px;
}

.pain-card + .pain-card {
  border-top: 1px solid var(--line);
}

.pain-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.pain-card > p {
  max-width: 960px;
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  color: var(--text);
}

.pain-card ul {
  max-width: 960px;
  margin: 12px auto 0;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  color: var(--text);
}

.pain-card li {
  margin-bottom: 8px;
}

.pain-figure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pain-figure figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pain-figure img {
  width: 100%;
}

.overall-caption {
  margin: 0;
  padding: 12px 0 18px;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.challenge-figure {
  margin: 0;
  overflow-x: auto;
}

.challenge-figure img {
  width: 100%;
}

.challenge-note {
  max-width: 980px;
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eaf6ff;
  text-align: center;
}

.challenge-note p {
  margin: 0;
  font-size: 17px;
}

.qualitative-caption {
  max-width: 980px;
  margin: 14px auto 0;
  padding: 0 4px;
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  color: var(--muted);
}

.level-grid,
.eval-grid,
.method-grid,
.scoreboard {
  display: grid;
  gap: 14px;
}

.level-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.level-card,
.eval-grid article,
.method-grid article,
.scoreboard article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--light);
  padding: 18px;
}

.level-index {
  display: inline-block;
  margin-bottom: 12px;
  color: #777;
  font-weight: 700;
  font-size: 24px;
}

.method-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.subsection-heading {
  max-width: 980px;
  margin: 30px auto 0;
  text-align: left;
}

.subsection-heading.centered {
  text-align: center;
}

.subsection-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.subsection-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin-top: 18px;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}

th {
  background: #f2f2f2;
  color: #333;
  font-weight: 700;
}

td {
  color: #222;
  font-weight: 500;
}

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

.results-table th,
.results-table td {
  text-align: center;
}

.results-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  text-align: left;
  background: #fff;
}

.results-table thead tr:first-child th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 220px;
  background: #f2f2f2;
}

.results-table .ours td,
.results-table .ours td:first-child {
  background: #eaf6ff;
  font-weight: 700;
}

.code-block {
  margin-top: 12px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1e1e1e;
  color: #d4d4d4;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
}

.code-block code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
}

.bibtex pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f7f7;
  color: #222;
  font-size: 14px;
  line-height: 1.55;
}

footer {
  padding: 24px 18px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .level-grid,
  .eval-grid,
  .method-grid,
  .scoreboard,
  .data-figures,
  .pain-figure {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 24px, 1080px);
    padding: 34px 0;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
