/* Adapted from the Nerfies / PiT templates — minimal, self-contained
   styles layered on top of Bulma. Academicons + Bulma are loaded as
   <link rel="stylesheet"> in index.html (not here) so glyphs render
   reliably before the buttons are painted. */

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #fff;
  color: #1f2933;
}

/* Hero blocks lose their top/bottom Bulma margins so adjacent sections
   stack flush against each other and the alternating
   white / hero.is-light bands are visually crisp. */
.hero, .hero-body {
  background-color: transparent;
}
.hero.is-light {
  background-color: hsl(0, 0%, 96%);
}

/* HEADER — title block. Bulma's `.hero-body` defaults to 3rem top/bottom
   which, stacked with the author block and teaser, leaves ~8rem of empty
   space before the teaser image. We override per-section so adjacent
   sections sit close together. */
.publication-header {
  padding-top: 2rem;
  padding-bottom: 0;
}
.publication-header .hero-body {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Author block — tight against the title above and the teaser below. */
.publication-author-block {
  padding-top: 0;
  padding-bottom: 0;
}
.publication-author-block .hero-body {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  margin-bottom: 0.75rem;
}

.publication-authors a {
  color: hsl(204, 86%, 53%);
  text-decoration: none;
}

.publication-authors a:hover {
  text-decoration: underline;
}

/* Button row */
.publication-links {
  margin-top: 1.5rem;
}

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

.publication-links .button {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  background-color: hsl(0, 0%, 21%);
  color: #fff;
  border: none;
}

.publication-links .button:hover {
  background-color: hsl(0, 0%, 14%);
  color: #fff;
}

.publication-links .button .icon {
  /* Academicons + Font Awesome glyphs sit a hair high inside Bulma's
     button by default — nudge them down. */
  font-size: 1.05rem;
}

.publication-links .button.is-disabled {
  cursor: not-allowed;
}

/* Teaser — Nerfies-style subtitle below the figure. Also tighten the
   inner .hero-body so the figure sits just under the buttons. */
.hero.teaser {
  padding-top: 0;
  padding-bottom: 1rem;
}
.hero.teaser .hero-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero.teaser .subtitle {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a4a4a;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
}

/* Section figures — block-level images centered with a soft radius */
.section img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Demo section — intro paragraph above the video, caption below */
.demo-intro {
  max-width: 800px;
  margin: 0 auto 1.75rem auto;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.55;
}

.caption {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
}

/* Video container — small lift + soft shadow so it sits forward of the
   light-grey section background. */
.publication-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.publication-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
}

/* Tabbed sections — used by Comparison + Ablation. Each `.tab-section` is
   a self-contained group with rounded "pill" buttons; the `openTab` JS
   handler scopes by closest `.tab-section` so multiple groups don't
   interfere with each other on the same page. */
.section-intro {
  max-width: 800px;
  margin: 0 auto 1.75rem auto;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.55;
}

.tab-section {
  margin-top: 0.5rem;
}

.tab-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-button {
  background: #fff;
  color: #4a4a4a;
  border: 1px solid hsl(0, 0%, 80%);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.tab-button:hover:not(.active) {
  border-color: hsl(0, 0%, 50%);
  background: hsl(0, 0%, 98%);
}

.tab-button.active {
  background: hsl(204, 86%, 53%);
  color: #fff;
  border-color: hsl(204, 86%, 53%);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-content .result-image,
.tab-content img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}

.tab-placeholder {
  padding: 2.5rem 1.5rem;
  background: hsl(0, 0%, 96%);
  border: 1px dashed hsl(0, 0%, 75%);
  color: hsl(0, 0%, 30%);
  font-size: 0.95rem;
  border-radius: 8px;
}
.tab-placeholder code {
  background: hsl(0, 0%, 88%);
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

/* Quantitative results table */
.table-wrap {
  overflow-x: auto;
  margin: 0 auto;
}

.quant-table {
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.92rem;
  font-family: 'Noto Sans', sans-serif;
  min-width: 720px;
}

.quant-table th, .quant-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid hsl(0, 0%, 90%);
  text-align: center;
  white-space: nowrap;
}

.quant-table thead th {
  background: hsl(0, 0%, 95%);
  border-bottom: 1.5px solid hsl(0, 0%, 70%);
  font-weight: 600;
}

.quant-table thead tr:first-child th { border-top: 1.5px solid hsl(0, 0%, 70%); }
.quant-table tbody tr:last-child td  { border-bottom: 1.5px solid hsl(0, 0%, 70%); }

.quant-table tbody tr:hover { background: hsl(0, 0%, 98%); }

.quant-table tbody td:first-child { text-align: left; font-weight: 500; }

.quant-table tr.ours-row {
  background: hsl(204, 100%, 96%);
}
.quant-table tr.ours-row:hover {
  background: hsl(204, 100%, 93%);
}

/* BibTeX block */
#BibTeX pre {
  background: #f5f5f5;
  color: #2c2c2c;
  border-radius: 6px;
  font-size: 0.9rem;
  padding: 1rem;
  overflow-x: auto;
}

footer.footer {
  background-color: #fff;
  border-top: 1px solid #e9ecef;
  padding: 2rem 1.5rem;
}
