:root {
  --link: hsl(204, 86%, 53%);
  --text: #363636;
  --muted: #666;
  --light: #f5f5f5;
  --border: #dbdbdb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: auto;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.is-max-desktop { max-width: 960px; }
.hero { display: block; }
.hero.is-light { background: var(--light); }
.hero-body { padding: 3rem 1.5rem; }
.section { padding: 3rem 1.5rem; }

.columns {
  display: flex;
  margin: -0.75rem;
}

.columns.is-centered { justify-content: center; }
.columns.is-vcentered { align-items: center; }
.column { display: block; flex: 1 1 0; padding: 0.75rem; }
.column.is-four-fifths { flex: none; width: 80%; }
.column.is-full-width { flex: none; width: 100%; }
.column.is-half { flex: none; width: 50%; }
.has-text-centered { text-align: center; }
.has-text-justified { text-align: justify; }

.title {
  margin: 0 0 1.5rem;
  color: #363636;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.125;
  letter-spacing: 0;
}

.title.is-1 { font-size: 3rem; }
.title.is-3 { font-size: 2rem; }
.subtitle { margin: -0.75rem 0 1.5rem; font-size: 1.25rem; font-weight: 400; line-height: 1.35; }
.is-size-5 { font-size: 1.25rem; }

.publication-header .hero-body { padding-bottom: 1.5rem; }
.publication-title { font-family: "Google Sans", "Noto Sans", Arial, sans-serif; }
.publication-authors { font-family: "Google Sans", "Noto Sans", Arial, sans-serif; }
.author-block { display: inline-block; margin: 0.1rem 0.28rem; }
.publication-affiliations { margin-top: 0.45rem; color: #555; }
.publication-links { margin-top: 1.35rem; }
.link-block { display: inline-block; margin: 0.25rem 0.15rem; }

.brand-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.48em;
  object-fit: contain;
  vertical-align: -0.14em;
}

.button .github-icon { filter: invert(1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  padding: 0.5em 1em;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.button.is-normal { font-size: 1rem; }
.button.is-rounded { border-radius: 9999px; }
.button.is-dark { color: #fff; background: #363636; }
.button.is-dark:hover { background: #222; text-decoration: none; }

.teaser .hero-body { padding-top: 0.5rem; padding-bottom: 3rem; }
.teaser-copy { max-width: 820px; margin: 1rem auto 0; font-size: 1.15rem; }
.content { color: var(--text); }
.content p { margin: 0 0 1rem; }
.content ul, .content ol { margin: 1rem 0 1rem 2rem; }
.content li + li { margin-top: 0.45rem; }
.content h3 { margin: 2rem 0 0.75rem; font-size: 1.35rem; line-height: 1.3; }
.content strong { color: #2f2f2f; }

.publication-figure { margin: 1.75rem auto 0; }
.publication-figure img { width: 100%; margin: 0 auto; }
.figure-wide { max-width: 900px; }
.figure-medium { max-width: 520px; }
.figure-compact { max-width: 480px; }
.figure-panorama { max-width: 920px; }
.figure-pair { max-width: 900px; margin: 1.75rem auto 0; }
.figure-pair .publication-figure { max-width: 430px; margin-top: 0; }
.publication-caption { max-width: 820px; margin: 0.7rem auto 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; text-align: center; }

.table-container {
  max-width: 820px;
  margin: 1.5rem auto;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: #363636;
  background: #fff;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.table th, .table td {
  padding: 0.62em 0.75em;
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.table th { color: #363636; font-weight: 700; }
.table th:first-child, .table td:first-child { text-align: left; }
.table.is-striped tbody tr:nth-child(even) { background: #fafafa; }
.best { font-weight: 700; }
.result-note { max-width: 820px; margin: -0.55rem auto 0; color: var(--muted); font-size: 0.9rem; }

.resource-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 2rem;
  margin-top: 0.75rem !important;
}

.resource-link { display: inline-flex; align-items: center; }
.resource-link:hover .brand-icon { opacity: 0.8; }

.footer {
  padding: 3rem 1.5rem;
  background: #fafafa;
  color: #555;
  font-size: 0.9rem;
}

.footer p { max-width: 720px; margin: 0 auto; }

@media screen and (max-width: 768px) {
  .container { padding: 0 1rem; }
  .hero-body, .section { padding: 2.25rem 1rem; }
  .title.is-1 { font-size: 2.25rem; }
  .title.is-3 { font-size: 1.65rem; }
  .is-size-5 { font-size: 1.08rem; }
  .columns { display: block; margin: 0; }
  .column, .column.is-four-fifths, .column.is-full-width, .column.is-half { width: 100%; padding: 0; }
  .has-text-justified { text-align: left; }
  .figure-pair .column + .column { margin-top: 2rem; }
  .resource-list { grid-template-columns: 1fr; }
  .table th, .table td { padding: 0.55em 0.6em; }
}

@media print {
  .hero-body, .section { padding: 2rem 1rem; }
  .button.is-dark { border-color: #777; color: #222; background: #fff; }
  section, figure, table { break-inside: avoid; }
}

/* Expanded preprint comparisons. */
.result-details { margin: 1.5rem 0; }
.result-details summary { cursor: pointer; font-weight: 600; padding: 0.75rem 0; }
.result-details .table { min-width: 1000px; }
.table .ours-row td { background: #eaf3f8; font-weight: 600; }
