body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #ffffff;
  color: #000000;
}

body,
.content,
.title,
.subtitle,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
figcaption {
  color: #000000;
}

.navbar,
.navbar-menu,
.footer {
  background-color: #ffffff;
}

.navbar-menu {
  box-shadow: none;
}

.navbar-item,
.navbar-link,
a.navbar-item {
  color: #000000;
}

.navbar-link:not(.is-arrowless)::after {
  border-color: #000000;
}

.navbar-dropdown {
  background-color: #ffffff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.navbar-link:focus,
.navbar-link:focus-within,
.navbar-link:hover,
.navbar-link.is-active,
a.navbar-item:focus,
a.navbar-item:focus-within,
a.navbar-item:hover,
a.navbar-item.is-active {
  background-color: rgba(26, 26, 26, 0.08);
  color: #000000;
}

.navbar-dropdown a.navbar-item.is-active {
  background-color: rgba(26, 26, 26, 0.1);
  color: #000000;
}

.navbar-burger span {
  background-color: #000000;
}


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

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

.monochrome-icon {
  filter: grayscale(1) brightness(1.8) contrast(0.8);
  opacity: 0.95;
}

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

/* Main paper figures: shared caption style; prose links to figures (see figure-ref). */
a.figure-ref,
a.figure-ref:visited {
  color: #6b4d9a;
  text-decoration: none;
}

a.figure-ref:hover {
  color: #5a3f82;
  text-decoration: none;
}

/* Matches Results heading scale; keep purple CTA styling over Bulma .title defaults */
a.title.is-3.figure-ref,
a.title.is-3.figure-ref:visited {
  color: #6b4d9a;
}

a.title.is-3.figure-ref:hover {
  color: #5a3f82;
}

/* Indented numbered list under justified prose (flow finetuning methods). */
.content .content-flow-finetuning-list {
  margin: 0.75rem 0 1rem 0;
  margin-left: 1.75rem;
  padding-left: 0.75rem;
  list-style-position: outside;
  text-align: left;
}

.content .content-flow-finetuning-list li {
  margin-bottom: 0.35rem;
}

.content .content-flow-finetuning-list li:last-child {
  margin-bottom: 0;
}

.paper-figure-caption {
  display: block;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
  padding: 0 0.5rem;
  font-family: 'Noto Sans', sans-serif;
  font-variant: normal;
  font-size: 0.8125rem !important;
  line-height: 1.45 !important;
  color: #4a4a4a !important;
}

.paper-figure-caption .katex {
  font-size: 0.95em;
}

.content .katex {
  font-size: 1em;
}


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

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

/* Scale up the main teaser animation to 130%. */
#figure-1 {
  overflow: visible;
}

#figure-1 .main-figure {
  margin: 0 auto;
}

.equation-figure {
  margin: 0 0 0 0 !important;
  padding: 1.5rem 2.5rem;
}

.equation-figure .main-figure {
  display: block;
  width: 80%;
  max-width: 80%;
  height: auto;
  margin: 0 auto;
}

.vertical-crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.1;
  overflow: hidden;
}

.vertical-crop-frame .main-figure {
  position: absolute;
  top: -5.5556%;
  left: 50%;
  display: block;
  width: 102%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.flow-reversal-equation {
  display: block;
  overflow-x: auto;
  padding: 0.5rem 0.75rem;
}

.flow-reversal-equation .katex {
  font-size: 1.5em !important;
}

.flow-reversal-equation .katex-display {
  margin: 0;
}


.publication-title {
}

.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 {
    font-family: 'Google Sans', sans-serif;
    color: #000000;
}

.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: #6b4d9a !important;
}

.publication-authors a:hover {
    color: #5a3f82 !important;
    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-shell {
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding-bottom: 2.5rem;
}

.results-carousel-shell .results-carousel .item {
  margin: 6px 8px;
  overflow: hidden;
  border-radius: 12px;
  padding: 0;
  font-size: 0;
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.1);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.results-carousel-shell .results-carousel .item:hover {
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.14);
  transform: translateY(-1px);
}

.results-carousel-video {
  margin: 0;
  width: 100%;
  vertical-align: top;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0d0d0d;
}

.results-carousel-shell .carousel-item-caption {
  font-size: 0.75rem !important;
  line-height: 1.35;
  padding: 0.4rem 0.5rem 0.55rem;
}

/* Carousel navigation dots + arrows — match sage page chrome */
.results-carousel-shell .slider-navigation-previous,
.results-carousel-shell .slider-navigation-next {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  background-color: rgba(248, 248, 248, 0.97) !important;
  border: 1px solid rgba(26, 26, 26, 0.14) !important;
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.12);
  z-index: 2;
}

.results-carousel-shell .slider-navigation-previous:hover,
.results-carousel-shell .slider-navigation-next:hover {
  background-color: #eeeeee !important;
}

/* Aggregate success summary (exported from quant/success_table_bar.pdf) */
.success-table-bar {
  width: auto;
  max-width: min(720px, 94vw);
  height: auto;
  vertical-align: top;
}

.results-main-figure-caption {
  margin-top: 0.85rem !important;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #616161;
}

.results-source-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78em;
  color: #4a4a4a;
  word-break: break-all;
}

/* Qualitative clips: always one row — equal flexible columns */
.results-video-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 2vw, 0.72rem);
  align-items: stretch;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: 1rem;
}

.results-video-tile {
  flex: 1 1 0;
  min-width: 0;
}

.results-video-tile-inner {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.08);
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

.results-strip-video {
  display: block;
  width: 100%;
  max-height: 125px;
  object-fit: contain;
  vertical-align: top;
  background: #111;
  flex-shrink: 0;
}

.results-video-tile-label {
  display: block;
  text-align: center;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: normal;
  color: #4a4a4a;
  line-height: 1.35;
  padding: 0.45rem 0.35rem 0.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  background: #ffffff;
  word-break: break-word;
}


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