:root {
  color-scheme: light;
  --ink: #363636;
  --muted: #5f6368;
  --link: #2f86d6;
  --code-bg: #f5f5f5;
  --rule: #e4e4e4;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

h1, h2, h3, .venue { font-family: "Google Sans", "Noto Sans", sans-serif; }

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 16px 32px;
  text-align: center;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
}

.venue { margin: 0 0 16px; font-size: 1.1rem; font-weight: 500; }
.authors { margin: 0; font-size: 1.1rem; color: var(--link); }
.affiliations { margin: 0 0 20px; color: var(--muted); }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}
.pill:hover { background: #111; text-decoration: none; }
.pill.disabled { background: #b5b5b5; cursor: default; }

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

section { margin-top: 48px; }

h2 {
  margin: 0 0 16px;
  font-size: 1.75rem;
  font-weight: 500;
  text-align: center;
}

h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 500; }
h3 span { margin-left: 6px; color: var(--muted); font-size: 0.875rem; font-weight: 400; }

.abstract { margin: 0; text-align: justify; }

figure { margin: 32px 0 0; }

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.teaser { margin-top: 8px; }
.teaser img { max-width: 520px; margin: 0 auto; }
.narrow img { max-width: 560px; margin: 0 auto; }

/* The three-panel severity figure is unreadable at the text column width. */
.wide img {
  width: min(1120px, 100vw - 32px);
  max-width: none;
  margin-left: calc(50% - min(560px, 50vw - 16px));
}

.strip-group { margin-top: 24px; }

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}
.strip.five { grid-template-columns: repeat(5, 1fr); max-width: none; }

.strip figure { margin: 0; }
.strip figcaption { margin-top: 2px; text-align: center; }
.strip small { font-size: 0.75rem; }

pre {
  margin: 16px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--code-bg);
  font-size: 0.85rem;
  line-height: 1.5;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.note { margin: 12px 0 0; color: var(--muted); font-size: 0.875rem; }

.bibtex { position: relative; }
.bibtex pre { margin-top: 0; padding-right: 72px; white-space: pre-wrap; }

#copy-bib {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

footer {
  max-width: 800px;
  margin: 56px auto 0;
  padding: 16px 16px 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 600px) {
  .hero { padding-top: 32px; }
  .abstract { text-align: left; }
  .strip { gap: 4px; }
  .strip.five { grid-template-columns: repeat(2, 1fr); }
}

.teaser.qual img { max-width: 860px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.results { border-collapse: collapse; margin: 0 auto; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
table.results caption { caption-side: bottom; padding-top: 8px; color: var(--muted); text-align: left; }
table.results th, table.results td { padding: 4px 10px; text-align: right; white-space: nowrap; }
table.results th:first-child, table.results td:first-child,
table.results th:nth-child(2), table.results td:nth-child(2) { text-align: left; }
table.results thead th { border-bottom: 1px solid var(--ink); font-weight: 600; }
table.results tbody tr.group td { border-top: 1px solid var(--rule); }
table.results tr.ours td { font-weight: 600; }
table.results td.ci { color: var(--muted); font-size: 0.8rem; }
table.results td:first-child { white-space: normal; min-width: 9em; }
table.results th, table.results td { padding: 4px 8px; }
