/* ============================================================
   Pixel2Catch — Project Page
   Adapted from Nerfies (Bulma-based) academic project template.
   ============================================================ */

body {
  font-family: 'Noto Sans', sans-serif;
  color: #2c3e50;
}

.title, .subtitle, h1, h2, h3, h4, h5, h6 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

/* ---------- Hero / title block ---------- */
.hero {
  background-color: #ffffff;
}

.venue-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 4px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #2c3e50;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.publication-title {
  margin-bottom: 1.2rem !important;
  line-height: 1.25;
}

.publication-authors {
  margin-bottom: 0.5rem;
}

.publication-authors .author-block {
  margin: 0 0.4em;
}

.publication-authors a {
  color: #3273dc;
  text-decoration: none;
}
.publication-authors a:hover { text-decoration: underline; }

.publication-affiliations {
  margin-bottom: 1.5rem;
  color: #4a4a4a;
}

.publication-affiliations .corresponding {
  font-size: 0.95em;
  color: #6e6e6e;
}

/* ---------- Buttons ---------- */
.publication-links {
  margin-top: 1.2rem;
}

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

.publication-links .button {
  background-color: #2c3e50 !important;
  color: #ffffff !important;
  border: none;
  transition: transform 0.1s ease, background-color 0.15s ease;
}
.publication-links .button:hover {
  background-color: #1a252f !important;
  transform: translateY(-1px);
}

/* ---------- Teaser ---------- */
.hero.teaser {
  padding-top: 0;
  padding-bottom: 0;
}

.teaser-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hero.teaser .subtitle {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #4a4a4a;
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.section {
  padding: 3rem 1.5rem;
}

.section .title.is-3 {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.section .title.is-5 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #2c3e50;
}

.content p {
  line-height: 1.7;
}

.math { font-style: italic; }

/* ---------- Figures ---------- */
.figure {
  margin: 1.5rem auto;
  max-width: 100%;
}

.method-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  text-align: justify;
  padding: 0 0.5rem;
}

/* ---------- Tables ---------- */
.table-container {
  margin: 1rem 0;
}

/* Force all table cells (header + body) to center horizontally
   and vertically. Vertical centering matters for rowspan cells
   like "T.R. (%)" and "S.R. (%)". */
.table th,
.table td {
  vertical-align: middle !important;
  text-align: center !important;
}

.table thead th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.table-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* ---------- Video ---------- */
.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  margin: 1.5rem 0 0.5rem 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.publication-video iframe,
.publication-video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  background-color: #000;
}

.video-caption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #555;
}

/* Self-hosted demo videos (3-column grid) */
.video-intro {
  margin-bottom: 1.2rem;
  color: #4a4a4a;
  font-size: 1.0rem;
  line-height: 1.6;
}

.video-grid {
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.video-grid .column .title.is-6 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.demo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background-color: #000;
}

/* ---------- BibTeX block ---------- */
#bibtex pre {
  background-color: #2c3e50;
  color: #f8f8f2;
  padding: 1.2rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

#bibtex code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: inherit;
}

/* ---------- Footer ---------- */
.footer {
  background-color: #fafafa;
  padding: 2rem 1.5rem;
  color: #555;
  font-size: 0.95rem;
}

.footer a {
  color: #3273dc;
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  .publication-title {
    font-size: 1.6rem !important;
  }
  .publication-authors {
    font-size: 1rem !important;
  }
  .publication-links .button {
    font-size: 0.85rem;
  }
  .section {
    padding: 2rem 1rem;
  }
}
