:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #2952cc;
  --border: #e3e3e3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 64px 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

h1 {
  font-size: 2.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.authors {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.authors a {
  color: var(--text);
  text-decoration: none;
}

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

.equal {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
}

.venue {
  font-weight: 600;
  margin: 18px 0 24px;
}

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }

main {
  padding: 48px 24px 24px;
}

.teaser {
  margin: 0 0 48px;
  text-align: center;
}

.teaser img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

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

h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
}

h3 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
}

section h3:first-of-type {
  margin-top: 24px;
}

section {
  margin-bottom: 48px;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.figure-grid img, .full-width img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}


figure {
  margin: 0 0 36px;
  text-align: center;
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: left;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 36px;
}

.table-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th, td {
  padding: 7px 11px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

th:first-child, td:first-child { text-align: left; }
th:nth-child(2), td:nth-child(2) { text-align: left; }

thead th {
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

tbody.group tr:first-child td {
  border-top: 2px solid var(--border);
}

tr.highlight td {
  background: #eef3ff;
  font-weight: 600;
}

tr.group-header td {
  background: #f0f0f0;
  font-size: 0.82rem;
  padding: 5px 11px;
  color: #444;
  border-bottom: none;
}

tr.group-header--intense td {
  background: #fff8ec;
}

pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
}

footer {
  padding: 28px 0 56px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

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

@media (max-width: 600px) {
  .figure-grid { grid-template-columns: 1fr; }
  table { font-size: 0.78rem; }
  h1 { font-size: 2rem; }
}
