/* SFR-Net project page, on top of the Academic Project Page Template. */

h1.title.publication-title {
  font-family: 'Google Sans', sans-serif !important;
  font-size: 2.3rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.venue-link {
  display: inline-block;
  margin-top: 1rem;
}

.hf-icon {
  width: 1.1em;
  height: auto;
}

/* In-page navigation */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 600;
}

.page-nav a {
  color: var(--text-secondary);
}

.page-nav a:hover {
  color: var(--primary-color);
}

/* Headings inside a section, numbered like the paper */
h3.subsection {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
}

h4.paragraph-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}

.content p {
  line-height: 1.75;
}

/* Figures */
.figure-block {
  margin: 1.75rem auto;
}

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

.figure-block.w-80 img { max-width: 80%; }
.figure-block.w-60 img { max-width: 60%; }

.figure-caption {
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.75rem;
}

.figure-caption .fig-no {
  font-weight: 700;
  color: var(--text-primary);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.75rem auto 0;
}

.image-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.image-grid .grid-label {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Equations */
.equation {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0.75rem 0 1.25rem;
}

.contribution-list li {
  margin-bottom: 0.6rem;
}

.setup-list li {
  margin-bottom: 0.35rem;
}

/* Tables */
.table-caption {
  font-size: 0.95rem;
  margin: 1.75rem 0 0.5rem;
}

.table-caption .fig-no {
  font-weight: 700;
}

.results-table-wrapper {
  overflow-x: auto;
  margin: 0.5rem 0 1rem;
}

table.results-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}

table.results-table th,
table.results-table td {
  padding: 0.4rem 0.5rem;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

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

table.results-table thead tr:last-child th,
table.results-table thead th[rowspan] {
  border-bottom: 2px solid var(--text-primary);
}

table.results-table tr.group-start td {
  border-top: 2px solid var(--border-color);
}

table.results-table tr.section-row td {
  font-weight: 700;
  background: var(--background-secondary);
}

table.results-table tr.ours td {
  background: #eff6ff;
}

table.results-table tr.ours td:first-child {
  font-weight: 700;
}

table.results-table tr.reference td {
  color: var(--text-secondary);
  font-style: italic;
}

table.results-table td.best {
  font-weight: 800;
}

table.results-table td.second {
  text-decoration: underline;
}

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

  .figure-block.w-80 img,
  .figure-block.w-60 img {
    max-width: 100%;
  }

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