:root {
  --ink: #222;
  --muted: #666;
  --line: #e4e4e4;
  --accent: #4d7dbf;        /* ETH Blue, as on the poster */
  --accent-dark: #08407e;
  --tint: #e9eff7;
  --tint2: #d3deef;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.hero { text-align: center; padding: 56px 0 24px; }
header.hero h1 { font-size: 46px; margin: 0; letter-spacing: 0.5px; }
header.hero h2 { font-size: 24px; font-weight: 400; margin: 8px auto 20px; max-width: 900px; line-height: 1.35; }
.venue { color: var(--muted); font-size: 18px; margin-bottom: 14px; }
.authors, .affiliations { display: flex; flex-wrap: wrap; justify-content: center; }
.authors { font-size: 19px; }
.authors span { margin: 0 10px; white-space: nowrap; }
.authors sup, .affiliations sup { font-size: 12px; }
.affiliations { color: var(--muted); margin-top: 4px; }
.affiliations span { margin: 0 10px; white-space: nowrap; }
.notes { color: var(--muted); font-size: 14px; }

.buttons { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.buttons a {
  display: inline-block; padding: 8px 18px; border-radius: 20px; background: #2b2b2b; color: #fff;
  font-size: 15px; text-decoration: none;
}
.buttons a.placeholder { background: #b8b8b8; pointer-events: none; }

section { padding: 34px 0; border-top: 1px solid var(--line); }
section h3 { font-size: 28px; margin: 0 0 14px; text-align: center; }
section p.lead { max-width: 900px; margin: 0 auto 18px; text-align: center; color: #444; }
.abstract p { max-width: 900px; margin: 0 auto; text-align: justify; }

figure { margin: 0 auto 10px; text-align: center; }
figure img, figure video { width: 100%; height: auto; display: block; background: #fff; }
figure.narrow { max-width: 900px; margin: 22px auto; }
figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 900px; margin-left: auto; margin-right: auto; }

.tldr { max-width: 900px; margin: 6px auto 18px; text-align: center; font-size: 19px; }

.method-steps { max-width: 900px; margin: 18px auto 0; padding-left: 20px; }
.method-steps li { margin-bottom: 6px; }

.hint { text-align: center; color: var(--accent-dark); font-size: 16px; margin: -4px auto 14px; }
.tabs { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: center; margin: 0 0 18px; }
@media (max-width: 1100px) { .tabs { flex-wrap: wrap; } }
.tabs button {
  font: inherit; font-size: 15px; font-weight: 600; border: 1.5px solid var(--accent); background: var(--tint);
  color: var(--accent-dark); padding: 7px 14px; border-radius: 22px; cursor: pointer; white-space: nowrap;
}
.tabs button:hover { background: var(--tint2); }
.tabs button.active { background: var(--accent); color: #fff; }
.picker-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 0; flex-wrap: wrap; }
.picker-label { font-size: 15px; font-weight: 600; color: var(--accent-dark); }
.picker { display: flex; gap: 6px; flex-wrap: wrap; }
.picker button {
  font: inherit; font-size: 14.5px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent-dark);
  padding: 4px 13px; border-radius: 18px; cursor: pointer;
}
.picker button:hover { background: var(--tint); }
.picker button.active { background: var(--accent); color: #fff; }
.panel { display: none; }
.panel.active { display: block; }

.player { position: relative; }

.video-frame { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

pre.bibtex {
  max-width: 900px; margin: 0 auto; background: #f6f6f6; padding: 16px; border-radius: 6px; overflow-x: auto;
  font-size: 14px; line-height: 1.45;
}

footer { color: var(--muted); font-size: 14px; text-align: center; padding: 30px 0 50px; border-top: 1px solid var(--line); }

/* text and tables taken from the poster */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card.wide { grid-column: 1 / -1; }
.card { background: #fff; border: 1px solid var(--tint2); border-radius: 10px; padding: 18px 22px; }
.card h4 { margin: 0 0 10px; font-size: 20px; color: var(--accent-dark); border-bottom: 2px solid var(--tint2);
  padding-bottom: 6px; }
ul.points, ul.insights { margin: 10px 0 0; padding-left: 0; list-style: none; }
ul.points li, ul.insights li { position: relative; padding-left: 18px; margin-bottom: 6px; }
ul.points li::before, ul.insights li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px;
  height: 7px; border-radius: 50%; background: var(--accent); }
ul.insights { font-size: 15.5px; }
.table-wrap { overflow-x: auto; }
.card table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.card th { background: var(--tint2); color: var(--accent-dark); text-align: left; padding: 5px 7px; white-space: nowrap; }
.card td { padding: 4px 7px; border-bottom: 1px solid #e6ebf2; white-space: nowrap; }
.card th.num, .card td.num { text-align: center; }
.card td:first-child { white-space: normal; }
.card tr.ours td { background: var(--tint); }
.card td u { text-underline-offset: 2px; }
.note { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.takeaway { background: var(--tint2); border-radius: 10px; padding: 18px 24px; max-width: 900px; margin: 0 auto; }
.takeaway h4 { margin: 0 0 6px; font-size: 20px; color: var(--accent-dark); }
.takeaway p { margin: 0; font-size: 18px; }

@media (max-width: 900px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  header.hero h1 { font-size: 34px; }
  header.hero h2 { font-size: 19px; }
  body { font-size: 16px; }
}
