﻿/* avoid literal coloring in headers and toc-tree */
h1 code.literal,
h2 code.literal,
h3 code.literal,
h4 code.literal,
h5 code.literal,
h6 code.literal {
    background: unset !important;
    line-height: 2em;
}

.toc-tree * code.literal,
.toctree-wrapper * code.literal {
    background: unset !important;
}

/* tweaks to right-toc scrollbars (on-hover; suppress x-overflow) */
.toc-scroll {
    overflow: hidden !important;
}

.toc-scroll:hover {
    overflow-y: scroll !important;
}

/* avoid all-caps on lower header entries */
h4, h5, h6 {
    text-transform: unset !important;
}

/* force "auto" widths tables to be a maximum width */
table.colwidths-auto {
    width: 100%;
}

/* avoid wrapping links */
a {
    white-space: nowrap;
}

/* avoid wrapping literals */
.literal {
    white-space: nowrap;
}

/* explicit logo width */
.sidebar-logo {
    width: 50px;
}

/* styling injected external links on sidebar */
.injected-sidebar-tree-spacer {
    border: none;
    border-bottom: 1px solid var(--color-sidebar-search-border);
}

/* styling injected extra references in sidebar */
.injected-sidebar-extras {
    padding:
        var(--sidebar-item-spacing-vertical)
        var(--sidebar-item-spacing-horizontal);
    text-align: center;
}

.injected-sidebar-extras .reference {
    display: inline;
    padding: 0 4px 0 0;
}

/* styling injected i8n options in sidebar */
.injected-sidebar-i8n {
    margin-top: 1em;
    margin-right: 30px;
    text-align: center;
}

/* styling injected i8n option's spacer in sidebar */
.injected-sidebar-i8n-spacer {
    margin: 0.5em;
}

/* add a subtle border line above headers */
h2, h3 {
    border-top: 1px solid var(--color-background-border);
    border-radius: 0;
}

/* adjust version notices to be a bit smaller */
div.deprecated p,
div.versionadded p,
div.versionchanged p,
div.versionremoved p {
    font-size: small;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* use "Cascadia Code" for a font for better block element support */
pre {
    font-family: Cascadia Code, var(--font-stack--monospace) !important;
}
