/* ── Color palette (poster-matched) ──────────────────────────
   --green-dark  : #2e5c28   (section title text, navbar brand)
   --green-mid   : #4a7a3d   (primary accent: badges, borders, buttons)
   --green-hover : #3a6230   (hover state)
   --green-light : #edf4ea   (panel backgrounds, stat boxes)
   --green-xlight: #f4f9f2   (alternate section bg)
   --ivory       : #f3ede1   (hero, teaser background)
   --border      : #c8d9c2   (dividers, card borders)
──────────────────────────────────────────────────────────── */

body {
  font-family: 'Noto Sans', sans-serif;
  background: #fff;
}
.sc {
  font-variant: small-caps;
}
.title, .subtitle, h1, h2, h3 {
  font-family: 'Google Sans', sans-serif;
}

/* ── Navbar ── */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #c8d9c2;
}
.navbar-brand .navbar-item {
  font-weight: 700;
  font-family: 'Castoro', serif;
  font-size: 1.1rem;
  color: #2e5c28;
}
.navbar-item:hover {
  color: #4a7a3d !important;
}

/* ── Hero ── */
.hero.is-light {
  background: #f3ede1;
}
.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.2rem;
  line-height: 1.3;
  color: #1a1a1a;
}
.publication-authors {
  font-size: 1.1rem;
}
.author-block {
  display: inline-block;
  margin: 0 4px;
}
.publication-links .button {
  border-radius: 20px;
  font-size: 0.9rem;
  padding: 0 18px;
}
.publication-links .button.is-dark {
  background: #2e5c28;
}
.publication-links .button.is-dark:hover {
  background: #3a6230;
}
.eql-note {
  font-size: 0.82rem;
  color: #888;
  margin-top: 4px;
}

/* ── Teaser ── */
#teaser {
  padding: 2rem 0;
  background: #f3ede1;
}
.teaser-figure {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.teaser-figure img {
  width: 100%;
  background: #fff;
  padding: 0.8rem;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.teaser-caption {
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.8rem;
  text-align: left;
}

/* ── Benchmark side-by-side figures ── */
.benchmark-figures {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.benchmark-fig-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.benchmark-fig-col img {
  width: 100%;
  display: block;
  margin: auto 0;
  background: #fff;
  padding: 0.7rem;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
@media (max-width: 900px) {
  .benchmark-figures {
    flex-direction: column;
  }
}

/* ── TCDS two-column layout ── */
.tcds-layout {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.tcds-layout img {
  flex: 1 1 60%;
  min-width: 0;
  background: #fff;
  padding: 0.7rem;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.tcds-formula {
  flex: 0 0 36%;
  text-align: center;
}
.tcds-formula-label {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #2e5c28;
  margin-bottom: 0.6rem;
}
.tcds-formula-note {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.8rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .tcds-layout {
    flex-direction: column;
  }
  .tcds-formula {
    flex: unset;
    width: 100%;
  }
}

/* ── Narrative blocks (image + story) ── */
.narrative-block {
  max-width: 860px;
  margin: 0 auto;
}
.narrative-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e5c28;
  margin-bottom: 0.7rem;
}
.narrative-text {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.narrative-block img {
  width: 100%;
  display: block;
  background: #fff;
  padding: 0.7rem;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* ── Abstract ── */
#abstract {
  padding: 3rem 0;
  background: #fff;
}
.abstract-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  max-width: 820px;
  margin: 0 auto;
}

/* ── Section headers ── */
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #2e5c28;
}
.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}
hr.divider {
  border: none;
  border-top: 2px solid #4a7a3d;
  max-width: 60px;
  margin: 0.6rem auto 2rem;
}

/* ── Findings cards ── */
#findings {
  background: #f4f9f2;
  padding: 3rem 0;
}
.finding-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.6rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(46,92,40,0.08);
  border: 1px solid #c8d9c2;
  transition: transform 0.2s, box-shadow 0.2s;
}
.finding-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46,92,40,0.15);
}
.finding-number {
  display: inline-block;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #4a7a3d;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  line-height: 32px;
  margin-bottom: 0.8rem;
}
.finding-card h4 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2e5c28;
  margin-bottom: 0.5rem;
}
.finding-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

/* ── Benchmark ── */
#benchmark {
  background: #fff;
  padding: 3rem 0;
}
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-box {
  text-align: center;
  background: #edf4ea;
  border-radius: 10px;
  padding: 1.2rem 2rem;
  min-width: 140px;
  border: 1px solid #c8d9c2;
}
.stat-box .stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2e5c28;
  font-family: 'Google Sans', sans-serif;
  line-height: 1;
}
.stat-box .stat-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}

/* ── Results ── */
#results {
  background: #f4f9f2;
  padding: 3rem 0;
}

/* ── Recipe ── */
#recipe {
  background: #f4f9f2;
  padding: 3rem 0;
}
.recipe-box {
  background: #fff;
  border: 2px solid #4a7a3d;
  border-radius: 12px;
  padding: 2rem 2.4rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 18px rgba(46,92,40,0.1);
}
.recipe-box h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2e5c28;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.recipe-badge {
  display: inline-block;
  background: #4a7a3d;
  color: #fff;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 4px;
}
.recipe-plus {
  font-size: 1.3rem;
  font-weight: 700;
  color: #aaa;
  margin: 0 4px;
}
.postprocess-tags {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
}
.tag-inline {
  display: inline-block;
  border: 1px solid #4a7a3d;
  color: #4a7a3d;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.82rem;
  margin: 3px;
}
.results-table {
  font-size: 0.88rem;
}
.results-table th {
  background: #edf4ea;
  color: #2e5c28;
  font-family: 'Google Sans', sans-serif;
}
.results-table td.blue { color: #2e7d32; font-weight: 600; }
.results-table td.red  { color: #c62828; font-weight: 600; }

/* ── Open Questions ── */
#openq {
  background: #fff;
  padding: 3rem 0;
}
.question-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.question-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #edf4ea;
  color: #4a7a3d;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.question-item h5 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2e5c28;
  margin-bottom: 0.2rem;
}
.question-item p {
  font-size: 0.87rem;
  color: #555;
  line-height: 1.6;
}

/* ── BibTeX ── */
#bibtex {
  background: #f4f9f2;
  padding: 3rem 0;
}
.bibtex-container {
  background: #1a2b18;
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.bibtex-container pre {
  color: #c8e6c4;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  margin: 0;
}
.copy-btn {
  position: absolute;
  top: 10px; right: 12px;
  background: #4a7a3d;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 0.78rem;
  cursor: pointer;
}
.copy-btn:hover { background: #3a6230; }

/* ── Footer ── */
footer.footer {
  background: #2e5c28;
  border-top: none;
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: #c8ddc5;
}
footer a { color: #a8d5a0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .publication-title { font-size: 1.5rem; }
  .stats-row { gap: 1rem; }
}
