:root {
  --ink: #17202a;
  --muted: #5b6675;
  --line: #d9e0e8;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --blue: #1f6feb;
  --green: #258a5d;
  --amber: #b7791f;
  --red: #c53030;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", sans-serif;
}

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

a:hover {
  color: #144fb0;
}

.publication-hero {
  background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 74%);
  border-bottom: 1px solid var(--line);
}

.publication-hero .hero-body {
  padding: 3.5rem 1.5rem 2.5rem;
}

.publication-venue {
  margin: 0 auto 0.9rem;
  color: var(--red);
  font-family: "Google Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.publication-title {
  max-width: 980px;
  margin: 0 auto 1rem;
  color: var(--ink);
  font-family: "Google Sans", sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 4.05rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

.publication-subtitle {
  max-width: 820px;
  margin: 0 auto 1.4rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.publication-authors,
.publication-affiliation {
  font-family: "Google Sans", sans-serif;
}

.publication-authors {
  margin-top: 0.25rem;
}

.publication-affiliation {
  margin-top: 0.25rem;
  color: var(--muted);
}

.author-block {
  display: inline-block;
}

.author-separator {
  display: inline-block;
  margin: 0 0.3rem;
  color: var(--muted);
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.publication-button {
  height: 2.55rem;
  border: 1px solid #283548;
  border-radius: 6px;
  background: #202b3a;
  color: #ffffff;
  font-weight: 700;
}

.publication-button:hover,
.publication-button:focus {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.publication-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: none;
}

.hero-figure,
.paper-figure,
.video-panel {
  margin: 0;
}

.hero-figure {
  margin-top: 2.25rem;
}

.hero-figure img,
.paper-figure img,
.video-panel video {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #ffffff;
}

.video-panel video {
  border: 1px solid var(--line);
}

.hero-figure figcaption,
.paper-figure figcaption,
.video-panel figcaption,
.table-note,
.footer-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section {
  padding: 3.8rem 1.5rem;
}

.section-muted {
  background: var(--soft);
}

.section-title {
  margin-bottom: 1.2rem;
  color: var(--ink);
  font-family: "Google Sans", sans-serif;
  font-size: 2rem;
  letter-spacing: 0;
}

.paper-copy {
  color: #283548;
  font-size: 1.05rem;
  line-height: 1.72;
}

.paper-copy p:not(:last-child) {
  margin-bottom: 1rem;
}

.paper-figure {
  margin-top: 1.7rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.video-panel video {
  aspect-ratio: 4.77 / 1;
  object-fit: contain;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.results-table {
  min-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  background: #ffffff;
}

.results-table th,
.results-table td {
  border-color: var(--line);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

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

.results-table thead th {
  background: #edf2f7;
  color: #202b3a;
  font-size: 0.9rem;
}

.ours-row {
  background: #f7fbff;
}

.ours-row strong {
  color: #102a43;
}

.subsection-title {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: "Google Sans", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.qualitative-figure {
  margin-top: 2rem;
}

.bibtex {
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
  color: #f7fafc;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 0.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #202b3a;
  font-size: 1.25rem;
}

.icon-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.icon-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

.footer-note {
  max-width: 760px;
  margin: 0.9rem auto 0;
  text-align: center;
}

@media screen and (max-width: 640px) {
  .publication-hero .hero-body {
    padding: 2.4rem 1rem 2rem;
  }

  .section {
    padding: 2.7rem 1rem;
  }

  .publication-title {
    font-size: 2.25rem;
  }

  .publication-subtitle {
    font-size: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-panel video {
    min-height: 9rem;
  }
}
