:root {
  --ink: #1d2430;
  --muted: #6e7892;
  --accent: #7898e8;
  --accent-dark: #4f65d7;
  --accent-soft: #eef1ff;
  --resource-start: #4f78d8;
  --resource-end: #4a9bc9;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.publication-hero {
  display: grid;
  min-height: 430px;
  padding: 68px 32px 28px;
  place-items: center;
  text-align: center;
}

.hero-content {
  width: min(100%, 1240px);
}

.project-icon {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.publication-title {
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(2.5rem, 4.15vw, 4rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.project-name {
  color: var(--accent);
  font-weight: 820;
  letter-spacing: -0.045em;
}

.title-divider {
  margin-right: 0.18em;
  color: var(--accent);
  font-weight: 750;
}

.title-text {
  text-wrap: balance;
}

.publication-authors {
  max-width: 1040px;
  margin: 38px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 2;
  text-wrap: balance;
}

.author {
  display: inline-block;
  color: var(--ink);
}

.author sup,
.affiliation sup {
  position: relative;
  top: -0.15em;
  margin-left: 0.12em;
  font-size: 0.66em;
  line-height: 0;
}

.publication-affiliations {
  display: flex;
  justify-content: center;
  gap: 10px 30px;
  margin: 23px auto 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  flex-wrap: wrap;
}

.affiliation {
  display: inline-block;
}

.author-role-note {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 8px auto 0;
  color: #8791a5;
  font-size: 0.86rem;
  line-height: 1.5;
  flex-wrap: wrap;
}

.author-role-note sup {
  margin-right: 0.2em;
}

.publication-resources {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 34px auto 0;
  flex-wrap: wrap;
}

.resource-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 142px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--resource-start), var(--resource-end));
  box-shadow: 0 8px 18px rgba(65, 115, 181, 0.22);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.resource-pill span {
  font-size: 1.05em;
}

.release-note {
  margin: 17px auto 0;
  color: #7a849a;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.teaser-section {
  padding: 0 32px 68px;
}

.abstract-section {
  padding: 18px 32px 72px;
}

.abstract-section .section-container {
  width: min(100%, 1100px);
}

.contributions-section {
  padding: 12px 32px 72px;
}

.dataset-section {
  padding: 18px 32px 72px;
}

.architecture-section {
  padding: 18px 32px 72px;
}

.applications-section {
  padding: 18px 32px 72px;
}

.results-section {
  padding: 18px 32px 72px;
}

.qualitative-section {
  padding: 18px 32px 96px;
}

.section-container {
  width: min(100%, 980px);
  margin: 0 auto;
}

.section-container-wide {
  width: min(100%, 1240px);
}

.section-heading {
  margin: 0 0 30px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-align: center;
}

.section-heading-accent {
  margin-bottom: 50px;
}

.section-heading-accent::after {
  display: block;
  width: 74px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.teaser-figure {
  margin: 0;
}

.teaser-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e8ebf2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(29, 36, 48, 0.1);
}

.abstract-card {
  padding: 48px 58px 52px;
  border: 1px solid #e6eaf5;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8faff 0%, #f4f7fc 100%);
}

.abstract-card p {
  margin: 0;
  color: #424c5e;
  font-size: 1.04rem;
  line-height: 1.82;
  text-align: justify;
  text-wrap: pretty;
}

.abstract-card strong {
  color: var(--ink);
  font-weight: 750;
}

.contributions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.contribution-card {
  min-height: auto;
  padding: 34px 30px 36px;
  border: 1px solid #e1e6ef;
  border-radius: 20px;
  background: #fbfcfe;
  box-shadow: 0 8px 24px rgba(29, 36, 48, 0.055);
}

.contribution-card h3 {
  margin: 0 0 12px;
  color: #617fdb;
  font-size: 1.14rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.contribution-card:nth-child(2) h3 {
  color: #278d78;
}

.contribution-card:nth-child(3) h3 {
  color: #bd7331;
}

.contribution-card p {
  margin: 0;
  color: #4d586b;
  font-size: 1rem;
  line-height: 1.82;
}

.section-intro {
  max-width: 1080px;
  margin: 34px auto 30px;
  color: #596477;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.75;
  text-align: center;
}

.dataset-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.dataset-source {
  padding: 26px 27px 29px;
  border: 1px solid #e2e7f1;
  border-radius: 14px;
  background: #fafbfe;
}

.dataset-source h3 {
  margin: 0 0 12px;
  color: #526fca;
  font-size: 1.14rem;
  font-weight: 750;
  line-height: 1.4;
}

.dataset-source p {
  margin: 0;
  color: #697488;
  font-size: 1rem;
  line-height: 1.7;
}

.dataset-source:nth-child(2) h3 {
  color: #278d78;
}

.dataset-source:nth-child(3) h3 {
  color: #bd7331;
}

.dataset-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e9f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(29, 36, 48, 0.09);
}

.dataset-figure {
  margin: 0;
}

.dataset-caption {
  max-width: 1000px;
  margin: 18px auto 0;
  color: #697488;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: center;
}

.dataset-caption strong {
  color: #3f495a;
}

.architecture-figure {
  margin: 0;
}

.architecture-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e9f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(29, 36, 48, 0.09);
}

