/* the badge itself */
html body details.rst-versions{
    position:inherit;
    display:inline-block;
    bottom:0;
    left:0;
    padding: 1em;
    font:600 .85rem/1.3 var(--font-stack, sans-serif);
    background-color: #09487e;
    z-index: 4000;
    color:#fff;
    border:none;
    border-radius: 0.5em;
    margin: 0.5em;
}

/* other versions line */
details.rst-versions > summary{
    display:flex; align-items:center; gap:.45rem;
    list-style:none; cursor:pointer; outline:none;
}

/* current version in green */
details.rst-versions > summary .current{
    margin-left:auto;
    color:#78e08f;
}
details.rst-versions > summary .caret::after{
    content:"▾";
    color:#fff;
}
details.rst-versions[open] > summary .caret::after{
    content:"▴";
}

/* dropdown panel */
.version-panel{
    position:inherit;
    margin-top: .7rem;
    width:90%;
    max-height:260px; overflow:auto;
    padding:.8rem 1rem .5rem 1rem;
    background:#202020;
    border-radius: 0.5em;
}

/* section headings */
.version-panel .heading{
    margin:.4rem 0 .25rem;
    font:700 .75rem/1 var(--font-stack, sans-serif);
    text-transform:uppercase;
    color:#a0a0a0;
}

/* lists and links */
.version-panel ul{
    list-style:none;
    margin:.25rem 0 .75rem;
    padding:0;
}
.version-panel li{
    margin:0;
}
.version-panel a{
    display:block;padding:.15rem 0;
    color:#fff;
    text-decoration:none;
}
.version-panel a:hover{
    color:#78e08f;
    text-decoration:underline;
}