/* ---- Sidebar link base (remove underlines) ---- */
.wy-nav-side .wy-menu-vertical a {
  color:#e2e2e2;
  padding:4px 18px;
  font-size:13.4px;
  line-height:1.4;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  position:relative;
  font-weight:400;
  text-decoration:none !important;
}

/* Target the correct toctree level classes for subheadings - make them black for readability */
.wy-nav-side .wy-menu-vertical li.toctree-l2 a,
.wy-nav-side .wy-menu-vertical li.toctree-l3 a,
.wy-nav-side .wy-menu-vertical li.toctree-l4 a {
  color:#000000 !important;
  font-weight:500 !important;
  text-decoration:none !important;
}

.wy-nav-side .wy-menu-vertical li.toctree-l2 a:hover,
.wy-nav-side .wy-menu-vertical li.toctree-l3 a:hover,
.wy-nav-side .wy-menu-vertical li.toctree-l4 a:hover {
  color:#333333 !important;
}

/* Remove underline on any "current" link states */
.wy-nav-side .wy-menu-vertical a.current,
.wy-nav-side .wy-menu-vertical li.current > a {
  text-decoration:none !important;
  border:0 !important;
}

/* Ensure deeper nesting levels are also black and readable */
.wy-nav-side .wy-menu-vertical li.toctree-l5 a,
.wy-nav-side .wy-menu-vertical li.toctree-l6 a {
  color:#000000 !important;
  font-weight:400 !important;
}

/* ---- Layout: Fix gap between sidebar and content ---- */

/* Keep sidebar at default 300px width to match theme expectations */
.wy-nav-side {
  width:300px !important;
  background:#343131 !important;
  color:#9b9b9b !important;
}

/* Content wrapper positioning - use theme default 300px margin */
.wy-nav-content-wrap {
  margin-left:300px !important;
  background:#fcfcfc !important;
  min-height:100% !important;
}

/* Content container - prevent overlap and expand width */
.wy-nav-content {
  padding:1.618em 2em !important;
  max-width:none !important;
  margin:0 !important;
}

/* On very wide screens allow full width */
@media (min-width:1600px){
  .wy-nav-content .rst-content,
  .rst-content .document,
  .wy-nav-content .rst-content > .document > div[itemprop="articleBody"] {
    max-width:none !important;
  }
}

/* Narrow screens: fall back to full width */
@media (max-width:1000px){
  .wy-nav-content-wrap { margin-left:0 !important; }
  .wy-nav-content {
    padding:1.2rem 1.2rem 3rem 0rem !important;
  }
  .wy-nav-content .rst-content,
  .rst-content .document,
  .wy-nav-content .rst-content > .document > div[itemprop="articleBody"] {
    width:100%;
    max-width:none;
  }
}

/* ---- Navigation toggle styling ---- */

/* Style the custom navigation toggles */
.nav-toggle {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: #666 !important;
  margin-right: 8px;
  user-select: none;
}

.nav-toggle:hover {
  color: #333 !important;
}

/* Hide toggle for current page items */
.wy-menu-vertical li.current > a .nav-toggle {
  display: none !important;
}