/*
Tweak the display of the built-ins annotations (kernel, python, differentiable).
*/

section[id^=warp-src-lang-] dl.function table.hlist tbody
{
    display: table-cell;
}

section[id^=warp-src-lang-] dl.function table.hlist td
{
    padding: 0;
}

section[id^=warp-src-lang-] dl.function table.hlist ul
{
    list-style-type: none;
    padding: 0;
}

section[id^=warp-src-lang-] dl.function table.hlist li
{
    border-color: var(--pst-color-border);
    border-radius: 1rem;
    border-style: solid;
    border-width: 2px;
    font-size: 0.75rem;
    margin: 0 0.25rem;
    padding: 0 0.25rem;
}


/*
Remove default blockquote styling when it wraps a code block inside
a numbered list. This prevents visual artifacts from blockquote
indentation that Sphinx/docutils adds due to RST nesting rules.
*/

ol.arabic li blockquote:has(div[class^="highlight-"])
{
    background-color: inherit;
    border: none;
    color: inherit;
    padding: 0;
}
