/* Custom CSS for EF5 Documentation - Section Numbering */

/* Reset counter for the sidebar */
.wy-nav-side .wy-menu-vertical {
  counter-reset: section-counter;
}

/* Number only the main sections in the sidebar navigation */
.wy-nav-side .wy-menu-vertical > li.toctree-l1 {
  counter-increment: section-counter;
}

.wy-nav-side .wy-menu-vertical > li.toctree-l1 > a::before {
  content: counter(section-counter) ". ";
  font-weight: bold;
  color: #fffcfb;
  margin-right: 0.5em;
}

/* Style section numbers in the main content */
.section-number {
  font-weight: bold;
  color: #003285;
  margin-right: 0.5em;
}

/* Make section headers more prominent */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #003285;
}

/* Style the main navigation */
.wy-nav-side .wy-menu-vertical li a {
  font-weight: 500;
}

/* Alternative approach using CSS counters for table of contents */
.toctree-wrapper {
  counter-reset: toc-counter;
}

.toctree-wrapper .toctree-l1 {
  counter-increment: toc-counter;
}

.toctree-wrapper .toctree-l1 > a::before {
  content: counter(toc-counter) ". ";
  font-weight: bold;
  color: #fffcfb;
  margin-right: 0.5em;
}