.architecture-caption {
  max-width: 980px;
  margin: 18px auto 0;
  color: #697488;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: center;
}

.architecture-components {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.architecture-component {
  position: relative;
  padding: 26px 27px 29px;
  border: 1px solid #e2e7f1;
  border-radius: 14px;
  background: #fafbfe;
}

.architecture-component h3 {
  margin: 0 0 12px;
  color: #526fca;
  font-size: 1.14rem;
  font-weight: 750;
  line-height: 1.45;
}

.architecture-component p {
  margin: 0;
  color: #697488;
  font-size: 1rem;
  line-height: 1.7;
}

.architecture-component:nth-child(2) h3 {
  color: #278d78;
}

.architecture-component:nth-child(3) h3 {
  color: #bd7331;
}

.applications-intro {
  max-width: 960px;
  margin: 0 auto 30px;
  color: #596477;
  font-size: 1.12rem;
  line-height: 1.75;
  text-align: center;
}

.applications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.application-card {
  display: flex;
  min-width: 0;
  padding: 26px 27px 29px;
  border: 1px solid #e2e7f1;
  border-radius: 14px;
  background: #fafbfe;
  flex-direction: column;
}

.application-card h3 {
  margin: 0 0 12px;
  color: #526fca;
  font-size: 1.14rem;
  font-weight: 750;
  line-height: 1.45;
}

.application-card p {
  margin: 0;
  color: #697488;
  font-size: 1rem;
  line-height: 1.7;
}

.application-card:nth-child(2) h3 {
  color: #278d78;
}

.application-card:nth-child(3) h3 {
  color: #bd7331;
}

.application-figure {
  margin: auto 0 0;
  padding-top: 22px;
}

.application-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e7f1;
  border-radius: 10px;
  background: #ffffff;
}

.results-intro {
  max-width: 900px;
  margin: 0 auto 30px;
  color: #596477;
  font-size: 1.12rem;
  line-height: 1.75;
  text-align: center;
}

.qualitative-intro {
  max-width: 900px;
  margin: 0 auto 30px;
  color: #596477;
  font-size: 1.12rem;
  line-height: 1.75;
  text-align: center;
}

.results-carousel {
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(29, 36, 48, 0.075);
}

.results-carousel:focus-visible {
  outline: 3px solid rgba(120, 152, 232, 0.35);
  outline-offset: 4px;
}

.results-carousel.is-single-slide .results-carousel-toolbar,
.results-carousel.is-single-slide .carousel-dots {
  display: none;
}

.results-carousel-toolbar {
  display: grid;
  min-height: 68px;
  padding: 10px 16px;
  border-bottom: 1px solid #e7ebf2;
  background: #f8faff;
  align-items: center;
  grid-template-columns: 46px 1fr 46px;
}

.carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d7dfef;
  border-radius: 50%;
  color: #526fca;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  place-items: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.carousel-button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.carousel-button:hover {
  border-color: #9cb2eb;
  background: #eef3ff;
  transform: translateY(-1px);
}

.carousel-button:focus-visible,
.carousel-dot:focus-visible {
  outline: 3px solid rgba(120, 152, 232, 0.38);
  outline-offset: 2px;
}

.carousel-status {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 10px;
  align-items: baseline;
  text-align: center;
}

.carousel-label {
  overflow: hidden;
  color: #33405a;
  font-size: 1.02rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-counter {
  color: #8791a5;
  font-size: 0.88rem;
  white-space: nowrap;
}

.results-slides {
  padding: 28px 26px 18px;
}

.result-slide h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.32rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
}

.result-caption {
  max-width: 940px;
  margin: 10px auto 24px;
  color: #697488;
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: center;
}

.result-table-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-color: #bdc9e8 #f1f4fa;
  scrollbar-width: thin;
}

.result-table-wrap-compact {
  max-width: 920px;
  margin: 0 auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  color: #354052;
  background: #ffffff;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: center;
}

.result-table-wide {
  min-width: 1120px;
}

.result-table th,
.result-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e5e9f0;
  white-space: nowrap;
}

.result-table thead th {
  border-top: 2px solid #657083;
  border-bottom: 1.5px solid #8e98a8;
  color: #273246;
  background: #f3f5f8;
  font-weight: 740;
}

.result-table tbody th:first-child,
.result-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
}

.result-table tbody th:first-child {
  background: #ffffff;
  font-weight: 650;
}

.result-table .metric-row th,
.result-table tr.metric-row th {
  color: #525e70;
  background: #eceff3;
  font-size: 0.72rem;
}

.result-table .table-subheading th {
  padding-top: 12px;
  color: #2f3c51;
  background: #ffffff;
  font-size: 0.84rem;
  font-style: italic;
  text-align: left;
}

.result-table .method-group th {
  padding-top: 9px;
  color: #6a7487;
  background: #fafbfc;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 650;
  text-align: left;
}

.result-table .ours-row th,
.result-table .ours-row td,
.result-table .ours-row th:first-child {
  background: #e6f1fc;
}

.result-table .oom {
  color: #9b5e5b;
  background: #f8ddda;
  font-size: 0.7rem;
  font-weight: 650;
}

.result-table u {
  text-underline-offset: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px 22px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c7cedc;
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--accent);
}

.qualitative-video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e7f1;
  border-radius: 14px;
  background: #111722;
  box-shadow: 0 10px 28px rgba(29, 36, 48, 0.1);
}

