/*
 * Global theme loaded from tenstorrent-sandbox CDN.
 * Full stylesheet: https://firdovsimammedovk.github.io/tenstorrent-sandbox/_static/tt_theme.css
 *
 * This file contains only TT-NN Visualizer-specific overrides.
 * Base styles (fonts, colours, nav, sidebar, code blocks, version switcher)
 * are served from the shared CDN and declared in docs/conf.py → html_css_files.
 */

/* stylelint-disable declaration-no-important */

/* API reference: render definition terms in the monospace font */
dt,
dt * {
    font-family: var(--font-mono);
}

dl.cpp.function {
    /* allow function tables to scroll overflowed content */
    width: fit-content;
    max-width: 100%;
}

html.writer-html4 .rst-content dl:not(.docutils) > dt,
html.writer-html5 .rst-content dl[class]:not(.option-list, .field-list, .footnote, .citation, .glossary, .simple) > dt {
    background: var(--color-background-alt);
    color: var(--color-accent);
    border-top: 3px solid var(--color-accent);
    display: block;
    max-width: 100%;
    overflow-x: scroll;
}
