/* Reduce spacing between multiple toctrees inside the same container */
div.tight-toc > .toctree-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

div.tight-toc > .toctree-wrapper + .toctree-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Make Sphinx rubric look like an H2 header in the Sphinx Book Theme */

p.rubric {
    font-size: 215% !important;   /* match H2 size */
    font-weight: 500 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    border: none !important;

    text-transform: none !important;
    color: inherit !important;    /* use theme text colour */
    font-family: inherit !important; /* use theme default font */
}

p.rubric > .h3 {
    font-size: 120% !important;   /* slightly smaller for subheadings */
    font-weight: 400 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: none !important;

    text-transform: none !important;
    color: inherit !important;
    font-family: inherit !important;
}

.content-icon-container .github-this-page svg {
    color: inherit;
    height: 1.25rem;
    width: 1.25rem;
}
