/* SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
/* SPDX-License-Identifier: Apache-2.0 */

/*
Tweak the display of the Warp function annotations (kernel, python, differentiable).
*/

section[id^=warp-] dl.function ul.wp-function-tags
{
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin: 0 0 1rem;
    padding: 0;
}

section[id^=warp-] dl.function ul.wp-function-tags li.wp-function-tag
{
    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;
}

/*
No rule hides the tags whose value is false, or the value of every tag: they carry the
theme's `visually-hidden` class, emitted by `docs/_ext/wp_function_tags.py`. Clipping
them rather than removing them keeps them in the accessibility tree and in the text
extraction tools read, so an omitted pill is never mistaken for a missing property.
*/


/*
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;
}


/*
Keep the page-source split button and its extensible action menu compact.
*/

.copy-page-source
{
    white-space: nowrap;
}

.copy-page-source .dropdown-menu
{
    --bs-dropdown-font-size: 0.875rem;
    min-width: max-content;
}
