:root {
  --ink: #202124;
  --muted: #5f6368;
  --violet: #7357c7;
  --violet-soft: #f1edff;
  --green: #48a65f;
  --green-soft: #edf8ef;
  --orange: #e88e38;
  --line: #e7e7ea;
}

html {
  scroll-behavior: smooth;
}

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

.publication-header .hero-body {
  padding-bottom: 2rem;
}

.paper-kicker {
  margin-bottom: 0.75rem;
  color: var(--violet);
  font-family: "Google Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-title,
.publication-subtitle,
.publication-authors {
  font-family: "Google Sans", sans-serif;
}

.publication-title {
  margin-bottom: 0.6rem !important;
  letter-spacing: -0.035em;
}

.publication-subtitle {
  max-width: 920px;
  margin: 0 auto 1.25rem !important;
  color: #3f4247;
  line-height: 1.25;
}

.publication-authors {
  margin-bottom: 1.35rem;
}

.publication-authors .author-block {
  display: inline-block;
  margin-right: 0.18rem;
}

.publication-authors a {
  color: #1675bd;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.publication-links .button {
  margin: 0;
}

.button-icon {
  margin-right: 0.45rem;
  font-size: 1.05em;
}

.publication-links .is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  user-select: none;
}

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

.publication-figure {
  margin: 0;
}

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

.publication-figure figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
  text-align: center;
}

.teaser-figure {
  padding: 1.25rem 1.4rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(32, 33, 36, 0.08);
}

.compact-section {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.publication-body p {
  font-family: "Castoro", serif;
  font-size: 1.08rem;
  line-height: 1.72;
  text-align: justify;
}

.paper-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(32, 33, 36, 0.05);
}

.paper-card p {
  min-height: 7.8rem;
  color: #45484d;
  line-height: 1.62;
}

.card-figure {
  margin-top: auto;
  padding: 0.7rem;
  background: #fafafa;
  border-radius: 12px;
}

.card-figure img {
  aspect-ratio: 1.95 / 1;
  object-fit: contain;
}

.result-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(145deg, var(--violet-soft), var(--green-soft));
  border: 1px solid rgba(115, 87, 199, 0.16);
  border-radius: 15px;
}

.metric {
  color: var(--violet);
  font-family: "Google Sans", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.metric-label {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.result-grid .column {
  display: flex;
}

.result-figure {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(32, 33, 36, 0.05);
}

.result-figure img {
  aspect-ratio: 1.9 / 1;
  object-fit: contain;
}

pre {
  padding: 1.25rem !important;
  overflow-x: auto;
  background: #fff !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(32, 33, 36, 0.04);
}

pre code {
  color: #333 !important;
  font-size: 0.9rem;
}

.footer {
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer p + p {
  margin-top: 0.35rem;
}

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

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

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

  .teaser .hero-body {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .teaser-figure {
    padding: 0.65rem;
    border-radius: 13px;
  }

  .compact-section {
    padding: 2.4rem 1rem;
  }

  .publication-body p {
    font-size: 1rem;
    text-align: left;
  }

  .paper-card p {
    min-height: 0;
  }

  .result-highlights {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .result-chip {
    min-height: 92px;
  }

  .metric {
    font-size: 1.5rem;
  }

  pre code {
    font-size: 0.74rem;
  }
}

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

