/* ============================================================
   Global
   ============================================================ */
html {
  font-size: 14px;
}

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

body {
  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;
}

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

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

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


.subtitle {
  font-size: 0.95rem !important;
  line-height: 1.25;
  text-align: justify;
  padding: 0 1.5rem;
  margin-top: 0.75rem !important;
}

.dnerf {
  font-variant: small-caps;
}

/* ============================================================
   Reading sections (Abstract, TL;DR) — swap family to change font
   ============================================================ */
.content p, .content p b, .subtitle, p.content {
  /* serif options */
  font-family: 'Lora', serif !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  /* font-family: 'Source Serif 4', serif !important; */
  /* font-family: 'Crimson Pro', serif !important; */

  /* sans-serif options */
  /* font-family: 'DM Sans', sans-serif !important; */
  /* font-family: 'Inter', sans-serif !important; */
  /* font-family: 'Plus Jakarta Sans', sans-serif !important; */
  /* font-family: 'Figtree', sans-serif !important; */
}

/* Subtitles are captions — slightly smaller than body text */
.subtitle {
  font-family: 'Lora', serif !important;
  font-size: 0.95rem !important;
}

/* Figure images and captions in Intuition / Architecture sections */
.figure-img {
  display: block;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

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

/* TL;DR block inside hero header */
.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;
}

/* Override Bulma's grey is-light with pale blue */
.hero.is-light {
  background-color: #f6f7f8c7 !important;
}

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

#hero-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_bg.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;   /* ← change this: 0 = invisible, 1 = full */
  z-index: 0;
}

#hero-header .hero-body {
  position: relative;
  z-index: 1;
}
.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.6rem !important;
  font-weight: 700;
}

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

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

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

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

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

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

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


/* ============================================================
   Teaser figure (intuition diagram below the hero)
   ============================================================ */
.teaser {
  font-family: 'Google Sans', sans-serif;
}

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

.hero-body img {
  display: block;
  margin: 0 auto;
  max-width: 75%;
  width: 100%;
}

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

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

  .section {
    padding: 2.5rem 1.25rem;
  }

  .hero-body img {
    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 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

  .column {
    padding-left: 0;
    padding-right: 0;
  }

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

  .column.is-four-fifths {
    width: 100%;
    padding: 0;
  }

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

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

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

  .results-carousel .item {
    margin: 20px 10px;
  }

  .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%;
  }

  .subtitle {
    padding: 0 0.5rem;
  }
}


/* ============================================================
   Publication video embed (16:9 responsive iframe)
   ============================================================ */

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* ============================================================
   Qualitative results carousel
   ============================================================ */
.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 40px 200px;
  overflow: hidden;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

/* .results-carousel .subtitle {
  font-family: "Times New Roman", Times, serif;
} */

.slider-pagination .slider-page {
  background: #000000;
}


/* ============================================================
   Footer
   ============================================================ */
.footer .icon-link {
  font-size: 1.5rem;
  color: #000;
}

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