:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-color: #0ea5e9;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .publication-title {
    background: linear-gradient(120deg, #0f172a 0%, #2563eb 42%, #0ea5e9 68%, #1e293b 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.author-notes {
  margin-top: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.publication-link-button {
  box-shadow: 0 8px 20px rgb(37 99 235 / 0.09);
}

.publication-link-primary:hover {
  box-shadow: 0 10px 24px rgb(37 99 235 / 0.18);
}

.publication-link-button.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
}

main > section.section.hero.is-light {
  padding: 0;
}

main > section.section.hero.is-light .hero-body {
  padding: 2.5rem 1.5rem;
}

main > section#abstract.section.hero.is-light > .container {
  padding: 2.5rem 1.5rem;
}

main > section#BibTeX.section {
  padding: 2.5rem 1.5rem;
}

.teaser .hero-body {
  padding-top: 1.5rem;
  padding-bottom: 2.25rem;
}

.section .title.is-3,
.section .title.is-4 {
  margin-bottom: 1.25rem !important;
}

.main-video,
.result-videos video {
  display: block;
  width: 100%;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: var(--shadow-xl);
}

.main-video,
.result-videos video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.teaser-caption {
  max-width: 980px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  line-height: 1.55;
  text-align: center !important;
  text-align-last: center;
  text-justify: auto;
  hyphens: none;
}

p.teaser-caption {
  text-align: center !important;
  text-align-last: center !important;
  text-justify: auto;
  hyphens: none;
}

.figure-caption,
.paper-figure figcaption,
.paper-table-caption {
  max-width: 980px;
  margin: 0.9rem auto 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
  text-align: left !important;
  text-align-last: left;
  hyphens: none;
}

.figure-caption strong,
.paper-figure figcaption strong,
.paper-table-caption strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero.is-light .figure-caption strong,
.hero.is-light .paper-figure figcaption strong,
.hero.is-light .paper-table-caption strong {
  color: var(--text-primary);
}

.paper-figure {
  margin: 0 auto;
}

.paper-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.paper-figure.small img {
  max-height: 620px;
  object-fit: contain;
}

.result-videos {
  margin-top: 1.5rem;
}

.robotics-section .subtitle {
  max-width: 840px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
}

.experiment-block {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1.7rem;
  border-top: 1px solid rgb(148 163 184 / 0.24);
}

.robotics-section .subtitle + .experiment-block {
  margin-top: 1.4rem;
  padding-top: 0;
  border-top: 0;
}

.experiment-heading {
  margin: 0 0 0.9rem;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.experiment-block .result-videos {
  margin-top: 0;
}

.robotics-section .result-videos .column {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.result-videos .column {
  text-align: left;
}

.result-videos .has-text-weight-semibold {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.result-subtitle {
  margin-top: 2.25rem;
}

.paper-table-figure {
  margin: 1rem auto 0;
  overflow-x: auto;
  text-align: center;
}

.paper-table-figure + .paper-table-figure {
  margin-top: 1.9rem;
}

.paper-table-image {
  display: block;
  width: 100%;
  min-width: 760px;
  max-width: 980px;
  height: auto;
  margin: 0 auto;
}

.paper-table-figure-wide .paper-table-image {
  min-width: 980px;
  max-width: 1180px;
}

.paper-table-figure-wide .paper-table-caption {
  max-width: 1180px;
}

.paper-result-figures {
  margin-top: 1.5rem;
}

.navigation-result-figure {
  max-width: 980px;
  margin: 1.25rem auto 0;
}

.teleop-result-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 980px;
  margin: 1.25rem auto 0;
}

.teleop-result-figures .paper-figure.small img {
  max-height: 560px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero-intro .hero-body {
    padding-top: 2.4rem;
    padding-bottom: 1rem;
  }

  .publication-title .title-line {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  main > section.section.hero.is-light .hero-body,
  main > section#abstract.section.hero.is-light > .container,
  main > section#BibTeX.section {
    padding: 2rem 1rem;
  }

  .section .title.is-3,
  .section .title.is-4 {
    margin-bottom: 1rem !important;
  }

  .robotics-section .title.is-3 {
    font-size: 1.45rem;
    line-height: 1.15;
    margin-bottom: 0.7rem !important;
  }

  .robotics-section .subtitle {
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .experiment-block {
    margin-top: 1.4rem;
    padding-top: 1.25rem;
  }

  .robotics-section .subtitle + .experiment-block {
    margin-top: 1rem;
  }

  .experiment-heading {
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
  }

  .robotics-section .result-videos .column {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .robotics-section .result-videos .has-text-weight-semibold {
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
  }

  .navigation-result-figure,
  .teleop-result-figures {
    margin-top: 1rem;
  }

  .teleop-result-figures {
    gap: 0.65rem;
  }

  .experiment-block .figure-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
  }

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

  .teaser-caption {
    margin-top: 0.75rem;
  }

  .result-videos {
    margin-top: 1rem;
  }
}
