/* Match clickable section indexes with regular section headings in the
   expanded desktop navigation. */
@media screen and (min-width: 76.25em) {
  .md-nav--primary
    > .md-nav__list
    > .md-nav__item--section
    > .md-nav__container
    > .md-nav__link {
    color: var(--md-default-fg-color--light);
  }
}

/* On track pages, hierarchical tag listings generate parent headings such as
   "SI" and "SI/S1" that contain no unit themselves. Keep the hierarchy in the
   tags index, but hide those empty visual levels here. */
.md-content__inner:has(> h1.track-page)
  h3:has(+ ul > li[style*="list-style-type:none"]) {
  display: none;
}

/* Remove the indentation left by the hidden hierarchy levels. */
.md-content__inner:has(> h1.track-page)
  h3:has(+ ul > li[style*="list-style-type:none"]) + ul {
  margin: 0;
  padding-left: 0;
}

.md-content__inner:has(> h1.track-page)
  li[style*="list-style-type:none"] {
  margin: 0;
}
