:root {
  --brand: #233f7a;
  --brand-soft: #eef2fa;
  --ours: #fff6e0;
  --muted: #5a6270;
  --rule: #e3e6ec;
}

body { font-family: 'Noto Sans', sans-serif; color: #2b2f36; }

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

.brand { color: var(--brand); font-weight: 700; }

/* ---------- header ---------- */
.publication-title { font-size: 2.6rem !important; line-height: 1.2; margin-bottom: 1.4rem !important; }
.publication-authors { font-family: 'Google Sans', sans-serif; }
.publication-authors a { color: hsl(204, 86%, 45%) !important; }
.publication-authors a:hover { text-decoration: underline; }
.author-block { display: inline-block; margin: 0 0.15rem; }
.publication-venue { font-family: 'Google Sans', sans-serif; color: var(--brand); font-weight: 600; margin-top: 0.5rem; }
.publication-links { margin-top: 1.1rem; }
.link-block { display: inline-block; margin: 0.2rem 0.15rem; }
.link-block .button { font-family: 'Google Sans', sans-serif; }

/* ---------- teaser ---------- */
.teaser .hero-body { padding-top: 0; padding-bottom: 2.5rem; }
.teaser-figure { max-width: 476px; margin: 0 auto; }
.teaser-figure img { width: 100%; display: block; }.teaser-caption { font-size: 1.05rem !important; margin-top: 1rem; color: var(--muted); line-height: 1.55; max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---------- sections ---------- */
.section-alt { background: #f7f8fb; }
.content.has-text-justified p { line-height: 1.7; }
.figure img { width: 100%; border-radius: 6px; background: #fff; }
.caption { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

.contrib-grid { margin-top: 1.5rem; margin-bottom: 2.5rem; }
.contrib-card {
  height: 100%; background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  padding: 1.25rem 1.25rem 1.1rem; position: relative;
}
.contrib-card .title { margin-bottom: 0.6rem; color: var(--brand); }
.contrib-card p { font-size: 0.92rem; line-height: 1.6; color: #3a404a; }
.contrib-card .formula {
  font-family: 'Castoro', Georgia, serif; font-style: italic; font-size: 1.05rem; text-align: center;
  background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 0.35rem 0.5rem; margin: 0.5rem 0;
  white-space: nowrap;
}
.contrib-card .formula sub { font-size: 0.7em; }
.contrib-card code { font-size: 0.82rem; background: var(--brand-soft); color: var(--brand); }
.contrib-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.6rem;
}

.framed-video { width: 100%; display: block; border-radius: 6px; background: #000; }

/* ---------- results ---------- */
.results-intro { max-width: 820px; margin: 0 auto 1.5rem; color: var(--muted); }
.results-sub { margin-top: 2.5rem; margin-bottom: 0.4rem !important; }
.sub-desc { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.results-carousel { position: relative; padding: 0 3rem; }
.results-carousel .slider { overflow: hidden; }
.results-carousel > .slider-navigation-previous,
.results-carousel > .slider-navigation-next {
  position: absolute; top: 0; bottom: 0.3rem; margin: auto 0; transform: none;
}
.results-carousel > .slider-navigation-previous { left: 0.25rem; }
.results-carousel > .slider-navigation-next { right: 0.25rem; }
.results-carousel .item { margin: 0 0.25rem; }
.results-carousel video { width: 100%; display: block; border-radius: 4px; background: #000; }
.slider-pagination { padding-top: 0.75rem; }
.slider-pagination .slider-page { background: #c5cad3; }
.slider-pagination .slider-page.is-active { background: var(--brand); }
.slider-navigation-previous, .slider-navigation-next { box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.full-grid-link { margin-top: 0.8rem; font-size: 0.95rem; }

/* ---------- tables ---------- */
.table-container { margin: 1rem auto 1.5rem; max-width: 1150px; }
.results-table { width: 100%; font-size: 0.86rem; background: transparent; }
.results-table th, .results-table td { text-align: center !important; white-space: nowrap; vertical-align: middle; }
.results-table td:first-child, .results-table th:first-child { text-align: left !important; }
.results-table .group-row th { border-bottom: 1px solid #b9bfca; font-weight: 600; color: var(--brand); }
.results-table .group-start { border-left: 1px solid var(--rule); }
.results-table tr.is-ours td { background: var(--ours); }

.stat-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.stat {
  flex: 1 1 200px; max-width: 260px; text-align: center; padding: 1rem;
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
}
.stat-value { display: block; font-family: 'Google Sans', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--brand); }
.stat-label { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.4; margin-top: 0.2rem; }
.findings li { margin-bottom: 0.4rem; }

/* ---------- bibtex ---------- */
.bibtex-wrap { position: relative; }
.bibtex-wrap pre { font-size: 0.85rem; padding-right: 5.5rem; }
.copy-btn { position: absolute; top: 0.6rem; right: 0.6rem; }

.footer { padding: 2.5rem 1.5rem 3rem; }
.footer .icon-link { font-size: 1.6rem; color: #4a4a4a; margin: 0 0.4rem; }

/* ---------- small screens ---------- */
@media screen and (max-width: 768px) {
  .publication-title { font-size: 1.7rem !important; }
  .hero-body { padding-left: 1rem; padding-right: 1rem; }
  .section { padding-left: 1rem; padding-right: 1rem; }
  .stat-row { gap: 0.6rem; }
  .results-carousel { padding: 0 2.1rem; }
  .results-carousel > .slider-navigation-previous,
  .results-carousel > .slider-navigation-next { width: 1.8rem; height: 1.8rem; min-width: 1.8rem; }
  .results-carousel > .slider-navigation-previous { left: 0; }
  .results-carousel > .slider-navigation-next { right: 0; }
  .results-carousel .slider-navigation-previous svg,
  .results-carousel .slider-navigation-next svg { width: 40%; }
}
