.layout .sidebar {
width: 250px;
background-color: var(--bg-body);
border-right: 1px solid var(--accent-primary);
padding: 1em;
font-size: 0.95rem;
font-family: Arial, sans-serif;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
position: relative;
}
/* Reset list styles */
.layout .sidebar nav ul {
list-style: none;
padding-left: 0;
margin: 0;
}
/* Documentation path items */
.layout .docs-path-item {
margin-bottom: 1.5rem;
}
/* Path labels */
.layout .docs-path-label {
font-weight: 700;
font-size: 1.2rem;
color: var(--accent-primary);
margin-bottom: 1rem;
border-bottom: 2px solid var(--accent-primary);
padding-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 1px;
cursor: pointer;
display: block;
}
/* Module lists - creating the tree structure */
.layout .docs-module-list {
margin-top: 0.3rem;
padding-left: 1rem;
position: relative;
}
/* Tree connection lines */
.layout .docs-module-list::before {
content: '';
position: absolute;
left: 0.5rem;
top: 0;
bottom: 0.5rem;
width: 1px;
background-color: var(--accent-primary);
}
/* Module items */
.layout .docs-module-item {
position: relative;
margin-bottom: 0.2rem;
}
/* Tree branch lines */
.layout .docs-module-item::before {
content: '';
position: absolute;
left: -0.5rem;
top: 0.6rem;
width: 0.8rem;
height: 1px;
background-color: var(--accent-primary);
}
/* Last item - end the vertical line */
.layout .docs-module-item:last-child::after {
content: '';
position: absolute;
left: -0.5rem;
top: 0.6rem;
bottom: -1rem;
width: 1px;
background-color: var(--bg-body);
}
/* Module links - styled like post labels */
.layout .docs-module-item a {
color: var(--accent-primary);
text-decoration: none;
display: block;
padding: 0.2rem 0;
transition: color 0.2s ease-in-out;
font-weight: normal;
position: relative;
padding-left: 0.5rem;
}
.layout .docs-module-item a:hover {
color: var(--accent-blue);
text-decoration: underline;
}
.layout .docs-module-item.active a {
font-weight: 600;
color: var(--accent-blue);
}
/* Details/summary styling */
.layout .docs-path-item details > summary {
list-style: none;
}
.layout .docs-path-item details > summary::-webkit-details-marker {
display: none;
}
/* Responsive design */
@media (max-width: 900px) {
.layout .sidebar {
width: 100%;
}
}
@media (max-width: 768px) {
.layout .sidebar {
width: 100%;
}
}