html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #20252b;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: #1d6f8f;
}

a:hover {
  color: #144f65;
}

.publication-navbar {
  border-bottom: 1px solid #e7eaee;
  box-shadow: none;
}

.publication-navbar .navbar-item {
  font-size: 0.95rem;
}

.brand-mark {
  color: #101418 !important;
  font-weight: 800;
  letter-spacing: 0;
}

.publication-hero {
  background: #f7f8f6;
  border-bottom: 1px solid #e5e8e3;
}

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

.eyebrow {
  color: #9b4d2b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.publication-title {
  color: #11171d;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.publication-subtitle {
  color: #27313a;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 1.35rem;
}

.publication-authors {
  color: #303841;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.publication-authors a {
  font-weight: 700;
}

.author-block {
  display: inline-block;
  margin-right: 0.55rem;
}

.publication-affiliation,
.author-note {
  color: #5d6872;
  font-size: 0.95rem;
}

.author-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.25rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.button.is-dark {
  background-color: #162027;
}

.button.is-rounded {
  border-radius: 999px;
}

.hero-media,
.application-video,
.dataset-videos,
.video-card video {
  background: #0f1418;
  border: 1px solid #d9ded7;
  border-radius: 8px;
  overflow: hidden;
}

.hero-media {
  box-shadow: 0 18px 45px rgba(37, 45, 51, 0.14);
}

.hero-media img,
.application-video video,
.dataset-videos video,
.video-card video {
  display: block;
  height: auto;
  width: 100%;
}

.teaser-band {
  background: #ffffff;
  border-bottom: 1px solid #ecefec;
  padding-bottom: 1.6rem;
  padding-top: 1.6rem;
}

.teaser-line {
  color: #253039;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
}

.section {
  padding-bottom: 4rem;
  padding-top: 4rem;
}

.section-title {
  color: #11171d;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading.is-centered {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
  text-align: center;
}

.publication-body {
  color: #323c45;
  font-size: 1.03rem;
}

.publication-body p {
  margin-bottom: 1rem;
}

.method-section {
  background: #f5f7f8;
  border-bottom: 1px solid #e7ecee;
  border-top: 1px solid #e7ecee;
}

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

.method-step {
  background: #ffffff;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  min-height: 245px;
  padding: 1.15rem;
}

