/* Button styling (floating, bottom-left) */
.nav-toggle {
  position: fixed;
  left: 1rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  font-size: 20px;
  line-height: 44px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

/* Respect dark/light theme variables */
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle { transition: transform .2s ease; }
  .nav-toggle:active { transform: scale(0.95); }
}

/* When nav is hidden, collapse the left sidebar and reclaim space */
.nav-hidden {
  /* Material for MkDocs uses CSS vars for layout; set sidebar width to 0 */
  --md-sidebar-width: 0 !important;
}

/* Hide the primary (left) sidebar */
.nav-hidden .md-sidebar--primary {
  display: none !important;
}

/* Make the main content use full width */
.nav-hidden .md-main__inner {
  margin-left: 0 !important;
}

/* Optional: avoid header logo padding gap when nav is hidden */
.nav-hidden .md-header__button.md-logo {
  display: none !important;
}

/* Keep button visible above content footer */
.md-footer {
  z-index: 2;
}
