/*!
 * @file st_sphinx_roles.css
 * @brief Custom inline roles for STMicroelectronics documentation
 * @author STMicroelectronics
 * @copyright Copyright (c) 2026 STMicroelectronics.
 *            All rights reserved.
 *            This software is licensed under SLA0044 terms that can be found at:
 *            https://www.st.com/SLA0044
 *            or in the LICENSE.md file in the root directory of this software component.
 */

/* Custom inline roles for STMicroelectronics documentation */

.removed-feature {
    color: #c62828;
    font-weight: 700;
}

.added-feature {
    color: #2e7d32;
    font-weight: 700;
}

.text-muted {
    color: #6c757d;
}

.hal1-code {
    color: #c62828;
    font-weight: 700;
}

.hal2-code {
    color: #2e7d32;
    font-weight: 700;
}

.caption {
    display: block;
    text-align: center;
    font-size: smaller;
    font-style: italic;
}

/* trademark-list: small italic block for trademark/legal notices.
 * Renders each item as a block-level element at 80% font size in italic,
 * matching the visual style of trademark lists in publication documents.
 * One role per trademark line:
 *   :trademark_list:`Windows® is a trademark of the Microsoft group of companies.` */
.trademark-list {
    display: block;
    font-size: 80%;
    font-style: italic;
}

/* doc-title: visually prominent document title, NOT a heading node.
 * Renders slightly larger than h1 (2.25em in .yue) so it stands out as a
 * document cover title, but is invisible to the TOC since it is not a
 * section heading. Uses the same heading colour/font as the Shibuya theme.
 * Usage in RST:  :doc-title:`My document title` */
.doc-title {
    display: block;
    color: var(--yue-c-heading, var(--sy-c-heading));
    font-family: var(--sy-f-heading);
    font-size: 2.50em;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0.75em;
}
