:root {
  --accent: hsl(121, 100%, 36%);
  --accent-dark: hsl(121, 74%, 29%);
  --ink: hsl(0, 0%, 16%);
  --muted: #5c6268;
  --paper: #ffffff;
  --soft: #f5f7f6;
  --line: #e2e7e4;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.publication-title {
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-left: auto;
  margin-right: auto;
  max-width: 1050px;
}

.publication-venue {
  color: firebrick;
  margin-bottom: 1rem !important;
}

.publication-authors,
.publication-affiliation {
  line-height: 1.65;
}

.publication-authors a {
  color: var(--accent-dark) !important;
}

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

.author-block {
  display: inline-block;
}

.publication-affiliation {
  color: var(--muted);
  margin-top: 0.25rem;
}

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

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

.coming-soon {
  cursor: default;
  margin: 5px 3px;
  opacity: 0.82;
  pointer-events: none;
}

.teaser .hero-body {
  padding-bottom: 3.5rem;
  padding-top: 1rem;
}

.teaser-figure {
  margin: 0 auto 2rem;
  max-width: 760px;
}

.teaser-figure img {
  display: block;
  margin: 0 auto;
  width: 100%;
}

.teaser .subtitle {
  line-height: 1.45;
  margin: 0 auto;
  max-width: 850px;
}

.teaser strong,
.accent {
  color: var(--accent-dark);
}

.abstract-section {
  border-top: 1px solid var(--line);
}

.content.has-text-justified p {
  line-height: 1.75;
}

.paper-figure {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.paper-figure img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.paper-figure figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 1rem auto 0;
  max-width: 900px;
}

.framework-figure {
  margin-top: 2.5rem;
  max-width: 820px;
}

.compact-figure {
  max-width: 660px;
}

.wide-figure {
  max-width: 1200px;
}

.takeaway-strip .hero-body {
  padding-bottom: 2.4rem;
  padding-top: 2.6rem;
}

.takeaway-strip .title {
  margin-bottom: 0.8rem !important;
}

.takeaway-strip .subtitle {
  margin: 0 auto;
  max-width: 800px;
}

.method-copy p {
  line-height: 1.7;
}

.equation-card {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: #262b28;
  font-family: 'Castoro', serif;
  font-size: 1.4rem;
  margin-top: 1.75rem;
  overflow-x: auto;
  padding: 1.25rem 1.5rem;
  white-space: nowrap;
}

.results-section {
  border-top: 1px solid var(--line);
}

.result-cards {
  margin-top: 2.25rem;
}

.result-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 100%;
  padding: 1.4rem;
  text-align: center;
}

.result-value {
  color: var(--accent-dark);
  font-family: 'Google Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.result-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.video-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 35, 27, 0.07);
  height: 100%;
  overflow: hidden;
}

.video-stack {
  display: grid;
  gap: 3rem;
}

.video-card video {
  background: #111820;
  display: block;
  width: 100%;
}

.video-caption {
  padding: 1.15rem 1.25rem 1.3rem;
}

.video-caption .title {
  margin-bottom: 0.4rem !important;
}

.video-caption p {
  color: var(--muted);
}

.bibtex-section pre {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  padding: 1.25rem 1.5rem;
}

.footer {
  padding-bottom: 3rem;
  padding-top: 3rem;
}

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

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

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

  .section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

  .equation-card {
    font-size: 1.1rem;
  }
}
