/* Page-specific styles, layered on top of Bulma */

:root {
  --ink: #111827;
  --muted: #4b5563;
  --soft: #6b7280;
  --bg-soft: #f6f7f9;
  --line: #e5e7eb;
  --accent: #1f6feb;
}

body {
  font-family: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- HERO ---------- */
.hero.is-publication {
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}
.venue-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: #ffffff;
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.publication-title {
  font-weight: 700 !important;
  line-height: 1.22 !important;
  color: var(--ink) !important;
  margin-bottom: 1.4rem !important;
  letter-spacing: -0.01em;
}
.authors {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--muted);
  margin-bottom: .25rem;
}
.authors .author { white-space: nowrap; margin: 0 .15rem; }
.authors a, .footer a { color: var(--accent); text-decoration: none; }
.authors a:hover, .footer a:hover { text-decoration: underline; }
.affiliations {
  font-size: .9rem;
  color: var(--soft);
  margin-top: .4rem;
  margin-bottom: 1.6rem;
}
.affiliations sup { margin-right: 2px; }
.affiliations .sep { color: var(--line); margin: 0 .35rem; }
.affiliations small { color: var(--soft); }
.publication-buttons { margin-top: 1rem; }
.publication-buttons .button {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 1.2rem;
  font-weight: 500;
  margin: .25rem;
  transition: transform .15s ease, background .15s ease;
}
.publication-buttons .button:hover { background: #374151; transform: translateY(-1px); }
.publication-buttons .button .icon { margin-right: .35rem; }

/* ---------- SECTIONS ---------- */
.section { padding: 3rem 1.5rem; }
.section h2.title.is-3 {
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.has-background-soft { background: var(--bg-soft); }

/* ---------- FIGURES & CAPTIONS ---------- */
.figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  background: #fff;
}
.caption {
  font-size: .9rem;
  color: var(--muted);
  margin: .9rem auto 0;
  max-width: 820px;
  line-height: 1.6;
  text-align: justify;
}
.subhead {
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  margin-top: 2.5rem !important;
  margin-bottom: 1.2rem !important;
}

/* ---------- ABSTRACT ---------- */
.abstract {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1f2937;
}

/* ---------- METHOD CARDS ---------- */
.method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  height: 100%;
  transition: box-shadow .15s ease;
}
.method-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.method-card .title {
  color: var(--ink) !important;
  margin-bottom: .6rem !important;
}
.method-card .badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(31,111,235,.08);
  padding: .15rem .55rem;
  border-radius: 4px;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

/* ---------- HIGHLIGHTS STRIP ---------- */
.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .75rem;
  margin-bottom: 2rem;
}
.highlights .pill {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .85rem;
  padding: .35rem .85rem;
  border-radius: 999px;
}
.highlights .pill strong { color: var(--accent); }

/* ---------- BIBTEX ---------- */
.bibtex {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.2rem 1.4rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: .88rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

/* ---------- VIDEO COMPARISONS (inherits from demos.js) ---------- */
#video-comparisons .section { padding-top: 2rem; padding-bottom: 2rem; }
#video-comparisons .box {
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
#video-comparisons h3.title.is-4 {
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
#video-comparisons h3.title.is-5 { color: var(--ink); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 1.8rem 1rem;
  color: var(--soft);
  font-size: .85rem;
}

/* ---------- RESPONSIVE TITLE ---------- */
.publication-title { font-size: 1.6rem !important; }
@media (min-width: 640px) { .publication-title { font-size: 1.9rem !important; } }
@media (min-width: 1024px) { .publication-title { font-size: 2.25rem !important; } }
