/**
Terribly ugly overrides full of !important because the html generated by Sphinx
(or the theme?) is garbage.
*/

body {
    font-size: medium;
    line-height: 1.6;
}

p {
    margin-bottom: 0.5em;
}

p.caption {
    margin: 2rem 0 1rem;
    font-size: 2em;
}

.footer {
    padding-bottom: 3.5em;
}

.toctree-wrapper li {
    margin: 0;
}

ul, ol {
    padding-left: 2em;
}

.simple li {
    margin-bottom: 0.5em;
}

li.nav-item {
    line-height: 1.3;
    margin: .2em 0 .2em -1px;
}

div.navbar_extra_footer {
    display: none;
}

#overview table:first-of-type {
    margin: 1.5em 0;
}

.table tr:last-child {
    border-bottom: 1px solid #dee2e6;
}

dl.py.data {
    padding-bottom: 0;
    /* border-bottom: 1px solid #dee2e6; */
    margin: 0 !important;
}

dl.py.class, dl.py.function {
    padding-top: 2em;
    margin: 0 !important;
    border-top: 1px solid #dee2e6 !important;
}

dl:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

dl.field-list dt {
    font-size: 15px !important;
    background: transparent !important;
    color: #0071bc !important;   /* 0071bc */
    border: 0 !important;
    margin: 0 !important;
}

dl.field-list ul {
    padding-left: 1em !important;
}

dl.field-list ul li {
    margin-bottom: .5em;
}

td > p, th > p {
    margin: 0;
}

div.versionadded, div.versionchanged {
    font-style: italic;
}

span.versionmodified {
    font-weight: bold;
}

#version-warning-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    max-width: 100%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0.5em 1em;
    margin: 0;
    border-radius: 10px;
    background: #d40 repeating-linear-gradient(
        135deg, transparent, transparent 56px, rgba(255, 255, 255, 0.2) 56px,
        rgba(255, 255, 255, 0.2) 112px );
    color: white;
    text-align: center;
}

#version-warning-banner a {
    color: white !important;
    font-weight: bold;
    text-decoration: underline;
}
