/* Paper-specific additions on top of the template styles. */

.teaser-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: #fff;
}

/* Headline numbers */
.stat-section { padding: 1rem 1.5rem 2rem; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.stat {
  background: var(--background-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color, #2563eb);
  line-height: 1.15;
}
.stat-label {
  margin-top: .5rem;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--text-secondary, #64748b);
}
@media (max-width: 768px) {
  .stat-strip { grid-template-columns: 1fr; }
}

/* Results carousel */
.carousel-hint { color: var(--text-secondary, #64748b); margin-top: -.5rem; }
.results-section .hero-body { padding-top: 1rem; }
.results-carousel .item { padding: 0 3rem; }
.slide-figs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 1rem;
}
.slide-figs img {
  display: block;
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.slide-figs.two img { max-width: calc(50% - .5rem); }
@media (max-width: 768px) {
  .results-carousel .item { padding: 0 1.5rem; }
  .slide-figs.two { flex-direction: column; }
  .slide-figs.two img { max-width: 100%; }
}
.results-carousel .subtitle {
  margin-top: 1rem;
  font-size: 1.05rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.slides-link { margin-top: 1rem; }

/* Keep carousel pagination dots clear of captions */
.results-carousel .item { padding-bottom: 2.75rem; }
.publication-title { text-wrap: balance; }

/* Slides carousel */
.slides-carousel .item { padding-bottom: 2.75rem; }
.slide-img {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 900px;
  height: auto;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}

/* Setup tables */
.setup-section { padding-top: 3rem; }
.setup-lead { max-width: 46rem; margin: 0 auto 1.5rem; color: var(--text-secondary, #64748b); }
.setup-h { margin-top: 2rem !important; margin-bottom: .75rem !important; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; }
.setup-table { margin: 0; font-size: .92rem; background: transparent; }
.setup-table thead th { background: var(--background-accent, #f1f5f9); color: var(--text-primary, #1e293b); border-bottom: 1px solid var(--border-color, #e2e8f0); white-space: nowrap; }
.setup-table td, .setup-table th { vertical-align: top; }
.setup-table td.num, .setup-table th.num { text-align: right; white-space: nowrap; }
.setup-table td[rowspan] { border-right: 1px solid var(--border-color, #e2e8f0); }
.table-note { margin-top: .6rem; font-size: .85rem; color: var(--text-secondary, #64748b); }
