/* ============================================================
   Minimal Bulma-compatible layout primitives used by reference
   ============================================================ */
html {
  font-size: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #222;
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
}

b, strong {
  font-weight: 700;
}

a {
  color: #7c2d12;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 3rem, 960px);
  margin-left: auto;
  margin-right: auto;
}

.container.is-max-desktop {
  max-width: 960px;
}

.columns {
  display: flex;
  justify-content: center;
}

.columns.is-centered {
  justify-content: center;
}

.column {
  display: block;
  flex: 1 1 0;
  padding: 0.75rem;
}

.column.is-four-fifths {
  flex: none;
  width: 80%;
}

.column.is-8 {
  flex: none;
  width: 66.6667%;
}

.has-text-centered {
  text-align: center;
}

.has-text-justified {
  text-align: justify;
}

.section {
  padding: 3rem 1.5rem;
}

.hero {
  display: block;
}

.hero-body {
  padding: 3rem 1.5rem;
}

.hero.is-light {
  background-color: #f6f7f8c7 !important;
}

.title {
  margin: 0;
  font-weight: 700;
}

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

.title.is-3 {
  display: inline-block;
  position: relative;
  padding-bottom: 0.45em;
  font-size: 2rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #b85450, transparent);
}

#BibTeX .title.is-3::after {
  display: none;
}

.content p,
.content p b,
.subtitle,
p.content {
  font-family: 'Lora', serif !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}

.content p {
  margin: 0 0 1em;
}

/* ============================================================
   Hero — title, authors, links
   ============================================================ */
#hero-header {
  position: relative;
  padding-top: 3rem;
}

#hero-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(184, 84, 80, 0.055), transparent 28%),
    radial-gradient(circle at 84% 4%, rgba(124, 45, 18, 0.035), transparent 25%);
  opacity: 0.45;
  z-index: 0;
}

#hero-header .hero-body {
  position: relative;
  z-index: 1;
}

.compass-logo {
  display: block;
  width: 84px;
  height: auto;
  margin: 0 auto 1.1rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.6rem !important;
  font-weight: 700;
}

.publication-title span {
  color: #b85450;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.4rem;
  margin-top: 0.75rem;
}

.publication-authors .author-block,
.publication-authors a {
  color: #222 !important;
}

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

.eql-cntrb {
  color: #555;
  font-size: 0.8rem;
}

.venue-logo-wrap {
  margin: 1rem auto 0.35rem;
}

.venue-logo {
  display: block;
  max-width: 185px;
  width: 32%;
  min-width: 128px;
  height: auto;
  margin: 0 auto;
}

.accent-text {
  color: #7c2d12;
  font-weight: 600;
}

sub, sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

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

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

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  line-height: 1.5;
  text-decoration: none;
  user-select: none;
}

.button.is-normal {
  font-size: 1rem;
}

.button.is-rounded {
  border-radius: 9999px;
}

.button.is-dark {
  background-color: #363636;
  color: #fff;
  padding: 0.55rem 1rem;
}

.button.is-dark:hover {
  background-color: #b85450;
  color: #fff;
  text-decoration: none;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
}

.tldr-block {
  max-width: 680px;
  margin: 2rem auto 0;
  text-align: justify;
}

.tldr-block p {
  font-family: 'Lora', serif !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: #444;
}

/* ============================================================
   Figures and captions
   ============================================================ */
.teaser {
  font-family: 'Google Sans', sans-serif;
}

.figure-img {
  display: block;
  margin: 1.5rem auto 0 !important;
  max-width: 75%;
  width: 100%;
}

.hero-figure {
  max-width: 76%;
}

.content.figure-caption p {
  color: #999;
  font-family: 'Google Sans', sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-top: 1.5rem !important;
}

/* ============================================================
   Tables
   ============================================================ */
.table-container {
  margin: 1.5rem auto 0;
  max-width: 100%;
  overflow-x: auto;
}

.ablation-table {
  max-width: 820px;
}

.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
}

.results-table caption {
  caption-side: top;
  color: #777;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.9rem;
  padding-bottom: 0.75rem;
  text-align: left;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid #e2e2e2;
  padding: 0.7rem 0.75rem;
  text-align: center;
  white-space: nowrap;
}

.results-table thead th {
  background-color: #faf7f6;
  border-bottom: 1px solid #b85450;
  border-top: 2px solid #222;
  color: #222;
  font-weight: 700;
}

.results-table tbody td {
  transition: background-color 160ms ease, color 160ms ease;
}

.results-table tbody tr:hover td {
  background-color: #fbf3f2;
}

.results-table tbody tr:last-child td {
  border-bottom: 2px solid #222;
}

.results-table .ours td {
  background-color: #f7eeee;
  color: #7c2d12;
  font-weight: 700;
}

.results-table .ours:hover td {
  background-color: #f1e1df;
}

/* ============================================================
   BibTeX and footer
   ============================================================ */
.bibtex-wrap {
  position: relative;
}

#copy-bibtex {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: #4a4a4a;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

#copy-bibtex:hover {
  background: #b85450;
}

pre {
  background: #f5f5f5;
  color: #222;
  overflow-x: auto;
  padding: 1.25rem;
  white-space: pre;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.footer {
  background: #fafafa;
  padding: 3rem 1.5rem;
}

.footer .content p,
.footer .content p a {
  font-size: 1rem !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 1024px) {
  html {
    font-size: 14px;
  }

  .hero-body {
    padding: 2.5rem 1.25rem;
  }

  .section {
    padding: 2.5rem 1.25rem;
  }

  .figure-img,
  .hero-figure {
    max-width: 90%;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 11px;
  }

  body {
    line-height: 1.5;
  }

  .content p,
  .content p b,
  .tldr-block p,
  .subtitle,
  p.content {
    line-height: 1.4 !important;
  }

  .publication-title {
    line-height: 1.2;
  }

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

  .title.is-3 {
    font-size: 1.25rem !important;
  }

  .title.is-1 {
    font-size: 1.8rem !important;
  }

  .hero-body {
    padding: 2rem 1.25rem;
  }

  .section {
    padding: 2rem 1.25rem;
  }

  .container {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .columns {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .column,
  .column.is-four-fifths,
  .column.is-8 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  #hero-header .hero-body {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .figure-img,
  .hero-figure {
    max-width: 100%;
  }

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

  pre {
    overflow-x: auto;
    padding: 1rem !important;
  }

  .publication-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .link-block {
    margin: 0;
  }

  .footer {
    padding: 2rem 1.25rem;
  }

  .tldr-block {
    max-width: 100%;
  }
}
