:root {
  --primary-color: #1f5f8f;
  --primary-hover: #153f5f;
  --accent-color: #2b8a6e;
  --text-primary: #17202a;
  --text-secondary: #586574;
  --background-secondary: #f7f9fb;
  --background-accent: #eef4f8;
  --border-color: #dce3ea;
  --border-radius: 8px;
  --border-radius-lg: 8px;
}

body {
  background: #ffffff;
}

.publication-header .hero-body {
  padding-top: 4rem;
  padding-bottom: 2.25rem;
}

.publication-title {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.7rem, 3.5vw, 2.65rem) !important;
  line-height: 1.12 !important;
}

.publication-venue {
  display: block;
  width: auto;
  margin: 1.45rem 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.publication-affiliations {
  color: var(--text-secondary);
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.corresponding-author {
  margin: 0 0 0;
  color: #8191aa;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.publication-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.8rem;
}

.publication-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.25rem;
  min-height: 2.55rem;
  border-radius: 999px !important;
}

.inactive-link {
  opacity: 0.92;
  cursor: default;
}

.inactive-link:hover {
  transform: none !important;
  background: var(--text-primary) !important;
}

.soon-text {
  font-size: 0.9em;
  font-weight: 500;
}

.teaser .hero-body {
  padding-top: 1.25rem;
}

.publication-figure {
  margin: 0 auto;
}

.publication-figure img {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(20, 32, 45, 0.08);
}

.figure-caption {
  max-width: 980px;
  margin: 0.85rem auto 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: center;
}

.teaser-caption {
  max-width: 900px;
  margin: 1.25rem auto 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.method-cards,
.qualitative-cases {
  margin-top: 1.5rem;
}

.method-card {
  height: 100%;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 20px rgba(20, 32, 45, 0.06);
}

.method-card p,
.result-label,
.qualitative-card figcaption,
.qualitative-intro {
  color: var(--text-secondary);
}

.table-caption {
  max-width: 960px;
  margin: 1rem auto 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
}

.paper-table {
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20, 32, 45, 0.06);
}

.paper-table .table {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.paper-table th {
  color: #24313d;
  background: #d7dde3;
  font-weight: 800;
}

.paper-table td,
.paper-table th {
  border-color: #dfe5eb;
  vertical-align: middle;
}

.paper-table th:nth-child(2),
.paper-table th:nth-child(3),
.paper-table td:nth-child(2),
.paper-table td:nth-child(3) {
  text-align: center;
}

.ours-row {
  background: #e5f3ff;
  box-shadow: inset 4px 0 0 #2b74d6;
}

.ours-row td:first-child {
  font-weight: 700;
}

.underlined-score {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  font-weight: 400;
}

.qualitative-intro {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.qualitative-case {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 32, 45, 0.08);
}

.qualitative-case h3 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.qualitative-case-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 1.25rem;
  align-items: start;
}

.case-summary {
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border: 1px solid #c9d8e6;
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  background: #f6fbf9;
  color: #23313d;
  font-size: 0.98rem;
  line-height: 1.55;
}

.video-frame {
  align-self: center;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(20, 32, 45, 0.08);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.judgement-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.judgement-card {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem;
  min-height: 11rem;
  padding: 1rem;
  border: 2px solid #1e3354;
  border-radius: 8px;
  background: #ffffff;
}

.judgement-mark {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.judgement-card.wrong .judgement-mark,
.judgement-card.wrong strong {
  color: #d90000;
}

.judgement-card.correct .judgement-mark,
.judgement-card.correct strong {
  color: #053b78;
}

.judgement-content h4 {
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  font-size: 1.12rem;
  font-weight: 800;
}

.judgement-meta {
  margin-bottom: 0.55rem;
  color: #111820;
  font-weight: 600;
}

.judgement-content p:last-child {
  margin-bottom: 0;
  color: #1f2933;
  line-height: 1.45;
}

.additional-examples {
  max-width: 980px;
  margin: 3.25rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 32, 45, 0.08);
}

.additional-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem 3rem;
  margin-top: 0;
}

.additional-example {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.85rem;
  min-width: 0;
}

.additional-example h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.additional-video-frame {
  aspect-ratio: 16 / 9;
  border: 2px solid #1e3354;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(20, 32, 45, 0.07);
}

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

.additional-judgement {
  min-height: 13.4rem;
  padding: 1rem 1.1rem;
  border: 2px solid #1e3354;
  border-radius: 18px;
  background: #ffffff;
}

.additional-judgement h4 {
  margin-bottom: 0.9rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.additional-judgement p:last-child {
  margin-bottom: 0;
  color: #1f2933;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

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

  .publication-links {
    flex-direction: column;
  }

  .publication-links .button {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .qualitative-case-body {
    grid-template-columns: 1fr;
  }

  .judgement-stack {
    grid-template-rows: auto;
  }

  .additional-example-grid {
    grid-template-columns: 1fr;
  }

  .additional-examples {
    padding: 1rem;
  }

  .additional-judgement {
    min-height: 0;
  }
}
