/*
  This file contains styles rules for SpectroChemPy documentation,
  that override styles from the sphinx_rtd_theme.

  This file is based derived from PlasmaPy Css (https://docs.plasmapy.org/en/stable/index.html)
*/

/* -----------------------------------------------------------------------------
 * RTD Overrides
 */

/* Style for toctree in a table */
td .toctree-wrapper ul {
    font-size: 16px;
    line-height: 18px !important;
    list-style: none !important;
    margin-bottom: 0 !important;
}

td .toctree-wrapper ul li {
    list-style: none !important;
    margin-left: 0 !important;
}

/* Unordered list nested in ordered list */
.section li ul {
    margin-bottom: 12px !important;
}

/* Add margin-bottom to inheritance diagrams */
div.graphviz {
    margin-bottom: 24px !important;
}

/*
 * Remove bottom margin for the autosummary table in a directive:option::
 * section
 */
.rst-content dl.rst table p,
.rst-content dl.std table p,
.rst-content dl.py table p {
    margin-bottom: 0px !important;
}

.rst-content p a code {
    overflow-wrap: normal;
}

/* Remove excess bottom margin for table headings */
.rst-content table.docutils thead p {
    margin-bottom: 0;
}

/* Remove excess bottom margin for for multiline table entries when using line-block */
.rst-content table.docutils div.line-block {
    margin-bottom: 0;
}

/* Allow text wrapping for last column of a table. */
.rst-content table.docutils td:last-child p {
    white-space: normal;
    line-height: 140%;
}

/* add some space around titles */
.rst-content h1,
.rst-content h2,
.rst-content h3,
.rst-content h4,
.rst-content h5,
.rst-content h6 {
    margin-bottom: 12px;
    margin-top: 24px;
}

/* rubric in API documentation */
.rst-content p.rubric {
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #074fb3;
}

/* Reduce top/bottom margin for equations in tables */
table div.MathJax_Display {
    margin: 0.5em 0;
}

/*
 * Adjustments to the Glossary styling
 */
dl.glossary dd ul {
    margin-bottom: 12px !important;
}

dl.glossary dd {
    margin-top: 4px;
    margin-bottom: 18px;
}

dl.glossary dt {
    margin-bottom: 2px;
}

/* Styles for text in the footer chosen to improve contrast. */

footer p {
    color: #141414;
}

.rst-content dl dt {
    font-weight: 700;
    background-color: #e7f2fa;
    margin-bottom: 12px !important;

}


/*
  Styles for hyperlinks. The colors must meet the WCAG AA standard
  for contrast. Link colors can be tested for accessibility at:
  https://webaim.org/resources/linkcontrastchecker
*/

div.wy-nav-content a:link {
    color: #0069d6;
}

div.wy-nav-content a:visited {
    color: #9151b6;
}

div.wy-nav-content a:hover {
    text-decoration: underline;
}

/*
  The style for generic code literals, in particular text that is
  enclosed in double back ticks in reST (e.g., ``make -j 32``).
*/

div.wy-nav-content .rst-content code.literal {
    background-color: #f6f6f6;
    color: #273a59;
}

/*
  The style for links to Python objects, in particular text enclosed in
  single back ticks in reST.
*/

div.wy-nav-content .rst-content code.literal.xref {
    color: #0069d6;
    font-weight: bold;
}

/*
  The style for literal text that shows the location of a file, in
  particular when used by the reST role :file:).
*/
div.wy-nav-content .rst-content code.literal.file {
    color: #b84d00;
    background-color: #F9F1F0;
}

/* -----------------------------------------------------------------------------
 * RTD layout styling additions
 */

/* Style for module/index links in sidebar below the search field. */
div.pkgnav {
    color: white;
    font-size: 1em;
    margin-top: 12px;
    text-align: center;
}

div.pkgnav ul {
    list-style: none;
}

div.pkgnav ul li {
    display: inline;
}

div.pkgnav ul li a {
    color: #f9f9f0;
    margin: 0;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

div.pkgnav ul li a:hover {
    color: #f50404;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* code cells */

.highlight {
    background: #f2f7fa;
}

/* style of the attributes */
html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt {
    margin-bottom: 6px;
    border: none;
    /* border-left: 3px solid #ccc; */
    background: #e7f2fa;
    color: #555;
}

/* Documentation version selector */
.wy-side-nav-search>div.switch-menus {
    display: flex;
    flex-direction: column;
    margin: .2rem 0 .8rem;
    text-align: left;
}

#versions-dropdown {
    width: 100%;
    min-height: 2.25rem;
    padding: .35rem .5rem;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 3px;
    background: #243442;
    color: #fff;
    font-size: .9rem;
}

#versions-dropdown:focus-visible {
    outline: 3px solid #ffdf85;
    outline-offset: 2px;
}

#versions-dropdown option,
#versions-dropdown optgroup {
    background: #243442;
    color: #fff;
}

.docs-context-banner {
    margin: 0 0 1.25rem;
    padding: .65rem .85rem;
    border-left: 4px solid #3a6e8f;
    background: #e9f2f7;
    color: #243442;
    font-size: .9rem;
}

.docs-context-banner a {
    white-space: nowrap;
    font-weight: 600;
}

.docs-preview-banner {
    border-left-color: #8a6400;
    background: #fff6d8;
}

@media screen and (max-width: 768px) {
    .wy-side-nav-search>div.switch-menus {
        margin-right: .5rem;
        margin-left: .5rem;
    }

    .docs-context-banner a {
        white-space: normal;
    }
}

/* Hide the breadcrumbs */

.wy-breadcrumbs {
    display: none !important;
}

/* Hide the breadcrumb separator as well */
.wy-breadcrumbs-aside {
    display: none !important;
}
