/* global slide text size */
.reveal .slides section {
  font-size: 0.9em;   /* reduce to 0.9 of normal; change to 0.8 / 0.75 as needed */
  /* line-height: 1.15;  optional: tighten lines */
}


section#TOC nav[role="doc-toc"] {
  font-size: 0.7em;   /* adjust as needed */
  list-style: none;
}


/* make headings smaller too */
.reveal h1 { font-size: 2.0em; }
.reveal h2 { font-size: 1.4em; }
.reveal h3 { font-size: 1.0em; }

/* Reset section counter at the start */
.reveal .slides {
  counter-reset: section 0;  /* ensures first section is 1 */
}

/* Top-level headings (## in QMD)
.reveal h2::before {
  counter-increment: section;
  content: counter(section) ". ";
}

/* Optional: also number h3, h4 if you want nested levels
.reveal h3::before {
  counter-increment: subsection;
  content: counter(section) "." counter(subsection) ". ";
} */