:root {
  --ink: #1a2433;
  --muted: #5b6676;
  --accent: #1f4e79;
  --accent-soft: #e8eff7;
  --sim: #e07a3f;
  --rule: #e3e7ec;
  --bg: #ffffff;
  --panel: #f6f8fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--accent); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
header.hero {
  padding: 64px 0 28px;
  text-align: center;
}

.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.hero h1 .name { color: var(--accent); }

.hero .subtitle {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--muted);
  margin: 0 0 22px;
}

.venue {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 20px;
}

.authors {
  font-size: 1.12rem;
  margin: 0 0 6px;
}

.authors span { white-space: nowrap; margin: 0 8px; }

.affiliations {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 26px;
}

.affiliations span { white-space: nowrap; margin: 0 8px; }

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--accent); }

.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- sections ---------- */
section { padding: 34px 0; }

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

h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.75rem;
  text-align: center;
  margin: 0 0 18px;
}

h3 {
  font-size: 1.2rem;
  margin: 30px 0 8px;
}

p { margin: 0 0 14px; }

.lead { max-width: 860px; margin: 0 auto; text-align: justify; }

figure { margin: 22px 0 8px; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
  text-align: center;
}

/* ---------- highlight stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 22px 0 6px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
}

.stat .num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat .label { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* ---------- method steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.step {
  border-left: 4px solid var(--accent);
  background: var(--panel);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
}

.step.sim { border-left-color: var(--sim); }

.step b { display: block; margin-bottom: 4px; }

.step p { margin: 0; font-size: 0.97rem; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 16px 0 6px; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

th, td {
  padding: 7px 10px;
  text-align: center;
  white-space: nowrap;
}

thead th { border-bottom: 2px solid var(--ink); }

tbody tr:first-child td { border-top: 0; }

tbody tr:last-child td { border-bottom: 2px solid var(--ink); }

td:first-child, th:first-child { text-align: left; }

tr.ours td { background: var(--accent-soft); font-weight: 600; }

/* ---------- bibtex ---------- */
pre.bibtex {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 26px 0 40px;
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  header.hero { padding-top: 40px; }
  .lead { text-align: left; }
}
