/* ================================================================
   Minimal sidebar refinements
   ================================================================ */


/* Headings: proportional sans, body remains mono */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: "Roboto", sans-serif;
}


/* Slightly reduce H1-to-body gap */
.md-typeset h1 {
  margin-bottom: 0.65em;
}


/* Reduce vertical space above H2 headings */
.md-typeset h2 {
  margin-top: 0.8em;
}


/* Right Contents heading: clearer label */
[data-md-color-scheme="dos-dark"] .md-sidebar--secondary .md-nav__title,
[data-md-color-scheme="dos-light"] .md-sidebar--secondary .md-nav__title {
  font-weight: 700 !important;
}


/* Left navigation panel only */
.md-sidebar--primary .md-sidebar__inner {
  background: var(--borland-surface-panel);
  border-radius: 4px;
  padding: .35rem .45rem .45rem;
  box-sizing: border-box;
}


/* Remove the left panel when there are no actual navigation links */
.md-sidebar--primary .md-sidebar__inner:not(:has(.md-nav__link)) {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}


/* Keep active item as text-only, not a second blue box */
.md-sidebar--primary .md-nav__link--active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--md-accent-fg-color) !important;
  font-weight: 700;
}

.md-sidebar--primary .md-nav__item--active > .md-nav__link {
  background: transparent !important;
  box-shadow: none !important;
}


/* Disable Material elevation shadows */
:root {
  --md-shadow-z1: none;
  --md-shadow-z2: none;
  --md-shadow-z3: none;
}


/* Flatten primary tab bar divider lines */
.md-tabs {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
