:root {
  --ink: #1d1f24;
  --muted: #5b6270;
  --line: #e4e6eb;
  --bg-soft: #f6f7f9;
  --accent: #1f5fbf;
  --accent-soft: #e8f0fc;
  --maxw: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 17px;
}

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

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

/* ---------- top nav ---------- */
.topnav {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.topnav .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.topnav .brand { font-weight: 700; color: var(--ink); }
.topnav nav a { margin-left: 22px; color: var(--muted); font-size: 15px; }
.topnav nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- project hero ---------- */
.hero { text-align: center; padding: 56px 0 28px; }
.venue-tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 22px; font-weight: 750; letter-spacing: -.01em; }
.hero h1 .acronym { color: var(--accent); }
.authors { font-size: 19px; margin-bottom: 6px; }
.authors > span { margin: 0 10px; white-space: nowrap; }
.affils { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.affils span { margin: 0 10px; white-space: nowrap; }

.buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
}
.btn:hover { background: #3a3f4a; text-decoration: none; }
.btn.disabled { background: #b9bec8; pointer-events: none; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- sections ---------- */
section { padding: 34px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 27px; margin: 0 0 18px; text-align: center; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 28px 0 10px; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; }
.abstract { text-align: justify; }

figure { margin: 26px 0; }
figure img { width: 100%; height: auto; border-radius: 6px; display: block; }
figure.narrow img { max-width: 620px; margin: 0 auto; }
figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; text-align: center; }

.tldr {
  background: var(--bg-soft); border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 6px; margin: 8px 0 0;
}
.tldr strong { color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #fff; }
.card h4 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; font-size: 15.5px; color: #3a3f4a; }
.card .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .05em; }

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.stat { text-align: center; background: var(--bg-soft); border-radius: 10px; padding: 16px 10px; }
.stat .value { font-size: 28px; font-weight: 750; color: var(--accent); }
.stat .label { font-size: 14px; color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 650; background: var(--bg-soft); }
td:first-child, th:first-child { text-align: left; }
tr.ours td { background: var(--accent-soft); font-weight: 650; }
.best { font-weight: 750; }
.table-note { font-size: 13.5px; color: var(--muted); }

/* ---------- bibtex ---------- */
pre.bibtex {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px; font-size: 13.5px; overflow-x: auto; line-height: 1.5; position: relative;
}
.copy-btn {
  float: right; font-size: 12.5px; border: 1px solid var(--line); background: #fff;
  border-radius: 6px; padding: 3px 10px; cursor: pointer; color: var(--muted);
}
.copy-btn:hover { color: var(--ink); }

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

/* ---------- home page ---------- */
.profile { display: flex; gap: 34px; align-items: center; padding: 56px 0 30px; }
.profile .avatar {
  width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1f5fbf, #6aa3f0); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: 700;
  object-fit: cover;
}
.profile h1 { margin: 0 0 4px; font-size: 36px; }
.profile .role { color: var(--muted); margin-bottom: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }

.pub { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub .thumb { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft); }
.pub .thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.pub h3 { margin: 0 0 4px; font-size: 18.5px; }
.pub h3 a { color: var(--ink); }
.pub .meta { font-size: 15px; color: var(--muted); }
.pub .meta b { color: var(--ink); font-weight: 600; }
.pub .venue { font-weight: 650; color: var(--accent); font-size: 15px; margin: 4px 0 8px; }
.pub .desc { font-size: 15.5px; margin-bottom: 8px; }
.pub .plinks a { font-size: 14.5px; margin-right: 14px; }

.news li { margin-bottom: 6px; }
.news .date { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 29px; }
  .profile { flex-direction: column; text-align: center; }
  .links { justify-content: center; }
  .pub { grid-template-columns: 1fr; }
  .topnav nav a { margin-left: 14px; }
}

.slides-embed { position: relative; width: 100%; aspect-ratio: 16 / 9.6; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 10px 0 12px; }
.slides-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
