:root {
  --ink: #17202a;
  --muted: #5f6c78;
  --line: #dfe5e9;
  --soft: #f5f8f9;
  --paper: #ffffff;
  --accent: #0b719c;
  --accent-dark: #075678;
  --accent-soft: #dceff6;
  --max-width: 960px;
  --text-width: 768px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.container--text {
  max-width: var(--text-width);
}

.container--media {
  max-width: var(--text-width);
}

.hero {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hero__inner {
  padding-block: 72px 62px;
  text-align: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 1080px;
  margin: 0 auto 26px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  font-weight: 720;
  line-height: 1.14;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.authors {
  display: flex;
  max-width: 920px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 22px;
  font-size: 1.03rem;
}

.authors a {
  color: #185b79;
  white-space: nowrap;
}

sup {
  position: relative;
  top: -0.15em;
  font-size: 0.68em;
}

.affiliations {
  display: flex;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 18px;
  align-items: center;
  gap: 8px;
  border: 1px solid #252a2f;
  border-radius: 999px;
  color: white;
  background: #252a2f;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

a.button:hover {
  color: white;
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button__icon {
  display: inline-block;
  width: auto;
  height: auto;
  color: white;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 0.86;
}

.button__icon--text {
  width: auto;
  min-width: 0;
  padding-inline: 0;
  border-radius: 0;
  font-size: 0.66rem;
}

.button--pending {
  cursor: default;
  opacity: 0.68;
}

.section {
  padding-block: 52px;
}

.section--abstract {
  padding-block: 52px;
}

.section--abstract h2 {
  text-align: center;
}

.section--abstract p {
  margin-bottom: 0;
  color: #34414c;
  text-align: justify;
  text-wrap: pretty;
}

.section--muted {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #d1d9de;
  border-radius: 10px;
  background: #0e1419;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #0e1419;
  object-fit: cover;
}

.pipeline-figure {
  margin: 0;
}

.pipeline-figure a {
  display: block;
  overflow: hidden;
  border: 1px solid #d4dde2;
  border-radius: 16px;
  background: white;
  box-shadow: 0 14px 40px rgba(25, 44, 56, 0.09);
  transition: border-color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.pipeline-figure a:hover {
  border-color: #8cb5c7;
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(25, 44, 56, 0.13);
}

.pipeline-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.pipeline-figure figcaption {
  max-width: 970px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: justify;
}

.result-block + .result-block {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.result-block__heading {
  margin-bottom: 28px;
}

.result-block__heading h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccd5da;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.result-block__heading p {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.metric-strip {
  display: grid;
  margin-bottom: 26px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.metric {
  display: grid;
  min-height: 112px;
  padding: 18px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fa;
  text-align: center;
}

.metric--best {
  border-color: #9fc7d7;
  background: #eaf5f9;
}

.metric__value {
  color: #1c607d;
  font-size: 1.65rem;
  font-weight: 760;
  line-height: 1.15;
}

.metric__label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-strip__arrow {
  color: #87949d;
  font-size: 1.35rem;
}

.table-card {
  margin-bottom: 36px;
}

.table-card--compact {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid #cfd8dd;
  border-radius: 10px;
  background: white;
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: center;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid #e0e6e9;
  vertical-align: middle;
}

thead th {
  color: #26333d;
  background: #f1f4f6;
  font-weight: 700;
}

tbody th {
  font-weight: 590;
  text-align: left;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.group-start th,
.group-start td {
  border-top: 1.5px solid #aebbc2;
}

.best-row {
  background: #eef7fa;
}

.evaluation-row {
  background: #f5f8f9;
}

.table-caption,
.result-figure figcaption {
  margin: 14px 8px 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
  text-align: justify;
}

.result-figure {
  margin: 38px 0 0;
}

.result-figure a,
.result-figure > img {
  display: block;
  overflow: hidden;
  border: 1px solid #d5dde1;
  border-radius: 8px;
  background: white;
}

.result-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.result-figure--portrait {
  width: min(100%, 860px);
  margin-inline: auto;
}

footer {
  border-top: 1px solid var(--line);
  color: #71808c;
  background: #f7f9fa;
  font-size: 0.84rem;
}

.footer__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero__inner {
    padding-block: 50px 46px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .authors {
    gap: 3px 15px;
    font-size: 0.97rem;
  }

  .affiliations {
    display: grid;
    gap: 2px;
  }

  .button {
    min-height: 42px;
    padding-inline: 15px;
  }

  .section,
  .section--abstract {
    padding-block: 44px;
  }

  .section--abstract p {
    text-align: left;
  }

  .video-frame {
    border-radius: 12px;
  }

  .pipeline-figure a {
    border-radius: 10px;
  }

  .pipeline-figure figcaption {
    margin-top: 14px;
    font-size: 0.88rem;
    text-align: left;
  }

  .result-block + .result-block {
    margin-top: 52px;
    padding-top: 44px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .metric {
    min-height: 96px;
  }

  .metric-strip__arrow {
    line-height: 1;
    transform: rotate(90deg);
  }

  .table-caption,
  .result-figure figcaption {
    margin-inline: 2px;
    text-align: left;
  }

  .footer__inner {
    padding-block: 24px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }
}

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

  .button {
    transition: none;
  }
}
