html[data-theme=light] {
    /* Color used to highlight c++ function name  and is imported
     * from the github-light-default color scheme (pygments-styles) */
    --function-link-color: #8250df;
    --class-link-color: #953800;
    --struct-link-color: #953800;

    /* Most of the colors below are imported from the github-primer
     * color palette and adapted for the usage in sphinx templates */
    /* --fgColor-accent */
    --pst-color-primary: #0969da;
    /* --control-checked-bgColor-active */
    --pst-color-secondary: #0757ba;
    /* This color is used in a "Back to top" button on mouse hover.
     * --fgColor-black */
    --pst-color-secondary-highlight: #1f2328;

    /* --fgColor-neutral */
    --pst-color-inline-code: #59636e;
    --pst-color-inline-code-links: #0969da;
    --pst-color-link-color: #59636e;

    --pst-color-link: #0969da;
    --pst-color-secondary-bg: #ddf4ff;

    /* Colors used in admonitions */
    --pst-color-info: #0969da;
    --pst-color-info-bg: #ddf4ff;

    --pst-color-success: #1f883d;
    --pst-color-success-bg: #dafbe1;

    --pst-color-warning: #9a6700;
    --pst-color-warning-bg: #fff8c5;
}

html[data-theme=dark] {
    /* These colors are imported from the pygments-styles color scheme
     * called github-dark-default */
    --function-link-color: #d2a8ff;
    --class-link-color: #ffa657;
    --struct-link-color: #ffa657;

    --pst-color-primary: #79c0ff;
    /* --button-outline-bgColor-active */
    --pst-color-secondary: #0969da;
    --pst-color-secondary-highlight: #1f2328;

    --pst-color-background: #101214;
    --pst-color-on-background: #0b0c0d;

    /* --fgColor-default */
    --pst-color-inline-code: #59636e;
    --pst-color-inline-code-links: #79c0ff;
    --pst-color-link-color: #59636e;

    --pst-color-link: #79c0ff;
    /* This color is used in the announcement */
    --pst-color-secondary-bg: #001e42;

    /* Colors used in admonitions */
    --pst-color-info: #79c0ff;
    --pst-color-info-bg: #ddf4ff2a;

    --pst-color-success: #1f883d;
    --pst-color-success-bg: #dafbe12a;

    --pst-color-warning: #9a6700;
    --pst-color-warning-bg: #fff8c52a;
}

.bd-sidebar-primary {
    width: 250px;
}

.bd-article li.toctree-l1 > a {
    font-size: 150%;
    font-weight: bold;
}

div.admonition {
    border: 1px solid;
    box-shadow: none !important;
}

dl.enumerator {
    margin-bottom: 0 !important;
}

dl.cpp dd {
    margin-left: 1rem !important;
}

.cpp .sig {
    font-size: 0.9rem;
    font-style: normal;
}

.sig-name {
    font-size: 0.9rem;
}

dl.cpp.class .sig-name.descname {
    color: var(--class-link-color);
}

dl.cpp.struct .sig-name.descname {
    color: var(--struct-link-color);
}

dl.cpp.function .sig-name.descname {
    color: var(--function-link-color);
}

.cpp .function .k {
    font-weight: normal;
}

dl.cpp.var {
    margin-bottom: 0;
}

dl.cpp.type {
    margin-bottom: 0;
}

.highlight .c1 {
    font-style: italic;
}
