/* ==========================================================================
   Academic project page — styling modeled on the Nerfies / academic-project-page
   template used by HUJI Vision project pages (e.g. ProbeGen).
   ========================================================================== */

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

/* ---- Headings ---- */
.title, .subtitle, .publication-title, .section h2, h1, h2, h3 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.publication-title {
  font-weight: 600;
  line-height: 1.15;
}

/* ---- Hero / header ---- */
.hero.is-light.publication-header {
  background-color: #ffffff;
}

.publication-authors {
  font-size: 1.15rem;
}

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

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

.affiliation-block {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  color: #4a4a4a;
}

.eql-cntrb {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin-top: 0.5rem;
}

/* ---- Link buttons ---- */
.publication-links {
  margin-top: 1.5rem;
}

.publication-links .button {
  background-color: #363636;
  color: #ffffff;
  border-radius: 24px;
  border: none;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.publication-links .button:hover {
  background-color: #4f5fbf;
  color: #ffffff;
  transform: translateY(-1px);
}
.publication-links .button .icon {
  color: #ffffff;
}

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

.section .title.is-3 {
  margin-bottom: 1.4rem;
}

.content-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.section .content p {
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: justify;
}

/* ---- Teaser ---- */
.hero.teaser {
  padding: 2.2rem 1.5rem 0.5rem;
}
.teaser .teaser-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* ---- Figures ---- */
.figure-block {
  margin: 2.2rem auto;
  text-align: center;
}
.figure-block img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.figure-block .figure-caption,
.teaser .teaser-caption {
  font-size: 0.97rem;
  color: #555;
  margin-top: 0.9rem;
  text-align: justify;
  line-height: 1.6;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.figure-block .figure-caption b,
.teaser .teaser-caption b {
  color: #363636;
}

/* alternating light band for some sections */
.section.is-light-band {
  background-color: #fafafc;
}

/* ---- Results table ---- */
.results-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem auto 0.5rem;
}
table.results {
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.92rem;
  min-width: 720px;
}
table.results th,
table.results td {
  padding: 6px 12px;
  text-align: center;
  white-space: nowrap;
}
table.results thead tr.group-head th {
  border-bottom: 1px solid #b5b5b5;
}
table.results .backbone-head {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}
table.results .dataset-row td {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: #f0f0f4;
  letter-spacing: 0.08em;
  border-top: 1px solid #d5d5db;
  border-bottom: 1px solid #d5d5db;
}
table.results td.method,
table.results th.method {
  text-align: left;
  font-style: italic;
}
table.results td.method.ours {
  font-weight: 700;
  font-style: normal;
}
table.results tr.ours-row td {
  background: #eef2fb;
}
table.results .best {
  font-weight: 700;
  color: #2b3fa0;
}
table.results .top-rule { border-top: 2px solid #363636; }
table.results .bot-rule { border-bottom: 2px solid #363636; }
table.results .mid-rule { border-bottom: 1px solid #b5b5b5; }
.table-note {
  font-size: 0.9rem;
  color: #666;
  max-width: 900px;
  margin: 0.8rem auto 0;
  text-align: justify;
}

/* ---- Highlight / contribution list ---- */
.contrib-list {
  max-width: 860px;
  margin: 0 auto;
}
.contrib-list li {
  font-size: 1.06rem;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

/* ---- Keywords tags ---- */
.keyword-tags { margin-top: 1rem; }
.keyword-tags .tag {
  background: #eef0fb;
  color: #4f5fbf;
  font-weight: 600;
  border-radius: 20px;
}

/* ---- BibTeX ---- */
.section#BibTeX pre {
  background: #f5f5f7;
  border-radius: 6px;
  padding: 1.25rem;
  font-size: 0.9rem;
  overflow-x: auto;
  text-align: left;
}

/* ---- Footer ---- */
.footer {
  background-color: #fafafc;
  padding: 2.5rem 1.5rem 3rem;
}
.footer .content p {
  font-size: 0.92rem;
  color: #6b6b6b;
  text-align: center;
}
.footer a { color: #4f5fbf; }

/* ---- Header logo ---- */
.header-logo {
  max-height: 84px;
  margin: 0.5rem auto 0;
}

/* MathJax display spacing */
mjx-container[display="true"] {
  margin: 1.1em 0 !important;
}

@media screen and (max-width: 768px) {
  .section .content p { text-align: left; }
  .publication-title { font-size: 1.6rem; }
}
