.rst-content .toctree-wrapper:not(:last-child) ul {
   margin-bottom: 0;
}

.rst-content .toctree-wrapper ul li a {
   margin-bottom: 0;
}

.rst-content .toctree-wrapper ul li ul {
   margin-top: 0;
}

.logo {
   vertical-align: middle;
   display: inline-block;
   margin-top: -0.24em;
   margin-bottom: -0.12em;
   height: 1.05em;
   width: 1.05em;
}

.gitlab-logo {
   height: 1.15em !important;
   width: 1.15em !important;
}

section h1 {
   margin-bottom: -.5em !important;
}

.sy-scrollbar .globaltoc ul {
   display: flex;
   flex-direction: column-reverse;
}

.invisible {
    display: none;
    visibility: hidden;
    pointer-events: none;
    animation: none;
    transition: none
}

ol.series-nav {
    list-style-type: decimal;
}

ol.series-nav li::marker {
    content: counter(list-item) ") ";
}

ul.series-nav > li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.series-nav > li > p {
   display: flex;
}

.series-nav-label {
   font-variant-numeric: tabular-nums;
}

.series-nav-max-1 .series-nav-label { min-width: 1.5ch !important; }
.series-nav-max-2 .series-nav-label { min-width: 2.5ch !important; }
.series-nav-max-3 .series-nav-label { min-width: 3.5ch !important; }
.series-nav-max-4 .series-nav-label { min-width: 4.5ch !important; }
.series-nav-max-5 .series-nav-label { min-width: 5.5ch !important; }
.series-nav-max-6 .series-nav-label { min-width: 6.5ch !important; }
.series-nav-max-7 .series-nav-label { min-width: 7.5ch !important; }
.series-nav-max-8 .series-nav-label { min-width: 8.5ch !important; }
