/* ---- Sticky treeview WITHOUT breaking the top menu ---- */

:root { --doxygen-top: 112px; }

#top {
  position: static;
  z-index: 1000;
}

/* Sidebar fixed below the header area */
#side-nav {
  position: fixed;
  top: var(--doxygen-top);
  height: calc(100vh - var(--doxygen-top));
  overflow-y: auto;
  z-index: 10;
}

/* Splitter aligned */
#splitbar {
  position: fixed;
  top: var(--doxygen-top);
  height: calc(100vh - var(--doxygen-top));
}

/* Content offset */
#doc-content {
  margin-left: 300px; /* match TREEVIEW_WIDTH */
}


.tree-top-link {
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tree-top-link a {
  text-decoration: none;
  opacity: 0.85;
}

.tree-top-link a:hover {
  opacity: 1.0;
}

/* Optional nice touch */
html { scroll-behavior: smooth; }