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


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

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

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


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

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


/* The banner is a title, a byline and three buttons, so Bulma's 3rem hero padding leaves
   more air around it than it needs. `is-small` keeps its own padding, so the light band
   below is unaffected. */
.hero-body {
  padding: 2rem 1.5rem;
}

.publication-title {
  margin-bottom: 0.75rem;
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

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

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

.publication-venue {
    color: #000;
    font-weight: bold;
}

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

.publication-authors {
}

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

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

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

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}


.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-image-half {
  width: 50;
}

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

.publication-body img {
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Placeholders for releases that are not up yet. They carry no href, so they stay in the
   row without pretending to lead anywhere. */
.button.is-coming-soon {
  cursor: default;
}

.button.is-coming-soon:hover {
  background-color: #363636;
}

.coming-soon {
  opacity: 0.6;
  font-size: 0.85em;
}

/* Hugging Face has no glyph in Font Awesome or Academicons, so the mark is the emoji. */
.icon-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

* {box-sizing: border-box;}

.img-magnifier-container {
  position:relative;
}

.img-magnifier-glass {
  position: absolute;
  border: 3px solid #000;
  border-radius: 0%;
  cursor: none;
  /*Set the size of the magnifier glass:*/
  width: 200px;
  height: 200px;
}

.img-magnifier-glass_init {
  position: absolute;
  border: 0px solid #000;
  border-radius: 50%;
  cursor: none;
  /*Set the size of the magnifier glass:*/
  width: 0px;
  height: 0px;
}

section.banner {
  color: #aaa;
}

/* ---------------------------------------------------------------------------
   Paper narrative: one reading grid for figures and their explanations.
   --------------------------------------------------------------------------- */

.paper-section {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.container.paper-container:not(.is-max-desktop) {
  max-width: 1040px;
}

.paper-section > .paper-container > .title {
  margin-bottom: 2rem;
}

.evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  grid-template-areas: "figure copy";
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
}

.split-evidence {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  grid-template-areas: "figure copy";
  align-items: start;
  gap: clamp(2rem, 3vw, 2.75rem);
}

.evidence-row + .evidence-row {
  margin-top: 3.75rem;
  padding-top: 3.75rem;
  border-top: 1px solid #e8e8e8;
}

.stacked-evidence + .stacked-evidence {
  margin-top: 2.25rem;
  padding-top: 0;
}

.stacked-evidence + .kv-evidence {
  margin-top: 2rem;
}

.evidence-figure {
  grid-area: figure;
  min-width: 0;
  margin: 0;
}

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

.stacked-figure {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.evidence-copy {
  grid-area: copy;
  margin: 0 !important;
}

.stacked-copy {
  max-width: 960px;
  margin: 1.25rem auto 0 !important;
}

.kv-title {
  max-width: 960px;
  margin: 0 auto 1.25rem;
  line-height: 1.22;
}

.kv-copy {
  margin-top: -0.35rem !important;
}

.evidence-copy .title {
  margin-bottom: 1rem;
  line-height: 1.22;
}

.evidence-copy p {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.7;
}

.evidence-copy p:not(:last-child) {
  margin-bottom: 1rem;
}

.beyond-columns {
  align-items: stretch;
}

.beyond-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.beyond-caption {
  margin: 0.9rem 0 0 !important;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

/* ---------------------------------------------------------------------------
   Shell Game comparison: tabbed rollouts, following the layout used on our
   other project pages (tab header, description box, labelled video grid).
   --------------------------------------------------------------------------- */

/* Bulma sizes a plain container through `.container:not(.is-max-desktop)...`, which outranks
   a lone class, so the override has to match that shape to take effect. */
.container.container-wide:not(.is-max-desktop) {
  max-width: 1200px;
}

.tab-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  flex-wrap: wrap;
}

.tab-button {
  flex: 1 1 0;
  background: none;
  border: none;
  padding: 18px 24px;
  cursor: pointer;
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.tab-button:hover {
  background: #e9ecef;
  color: #495057;
}

.tab-button.active {
  color: #2f9e5f;
  background: white;
  border-bottom-color: #2f9e5f;
}

.tab-content {
  display: none;
  padding: 30px;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.description-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 26px;
  color: #2c3e50;
  font-size: 0.95rem;
  line-height: 1.6;
}

.description-box strong {
  color: #363636;
  font-weight: 600;
}

.shell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Teaser labels carry metrics and run long; scale them down to stay on one line. */
.teaser-grid .method-label {
  white-space: nowrap;
  font-size: clamp(0.55rem, 0.95vw, 0.72rem);
  letter-spacing: 0.3px;
  padding-left: 4px;
  padding-right: 4px;
}

.video-container {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}

.video-container video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.method-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #6c757d;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
}

.truth-label {
  background: #eef2f7;
  color: #3d5a80;
}

.ours-label {
  background: #e6f4ec;
  color: #2f9e5f;
}

@media screen and (max-width: 900px) {
  .paper-section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .paper-section > .paper-container > .title {
    margin-bottom: 1.75rem;
  }

  .evidence-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "figure";
    gap: 1.5rem;
  }

  .evidence-row + .evidence-row {
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .stacked-evidence + .stacked-evidence {
    margin-top: 2rem;
    padding-top: 0;
  }

  .stacked-evidence + .kv-evidence {
    margin-top: 2rem;
  }

  .split-evidence {
    grid-template-areas:
      "figure"
      "copy";
  }
}

@media screen and (max-width: 768px) {

  .shell-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tab-button {
    padding: 14px 10px;
    font-size: 13px;
  }

  .tab-content {
    padding: 18px;
  }
}
