:root {
  --ink: #1c2430;
  --muted: #606977;
  --line: #dce1e8;
  --soft: #f7f8fa;
  --reg: #2684a8;
  --reg-dark: #206f8e;
  --cls: #7c549e;
  --cls-dark: #684486;
  --mix: #576da3;
  --gt: #5a5a5a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--reg-dark);
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 2px solid var(--reg);
  outline-offset: 3px;
}

.page-container {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
}

.text-container {
  width: min(100%, 900px) !important;
  max-width: 900px !important;
}

.brand-word {
  color: var(--reg);
  font-weight: 700;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-word {
    color: transparent;
    background: linear-gradient(90deg, var(--reg) 0%, var(--reg) 36%, var(--mix) 58%, var(--cls) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.project-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 3.4rem;
  border-bottom: 1px solid #e9edf2;
  background: rgba(255, 255, 255, 0.97);
}

.nav-container {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
}

.project-nav .navbar-item {
  color: #596270;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
}

.project-nav .navbar-item:hover,
.project-nav .navbar-item:focus {
  color: var(--cls-dark);
  background: #f5f7fa;
}

.project-nav .nav-brand {
  font-size: 1rem;
  font-weight: 700;
}

.project-header {
  padding: 3.35rem 1.5rem 3.65rem;
}

.review-note {
  margin: 0 0 0.85rem;
  color: #737c88;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
}

.project-title {
  max-width: 1080px;
  margin: 0 auto;
  color: #202936;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.project-title .brand-word {
  display: inline-block;
}

.project-authors {
  margin: 1.15rem auto 0;
  color: #424c59;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.7;
}

.project-authors a {
  color: var(--reg-dark);
  text-decoration: none;
}

.project-authors a:hover,
.project-authors a:focus-visible {
  color: var(--cls-dark);
  text-decoration: underline;
}

.project-authors sup,
.project-affiliations sup {
  margin-left: 0.08rem;
  color: var(--mix);
  font-size: 0.72em;
  font-weight: 700;
}

.project-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.35rem;
  margin: 0.35rem auto 0;
  color: #68717d;
  font-size: 0.88rem;
  line-height: 1.6;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.25rem auto 0;
}

.resource-button {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  min-width: 9.7rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.9rem 0.6rem 1rem;
  border: 1px solid #d6dce4;
  border-left: 3px solid var(--reg);
  border-radius: 6px;
  color: #303946;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 42, 55, 0.07);
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.resource-button-label {
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
}

.resource-button-detail {
  margin-top: 0.18rem;
  color: #737c88;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.resource-button-arxiv {
  border-left-color: var(--cls);
}

.resource-button:hover,
.resource-button:focus-visible {
  border-color: var(--mix);
  color: #202936;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 42, 55, 0.12);
  transform: translateY(-1px);
}

.resource-button-paper:hover,
.resource-button-paper:focus-visible {
  border-left-color: var(--reg-dark);
}

.resource-button-arxiv:hover,
.resource-button-arxiv:focus-visible {
  border-left-color: var(--cls-dark);
}

.resource-button.is-disabled {
  border-color: #dfe3e8;
  border-left-color: #b8bec7;
  color: #777f8a;
  background: #f7f8fa;
  box-shadow: none;
  cursor: not-allowed;
}

.resource-button.is-disabled .resource-button-detail {
  color: #8b929c;
}

.header-summary {
  max-width: 850px;
  margin: 1.25rem auto 0;
  color: #4d5764;
  font-size: 1.08rem;
  line-height: 1.65;
}

.mode-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.65rem auto 0;
  font-size: 0.94rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
}

.mode-separator {
  color: #a2a9b2;
  font-style: normal;
}

.reg-text {
  color: var(--reg);
  font-weight: 700;
}

.cls-text {
  color: var(--cls);
  font-weight: 700;
}

.hero-media {
  margin: 2.25rem 0 0;
}

.hero-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #cfd5de;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.hero-media figcaption,
.overview-figure figcaption {
  max-width: 940px;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.paper-section {
  padding: 4.35rem 1.5rem;
  border-top: 1px solid #edf0f4;
}

.section-muted {
  background: var(--soft);
}

.section-intro {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-title {
  margin: 0 0 0.9rem;
  color: #202936;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

.accent-reg .section-title::after,
.accent-cls .section-title::after {
  display: block;
  width: 44px;
  height: 2px;
  margin: 0.65rem auto 0;
  background: var(--reg);
  content: "";
}

.accent-cls .section-title::after {
  background: var(--cls);
}

.section-lead {
  margin: 0;
  color: #4f5966;
  font-size: 1rem;
  line-height: 1.72;
}

.abstract-copy {
  color: #303946;
  font-family: Georgia, serif;
  font-size: 1.03rem;
  line-height: 1.82;
}

.abstract-copy p {
  margin: 0 0 1rem;
}

.abstract-copy p:last-child {
  margin-bottom: 0;
}

.abstract-copy strong {
  color: var(--reg-dark);
}

.overview-figure {
  margin: 0;
}

.overview-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d3d9e1;
  border-radius: 4px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.overview-image {
  display: block;
  width: 100%;
  height: auto;
}

.overview-figure figcaption {
  text-align: left;
}

.overview-figure figcaption strong {
  color: #303946;
}

.media-carousel {
  --carousel-accent: var(--mix);
  width: min(100%, 1080px);
  margin: 0 auto;
}

.media-carousel[data-accent="reg"] {
  --carousel-accent: var(--reg);
}

.media-carousel[data-accent="cls"] {
  --carousel-accent: var(--cls);
}

.carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #cfd5de;
  border-radius: 4px;
  background: #fff;
}

.carousel-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  object-fit: contain;
}

.carousel-video[hidden] {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(55, 66, 80, 0.28);
  border-radius: 4px;
  color: #27313e;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 2px 8px rgba(24, 32, 43, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-arrow span {
  display: block;
  margin-top: -3px;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: var(--carousel-accent);
  color: var(--carousel-accent);
}

.carousel-prev {
  left: 0.75rem;
}

.carousel-next {
  right: 0.75rem;
}

.carousel-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  min-width: 3.5rem;
  padding: 0.28rem 0.48rem;
  border-radius: 3px;
  color: #fff;
  background: rgba(28, 36, 48, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.carousel-caption {
  min-height: 3.55rem;
  margin: 0.75rem 0 0;
  color: #2d3642;
  font-size: 0.98rem;
  line-height: 1.42;
}

.carousel-caption span {
  display: block;
  margin-bottom: 0.12rem;
  color: #737c88;
  font-size: 0.78rem;
  font-weight: 600;
}

.carousel-caption strong {
  color: #2d3642;
  font-weight: 700;
}

.carousel-tabs {
  display: flex;
  width: 100%;
  overflow-x: auto;
  border-bottom: 1px solid #d7dde5;
  scrollbar-width: thin;
  scrollbar-color: #bdc5cf transparent;
}

.carousel-tab {
  flex: 1 1 0;
  min-width: 132px;
  min-height: 50px;
  padding: 0.65rem 0.75rem 0.72rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #69727e;
  background: transparent;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0;
  cursor: pointer;
}

.carousel-tab:hover {
  color: #303946;
  background: rgba(255, 255, 255, 0.58);
}

.carousel-tab[aria-selected="true"] {
  border-bottom-color: var(--carousel-accent);
  color: var(--carousel-accent);
  background: rgba(255, 255, 255, 0.72);
}

.generalization-subsection {
  padding-top: 3.65rem;
  margin-top: 3.65rem;
  border-top: 1px solid #dfe4ea;
}

.generalization-subsection:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.subsection-intro {
  margin: 0 auto 1.9rem;
  text-align: left;
}

.subsection-index {
  margin: 0 0 0.35rem;
  color: var(--mix);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.subsection-intro h3 {
  margin: 0 0 0.65rem;
  color: #27313e;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.subsection-intro p:last-child {
  margin: 0;
  color: #505a67;
  font-size: 0.98rem;
  line-height: 1.7;
}

.project-footer {
  padding: 2.2rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #f5f6f8;
  color: #6d7580;
  font-size: 0.85rem;
}

.project-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .project-title {
    font-size: 2.05rem;
  }

  .media-carousel {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .project-nav .navbar-menu {
    border-top: 1px solid #edf0f4;
    box-shadow: none;
  }

  .project-header {
    padding: 2.35rem 1rem 2.9rem;
  }

  .project-title {
    font-size: 1.72rem;
    line-height: 1.22;
  }

  .project-authors {
    margin-top: 0.8rem;
    font-size: 0.92rem;
  }

  .project-affiliations {
    display: block;
    font-size: 0.82rem;
  }

  .project-affiliations span {
    display: block;
  }

  .resource-actions {
    margin-top: 1rem;
  }

  .resource-button {
    min-width: 9rem;
    min-height: 3.05rem;
  }

  .header-summary {
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .mode-summary {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.86rem;
  }

  .mode-summary > span:not(.mode-separator) {
    display: block;
  }

  .mode-separator {
    display: none;
  }

  .hero-media {
    margin-top: 1.65rem;
  }

  .paper-section {
    padding: 3.35rem 1rem;
  }

  .section-intro {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.62rem;
  }

  .section-lead,
  .subsection-intro p:last-child {
    font-size: 0.94rem;
    line-height: 1.66;
  }

  .abstract-copy {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .overview-image {
    width: 860px;
    max-width: none;
  }

  .carousel-arrow {
    width: 38px;
    height: 44px;
  }

  .carousel-arrow span {
    font-size: 1.75rem;
  }

  .carousel-prev {
    left: 0.4rem;
  }

  .carousel-next {
    right: 0.4rem;
  }

  .carousel-count {
    top: 0.45rem;
    right: 0.45rem;
  }

  .carousel-caption {
    min-height: 3.8rem;
    font-size: 0.92rem;
  }

  .carousel-tab {
    flex: 0 0 auto;
    min-width: 145px;
    min-height: 48px;
    font-size: 0.78rem;
  }

  .generalization-subsection {
    padding-top: 3rem;
    margin-top: 3rem;
  }

  .subsection-intro {
    margin-bottom: 1.55rem;
  }

  .subsection-intro h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 1.62rem;
  }

  .review-note {
    font-size: 0.76rem;
  }

  .carousel-arrow {
    width: 34px;
    height: 40px;
  }

  .carousel-tab {
    min-width: 136px;
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .brand-word {
    color: LinkText;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
