/* Furo theme logo sizing */
.sidebar-logo,
.sidebar-logo-container,
.sidebar-brand-text {
    max-height: 36px !important;
}

.sidebar-logo img,
.sidebar-brand img,
.sidebar-logo-container img,
img.logo,
a.sidebar-brand img,
.sidebar-container img,
nav.sidebar-drawer img,
aside.sidebar-drawer img {
    max-height: 28px !important;
    height: 28px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Logo wrapper - left justified with compact spacing */
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0.5rem;
    padding: 0.25rem 0;
    margin-bottom: 0.25rem;
    text-align: left !important;
}

/* Ensure SVG logos are constrained */
.sidebar-logo svg,
.sidebar-brand svg,
img[src$=".svg"] {
    max-height: 28px !important;
    height: 28px !important;
    width: auto !important;
}

/* Search bar - compact spacing */
.sidebar-search-container,
.sidebar-search {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

/* Sidebar tree - compact spacing */
.sidebar-tree {
    margin-top: 0.25rem !important;
}

/* Left-align sidebar text */
.sidebar-tree,
.sidebar-tree .toctree-l1,
.sidebar-tree .toctree-l2,
.sidebar-tree a,
.sidebar-brand-text {
    text-align: left !important;
}

/* Mobile sidebar logo */
.mobile-header img,
.nav-overlay-icon img {
    max-height: 24px !important;
    height: 24px !important;
}

/* Other styles */
.highlight {
    border-radius: 0.25rem;
    margin: 1rem 0;
}

code {
    background-color: var(--color-background-secondary);
    padding: 0.1em 0.3em;
    border-radius: 0.2rem;
}
