/* ===========================================
   Navigation layout: main nav left, TOC right
   =========================================== */

/* Make the navigation labels more readable */
.md-nav--primary .md-nav__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--md-primary-fg-color);
}

.md-nav--primary .md-nav__item--active > .md-nav__link {
  font-weight: 700;
  border-left: 3px solid var(--md-primary-fg-color);
  padding-left: 0.6rem;
}

.md-nav--primary .md-nav__link {
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.3rem 0.6rem;
  border-radius: 0.2rem;
  transition: background-color 0.15s ease;
}

.md-nav--primary .md-nav__link:hover {
  background-color: var(--md-default-fg-color--lighter);
}

/* Move the TOC (table of contents) sidebar to the right */
@media screen and (min-width: 76.25em) {
  .md-sidebar--secondary {
    order: 2;
    right: 0;
    left: auto;
  }
}

/* Dark theme adjustments */
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__link:hover {
  background-color: rgba(255, 255, 255, 0.05);
}