/* Reduce saturation of main text color */
body {
    color: #313131;
}

/* Increase space between footer and content */
div.body {
    margin-bottom: 30px;
}

/* Select different color for links */
a {
    color: #8ab9ce;
}
a:visited {
    color: #8ab9ce;
}

/* Remove underline from external links */
a.external {
    text-decoration: none;
}
a.external:hover {
    text-decoration: underline;
}

/* Increase visibility of anchor # links */
a.headerlink {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Reduce saturation of horizontal separation lines */
#topbar {
    border-bottom: none;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
}

/* Reduce saturation of code highlight background */
.highlight {
    background: #f6f8fa;
}


/***** SIDEBAR *****/

/* Hide vertical line below sidebar menu */
hr.docutils {
    visibility: hidden;
}

/* No background and right border */
div.sphinxsidebar {
    background-color: transparent;
    border-right: 1px solid #dadde1;
}

/* Highlight links in sidebar by a light box,
 * write them all in grey,
 * highlight selected and visible ones
 * by <a> color */
div.sphinxsidebar {
    font-weight: 500;
}
div.sphinxsidebar ul {
    margin-left: 0px;
}

div.sphinxsidebar a:not(.ethical-sidebar a):not(small a) {
    display: flex;
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
    transition: background 200ms cubic-bezier(0.08,0.52,0.52,1);
    line-height: 1.25;
    font-size: 16px;
    color: #606771;
}
div.sphinxsidebar a:hover {
    background-color: #f2f2f2;
    text-decoration: none;
}
div.sphinxsidebar li.toctree-l1 a.current {
    background-color: #f2f2f2;
    color: #8ab9ce;
}
div.sphinxsidebar li.toctree-l1 a.in-view {
    color: #8ab9ce;
}
div.sphinxsidebar a.in-view {
    letter-spacing: 0;
}
/* "Table of Content" always bold */
div.sphinxsidebar h3 {
    font-weight: 600;
}

/* Reduce space between sidebar entries */
div.sphinxsidebar li {
    padding-top: 0.1em;
    padding-bottom: 0.1em;
}
div.sphinxsidebar li li:first-child {
    margin-top: 0.1em;
}

/* RTD sidebar */

/* Hide batch at bottom to select version */
#duplicated-readthedocs-versions {
    visibility: hidden;
}

.rst-versions {
    background: transparent;
}

/* Increase margin below ad */
#ethical-ad-placement {
    margin-bottom: 20px;
}

/* Add "Read the Docs" header after ad */
.rst-other-versions:before {
    content: "Read the Docs";
    color: #606771;
    font-size: 16px;
    font-weight: 600;
    padding-left: 6px;
}
.rst-versions .rst-other-versions {
    padding-top: 0;
}

/* Ensure vertical space between version numbers */
.rst-versions .rst-other-versions dd {
    margin: 1px 0;
}

/* Selected version */
.rst-versions dd.rtd-current-item a {
    background-color: #f2f2f2;
    color: #8ab9ce;
}
.rst-versions dd.rtd-current-item a:visited {
    background-color: #f2f2f2;
    color: #8ab9ce;
}

/* Subsections in RTD block */
.rst-versions dt {
    font-weight: 600;
    padding: 0.375rem 1rem;
    font-size: 16px;
    color: #606771;
    line-height: 1.25;
    margin-top: 20px;
    padding-left: 6px;
}

/* Search */
div.sphinxsidebar form {
    margin-top: 0;
}
#flyout-search-form input {
    height: 20px;
    margin-left: 6px;
}

/* Hide separation line in RST sidebar */
.rst-versions .rst-other-versions hr {
    border-top: 0;
    margin: 15px 0;
}

/* RST sidebar footer */
.rst-versions small {
    padding-left: 6px;
}
.rst-versions small a {
    color: #606771;
    font-size: 12px;
    font-weight: 500;
}
.rst-versions small a:hover {
    color: #8ab9ce;
    background-color: transparent;
    text-decoration: underline;
}

/***** FOOTER *****/

/* Make footer stay on top of sidebar */
#sidebar-checkbox:checked ~ footer {
    margin-left: 0;
}
footer {
    z-index: 500;
}

/* Use white on dark-blue colors for footer */
footer {
    color: #eceef0;
    background-color: #2c3544;
    border-top: none;
    line-height: 1.5;
    font-size: 14px;
}
footer a {
    color: #eceef0;
}
footer a:visited {
    color: #eceef0;
}
footer a:hover {
    color: #8ab9ce;
}
