/* === Linker sidebar: secties altijd open, niet inklapbaar === */

/* Verberg het inklappijltje (label toggle) op top-level secties */
.md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav__toggle ~ .md-nav__link::after {
  display: none !important;
}

/* Verberg de checkbox toggle */
.md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav__toggle {
  display: none !important;
}

/* Forceer subsecties altijd zichtbaar, ongeacht checkbox state */
.md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav {
  display: block !important;
  overflow: visible !important;
  opacity: 1 !important;
  max-height: none !important;
}

/* Extra ruimte tussen hoofdsecties */
.md-nav--primary > .md-nav__list > .md-nav__item--section {
  margin-bottom: 0.8rem;
}

/* === Afbeeldingen in content: begrensd tot kolombreedte === */
.md-content img {
  max-width: 100%;
  height: auto;
}

/* === Glightbox: afbeeldingen weergeven op 90% van de schermgrootte bij klik === */
.glightbox-container .gslide-image img {
  max-width: 90vw !important;
  max-height: 90vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
.glightbox-container .gslide-media {
  max-width: 90vw !important;
  overflow: visible !important;
}

/* === Mermaid-diagrammen: klik-om-te-vergroten overlay === */
.mermaid svg {
  cursor: pointer;
}

.mermaid-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  padding: 2rem;
}

.mermaid-overlay svg {
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
