/* Base background and text */
html, body, .wy-body-for-nav, .wy-nav-content-wrap, .wy-nav-content, .document {
    background-color: #111 !important;
    color: #eee !important;
}

/* Sidebar background and text */
.wy-nav-side {
    background-color: #1a1a1a !important;
    color: #eee !important;
}

/* Sidebar search */
.wy-side-nav-search {
    background-color: #222 !important;
    border: none !important;
}

.wy-side-nav-search input {
    background-color: #333 !important;
    color: #eee !important;
    border: none !important;
}

/* Sidebar links */
.wy-menu-vertical a {
    color: #ccc !important;
}

.wy-menu-vertical a:hover, .wy-menu-vertical li.current > a {
    background-color: #333 !important;
    color: #fff !important;
}

/* Main content */
.rst-content {
    background-color: #111 !important;
    color: #eee !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
}

p, div, li {
    color: #eee !important;
}


figure, figcaption, .caption, .literal-block, pre {
    background-color: #222 !important;
}

/* IMPORTANT: do NOT force code color */
code {
    background-color: #222 !important;
}


/* Equations and math blocks */
.math, .math.display {
    color: #eee !important;
}

/* Links */
a {
    color: #4aa3df !important;
}

a:hover {
    color: #66c2ff !important;
}

/* Toggle blocks and details */
details, summary, .admonition, .toggle, .dropdown {
    background-color: #222 !important;
    color: #eee !important;
    border-color: #444 !important;
}

/* Tables */
table, th, td {
    background-color: #222 !important;
    color: #eee !important;
    border-color: #444 !important;
}

/* Footer */
footer, .rst-footer-buttons {
    background-color: #111 !important;
    color: #ccc !important;
}

/* Ensure cross-references and inline links stay blue */
a, a:visited, a:link, a:active {
    color: #4aa3df !important;
    text-decoration: none;
}

a:hover {
    color: #66c2ff !important;
    text-decoration: underline;
}

/* Cross-reference roles (like {doc}, {ref}) */
.rst-content a.internal {
    color: #4aa3df !important;
    font-weight: 500;
}

/* ================================
   Restore Pygments syntax colors
   ================================ */

.highlight,
.highlight pre {
    background: #222 !important;
    color: inherit !important;
}

/* Keywords */
.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
    color: #ff7b72 !important;
}

/* Strings */
.highlight .s,
.highlight .sa,
.highlight .sb,
.highlight .sc,
.highlight .dl,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .s1,
.highlight .ss {
    color: #a5d6ff !important;
}

/* Comments */
.highlight .c,
.highlight .ch,
.highlight .cm,
.highlight .cpf,
.highlight .c1,
.highlight .cs {
    color: #8b949e !important;
    font-style: italic;
}

/* Numbers */
.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo {
    color: #79c0ff !important;
}

/* Names / variables */
.highlight .n,
.highlight .na,
.highlight .nb,
.highlight .nc,
.highlight .no,
.highlight .nd,
.highlight .ni,
.highlight .ne,
.highlight .nf,
.highlight .nl,
.highlight .nn,
.highlight .nt,
.highlight .nv {
    color: #c9d1d9 !important;
}

/* Operators */
.highlight .o,
.highlight .ow {
    color: #ff7b72 !important;
}


