:root { color-scheme: light dark; }

@media (prefers-color-scheme: dark) {
    body,
    div.document,
    div.body,
    div.bodywrapper {
        background-color: #1a1a1a;
        color: #d0d0d0;
    }

    a { color: #6cb6ff; }
    a:hover { color: #8fc7ff; }

    div.sphinxsidebar { color: #b0b0b0; }
    div.sphinxsidebar a { color: #9aa7b3; }
    div.sphinxsidebar h1, div.sphinxsidebar h2, div.sphinxsidebar h3 { color: #c8c8c8; }

    h1, h2, h3, h4, h5, h6 { color: #e8e8e8; }

    div.admonition { background-color: #2a2a2a; border-color: #444; }
    div.warning    { background-color: #3a2222; border-color: #6a3333; }

    /* code blocks and inline code */
    .highlight { background: #262626; }
    tt, code   { background-color: #2c2c2c; color: #d8d8d8; }

    /* syntax colors: the light pygments palette is unreadable on dark */
    .highlight .n, .highlight .no, .highlight .nv,
    .highlight .p, .highlight .w                    { color: #d0d0d0; }
    .highlight .k, .highlight .nb                   { color: #6cb6ff; }
    .highlight .o                                   { color: #d19a66; }
    .highlight .m, .highlight .mi                   { color: #f08c8c; }
    .highlight .s1, .highlight .s2,
    .highlight .se, .highlight .si                  { color: #8fc76a; }
    .highlight .c, .highlight .c1, .highlight .ch   { color: #8a8a8a; }
}


/* project title / logo text at top of sidebar */
div.sphinxsidebar h1.logo,
div.sphinxsidebar h1.logo a {
    font-size: 1.1em;   /* default is ~1.7em; tune down */
}

/* navigation (TOC) entries in the sidebar */
div.sphinxsidebar {
    font-size: 1em;  /* shrinks the whole sidebar text */
}

/* if you want to target just the nav list, not the whole sidebar: */
div.sphinxsidebar ul {
    font-size: 0.7em;
}

/* sidebar section headings (e.g. "Navigation", "Related Topics") */
div.sphinxsidebar h3,
div.sphinxsidebar h4 {
    font-size: 1em;
}

/* Hide Navigation title */
div.sphinxsidebar h3 { display: none; }

/* the search input field */
div.sphinxsidebar input[type="text"],
div.sphinxsidebar input[type="search"] {
    font-size: 0.85em;
    padding: 3px 5px;      /* tighten the box height */
}

/* the search submit button, if you want it smaller too */
div.sphinxsidebar input[type="submit"] {
    font-size: 0.85em;
    padding: 2px 6px;
}

/* the "Search" heading above the box, if present */
div.sphinxsidebar h3#searchlabel {
    font-size: 0.9em;
}

/* code blocks */
div.body pre,
div.body div.highlight pre {
    font-size: 0.75em;
    line-height: 1.35;
    padding: 7px 12px;
}

/* code blocks with long text need shrinkage */
div.body div.small-code div.highlight pre {
    font-size: 0.60em;
    padding-left: 8px;
    padding-right: 8px;
}

/* do not hyphenate */
div.body p {
    -webkit-hyphens: none;
    hyphens: none;
}

.small-note {
    font-size: 0.85em;
}
