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

.publication-banner {
  max-height: parent;

}

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

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

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

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

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

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !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-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

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


/* ======================================================================
   Minimal Flow Unit page — additions
   ====================================================================== */

:root {
  --accent: #2e8b57;          /* sea-green, matches the "prediction" colour of the paper figures */
  --accent-soft: #e8f4ee;
  --grey-ref: #7a7a7a;        /* grey = DNS reference in the paper figures */
}

html { scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.figure-wide { width: 100%; margin: 1.5rem 0; }

.affiliations { margin-top: .4rem; color: #555; }
.affiliations .author-block { margin: 0 .4rem; }
.publication-links { margin-top: 1.2rem; }
.publication-venue { margin: .8rem auto 0; }

.section-tight { padding-top: 0; padding-bottom: 1.5rem; }
#mfu, #framework, #compression, #latent-space, #forecasting, #outlook { margin-top: 2.5rem; }

.media-caption { font-size: .9rem; color: #555; margin-top: .5rem; text-align: center; }
.teaser-subtitle { margin-top: 1.5rem; font-size: 1.15rem; line-height: 1.6; }

/* --- Media ---------------------------------------------------------------- */
.teaser-video { width: 100%; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.mfu-figure { max-height: 420px; width: auto; }
.figure-medium { width: 85%; margin: 1.5rem auto 0; }
.colorbar { width: 45%; min-width: 220px; margin: .4rem auto 0; }
.video-pair { margin-top: 1rem; }
.video-pair .media-caption { margin-top: .25rem; }

/* --- Key numbers strip -------------------------------------------------- */
.key-numbers {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem;
}
.key-number {
  flex: 1 1 140px; max-width: 180px; text-align: center;
  padding: .9rem .5rem; border-radius: 10px; background: var(--accent-soft);
}
.kn-value { display: block; font-family: 'Google Sans', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--accent); }
.kn-label { display: block; font-size: .8rem; color: #555; line-height: 1.3; }

/* --- Contribution & stage cards ---------------------------------------- */
.contrib-card, .stage-card {
  height: 100%; padding: 1.4rem; border-radius: 10px;
  border: 1px solid #e5e5e5; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.contrib-card { text-align: center; }
.contrib-card .icon { color: var(--accent); margin-bottom: .6rem; }
.contrib-card p, .stage-card p { font-size: .92rem; color: #4a4a4a; }
.stage-card { position: relative; padding-top: 2rem; }
.stage-step {
  position: absolute; top: -14px; left: 1.4rem; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.stage-cards { margin-top: 1rem; }

/* --- Latent variable cards --------------------------------------------- */
.latent-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.latent-card { padding: 1.1rem 1.2rem; border-radius: 10px; border-left: 5px solid; background: #fafafa; }
.latent-card.slow  { border-color: #3b6ea8; }
.latent-card.mixed { border-color: #8a63b8; }
.latent-card.fast  { border-color: #d9822b; }
.latent-name  { font-family: 'Google Sans', sans-serif; font-size: 1.4rem; font-weight: 700; }
.latent-scale { font-size: .85rem; font-weight: 600; color: #555; margin-bottom: .4rem; }
.latent-card p { font-size: .9rem; color: #4a4a4a; }

/* --- Results table ------------------------------------------------------ */
.results-table { max-width: 320px; margin: 0 auto; }
.results-table tr.is-highlight td { font-weight: 700; color: var(--accent); }

/* --- Comparison slider -------------------------------------------------- */
.case-selector { display: flex; justify-content: center; gap: 10px; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.case-btn {
  padding: 8px 18px; background: #f5f5f5; border: 2px solid #ddd; border-radius: 6px;
  cursor: pointer; font-weight: 500; color: #666; transition: all .2s ease;
}
.case-btn:hover { background: #e9e9e9; border-color: #999; }
.case-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.image-comparison-container { max-width: 900px; margin: 0 auto 2.5rem; }
.image-comparison-wrapper {
  position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.1);
  cursor: ew-resize; touch-action: none; user-select: none;
}
.comparison-image { width: 100%; display: block; transition: opacity .15s ease; -webkit-user-drag: none; }
.reconstruction { position: absolute; top: 0; left: 0; clip-path: inset(0 50% 0 0); }
.comparison-slider {
  position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: #fff;
  transform: translateX(-50%); box-shadow: 0 0 4px rgba(0,0,0,.5); pointer-events: none;
}
.slider-handle {
  position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid #555; transform: translate(-50%, -50%);
}
.comparison-labels {
  position: absolute; top: 10px; left: 0; right: 0; display: flex; justify-content: space-between;
  padding: 0 14px; pointer-events: none;
}
.comparison-labels span {
  background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}

.figure-wide + .media-caption { margin-bottom: 1.5rem; }
.figure-medium + .media-caption { margin-bottom: 1.5rem; }
.contrib-card .custom-icon { width: 58px; height: 32px; overflow: visible; }

/* --- BibTeX block: never overflow horizontally (Safari) ------------------ */
.content pre.bibtex {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  max-width: 100%;
  font-size: .85rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.content pre.bibtex code { white-space: inherit; font-size: inherit; }
@media (max-width: 600px) { .content pre.bibtex { font-size: .7rem; padding: 1em; } }
