:root {
  --bg: #ffffff;
  --text: #1e1e1e;
  --muted: #666666;
  --line: #e6e6e6;
  --button-bg: #3b3b3b;
  --button-hover: #222222;
  --max-width: 1120px;
  --text-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0;
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 46px 0 26px;
  text-align: center;
}

.hero h1 {
  max-width: 1040px;
  margin: 0 auto 14px;
  font-size: clamp(30px, 4.2vw, 46px);
}

.authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 28px;
  line-height: 1.45;
}

.author {
  white-space: nowrap;
}

.author:not(:last-child)::after {
  content: ",";
}

.author sup {
  font-size: 0.56em;
}

.affiliations {
  margin: 10px auto 0;
  max-width: 1040px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.4;
}

.dot-sep {
  display: inline-block;
  padding: 0 0.35em;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--button-bg);
  color: #ffffff;
  font-size: 24px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--button-hover);
  text-decoration: none;
}

.button-disabled {
  pointer-events: none;
}

main {
  padding-bottom: 64px;
}

.section {
  padding: 28px 0 30px;
}

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

.section h2 {
  margin-bottom: 18px;
  font-size: 38px;
  text-align: center;
}

.section h3 {
  margin-bottom: 10px;
  font-size: 32px;
  text-align: center;
}

.section-text {
  max-width: var(--text-width);
  margin: 0 auto;
  font-size: 30px;
}

.section-text + .section-text {
  margin-top: 12px;
}

.abstract-text {
  text-align: left;
}

.experiment-group + .experiment-group {
  margin-top: 40px;
}

.media-block {
  margin: 18px 0 0;
}

.media-block img {
  border: 1px solid var(--line);
  width: 100%;
}

.media-block figcaption {
  max-width: var(--text-width);
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 24px;
  text-align: center;
}

.table-block {
  margin-top: 22px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #ffffff;
}

.result-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 17px;
  line-height: 1.35;
}

.result-table col.col-category {
  width: 190px;
}

.result-table col.col-method {
  width: 210px;
}

.result-table th,
.result-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.result-table th,
.result-table td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.result-table thead th {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
}

.result-table .category {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.result-table .best {
  font-weight: 700;
}

.result-table .second {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.result-table .highlight-row {
  background: #f2f2f2;
}

.bibtex-block {
  max-width: var(--text-width);
  margin: 0 auto;
}

pre {
  margin: 0;
  min-height: 120px;
  padding: 18px 20px;
  overflow: auto;
  border-radius: 8px;
  background: #111111;
  color: #f5f5f5;
  font-size: 24px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .hero {
    padding-top: 36px;
  }

  .section {
    padding: 24px 0 26px;
  }

  .section h2 {
    margin-bottom: 16px;
    font-size: 30px;
  }

  .section h3 {
    font-size: 25px;
  }

  .section-text {
    font-size: 22px;
  }

  .authors {
    font-size: 22px;
  }

  .affiliations {
    font-size: 18px;
  }

  .button {
    font-size: 20px;
  }

  .result-table {
    font-size: 15px;
  }

  .result-table thead th {
    font-size: 17px;
  }

  .media-block figcaption,
  pre {
    font-size: 18px;
  }
}