.step-number {
  color: #b85d34;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.method-step h3 {
  color: #172028;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.method-step p {
  color: #5a6470;
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

.video-card {
  background: #ffffff;
  border: 1px solid #e0e5e7;
  border-radius: 8px;
  overflow: hidden;
}

.video-card video {
  border: 0;
  border-radius: 0;
}

.video-copy {
  min-height: 128px;
  padding: 1rem;
}

.video-copy h3 {
  color: #172028;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.video-copy p {
  color: #5a6470;
  font-size: 0.95rem;
  margin: 0;
}

.robot-section {
  background: #faf8f4;
  border-bottom: 1px solid #ece6dc;
  border-top: 1px solid #ece6dc;
}

.bibtex {
  background: #11171d;
  border-radius: 8px;
  color: #edf2f5;
  overflow-x: auto;
  padding: 1.1rem;
}

.bibtex code {
  color: inherit;
  font-size: 0.92rem;
}

.footer {
  background: #f5f7f8;
  border-top: 1px solid #e5e9ec;
  color: #5a6470;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

@media screen and (max-width: 1023px) {
  .publication-navbar .navbar-menu {
    border-top: 1px solid #e7eaee;
    box-shadow: none;
  }

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

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

  .method-step::after,
  .method-step::before {
    display: none;
  }
}

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

  .section {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .publication-title {
    font-size: 3.4rem;
  }

  .publication-links .button {
    flex: 1 1 auto;
  }

  .method-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .method-step {
    min-height: auto;
  }

  .video-copy {
    min-height: auto;
  }
}

/* CF3-inspired presentation overrides */
body {
  background: #ffffff;
  color: #222222;
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.publication-navbar {
  display: none;
}

.publication-hero {
  background: #ffffff;
  border-bottom: 0;
}

.publication-hero .hero-body {
  padding: 2rem 1.5rem 1rem;
}

.publication-hero .columns {
  display: block;
}

.publication-hero .column {
  margin: 0 auto;
  max-width: 960px;
  text-align: center;
  width: 100%;
}

.publication-title {
  align-items: center;
  color: #111111;
  display: inline-flex;
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: 3.45rem;
  font-weight: 800;
  gap: 0.03em;
  line-height: 1.02;
  margin: 0 auto 0.75rem;
  padding: 0 0.08em;
  position: relative;
}

.title-pair {
  color: #0f7567;
  position: relative;
}

.title-pair::after {
  background: rgba(0, 168, 143, 0.18);
  border-radius: 999px;
  bottom: 0.08em;
  content: "";
  height: 0.12em;
  left: 0.02em;
  position: absolute;
  right: 0.02em;
  z-index: -1;
}

.publication-subtitle {
  color: #2d2d2d;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 auto 1.05rem;
  max-width: 760px;
}

.publication-authors,
.publication-affiliation,
.author-note {
  justify-content: center;
  text-align: center;
}

.publication-authors a {
  color: #3273dc !important;
  font-weight: 700;
}

.publication-links {
  justify-content: center;
  margin-bottom: 1.5rem;
  margin-top: 1.4rem;
}

.publication-links .button {
  border: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-weight: 700;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  transition: all 0.25s ease;
}

.publication-links .button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}

.publication-links .button:nth-child(1) {
  background: linear-gradient(45deg, #1281a7, #0b5067);
}

.publication-links .button:nth-child(2) {
  background: linear-gradient(45deg, #7d8081, #414343);
}

.publication-links .button:nth-child(3) {
  background: linear-gradient(45deg, #5dc0a3, #2c7b64);
}

.hero-media {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  max-width: 960px;
  overflow: visible;
}

.hero-media img {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  display: block;
  height: auto;
  width: 100%;
}

.application-video video,
.dataset-videos video {
  background: #ffffff;
  border: 0;
  border-radius: 20px;
  display: block;
  height: auto;
  width: 100%;
}

.hero-figure {
  background: #ffffff;
}

.teaser-band {
  border-bottom: 0;
  padding: 1rem 1.5rem 2.3rem;
}

.teaser-line {
  color: #333333;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 940px;
}

#abstract {
  background: #f4f4f4;
  padding: 3.2rem 1.5rem;
}

#abstract .column {
  width: 100%;
}

.method-section {
  background: #ffffff;
  border: 0;
}

.method-figure {
  background: #ffffff;
  margin: -0.2rem auto 1.8rem;
  max-width: 960px;
}

.method-figure img {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 0;
  box-sizing: border-box;
  display: block;
  height: auto;
  padding: 0 1.25rem;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .method-figure img {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.method-grid {
  gap: 1.45rem;
  position: relative;
}

.method-step {
  border: 1px solid #eeeeee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-height: 220px;
  overflow: visible;
  position: relative;
}

.method-step::after {
  background: #00a88f;
  content: "";
  height: 2px;
  left: calc(100% + 0.2rem);
  position: absolute;
  top: 2.05rem;
  width: 1.05rem;
}

.method-step::before {
  border-bottom: 5px solid transparent;
  border-left: 7px solid #00a88f;
  border-top: 5px solid transparent;
  content: "";
  left: calc(100% + 1.15rem);
  position: absolute;
  top: calc(2.05rem - 4px);
}

.method-step:last-child::after,
.method-step:last-child::before {
  display: none;
}

.step-number {
  align-items: center;
  background: #e8fbf6;
  border: 1px solid #b7eee1;
  border-radius: 999px;
  color: #007c6d;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0 0.65rem;
}

.dataset-section .hero-body,
.robot-section {
  padding: 3.2rem 1.5rem;
}

.dataset-section:nth-of-type(even) {
  background: #f4f4f4;
}

.result-subtitle {
  color: #555555;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.dataset-group {
  background: #ffffff;
  border: 1px solid #e6e9eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  padding: 1.15rem 1.15rem 1.25rem;
}

.dataset-unified {
  margin: 1.7rem auto 0;
  max-width: 900px;
}

.dataset-control-panel {
  display: grid;
  gap: 0.55rem;
  margin: 0 auto 1.2rem;
  max-width: 720px;
}

.dataset-control-row {
  align-items: center;
  background: #f7f9fa;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  margin-bottom: 0;
  padding: 0.55rem;
}

.dataset-control-row:last-child {
  margin-bottom: 0;
}

.dataset-control-label {
  color: #1f2933;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.dataset-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  justify-content: center;
  margin-bottom: 0 !important;
}

.dataset-controls .button {
  margin: 0 !important;
}

.dataset-btn {
  background-color: #42474b;
  border: 0;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  height: 2.3rem;
  min-width: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  transition: all 0.25s ease;
  width: 7.35rem;
}

.dataset-btn:hover {
  background-color: #30363a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

.dataset-btn.active,
.dataset-btn.is-active {
  background-color: #00a88f;
  box-shadow: 0 4px 10px rgba(0, 168, 143, 0.22);
  color: #ffffff;
}

.dataset-videos {
  margin: 0 auto;
  max-width: 720px;
}

.robot-section {
  background: #ffffff;
  border: 0;
}

.robot-section .section-heading {
  text-align: center;
}

.application-video {
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  margin: 0 auto;
  max-width: 720px;
  overflow: hidden;
}

.robot-caption {
  margin-bottom: 1.2rem;
}

.bibtex {
  border-radius: 12px;
}

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

  .publication-title {
    font-size: 2.55rem;
  }

  .publication-subtitle {
    font-size: 1.18rem;
  }

  .publication-links .button {
    flex: 0 1 auto;
  }

  .method-grid {
    gap: 0.9rem;
  }

  .method-step::after,
  .method-step::before {
    display: none;
  }

  .dataset-control-row {
    display: block;
    margin-bottom: 1rem;
    padding: 0.7rem;
  }

  .dataset-control-label {
    display: block;
    margin-bottom: 0.55rem;
    text-align: center;
  }

  .dataset-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
  }

  .dataset-btn {
    width: 100%;
  }

  .application-video video,
  .dataset-videos video {
    border-radius: 10px;
  }
}
