/* Enlarge the RTD theme's type by 20%, including its fixed-size text. */
html {
    font-size: 120%;
    --cheryl-monospace: ui-monospace, "Cascadia Code", "Source Code Pro", "DejaVu Sans Mono",
        "Noto Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* Scale prose with the root size. */
p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Keep inline names close to prose size without the Courier-style fallback. */
.rst-content :is(code.literal, tt.literal) {
    font-family: var(--cheryl-monospace);
    font-size: 0.9em;
    font-weight: 500;
    padding: 0.05em 0.3em;
    border-radius: 0.2em;
}

.rst-content .linenodiv pre,
.rst-content div[class^="highlight"] pre,
.rst-content pre.literal-block {
    font-family: var(--cheryl-monospace);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.wy-menu-vertical a {
    line-height: 1.25;
}

.wy-switch span {
    font-size: 0.75rem;
}

/* These theme icons also use fixed pixel sizes rather than inherited sizes. */
.breadcrumb-item::before {
    font-size: 0.8125rem;
}

.rst-content .code-block-caption .headerlink,
.rst-content .eqno .headerlink,
.rst-content .toctree-wrapper > p.caption .headerlink,
.rst-content dl dt .headerlink,
.rst-content h1 .headerlink,
.rst-content h2 .headerlink,
.rst-content h3 .headerlink,
.rst-content h4 .headerlink,
.rst-content h5 .headerlink,
.rst-content h6 .headerlink,
.rst-content p.caption .headerlink,
.rst-content p .headerlink,
.rst-content table > caption .headerlink {
    font-size: 0.875rem;
}

.rst-content table > caption .headerlink::after {
    font-size: 0.75rem;
}

.wy-nav-top i {
    font-size: 1.875rem;
}
