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

html {
  scroll-behavior: smooth;
}

.publication-header .hero-body {
  padding-bottom: 1.5rem;
}

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

.publication-title {
  font-size: 3.25rem !important;
  line-height: 1.12;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem !important;
}

.publication-authors {
  line-height: 1.55;
  margin: 0 auto 0.7rem;
  max-width: 980px;
}

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

.publication-authors sup,
.publication-affiliations sup {
  font-size: 0.72em;
  margin-left: 0.08em;
}

.publication-affiliations {
  color: #4a4a4a;
  line-height: 1.65;
  margin: 0 auto 0.65rem;
  max-width: 980px;
}

.affiliation-block {
  display: inline-block;
  margin: 0 0.42rem;
}

.gradient-blue-text {
  font-weight: 700;
  background: linear-gradient(90deg, #385492, #8495b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.publication-links {
  padding-bottom: 0.25rem;
}

.link-block a,
.link-block button {
  margin: 5px 3px;
}

.link-block button:disabled {
  background: #4a4a4a;
  border-color: transparent;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.52;
}

.teaser .hero-body {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
}

.publication-banner img,
.figure-block img {
  display: block;
  width: 100%;
  height: auto;
}

.publication-banner img {
  border-radius: 8px;
}

.teaser-heading {
  margin-top: 1.75rem;
  margin-bottom: 0.8rem !important;
}

.teaser-heading,
.teaser .hero-body > p {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
}

.section-light {
  background: #f5f5f5;
}

.definition-columns {
  margin-top: 1.2rem;
}

.definition-box {
  height: 100%;
  padding: 1.4rem 1.5rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  text-align: left;
  background: #fff;
}

.definition-box .title {
  margin-bottom: 0.65rem;
}

.strict-box {
  border-color: #97c76b;
}

.strict-box .title {
  color: #5f9638;
}

.exposed-box {
  border-color: #efa0ad;
}

.exposed-box .title {
  color: #d9697b;
}

.figure-block {
  margin: 1.6rem auto 0.5rem;
}

.figure-block img {
  border-radius: 6px;
}

.figure-block figcaption {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.55rem;
  text-align: center;
}

.compact-figure {
  margin-top: 0.5rem;
}

.figure-columns {
  align-items: center;
  margin-top: 0.75rem;
}

.rq4-setting {
  max-width: 820px;
}

.benchmark-stats {
  margin-top: 1.4rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.benchmark-stats .column {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.benchmark-stats .column:not(:last-child) {
  border-right: 1px solid #ddd;
}

.stat-value {
  color: #385492;
  font-family: 'Google Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  color: #555;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.result-table {
  margin: 1.3rem auto 0.7rem;
}

.result-table table {
  font-size: 0.95rem;
}

.result-table th,
.result-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

.result-table th:first-child,
.result-table td:first-child {
  text-align: left !important;
}

.best-row {
  background: #eaf3ff !important;
}

.result-callout {
  margin: 1rem auto 0;
  max-width: 820px;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid #385492;
  background: #edf3fb;
  text-align: left;
}

#rollouts {
  background: #f7f9fc;
}

.rollout-intro {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.65;
}

.rollout-group {
  margin-top: 3.5rem;
}

.rollout-group:first-of-type {
  margin-top: 2.5rem;
}

.rollout-group > .title {
  margin-bottom: 1.5rem;
}

.rollout-subtitle {
  color: #4a4a4a;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 1.8rem 0 0.85rem;
}

.rollout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rollout-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-left: auto;
  margin-right: auto;
  max-width: 880px;
}

.rollout-card {
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(31, 45, 70, 0.07);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rollout-card:hover {
  border-color: #aebbd0;
  box-shadow: 0 8px 22px rgba(31, 45, 70, 0.12);
  transform: translateY(-2px);
}

.rollout-card video {
  aspect-ratio: 4 / 3;
  background: #101216;
  display: block;
  object-fit: contain;
  width: 100%;
}

.rollout-card video:focus-visible {
  outline: 3px solid #7694c7;
  outline-offset: -3px;
}

.rollout-card p {
  align-items: center;
  display: flex;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: space-between;
  line-height: 1.3;
  min-height: 3.25rem;
  padding: 0.7rem 0.8rem;
}

.rollout-card p span {
  background: #edf3fb;
  border-radius: 999px;
  color: #385492;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
}

.rollout-card.is-paused video {
  opacity: 0.82;
}

.takeaway-list li {
  margin-bottom: 0.8rem;
}

@media screen and (max-width: 768px) {
  .publication-header .hero-body {
    padding-top: 2.25rem;
  }

  .publication-title {
    font-size: 2.15rem !important;
  }

  .teaser .hero-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 2.5rem 1.1rem;
  }

  .columns.is-variable.definition-columns {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .definition-columns > .column {
    padding-left: 0;
    padding-right: 0;
  }

  .rollout-grid,
  .rollout-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rollout-group {
    margin-top: 2.75rem;
  }

  .rollout-card p {
    font-size: 0.84rem;
  }

  .rollout-card p span {
    font-size: 0.68rem;
  }

  .benchmark-stats .column:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }

  .result-table table {
    font-size: 0.78rem;
  }

  .result-table th,
  .result-table td {
    padding: 0.55em 0.45em !important;
  }
}

@media screen and (max-width: 480px) {
  .rollout-grid,
  .rollout-grid-three {
    grid-template-columns: 1fr;
  }
}

.page-index {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border-block: 1px solid #e5e9f0;
}
.page-index a {
  color: #385492;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.page-index a:hover, .page-index a:focus-visible { background: #edf3fb; }
.page-index .rollouts-link { background: #385492; color: #fff; font-weight: 700; }
.page-index .rollouts-link:hover, .page-index .rollouts-link:focus-visible { background: #283f72; }
section[id] { scroll-margin-top: 8rem; }
.teaser-summary { max-width: 960px; margin: 1rem auto 0; padding-left: 1.5rem; list-style: decimal; }
.teaser-summary li { padding-left: 0.35rem; margin-bottom: 0.8rem; line-height: 1.6; }
.interaction-heading { margin-top: 2.5rem; }
.result-table caption { color: #555; padding-bottom: 0.75rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rollout-card { transition: none; }
}

/* Keep the contents visible beside the paper on desktop screens. */
@media screen and (min-width: 1100px) {
  body {
    --sidebar-width: clamp(280px, 25vw, 370px);
    padding-left: var(--sidebar-width);
  }
  .page-index {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    margin: 0;
    padding: 2.5rem 0.8rem;
    border: 0;
    border-right: 1px solid #e5e9f0;
    background: #f7f9fc;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.5rem;
    overflow-y: auto;
  }
  .page-index::before {
    content: 'On this page';
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0.65rem 0.75rem;
  }
  .page-index a { padding: 0.65rem; }
  section[id] { scroll-margin-top: 1.5rem; }
}

/* Give the text more room while keeping individual plots compact. */
.container.is-max-desktop {
  max-width: 1120px;
}
.section {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.content .figure-columns {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-start;
}
.content .compact-figure {
  max-width: 360px;
  margin: 0.5rem auto;
}
#rq4 .compact-figure {
  max-width: 350px;
}
.content .rq4-setting {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
@media screen and (max-width: 768px) {
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.teaser-caption {
  max-width: 1120px;
  margin: 1.25rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  color: #4a4a4a;
}

.rq4-figures {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.content .rq4-figures .figure-block {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-width: 0;
  margin: 0;
}
@media screen and (max-width: 768px) {
  .rq4-figures { grid-template-columns: 1fr; }
  .content .rq4-figures .figure-block {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

.page-index a {
  line-height: 1.4;
  overflow-wrap: break-word;
}
@media screen and (min-width: 1100px) {
  .page-index a { font-size: 0.85rem; }
}

.publication-venue {
  color: #385492;
  margin: 0.4rem 0 0.9rem;
}

.nav-toggle { display: none; }
.page-index[hidden] { display: none; }
@media screen and (min-width: 1100px) {
  .page-index { padding-top: 4.5rem; }
  .nav-toggle:not([hidden]) {
    display: block;
    position: fixed;
    top: 1rem;
    left: 0.8rem;
    z-index: 30;
    padding: 0.5rem 0.8rem;
    border: 1px solid #c7d1e2;
    border-radius: 6px;
    background: #fff;
    color: #385492;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
  }
  .nav-toggle:hover { background: #edf3fb; }
  .nav-toggle:focus-visible { outline: 3px solid #7694c7; outline-offset: 2px; }
  body.nav-collapsed { padding-left: 0; }
}
