/* Make the top-level sections of the sidebar (for example General, Platform, Consumers)
   stand out as headers, so readers can see the structure at a glance. */

/* Section headers */
.md-nav--primary .md-nav__item--section > .md-nav__link,
.md-sidebar--primary .md-nav__item--section > .md-nav__link {
  margin-top: 1.1rem;
  padding: 0.45rem 0.6rem;
  border-left: 4px solid var(--md-primary-fg-color);
  border-radius: 0 0.2rem 0.2rem 0;
  background: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
}

.md-nav--primary .md-nav__item--section:first-child > .md-nav__link,
.md-sidebar--primary .md-nav__item--section:first-child > .md-nav__link {
  margin-top: 0;
}

/* Space between a section header and its pages */
.md-nav--primary .md-nav__item--section > .md-nav {
  margin-top: 0.3rem;
}

/* Groups inside a section (for example Introduction, Architecture): clearly below a section header, above a page */
.md-nav--primary .md-nav__item--section .md-nav__item--nested > .md-nav__link {
  font-weight: 600;
}

/* Keep the header readable in the dark scheme */
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section > .md-nav__link,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item--section > .md-nav__link {
  background: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color);
}
