/* Hide redundant module/package labels */
.classifier {
    display: none !important;
}

/* Hide the module indicators in headings */
.rst-content dl:not(.docutils) dt .headerlink + em {
    display: none;
}

/* Clean up function signatures */
dl.py.function,
dl.py.class,
dl.py.method {
    margin-bottom: 1.5rem;
}

/* Make method names stand out */
.sig-name {
    font-weight: bold;
}

/* Hide redundant module text */
.rst-content dl:not(.docutils) dt em.property + code.descname::before {
    content: "" !important;
}

/* Remove extra spacing and borders */
.rst-content dl:not(.docutils) dt {
    border-top: none;
    padding-top: 6px;
}

/* NEW: Hide "Subpackages", "Submodules", "Module contents" headings */
.rubric {
    display: none !important;
}

/* NEW: Hide "package" text in list items */
li a:contains("package"),
li a:contains("module") {
    content: attr(href);
}

/* NEW: Make module lists more compact */
.toctree-wrapper ul {
    list-style-type: none !important;
    margin-left: 1em !important;
}

/* NEW: Reduce spacing between list items */
.toctree-wrapper li {
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

/* NEW: Hide full module paths, show only the last part */
.toctree-l3 a,
.toctree-l4 a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NEW: Hide redundant module prefixes in code signatures */
.sig-prename {
    display: none !important;
}

/* NEW: Remove extra indentation in nested lists */
.wy-menu-vertical li.toctree-l2,
.wy-menu-vertical li.toctree-l3,
.wy-menu-vertical li.toctree-l4 {
    font-size: 0.95em !important;
    padding-left: 0.5em !important;
}

/* NEW: Hide Module/Package Contents sections */
div[id$="module-contents"],
div[id$="package-contents"] {
    display: none !important;
}
