/* ===== RealAlign project page — InPO/Nerfies-style minimal overrides ===== */

body {
  font-family: 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fff;
}

.publication-title {
  font-family: 'Castoro', serif;
  font-weight: 600;
  line-height: 1.2;
}

.conference-badge {
  color: #ad1457;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

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

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

.publication-authors a {
  color: #3273dc;
}

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

.publication-links .button {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

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

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

.hero.teaser .subtitle {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: #4a4a4a;
}

.dnerf {
  font-weight: 700;
  color: #ad1457;
}

/* ===== Section spacing ===== */
section.section {
  padding: 3rem 1.5rem;
}

section.section + section.section {
  border-top: 1px solid #f0f0f0;
}

/* ===== Figures ===== */
figure.figure {
  margin: 1.5rem 0 2rem;
  text-align: center;
}

figure.figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

figure.figure figcaption {
  margin-top: 0.6rem;
  color: #6a6a6a;
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== Gallery (top banner, gapless) ===== */
.gallery-hero {
  padding: 1.5rem 0 1.5rem;
}

.gallery-grid.is-gapless,
.gallery-grid.is-gapless > .column {
  margin: 0 !important;
  padding: 0 !important;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  vertical-align: bottom;     /* kill inline-element baseline gap */
}

/* ===== Appendix collapsible ===== */
details.appendix-details {
  margin-top: 2rem;
  border-top: 1px dashed #ddd;
  padding-top: 1rem;
}

details.appendix-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #3273dc;
  margin-bottom: 1rem;
}

details.appendix-details[open] summary {
  margin-bottom: 1.5rem;
}

/* ===== Paper embed ===== */
.paper-embed {
  display: block;
  width: 100%;
  height: 720px;
  margin-top: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ===== BibTeX ===== */
#bibtex pre {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 1rem;
  font-size: 0.9rem;
  overflow-x: auto;
}

/* ===== Footer ===== */
.footer {
  background-color: #fafafa;
  padding: 2rem 1.5rem;
}

.footer a {
  color: #3273dc;
}
