* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.page {
  width: min(920px, calc(100% - 28px));
  margin: 40px auto 64px;
}

/* ── Hero ── */

.hero {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 32px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0d2a5c;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(13, 42, 92, 0.18);
}

.pub-separator {
  opacity: 0.8;
}

.authors {
  margin: 0 0 4px;
  font-size: 1rem;
}

.meta {
  margin: 0 0 6px;
  color: #555;
  font-size: 0.93rem;
}

sup {
  font-size: 0.75em;
}

.contact {
  margin: 4px 0 16px;
  color: #555;
  font-size: 0.9rem;
}

.contact a {
  color: #1a56a0;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #aaa;
  border-radius: 999px;
  padding: 8px 18px;
  color: #111;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  background: #fafafa;
  transition: background 0.15s, border-color 0.15s;
}

.link-btn:hover {
  background: #efefef;
  border-color: #777;
}

.link-btn .icon {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  line-height: 1;
}

/* ── Sections ── */

.section {
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  font-weight: 700;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
}

h3 {
  margin: 22px 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
}

p {
  margin: 0 0 10px;
}

/* ── Figures ── */

.paper-figure {
  margin: 0 0 18px;
}

.paper-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.teaser img {
  max-height: 480px;
  object-fit: contain;
}

figcaption {
  margin-top: 8px;
  font-size: 0.93rem;
  color: #333;
  line-height: 1.45;
}

/* ── Missing-file behavior ── */

.missing-note {
  display: none;
}

.paper-figure.missing {
  border: 1px dashed #ccc;
  padding: 10px 12px;
  background: #fafafa;
}

.paper-figure.missing .missing-note {
  display: block;
  color: #8b2500;
  font-size: 0.87rem;
  margin-top: 4px;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

/* ── Tables ── */

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

table {
  border-collapse: collapse;
  font-size: 0.93rem;
  width: auto;
  min-width: 420px;
}

th, td {
  border: 1px solid #ddd;
  padding: 7px 14px;
  text-align: center;
}

th {
  background: #f2f2f2;
  font-weight: 700;
}

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

tr.ours td {
  background: #eef4ff;
}

/* ── Citation block ── */

.citation-block {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: left;
}

.citation-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1d2d4f;
}

pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 14px;
  background: #f7f7f7;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .page {
    margin-top: 20px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .link-row {
    flex-direction: column;
    align-items: center;
  }
}
