:root {
  --ink: #10243e;
  --muted: #5a6b7f;
  --blue: #176b87;
  --blue-dark: #0b4864;
  --cyan: #2aa7a1;
  --orange: #f18b55;
  --paper: #fbfdff;
  --tint: #eef7f8;
  --line: #d7e4e8;
  --content-width: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.title,
.teaser,
.button,
.video-slot::after {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.publication-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(42, 167, 161, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 22%, rgba(241, 139, 85, 0.16), transparent 26rem),
    linear-gradient(180deg, #f2fbfc 0%, #fbfdff 82%);
}

.publication-header::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: 0.22;
  background-image: linear-gradient(rgba(23, 107, 135, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 135, 0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.publication-header .hero-body {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem 3.75rem;
}

.publication-title {
  max-width: 1020px;
  margin-right: auto;
  margin-left: auto;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.3vw, 3.1rem) !important;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.title-mark {
  color: var(--blue);
}

.publication-subtitle {
  margin-top: 1.1rem;
  color: var(--blue-dark);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.publication-header .is-size-5.publication-authors {
  font-size: 1.1rem !important;
}

.publication-header .is-size-6.publication-authors {
  font-size: 0.85rem !important;
}
.publication-authors {
  color: var(--muted);
}

.publication-links {
  margin-top: 0.65rem;
}

.link-block a {
  margin: 5px 3px;
}

.button.is-dark {
  background: var(--ink);
}

.button.is-light {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.68;
}

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

.section-tint {
  background: var(--tint);
}

.section-heading {
  max-width: var(--content-width);
  margin: 0 auto 1.25rem;
}

.abstract-container {
  max-width: 820px !important;
}

.section-heading .title {
  margin-bottom: 0.65rem;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.section-title {
  margin-bottom: 0.45rem !important;
}

.section-subtitle {
  margin: 0 auto 0.8rem;
  color: var(--blue-dark);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.motivation-container .section-heading {
  max-width: 800px;
}

.motivation-container .section-heading .title,
.motivation-container .section-subtitle,
.motivation-container .section-lead {
  text-wrap: balance;
}

.motivation-container .section-lead {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.motivation-points {
  display: grid;
  gap: 0.8rem;
  max-width: 860px;
  margin: 1.35rem auto 1.7rem;
  text-align: left;
}

.motivation-point {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.motivation-point-accent {
  border-color: rgba(42, 167, 161, 0.42);
  background: linear-gradient(145deg, #eafafa, #fff);
}

.motivation-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.motivation-point-accent .motivation-number {
  background: var(--cyan);
}

.motivation-point h3 {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.motivation-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.section-lead,
.figure-caption {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.motivation-container,
.figure-container,
.rollout-container {
  width: calc(100% - 3rem);
  max-width: var(--content-width) !important;
  padding-right: 0;
  padding-left: 0;
}

.teaser .hero-body {
  padding: 3rem 0 2.5rem;
}

.figure-crop {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(16, 36, 62, 0.09);
}

.figure-crop img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

.figure-crop-1 {
  width: 100%;
  max-width: var(--content-width);
}

.figure-crop-1 img {
  position: static;
  width: 100%;
}

.figure-crop-2 img {
  position: static;
  width: 100%;
}

.figure-crop-3 {
  aspect-ratio: 1655 / 441;
}

.figure-crop-3 img {
  top: -29.3%;
  left: -19.7%;
  width: 145.02%;
}

.figure-crop-4 {
  aspect-ratio: 1851 / 503;
}

.figure-crop-4 img {
  top: -45.9%;
  left: -8.32%;
  width: 129.66%;
}

.figure-caption {
  max-width: var(--content-width);
  margin: 0 auto 0.75rem;
  font-size: 0.92rem;
}

.figure-container > .content,
.figure-container > .columns,
.figure-container > .method-grid,
.figure-container > h2,
.figure-container > h3,
.figure-container > .task-list,
.figure-container > .table-container,
.figure-container > .deployment-note {
  max-width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}

.figure-container > .content {
  margin-bottom: 1rem;
}

.method-summary {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
}

.method-name {
  color: var(--blue);
  font-weight: 800;
}

.method-grid {
  margin-top: 1.5rem;
}

.info-card,
.result-card {
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 36, 62, 0.055);
}

.info-card {
  position: relative;
  overflow: hidden;
}

.info-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.card-number {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.info-card .title {
  margin-bottom: 0.65rem;
}

.info-card p,
.result-card p {
  color: var(--muted);
  line-height: 1.62;
}

.deployment-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem !important;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(42, 167, 161, 0.35);
  border-radius: 12px;
  background: #fff;
}

.deployment-note p {
  margin: 0;
  color: var(--muted);
}

.deployment-badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.task-list span {
  padding: 0.48rem 0.8rem;
  border: 1px solid #b8d9df;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #edf9fa;
  font-size: 0.92rem;
  font-weight: 700;
}

.rollouts-section {
  background: #10243e;
}

.rollouts-section .section-heading .title,
.rollout-task .title {
  color: #fff;
}

.rollouts-section .section-subtitle {
  color: #bcdde2;
}

.rollout-container {
  max-width: var(--content-width) !important;
}

.rollout-intro {
  max-width: var(--content-width);
  margin: 0 auto 2.5rem;
  color: #b8c7d9;
}

.rollout-task {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 3.25rem;
}

.rollout-task .title {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

.video-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(110, 208, 204, 0.34);
  border-radius: 14px;
  color: #b8c7d9;
  background: #19304c;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.video-slot::after {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.36rem 0.58rem;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  content: attr(data-label);
  color: #1e40af;
  background: #dbeafe;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.video-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #091727;
}

.failure-slot {
  border-color: rgba(241, 139, 85, 0.72);
}

.video-slot[data-label^="OOD"]::after {
  color: #6b21a8;
  background: #f3e8ff;
  border-color: #d8b4fe;
}

.video-slot[data-label^="Perturbation"]::after {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.video-slot.failure-slot::after {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.placeholder-slot {
  border-style: dashed;
}

.placeholder-slot span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-number {
  color: var(--blue);
  font-family: 'Google Sans', sans-serif;
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
}

.result-label {
  margin: 0.45rem 0 0.65rem;
  font-weight: 800;
}

.ours-row {
  background: #e4f4f5 !important;
}

.table-container {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.table {
  margin-bottom: 0 !important;
}

.table-caption {
  caption-side: top;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #f8fbfc;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

.table-caption strong:first-child {
  color: var(--blue-dark);
}

.table th,
.table td {
  text-align: center;
  vertical-align: middle;
}

.table th:first-child,
.table td:first-child {
  text-align: left;
  white-space: nowrap;
}

pre {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.footer {
  background: #eef5f7;
}

.footer .icon-link {
  color: var(--ink);
  font-size: 25px;
}

@media screen and (max-width: 1023px) {
  .method-grid {
    flex-wrap: wrap;
  }

  .method-grid .column {
    flex: 1 1 48%;
  }
}

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

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

  .publication-subtitle {
    font-size: 1.25rem !important;
  }

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

  .method-grid .column {
    flex-basis: 100%;
  }

  .deployment-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-number {
    font-size: 2rem;
  }

  .table th,
  .table td {
    font-size: 0.82rem;
  }

  .rollout-grid {
    display: flex;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    scroll-snap-type: x mandatory;
  }

  .video-slot {
    flex: 0 0 72vw;
    min-height: 0;
    scroll-snap-align: start;
  }

  .rollout-task {
    width: 100%;
  }

  .figure-crop-1 {
    width: 100%;
  }
}

.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0.65rem auto 0.4rem;
  max-width: 900px;
  line-height: 1.6;
}

.publication-affiliations > span {
  max-width: 100%;
}

.abstract-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: fit-content;
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}

.abstract-disclosure > summary::-webkit-details-marker {
  display: none;
}

.abstract-disclosure > summary .title {
  margin: 0;
}

.abstract-disclosure > summary::after {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
}

.abstract-disclosure[open] > summary::after {
  transform: rotate(225deg);
}

.abstract-disclosure > summary:hover {
  background: var(--tint);
}

.abstract-disclosure > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.abstract-disclosure > .content {
  margin-top: 1.25rem;
}

.caption-disclosure > summary {
  cursor: pointer;
  color: var(--ink);
  border-radius: 4px;
}

.caption-disclosure > summary::marker {
  color: var(--blue);
}

.caption-disclosure > summary:hover {
  color: var(--blue);
}

.caption-disclosure > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.caption-disclosure > p {
  margin-top: 0.65rem;
}

.rollout-task > .title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.rollout-speed {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(110, 208, 204, 0.4);
  border-radius: 999px;
  color: #b8e8e5;
  background: rgba(42, 167, 161, 0.12);
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.dynamics-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  max-width: 980px !important;
}

.dynamics-container > .title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.dynamics-figure {
  margin: 0;
}

.dynamics-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 432;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f8fb;
  box-shadow: 0 18px 54px rgba(16, 36, 62, 0.09);
}

.dynamics-caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.dynamics-task {
  min-width: 0;
  margin-top: 0;
}

.dynamics-task > .title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

@media screen and (max-width: 767px) {
  .dynamics-container {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dynamics-description {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid rgba(110, 208, 204, 0.25);
  border-left: 3px solid #6ed0cc;
  border-radius: 10px;
  background: #2b4a68;
  color: #f4f9ff;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left;
}

.dynamics-section .title {
  color: #fff;
}

.dynamics-section .dynamics-description {
  color: #f4f9ff;
}

.dynamics-section .dynamics-video {
  border-color: rgba(110, 208, 204, 0.34);
}

.publication-venue {
  margin: 1rem 0 0.6rem;
  color: #111;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}
