/* Compact sidebar tree styling for nested navigation groups */
.md-sidebar--primary .md-nav[data-md-level="2"],
.md-sidebar--primary .md-nav[data-md-level="3"],
.md-sidebar--primary .md-nav[data-md-level="4"] {
  margin-left: 0.1rem;
  padding-left: 0.4rem;
  border-left: 1px solid var(--md-default-fg-color--lightest);
}

.md-sidebar--primary .md-nav__item .md-nav__link {
  border-radius: 0.35rem;
  padding-top: 0.12rem;
  padding-bottom: 0.12rem;
}

/* Remove custom connector dashes to avoid visual artifacts */
.md-sidebar--primary .md-nav__item .md-nav__item .md-nav__link::before {
  content: none;
}

/* Click-to-inspect images */
.md-content__inner img.nm-inspectable-image {
  cursor: zoom-in;
}

.md-content__inner img.nm-inspectable-image:hover {
  filter: brightness(1.03);
}

.nm-image-inspector {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 10, 20, 0.88);
}

.nm-image-inspector.is-open {
  display: flex;
}

.nm-image-inspector__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 96vw;
  max-height: 94vh;
}

.nm-image-inspector__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 88vh;
  border-radius: 0.2rem;
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.55);
}

.nm-image-inspector__caption {
  margin: 0;
  color: var(--md-default-bg-color);
  font-size: 0.68rem;
  opacity: 0.92;
  text-align: center;
}

.nm-image-inspector__close {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.nm-image-inspector__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

body.nm-image-inspector-open {
  overflow: hidden;
}

/* Config path level coloring for docs tables */
.md-typeset .nm-cfg-l1 {
  color: #4fc3f7;
  font-weight: 700;
}

.md-typeset .nm-cfg-l2 {
  color: #ffd166;
  font-weight: 700;
}

.md-typeset .nm-cfg-l3 {
  color: #95d5b2;
  font-weight: 700;
}

.md-typeset .nm-cfg-l4 {
  color: #f7a072;
  font-weight: 700;
}
