:root {
  --bg-base: #f6f8fc;
  --bg-section: #eef2f8;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-subtle: #5f6b7c;
  --brand: #2b6cf6;
  --brand-dark: #1f52be;
  --border: #dbe3f0;
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-base) 100%);
}

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

.footer {
  font-size: 0.9rem;
}

.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;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.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 a {
  color: hsl(204, 86%, 53%) !important;
}

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

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

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

.results-carousel {
  overflow: hidden;
}

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

.results-carousel video {
  margin: 0;
}

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

.eql-cntrb {
  font-size: smaller;
}

/* Layout and section rhythm */
.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section.hero {
  background: transparent;
}

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

.section.hero.is-light {
  background: var(--bg-section) !important;
  border-top: 1px solid #e5ebf7;
  border-bottom: 1px solid #e5ebf7;
}

.abstract-section {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.abstract-section .column.is-four-fifths {
  max-width: 860px;
}

.abstract-section .title.is-3 {
  font-size: 1.65rem;
  margin-bottom: 0.7rem;
}

.abstract-section .content p {
  font-size: 0.96rem;
  line-height: 1.6;
}

h2.title {
  letter-spacing: -0.015em;
}

.section-divider {
  max-width: 980px;
  margin: 0.35rem auto 0.15rem;
  border: 0;
  border-top: 1px solid #d3cfee;
}

/* Interactive mixer button styling */
.buttons.is-centered .button.is-link.is-light {
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--brand-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buttons.is-centered .button.is-link.is-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(43, 108, 246, 0.14);
}

/* Interactive demo preview cards */
.mixer-demos-section {
  padding-top: 2.4rem;
  padding-bottom: 2.8rem;
}

.mixer-demos-block {
  background: linear-gradient(180deg, #fbfdff 0%, #f1f6ff 100%);
  border: 1px solid #d6e2fb;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(31, 82, 190, 0.09);
  padding: 1.45rem 1.2rem 1.1rem;
}

.mixer-demos-block > .title {
  margin-bottom: 0.6rem !important;
}

.mixer-demos-block > p {
  color: #4f6286;
}

.mixer-preview-grid {
  margin-top: 0.8rem;
}

.mixer-preview-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mixer-preview-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.mixer-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.13);
}

.mixer-preview-title {
  display: block;
  padding: 0.7rem 0.9rem 0.9rem;
  color: #1f3a6f;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Toggle bar in separation results */
.comparison-toggle-bar {
  position: sticky;
  top: 0.75rem;
  z-index: 15;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8f8ff 0%, #f1f2fb 100%);
  border: 1px solid #d4d8ea;
  box-shadow: 0 8px 22px rgba(86, 96, 136, 0.14);
  backdrop-filter: blur(5px);
}

.comparison-toggle-bar .button {
  border-radius: 999px;
  border: 1px solid transparent;
  height: 2.05rem;
  min-height: 2.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0 !important;
  transition: all 0.2s ease;
}

.comparison-toggle-bar .button.is-link.is-light {
  background: #f7f7fb;
  border-color: #dfe2ee;
  color: #58627d;
}

.comparison-toggle-bar .button.is-link:not(.is-light) {
  background: linear-gradient(180deg, #5f79e6 0%, #4e66d4 100%);
  border-color: #445cc0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(78, 102, 212, 0.3);
}

.comparison-toggle-bar .button:hover {
  transform: translateY(-1px);
}

/* Toggle explanation block */
.toggle-description-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.62rem 0.82rem;
  border: 1px solid #dbdff0;
  border-radius: 12px;
  background: linear-gradient(180deg, #faf8ff 0%, #f3f1fb 100%);
  text-align: left;
}

.toggle-description-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid #c8c6ee;
  background: #eceaff;
  color: #5a53a8;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.12rem;
}

.toggle-description-text {
  margin: 0;
  color: #505a73;
  font-size: 0.86rem;
  line-height: 1.48;
}

/* Result cards */
.results-panel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.results-panel.is-hidden {
  display: none;
}

.box {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.1);
  background: var(--bg-card);
  overflow: hidden;
  padding-top: 0.4rem;
}

.box > .title.is-5 {
  margin: -0.4rem -1.25rem 1rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(90deg, #eff4ff 0%, #f7faff 100%);
  border-bottom: 1px solid #dbe4f5;
  font-weight: 800;
  font-size: 1.08rem;
  color: #1d355f;
  letter-spacing: -0.01em;
  text-align: left;
  line-height: 1.35;
}

.box .columns + .columns {
  margin-top: 0.85rem;
}

.box .mb-4 strong {
  display: inline-block;
  margin-bottom: 0.42rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #d7dfef;
  background: #f5f8ff;
  color: #27416d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.box .column.has-text-centered b {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #dce4f3;
  background: #f8faff;
  color: #2a3a59;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.box .column.has-text-centered.model-ours b {
  background: #e9f1ff;
  border-color: #bfd5ff;
  color: #1e4ea7;
}

.box .column.has-text-centered.model-davis b {
  background: #efe9ff;
  border-color: #d3c5ff;
  color: #5b3ca6;
}

.box .column.has-text-centered.model-bandit b {
  background: #fff3e5;
  border-color: #ffd9ad;
  color: #9a5a11;
}

.box .column.has-text-centered.model-mrx b {
  background: #e8f7f1;
  border-color: #bfe9d8;
  color: #1f7a5b;
}

.box video {
  border-radius: 10px;
  border: 1px solid #d7deeb;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
  background: #000;
}

.box .column.has-text-centered {
  padding-top: 0.2rem;
}

.notification {
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

.notification.is-warning {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

#davis-flow-content .notification.is-info {
  border-color: #c8d9ff;
  background: #edf3ff;
  color: #1e3a8a;
}

#References {
  border-top: 1px solid #ccd7eb;
  padding-top: 2rem;
}

/* Responsive behavior */
@media (max-width: 1023px) {
  .box .column {
    margin-bottom: 0.35rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

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

  .top-hero .hero-body {
    padding-top: 1.55rem;
    padding-bottom: 0.85rem;
  }

  .abstract-section {
    padding-top: 1rem;
    padding-bottom: 1.2rem;
  }

  .abstract-section .title.is-3 {
    font-size: 1.42rem;
  }

  .abstract-section .content p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .comparison-toggle-bar {
    width: 100%;
    padding: 0.25rem;
    justify-content: center;
  }

  .comparison-toggle-bar .button {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    font-size: 0.92rem;
  }

  .toggle-description-box {
    padding: 0.56rem 0.66rem;
    gap: 0.5rem;
  }

  .toggle-description-text {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .buttons.is-centered {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .mixer-preview-grid .column {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .mixer-demos-block {
    padding: 1.1rem 0.8rem 0.8rem;
  }
}

