
/* Sidebar (TOC) */
.sidebar-fixed {
  position: fixed;
  top: 20vh;
  left: 3vh;
  /* height: auto; */
  max-height: 60vh;
  overflow-y: scroll;
  z-index: 10;
  font-family: var(--font-heading);
}

/* TOC Styling */
#toc {
  padding: 1rem !important;
}

#toc ul {
  list-style: none !important;
  padding-left: 0 !important;
}

#toc ul ul {
  margin-top: 0.5rem !important;
}

#toc > ul > li > a {
  /* color: hsl(var(--bc) / 0.85) !important; */
  font-weight: 500 !important;
  font-size: 1.1rem !important;
}



/* #toc > ul > ul {
  padding-left: 0rem !important;
  margin-top: 0.75rem !important;
} */

#toc ul ul ul {
  padding-left: 0rem !important;
}

#toc li {
  margin-bottom: 0.rem !important;
}



#toc a:hover {
  color: hsl(var(--bc) / 1) !important;
  padding-left: 0.25rem !important;
}


/* Second level links */
#toc > ul > li > ul > li  {
  padding-left: 0rem !important;
  margin-bottom: 0.25rem !important;
}


#toc > ul > li > ul > li > a {
  color: hsl(var(--bc) / 0.7) !important;
  text-decoration: none !important;
  /* font-size: 1rem !important; */
  line-height: 1.25rem !important;
  display: block !important;
  /* padding: 0.25rem 0 !important; */
  transition: color 0.2s ease, padding-left 0.2s ease !important;
  
}



/* Second level links */
#toc > ul > li > ul > li > a {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
}


/* Third level links - smaller and lighter */
#toc > ul > li > ul > li > ul > li {
  padding-left: 0.5rem !important;
  margin-bottom: 0rem !important;
}

/* Third level links - smaller and lighter */
#toc > ul > li > ul > li > ul > li > a {
  font-size: 0.8125rem !important;
  color: hsl(var(--bc) / 0.6) !important;
}

/* Active section highlighting (optional) */
#toc a.active {
  color: hsl(var(--p)) !important;
  font-weight: 600 !important;
}

/* Visual indicators for nested levels */
#toc ul ul li {
  position: relative !important;
}

/* #toc ul ul li::before {
  content: "–" !important;
  position: absolute !important;
  left: -0.25rem !important;
  color: hsl(var(--bc) / 0.3) !important;
} */