/* ============================================================ Base */
:root {
  --accent: #2d5bff;
  --accent-dark: #1f3fb3;
  --text-strong: #0b1021;
  --text-muted: #5a6378;
  --bg-subtle: #f6f8fc;
}

body {
  font-family: 'Noto Sans', 'Google Sans', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-strong);
  background: #ffffff;
}

code, pre, kbd, samp {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}

h1.title, h2.title, h3.title, h4.title, h5.title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}


/* ============================================================ Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(45, 91, 255, 0.08), transparent 60%),
    #ffffff;
}

.publication-title {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem !important;
}

.publication-authors .author-block {
  margin-right: 0.6rem;
}

.publication-authors a {
  color: var(--text-strong);
  text-decoration: none;
}
.publication-authors a:hover {
  color: var(--accent);
}

.publication-venue {
  color: var(--text-muted);
}

.publication-links .link-block {
  display: inline-block;
  margin: 0.25rem 0.3rem;
}

.publication-links .button {
  background: var(--text-strong);
  border-color: var(--text-strong);
  transition: transform 0.15s ease, background 0.15s ease;
}
.publication-links .button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}


/* ============================================================ Teaser */
.teaser img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(10, 20, 60, 0.08);
}

.caption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}


/* ============================================================ Method */
.method-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(10, 20, 60, 0.06);
}


/* ============================================================ Comparison slider */
img-comparison-slider.comparison {
  --divider-width: 2px;
  --divider-color: #ffffff;
  --default-handle-color: var(--accent);
  --default-handle-opacity: 1;
  --handle-size: 42px;

  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10, 20, 60, 0.08);
  background: #000;
}

img-comparison-slider.comparison img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ============================================================ Tables */
.table th {
  background: var(--bg-subtle);
  color: var(--text-strong);
}
.table td,
.table th {
  vertical-align: middle;
}

/* Results tables (quantitative comparison) */
.results-table {
  font-size: 0.85rem;
}
.results-table thead tr:first-child th {
  border-bottom: 1px solid #d7dce6;
}
.results-table .metric-row th {
  font-weight: 500;
  color: var(--text-muted);
  background: #fbfcff;
}
.results-table tbody tr.ours-row {
  background: rgba(45, 91, 255, 0.06) !important;
  border-top: 2px solid var(--accent);
}
.results-table tbody tr.ours-row td {
  color: var(--text-strong);
}
.results-table u {
  text-decoration-color: var(--text-muted);
  text-underline-offset: 2px;
}


/* ============================================================ Code blocks */
#BibTeX pre {
  background: var(--text-strong);
  color: #e9edf7;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  overflow-x: auto;
}
#BibTeX code {
  background: transparent;
  color: inherit;
  padding: 0;
}


/* ============================================================ Footer */
.footer {
  background: var(--bg-subtle);
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}
.footer a {
  color: var(--accent);
}


/* ============================================================ Small screens */
@media (max-width: 768px) {
  .publication-title {
    font-size: 1.75rem !important;
  }
  .publication-links .button {
    font-size: 0.85rem;
  }
}
