/* Based on the Academic Project Page Template (eliahuhorwitz), adapted from Nerfies. */

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

/* Top bar with the link back to the homepage */
.top-nav {
  padding: 1rem 1.5rem 0;
}

.top-nav a {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.top-nav a:hover {
  color: hsl(204, 86%, 53%);
}

/* Title block */
.publication-header .hero-body {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  line-height: 1.2;
}

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

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

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

.author-block {
  display: inline-block;
}

.affiliations {
  color: #4a4a4a;
  margin-top: 0.5rem;
}

.venue-badge {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  background-color: #eef3fb;
  color: #2b4c7e;
  border: 1px solid #c9d8f0;
  margin-top: 1.25rem;
}

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

.link-block a,
.link-block button {
  margin: 5px 2px;
}

.link-block .button[disabled] {
  opacity: 0.55;
}

/* Inline SVG icons (Font Awesome / Academicons glyphs) */
.icon svg {
  height: 1em;
  width: auto;
  fill: currentColor;
  overflow: visible;
}

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

/* Figures */
.figure {
  margin: 0 auto;
}

.figure img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.figure.is-narrow {
  max-width: 720px;
}

.figure.is-diagram {
  max-width: 820px;
}

/* Side-by-side plots; flex-grow is each image's aspect ratio so heights match */
.figure-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.figure .figure-row img {
  min-width: 0;
  margin: 0;
}

.subsection {
  margin-top: 2.5rem;
}

.figure-caption {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.55;
  max-width: 744px;
  margin: 1rem auto 0;
  text-align: left;
}

.section-text {
  margin-bottom: 1.75rem;
}

/* Math-like variables in running text */
.m {
  font-style: italic;
  white-space: nowrap;
}

.m sub {
  font-size: 0.75em;
}

/* Results table */
.results-table {
  margin-top: 2rem;
}

.results-table table {
  font-size: 0.92rem;
  white-space: nowrap;
}

.results-table th,
.results-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left !important;
}

.results-table .group-head th {
  border-bottom-width: 1px;
}

.results-table .group-split {
  border-left: 1px solid #dbdbdb;
}

.results-table tr.is-ours td {
  font-weight: 700;
  background-color: #f5f8fd;
}

.results-table .table-note {
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-top: 0.5rem;
}

/* Sections that use .hero for the grey background are flex columns; keep their
   container at the column width so wide content (tables, code) scrolls inside it. */
.section.hero > .container {
  width: 100%;
  min-width: 0;
}

.section.is-light-bg {
  background-color: whitesmoke;
}

/* BibTeX */
.bibtex-wrap {
  position: relative;
  min-width: 0;
}

.bibtex-wrap pre {
  padding: 1.25rem 5rem 1.25rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background-color: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
}

.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.footer {
  padding: 2.5rem 1.5rem 3rem;
}

.footer .content {
  font-size: 0.85rem;
  color: #6b6b6b;
}

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

  .publication-authors {
    font-size: 1.1rem !important;
  }

  .section .title.is-3 {
    font-size: 1.6rem;
  }

  .figure-row {
    flex-direction: column;
    align-items: center;
  }

  .figure .figure-row img {
    flex: none !important;
    width: 100%;
    max-width: 480px;
  }

  /* Justified text leaves large gaps on narrow screens */
  .content.has-text-justified {
    text-align: left !important;
  }
}
