/* Nerfies-style project page chrome, plus the figure/table styles the
   results sections need. Bulma supplies the grid and base typography. */

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Hero ---------- */

.publication-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.publication-subtitle {
  margin-top: 0.75rem !important;
  color: #4a4a4a;
  font-weight: 400;
  line-height: 1.4;
}

.publication-authors {
  margin-top: 1.75rem;
  line-height: 1.8;
}

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

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

.author-block {
  display: inline-block;
  margin-right: 0.35rem;
}

.publication-affiliations {
  margin-top: 0.5rem;
  color: #6b6b6b;
}

.publication-affiliations .author-block {
  margin-right: 1rem;
}

.publication-note {
  margin-top: 0.35rem;
  color: #8a8a8a;
}

.publication-venue {
  margin-top: 1.25rem;
}

.venue-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: #f0f4ff;
  color: #2b50aa;
  font-size: 0.95rem;
  font-weight: 600;
}

.publication-links {
  margin-top: 1.75rem;
}

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

.external-link.button {
  background-color: #363636;
  color: #fff;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.external-link.button:hover {
  background-color: #1f1f1f;
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Teaser ---------- */

.teaser {
  padding-top: 0;
}

.teaser .hero-body {
  padding-top: 1rem;
}

.teaser-image {
  display: block;
  margin: 0 auto;
  max-height: 420px;
  width: auto;
}

.teaser .subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* ---------- Section furniture ---------- */

.section-intro {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  color: #5b6572;
  line-height: 1.7;
}

.after-note {
  max-width: 44rem;
  margin: 1.75rem auto 0;
  color: #5b6572;
  font-size: 0.95rem;
  line-height: 1.7;
}

.feature-box {
  height: 100%;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.08);
}

.feature-box .title {
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: #5b6572;
  line-height: 1.6;
}

.method-note {
  max-width: 44rem;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e3e8ef;
  color: #5b6572;
  line-height: 1.7;
}

/* ---------- Figures ---------- */

.fig {
  margin: 0;
}

.fig + .fig {
  margin-top: 2.5rem;
}

/* Images and their labels live in two separate grids that share a column
   template. Putting each image+label in one cell instead left the columns
   vertically offset whenever the artwork aspect ratios differed. */
.fig-row {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

.row-label {
  display: grid;
  gap: 1.25rem;
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7684;
  text-align: center;
}

.row-label.two {
  grid-template-columns: repeat(2, 1fr);
}

.row-label.three {
  grid-template-columns: repeat(3, 1fr);
}

.fig-row.two {
  grid-template-columns: repeat(2, 1fr);
}

.fig-row.three {
  grid-template-columns: repeat(3, 1fr);
}

/* The two removal drawings have different aspect ratios, so equal widths give
   unequal heights and the labels stop lining up. Pin the height instead. */
.fig-row.is-cut img {
  height: 240px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.panel {
  margin: 0;
}

.fig img {
  display: block;
  width: 100%;
  height: auto;
}

.panel-label,
.pair-label {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7684;
  text-align: center;
}

.panel-label {
  margin: 0.55rem 0 0;
}

.pair-label {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0.5rem 0 0;
  letter-spacing: 0.03em;
}

figcaption {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e3e8ef;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #5b6572;
}

.fig-label {
  color: #1f2933;
  font-weight: 700;
}

.fig-label::after {
  content: ' | ';
  color: #c8d0da;
  font-weight: 400;
}

/* ---------- Table ---------- */

table.data {
  width: 100%;
  max-width: 44rem;
  margin: 2.5rem auto 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data caption {
  caption-side: top;
  text-align: left;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #5b6572;
}

table.data th,
table.data td {
  padding: 0.55rem 0.9rem 0.55rem 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

table.data thead th {
  border-top: 1.5px solid #363636;
  border-bottom: 1px solid #363636;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2933;
}

table.data tbody tr:last-child td {
  border-bottom: 1.5px solid #363636;
}

/* ---------- Code (BibTeX only) ---------- */

.section pre {
  background: #2b2b2b;
  color: #f5f5f5;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

.section pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

#BibTeX pre {
  font-size: 0.85rem;
}

.footer {
  padding: 2.5rem 1.5rem;
  background-color: #fafafa;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 900px) {
  .fig-row.two,
  .fig-row.three {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  /* Once the images stack, a separate label row no longer lines up with them,
     and a label under the wrong panel is worse than none. The captions name
     the panels, and the plots carry their own axis labels. */
  .row-label {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2.25rem !important;
  }
  .publication-subtitle {
    font-size: 1.15rem !important;
  }
}
