:root {
  --ink: #171b26;
  --muted: #5b6272;
  --line: #e3e6ec;
  --alt: #f6f7f9;
  --accent: #17795a;
  --accent-soft: #e8f4ee;
  --head: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: #fff; }
.content { color: var(--ink); font-size: 1.02rem; line-height: 1.75; }
a { color: var(--accent); }
a:hover { color: #0f5a42; }
.dnerf { font-variant: small-caps; font-weight: 600; }

/* hero */
.top-hero { background: linear-gradient(180deg, #f3f7f5 0%, #ffffff 100%); }
.top-hero .hero-body { padding-top: 4.5rem; padding-bottom: 2rem; }
.acronym {
  display: inline-block; font-family: var(--head); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.18em;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0.35rem 0.9rem; margin-bottom: 1.1rem;
}
.publication-title {
  font-family: var(--head); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15 !important;
  color: var(--ink); max-width: 22ch; margin-left: auto; margin-right: auto; text-wrap: balance;
}
.publication-authors { font-family: var(--head); font-weight: 500; margin-top: 1.4rem; }
.publication-authors .author-block { margin: 0 0.25rem; display: inline-block; }
.publication-authors a { color: var(--ink); border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.publication-authors a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.publication-authors sup, .publication-affiliations sup { color: var(--accent); font-weight: 700; font-size: 0.7em; margin-left: 1px; }
.publication-affiliations { color: var(--muted); margin-top: 0.4rem; font-family: var(--head); }
.publication-affiliations .author-block { margin: 0 0.35rem; display: inline-block; }
.publication-links { margin-top: 0.6rem; }
.publication-links .button {
  margin: 4px 3px; font-family: var(--head); font-weight: 600; background: var(--ink); border: 0;
  transition: transform .15s, background .15s; box-shadow: 0 2px 8px rgba(23, 27, 38, .15);
}
.publication-links .button:hover { background: var(--accent); transform: translateY(-1px); }

/* teaser */
.teaser .hero-body { padding-top: 0.5rem; padding-bottom: 3.5rem; }
.teaser-img { width: 100%; display: block; margin-bottom: 1.4rem; }
.teaser .subtitle { font-size: 1.08rem; line-height: 1.7; color: var(--muted); max-width: 52rem; margin: 0 auto; }
.teaser .subtitle b { color: var(--ink); font-weight: 600; }
  text-align: center; padding: 1.2rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; gap: 0.35rem;
}

/* sections */
.section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.section.alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-family: var(--head); font-weight: 800; letter-spacing: -0.01em; text-align: center; margin-bottom: 2rem !important;
}
.section-title::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--accent); margin: 0.75rem auto 0;
}
.title.is-4 { font-family: var(--head); font-weight: 700; color: var(--ink); }

/* figures */
.figure-img { width: 100%; display: block; }
.figure-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 4px 18px rgba(23, 27, 38, .06); }
.caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; line-height: 1.6; text-align: center; max-width: 50rem; margin-left: auto; margin-right: auto; }
.caption b { color: var(--ink); }

/* takeaways */
.takeaway-box { border: 1px solid #cfe5da; border-radius: 12px; padding: 1.3rem 1.6rem; background: var(--accent-soft); }
.takeaway-title { font-family: var(--head); font-weight: 800; color: var(--accent); margin-bottom: 0.5rem; }
.takeaway-box ol { margin-left: 1.2rem; line-height: 1.7; }
.takeaway-box li::marker { color: var(--accent); font-weight: 700; }

/* tables */
.table-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(23, 27, 38, .05); }
.results-table { font-size: 0.9rem; font-variant-numeric: tabular-nums; margin-bottom: 0 !important; background: transparent; }
.results-table td, .results-table th { text-align: center; white-space: nowrap; vertical-align: middle; border-color: var(--line); padding: 0.6em 0.9em; }
.results-table td:first-child, .results-table th:first-child { text-align: left; }
.results-table thead th { font-family: var(--head); font-weight: 700; font-size: 0.8rem; color: var(--muted); border-bottom-width: 1px; }
.results-table tr.group td { background: var(--alt); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.results-table tr.ours td { background: var(--accent-soft); }
.results-table tr.ours td:first-child { color: var(--accent); font-weight: 600; }
.results-table tbody tr:last-child td { border-bottom: 0; }
.gain { color: var(--accent); font-size: 0.75rem; font-weight: 700; }

/* interactive comparison */
.compare-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; box-shadow: 0 4px 18px rgba(23, 27, 38, .06); margin: 0 !important; }
.compare-stage { position: relative; aspect-ratio: 1; width: 100%; border-radius: 10px; overflow: hidden; background: #000; user-select: none; touch-action: none; cursor: ew-resize; }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.compare-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); display: grid; place-items: center; font-size: 15px; color: var(--ink); }
.compare-tag { position: absolute; top: 10px; font-family: var(--head); font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: rgba(15,18,26,.72); color: #fff; pointer-events: none; }
.compare-tag.left { left: 10px; } .compare-tag.right { right: 10px; background: var(--accent); }
.compare-slider { width: 100%; margin-top: 12px; accent-color: var(--accent); }
.heading { font-family: var(--head); font-weight: 700; color: var(--muted); letter-spacing: 0.1em; }

.thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumbs button:hover { opacity: 1; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }

.methods { display: grid; gap: 6px; }
.methods button { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-family: var(--head); font-weight: 500; font-size: 0.9rem; text-align: left; color: var(--ink); transition: border-color .15s, background .15s; }
.methods button:hover { border-color: #b9c9c1; }
.methods button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.methods .fs { font-variant-numeric: tabular-nums; color: var(--muted); }
.methods button.best .fs { color: var(--accent); font-weight: 700; }
.methods button.best .fs::before { content: "\2605  "; font-size: 0.75em; }

.context { display: flex; gap: 12px; align-items: center; }
.context img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.footer { background: var(--alt); padding: 2.5rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

@media (max-width: 768px) {
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .top-hero .hero-body { padding-top: 3rem; }
  .section { padding-top: 3rem; padding-bottom: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