.video-source {
  margin: 10px 0 0;
  color: #7b8597;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 980px) {
  .contributions-grid,
  .architecture-components,
  .applications-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
  }

  .architecture-components {
    margin-top: 32px;
  }

  .contribution-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .publication-hero {
    min-height: auto;
    padding: 56px 20px 28px;
  }

  .publication-title {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
    line-height: 1.14;
  }

  .project-icon {
    width: 112px;
    height: 112px;
    margin-bottom: 20px;
  }

  .project-name,
  .title-divider {
    display: inline;
  }

  .title-text {
    display: block;
    margin-top: 0.13em;
  }

  .publication-authors {
    margin-top: 30px;
    font-size: 1rem;
    line-height: 1.9;
  }

  .publication-affiliations {
    gap: 7px 18px;
    margin-top: 20px;
    font-size: 0.92rem;
  }

  .publication-resources {
    gap: 10px;
    margin-top: 28px;
  }

  .resource-pill {
    min-width: 132px;
    min-height: 48px;
    padding: 11px 20px;
    font-size: 0.95rem;
  }

  .release-note {
    max-width: 310px;
    margin-top: 15px;
    line-height: 1.55;
  }

  .teaser-section {
    padding: 0 16px 52px;
  }

  .abstract-section {
    padding: 0 16px 54px;
  }

  .contributions-section {
    padding: 8px 16px 68px;
  }

  .dataset-section {
    padding: 0 16px 68px;
  }

  .architecture-section {
    padding: 0 16px 68px;
  }

  .applications-section {
    padding: 0 16px 68px;
  }

  .results-section {
    padding: 0 16px 68px;
  }

  .qualitative-section {
    padding: 0 16px 68px;
  }

  .section-heading {
    margin-bottom: 22px;
    font-size: 1.9rem;
  }

  .teaser-image {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(29, 36, 48, 0.09);
  }

  .abstract-card {
    padding: 34px 22px 38px;
    border-radius: 17px;
  }

  .abstract-card p {
    font-size: 0.96rem;
    line-height: 1.72;
    text-align: left;
  }

  .section-heading-accent {
    margin-bottom: 36px;
  }

  .section-heading-accent::after {
    width: 60px;
    height: 3px;
    margin-top: 15px;
  }

  .contributions-grid {
    gap: 16px;
  }

  .contribution-card {
    padding: 30px 25px 32px;
    border-radius: 16px;
  }

  .contribution-card h3 {
    margin-bottom: 15px;
    font-size: 1.06rem;
  }

  .contribution-card p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .section-intro {
    margin: 24px auto 20px;
    padding: 0 4px;
    font-size: 1.02rem;
    line-height: 1.65;
    text-align: left;
  }

  .dataset-caption {
    margin-top: 14px;
    padding: 0 4px;
    font-size: 0.87rem;
    line-height: 1.55;
    text-align: left;
  }

  .dataset-sources {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 24px;
  }

  .dataset-source {
    padding: 18px 18px 20px;
  }

  .dataset-image {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(29, 36, 48, 0.08);
  }

  .architecture-image {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(29, 36, 48, 0.08);
  }

  .architecture-caption {
    margin-top: 14px;
    padding: 0 4px;
    font-size: 0.87rem;
    line-height: 1.55;
    text-align: left;
  }

  .architecture-components {
    gap: 12px;
    margin-top: 26px;
  }

  .architecture-component {
    padding: 22px 20px 24px;
  }

  .architecture-component h3 {
    font-size: 1.06rem;
  }

  .architecture-component p {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .applications-intro {
    margin: 0 auto 22px;
    padding: 0 4px;
    font-size: 1rem;
    line-height: 1.65;
    text-align: left;
  }

  .applications-grid {
    gap: 12px;
  }

  .application-card {
    padding: 22px 20px 24px;
  }

  .application-card h3 {
    font-size: 1.06rem;
  }

  .application-card p {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .results-intro {
    margin: 0 auto 22px;
    padding: 0 4px;
    font-size: 1rem;
    line-height: 1.65;
    text-align: left;
  }

  .qualitative-intro {
    margin: 0 auto 22px;
    padding: 0 4px;
    font-size: 1rem;
    line-height: 1.65;
    text-align: left;
  }

  .results-carousel {
    border-radius: 15px;
  }

  .results-carousel-toolbar {
    min-height: 60px;
    padding: 8px 10px;
    grid-template-columns: 40px 1fr 40px;
  }

  .carousel-button {
    width: 36px;
    height: 36px;
    font-size: 1.65rem;
  }

  .carousel-button svg {
    width: 16px;
    height: 16px;
  }

  .carousel-label {
    font-size: 0.9rem;
  }

  .carousel-counter {
    display: none;
  }

  .results-slides {
    padding: 22px 14px 12px;
  }

  .result-slide h3 {
    font-size: 1.12rem;
  }

  .result-caption {
    margin: 8px auto 18px;
    font-size: 0.86rem;
    text-align: left;
  }

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

  .carousel-dots {
    padding-bottom: 18px;
  }

  .qualitative-video {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
