:root {
  --accent: #1772d0;
  --accent-dark: #00369f;
  --accent-soft: #eef4fc;
  --ink: #1a1a1a;
  --muted: #5b6470;
  --line: rgba(0, 0, 0, 0.08);
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 14px;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: 760px;
}

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

a:hover {
  text-decoration: underline;
}

/* ----------------------------- HERO ----------------------------- */
.hero {
  text-align: center;
  padding: 4.5rem 0 3rem;
  background: radial-gradient(
      1200px 500px at 50% -10%,
      rgba(23, 114, 208, 0.12),
      transparent 70%
    ),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.venue {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(23, 114, 208, 0.25);
  border-radius: 999px;
}

.title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 auto 1.5rem;
  max-width: 880px;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.9rem;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.authors .author {
  white-space: nowrap;
}

.authors sup {
  color: var(--accent);
  font-weight: 700;
}

.affiliations {
  margin: 0.2rem 0 0.4rem;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.notes {
  margin: 0 0 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.notes sup {
  color: var(--accent);
}

/* --------------------------- BUTTONS --------------------------- */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: all 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn i {
  font-size: 1rem;
}

/* --------------------------- SECTIONS --------------------------- */
.section {
  padding: 3.2rem 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 1.6rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
}

.abstract {
  font-size: 1.05rem;
  text-align: justify;
}

.subtle {
  text-align: center;
  color: var(--muted);
  margin: -0.6rem auto 1.4rem;
  max-width: 760px;
}

/* --------------------------- FIGURES --------------------------- */
.figure {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.figure.padded {
  padding: 1.6rem;
  background: #fff;
}

.figure.padded-sm {
  padding: 0.7rem;
  background: #fff;
}

.figure-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border: 2px dashed rgba(23, 114, 208, 0.35);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}

.figure-placeholder.small {
  min-height: 170px;
  margin-top: 1.6rem;
}

.caption {
  margin: 0.9rem auto 0;
  max-width: 820px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.block-title {
  text-align: center;
  font-size: 1.25rem;
  margin: 2.8rem 0 1.2rem;
  color: var(--ink);
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}

.figure-grid figure {
  margin: 0;
}

.figure-grid figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------- CARDS ---------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: #34404d;
}

/* ---------------------------- TABLE ---------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg);
}

th,
td {
  padding: 0.6rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

thead th {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

tbody tr.ours {
  background: rgba(23, 114, 208, 0.08);
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------------------------- BIBTEX ---------------------------- */
.bibtex {
  position: relative;
}

.bibtex pre {
  margin: 0;
  padding: 1.3rem 1.2rem;
  background: var(--accent-soft);
  border: 1px solid rgba(23, 114, 208, 0.25);
  border-radius: var(--radius);
  overflow-x: auto;
}

.bibtex code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent-dark);
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid rgba(23, 114, 208, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------------------------- FOOTER ---------------------------- */
.footer {
  padding: 2.2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 0 2.2rem;
  }
  .authors {
    font-size: 0.95rem;
  }
  .btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
  }
}
