/*** START: home ***/
:root, [data-bs-theme="light"] {
    --bd-accent: #ffe484;
    --bd-accent-rgb: 255,228,132;
    --bs-body-color: #212529;
    --bs-body-color-rgb: 33, 37, 41;
    --bs-emphasis-color: #000;
    --bs-link-color: #0d6efd;
    --bs-link-color-rgb: 13, 110, 253;
    --bd-pink-rgb: 214,51,132;
    --bd-purple: #4c0bce;
    --bs-secondary-color: rgba(33, 37, 41, 0.75);
    --bd-teal-rgb: 32,201,151;
    --bs-tertiary-color: rgba(33, 37, 41, 0.5);
    --bs-tertiary-color-rgb: 33, 37, 41;
    --bs-tertiary-bg: #f8f9fa;
    --bs-tertiary-bg-rgb: 248, 249, 250;
    --bd-violet: #712cf9;
    --bd-violet-rgb: 112.520718,44.062154,249.437846;
    --docsearch-primary-color: var(--bd-violet);
    --docsearch-logo-color: var(--bd-violet);
    --bb-example-pre-background: #f5f2f0;
}

h1:focus-visible {
    outline: inherit !important;
}

.skippy {
    color: #fff !important;
    background-color: #4c0bce !important;
}

    .skippy a {
        color: #fff !important;
    }

.bd-navbar {
    padding: .75rem 0;
    background-color: transparent;
    background-image: linear-gradient(to bottom, rgba(var(--bd-violet-rgb), 1), rgba(var(--bd-violet-rgb), 0.95));
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15)
}

@media (max-width: 991.98px) {
    .bd-navbar .bd-navbar-toggle {
        width: 4.25rem
    }
}

.bd-navbar .navbar-toggler {
    padding: 0;
    margin-right: -.5rem;
    border: 0
}

    .bd-navbar .navbar-toggler:first-child {
        margin-left: -.5rem
    }

    .bd-navbar .navbar-toggler .bi {
        width: 1.5rem;
        height: 1.5rem
    }

    .bd-navbar .navbar-toggler:focus {
        box-shadow: none
    }

.bd-navbar .navbar-brand {
    transition: .2s ease-in-out transform
}

    .bd-navbar .navbar-brand:hover {
        transform: rotate(-5deg) scale(1.1)
    }

.bd-navbar .navbar-toggler, .bd-navbar .nav-link {
    padding-right: .25rem;
    padding-left: .25rem;
    color: rgba(255,255,255,0.85)
}

    .bd-navbar .navbar-toggler:hover, .bd-navbar .navbar-toggler:focus, .bd-navbar .nav-link:hover, .bd-navbar .nav-link:focus {
        color: #fff
    }

    .bd-navbar .navbar-toggler.active, .bd-navbar .nav-link.active {
        font-weight: 600;
        color: #fff
    }

.bd-navbar .navbar-nav-svg {
    display: inline-block;
    vertical-align: -.125rem
}

.bd-navbar .offcanvas-lg {
    background-color: var(--bd-violet);
    border-left: 0
}

@media (max-width: 991.98px) {
    .bd-navbar .offcanvas-lg {
        box-shadow: 0 1rem 3rem rgba(0,0,0,0.175)
    }
}

.bd-navbar .dropdown-toggle:focus:not(:focus-visible) {
    outline: 0
}

.bd-navbar .dropdown-menu {
    --bs-dropdown-min-width: 12rem;
    --bs-dropdown-link-hover-bg: rgba(var(--bd-violet-rgb), .1);
    --bs-dropdown-font-size: .875rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15)
}

.bd-navbar .dropdown-item.current {
    font-weight: 600;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23292b2c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem top 0.6rem;
    background-size: .75rem .75rem
}

.bd-masthead {
    --bd-pink-rgb: 214,51,132;
    padding: 3rem 0;
    background-image: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), 0.01), rgba(var(--bs-body-bg-rgb), 1) 85%),radial-gradient(ellipse at top left, rgba(var(--bs-primary-rgb), 0.5), transparent 50%),radial-gradient(ellipse at top right, rgba(var(--bd-accent-rgb), 0.5), transparent 50%),radial-gradient(ellipse at center right, rgba(var(--bd-violet-rgb), 0.5), transparent 50%),radial-gradient(ellipse at center left, rgba(var(--bd-pink-rgb), 0.5), transparent 50%)
}

    .bd-masthead h1 {
        font-size: calc(1.525rem + 3.3vw);
        line-height: 1;
        --bs-heading-color: var(--bs-emphasis-color);
    }

@media (min-width: 1200px) {
    .bd-masthead h1 {
        font-size: 4rem
    }
}

.bd-masthead .lead {
    font-size: 1rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
}

.bd-masthead .bd-code-snippet {
    margin: 0;
    border-radius: .5rem
}

.bd-masthead .highlight {
    width: 100%;
    padding: .5rem 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: rgba(var(--bs-body-color-rgb), 0.075);
    border-radius: .5rem
}

@media (min-width: 992px) {
    .bd-masthead .highlight {
        padding-right: 4rem
    }
}

.bd-masthead .btn-clipboard {
    position: absolute;
    top: -.125rem;
    right: 0;
    background-color: transparent
}

/*.bd-masthead #carbonads {
    margin-right: auto;
    margin-left: auto
}*/

@media (min-width: 768px) {
    .bd-masthead .lead {
        font-size: calc(1.275rem + .3vw)
    }
}

@media (min-width: 768px) and (min-width: 1200px) {
    .bd-masthead .lead {
        font-size: 1.5rem
    }
}

.bd-btn-lg {
    padding: .8rem 2rem
}

/* The accent background is the same yellow in both themes, so the text stays dark in both. */
.masthead-notice {
    color: #212529;
    background-color: var(--bd-accent);
    box-shadow: inset 0 -1px 1px rgba(var(--bs-body-color-rgb), 0.15),0 0.25rem 1.5rem rgba(var(--bs-body-bg-rgb), 0.75)
}

/* Announcement pill. The radius is fixed rather than 50rem so it stays a soft rounded box when the text wraps on narrow screens. */
.bd-home-notice {
    max-width: 100%;
    font-size: .875rem;
    background-color: rgba(var(--bs-body-bg-rgb), 0.75);
    border: var(--bs-border-width) solid rgba(var(--bd-violet-rgb), 0.25);
    border-radius: 1.25rem;
}

.bd-home-notice:hover,
.bd-home-notice:focus-visible {
    border-color: rgba(var(--bd-violet-rgb), 0.6);
}

.bd-home-notice:hover > span,
.bd-home-notice:focus-visible > span {
    text-decoration: underline;
}

.bd-home-install {
    background-color: rgba(var(--bs-body-color-rgb), 0.075);
}

.bd-home-copy {
    min-width: 2rem;
    min-height: 2rem;
    color: var(--bs-body-color);
}

/* Three equal boxes in one row on a phone (no orphaned third box); natural widths from 576px. */
.bd-home-stats > div {
    flex: 1 1 0;
    min-width: 0;
    background-color: rgba(var(--bs-body-bg-rgb), 0.75);
    border: var(--bs-border-width) solid var(--bs-border-color);
}

@media (min-width: 576px) {
    .bd-home-stats > div {
        flex: 0 0 auto;
        min-width: 8.5rem;
    }
}

/* Setup guide links under the install command: pills that read as a choice of one. */
.bd-home-guide {
    font-size: .875rem;
    color: var(--bs-body-color);
    background-color: rgba(var(--bs-body-bg-rgb), 0.75);
    border: var(--bs-border-width) solid var(--bs-border-color);
}

    .bd-home-guide:hover {
        color: var(--bs-body-color);
        border-color: var(--bs-primary);
        text-decoration: underline !important;
    }

/* Sections below the hero: heading and intro on the left, the section's action on the right from 768px. */
.bd-home-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

    .bd-home-section + .bd-home-section {
        border-top: var(--bs-border-width) solid var(--bs-border-color-translucent);
    }

.bd-home-section-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .bd-home-section-head > div:first-child {
        max-width: 42rem;
    }

@media (min-width: 768px) {
    .bd-home-section-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .bd-home-filter {
        flex: 0 0 20rem;
    }
}

/* Showcase cards: name only on a phone (two across), the tagline clamped to two lines from 576px. */
.bd-home-site-tagline {
    display: none;
}

@media (min-width: 576px) {
    .bd-home-site-tagline {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

/* Full catalog disclosure. */
.bd-home-all-toggle {
    list-style: none;
    cursor: pointer;
    border: var(--bs-border-width) solid var(--bs-border-color);
    background-color: var(--bs-tertiary-bg);
}

    .bd-home-all-toggle::-webkit-details-marker {
        display: none;
    }

    .bd-home-all-toggle:hover {
        border-color: var(--bs-primary);
    }

.bd-home-all[open] .bd-home-all-chevron {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: no-preference) {
    .bd-home-all-chevron {
        transition: transform .15s ease-in-out;
    }
}

.bd-home-index {
    columns: 2;
    column-gap: 1.5rem;
}

    .bd-home-index > li {
        break-inside: avoid;
    }

    /* A list of links, so no underline until hover; the underline would also run under the badges. */
    .bd-home-index a {
        text-decoration: none;
    }

        .bd-home-index a:hover > span:last-child {
            text-decoration: underline;
        }

@media (min-width: 768px) {
    .bd-home-index {
        columns: 3;
    }
}

@media (min-width: 1200px) {
    .bd-home-index {
        columns: 4;
    }
}

.bd-home-stats > div:has(a:hover),
.bd-home-stats > div:has(a:focus-visible) {
    border-color: var(--bs-primary);
}

/*
 * Reserve the Carbon cover ad's space so the content below does not move when it loads.
 * Carbon's cover format is up to 400px wide. At 360px and wider it lays out side by side
 * (measured 261-265px tall); below 360px it stacks, and its height depends on the creative's
 * image (measured 388-546px, largest for a square image at a 359px container). Each reserve
 * includes a small margin for longer ad text.
 */
.bd-home-ad {
    max-width: min(400px, 100%);
    margin-inline: auto;
    container-type: inline-size;
}

.bd-home-ad-slot {
    min-height: 280px;
}

@container (max-width: 359.98px) {
    .bd-home-ad-slot {
        min-height: 560px;
    }
}

/* Keep the catalog heading, and any control scrolled into view by keyboard focus, clear of the sticky navbar. */
#components,
.bd-home :is(a, button, input) {
    scroll-margin-top: 5rem;
}

/* Bootstrap's default focus glow is below 3:1, so home page controls get a solid outline in the theme's emphasis color. */
.bd-home :is(a, button, input):focus-visible {
    outline: 2px solid var(--bs-emphasis-color);
    outline-offset: 2px;
    box-shadow: none;
}

.bd-home-card .stretched-link:focus-visible {
    outline: none;
}

.bd-home-card:has(.stretched-link:focus-visible) {
    outline: 2px solid var(--bs-emphasis-color);
    outline-offset: 2px;
}

/* The outline-secondary gray falls below 4.5:1 on the hero gradient, so this button uses the emphasis color. */
.bd-home-browse {
    --bs-btn-color: var(--bs-emphasis-color);
    --bs-btn-border-color: var(--bs-emphasis-color);
    --bs-btn-hover-color: var(--bs-body-bg);
    --bs-btn-hover-bg: var(--bs-emphasis-color);
    --bs-btn-hover-border-color: var(--bs-emphasis-color);
    --bs-btn-active-color: var(--bs-body-bg);
    --bs-btn-active-bg: var(--bs-emphasis-color);
    --bs-btn-active-border-color: var(--bs-emphasis-color);
}

@media (prefers-reduced-motion: no-preference) {
    .bd-home-card {
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }
}

.bd-home-card:hover {
    border-color: var(--bs-primary-border-subtle);
    box-shadow: var(--bs-box-shadow-sm);
}

.bd-gutter {
    --bs-gutter-x: 3rem;
}

.bd-footer a {
    color: var(--bs-body-color);
    text-decoration: none
}

    .bd-footer a:hover, .bd-footer a:focus {
        color: var(--bs-link-hover-color);
        text-decoration: underline
    }

.bb-footer.bd-footer-host {
    padding: 0 !important;
}

.bd-footer-host .container {
    max-width: none;
}

/* Layout footer link colors (.bb-footer a) must not repaint the section buttons. */
.bd-more-libraries .btn, .bd-more-libraries .btn:focus {
    color: var(--bs-btn-color);
    text-decoration: none;
}

.bd-more-libraries .btn:hover, .bd-more-libraries .btn:focus-visible {
    color: var(--bs-btn-hover-color);
    text-decoration: none;
}

.bd-more-libraries .btn:active {
    color: var(--bs-btn-active-color);
}

[data-bs-theme=dark] .bd-more-libraries .btn-outline-primary {
    --bs-btn-color: var(--bs-primary-text-emphasis);
    --bs-btn-border-color: var(--bs-primary-text-emphasis);
}

[data-bs-theme=dark] .bd-more-libraries .btn-outline-secondary {
    --bs-btn-color: var(--bs-secondary-text-emphasis);
    --bs-btn-border-color: var(--bs-secondary-text-emphasis);
}

.bd-lib-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Narrower buttons keep Website, GitHub and NuGet on one line in a three-across card at 768px. */
.bd-lib-links {
    gap: .375rem;
}

    .bd-lib-links .btn {
        --bs-btn-padding-x: .625rem;
    }

/* Tablet: each library card is one line (name, description, links); the name column has a fixed width so the three cards line up. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .bd-lib-head {
        flex: 0 0 14rem;
    }
}

/* Footer credit heart: Bootstrap danger red, which keeps 3:1 against the footer background in both themes. */
.bd-footer-heart {
    color: var(--bs-danger);
    vertical-align: -.125em;
}

/* The footer intro reads as a short paragraph, not a full-width line, when the brand column stacks. */
.bd-footer-about {
    max-width: 24rem;
}

/*** END: home ***/

/*
 * Demo-site focus indicator (rules.md): Bootstrap's default focus glow is below 3:1, so keyboard focus
 * gets a solid outline in the theme's emphasis color. The selector's specificity (0,2,1) beats
 * Bootstrap's .btn:focus-visible (0,2,0), while Showcase sites' scoped focus rules (0,3,0) still win.
 */
html :is(a, button, input, select, textarea, summary, .btn, .form-control, .form-select, .form-check-input, .nav-link, .dropdown-item, .page-link, .accordion-button, .list-group-item-action):focus-visible {
    outline: 2px solid var(--bs-emphasis-color);
    outline-offset: 2px;
    box-shadow: none;
}

/* A responsive Table's scroll region takes keyboard focus (WCAG 2.1.1). It is a separate rule so the list above keeps
   its specificity (0,2,1) and Showcase sites' scoped focus rules still win. */
html [class*="table-responsive"][tabindex]:focus-visible {
    outline: 2px solid var(--bs-emphasis-color);
    outline-offset: 2px;
}

/* Button-style toggles hide the real input, so the visible label shows the focus outline instead.
   The :checked variant (0,4,1) is needed to beat Bootstrap's .btn-check:checked:focus-visible + .btn glow (0,4,0). */
html .btn-check:focus-visible + .btn,
html .btn-check:checked:focus-visible + .btn {
    outline: 2px solid var(--bs-emphasis-color);
    outline-offset: 2px;
    box-shadow: none;
}

/* Copy-to-clipboard button in demo code snippets: icon-only, at least 24px. */
.bd-demo-copy {
    border: 0;
    background: transparent;
    color: inherit;
    padding: .25rem;
    line-height: 1;
    min-width: 1.5rem;
    min-height: 1.5rem;
}

.bb-anchor-link {
    font-weight: 400;
    color: rgba(13,110,253,0.5);
    transition: color 0.15s ease-in-out;
    opacity: 0;
    /*padding-left: 0.375em;*/
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    .bb-anchor-link {
        transition: none
    }
}

.bb-anchor-link:focus, .bb-anchor-link:hover {
    color: #0d6efd;
    text-decoration: none
}

:hover > .bb-anchor-link, .bb-anchor-link:focus {
    opacity: 1;
}

.bb-example {
    position: relative;
    padding: 1rem;
    margin-top: 1rem;
    border: solid #dee2e6;
    border-width: 1px;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

    .bb-example::after {
        display: block;
        clear: both;
        content: ""
    }

@media (min-width: 576px) {
    .bb-example {
        padding: 1.5rem;
    }
}

.bb-example + p {
    margin-top: 2rem;
}

.bb-example > .btn, .bb-example > .btn-group {
    margin: .25rem .125rem;
}

.tab-pane.fade.active.show .bb-example {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.highlight {
    padding: 1rem;
    margin-bottom: 1rem;
    /*background-color: #f8f9fa;*/
    background-color: var(--bs-body-bg);
    border: solid #dee2e6;
    border-width: 0 1px 1px 1px;
    border-bottom-left-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

@media (min-width: 576px) {
    .highlight {
        padding: 1rem 1.5rem
    }
}

.highlight pre {
    padding: 0;
    padding-bottom: 1rem !important;
    margin-top: .65rem;
    margin-bottom: .65rem;
    white-space: pre;
    background-color: transparent;
    border: 0
}

    .highlight pre code {
        font-size: inherit;
        /*color: #212529;*/
        word-wrap: normal
    }

pre[class*=language-] {
    background: var(--bb-example-pre-background) !important;
}

.tab-pane.fade.active.show .highlight {
    border: 1px solid #dee2e6;
    border-top-width: 0;
}

.show-code-only {
    border-width: 1px;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    margin-top: 1rem;
}

/* display */
.display-7 {
    font-size: 2rem
}

.display-8 {
    font-size: 1.5rem
}

.display-9 {
    font-size: 1.25rem
}

.display-10 {
    font-size: 1rem
}

/* position */
.top-30 {
    top: 30% !important;
}

.top-40 {
    top: 40% !important;
}

/* icons */
.list div:hover, .list div:hover .name, .list div:focus, .list div:focus .name {
    color: #0d6efd !important;
    cursor: pointer;
}

/* HACK: sidebar */
@media (min-width: 641px) {
    .bb-example .nav-scrollable {
        height: auto !important;
        overflow-y: auto !important;
    }
}

/* carbon ads */
/*#carbonads {
    position: static;
    display: block;
    max-width: 400px;
    padding: 15px 15px 15px 160px;
    margin: 2rem 0;
    overflow: hidden;
    font-size: .8125rem;
    line-height: 1.4;
    text-align: left;
    background-color: var(--bs-tertiary-bg);
}

    #carbonads a {
        color: var(--bs-body-color);
        text-decoration: none
    }

@media (min-width: 576px) {
    #carbonads {
        border-radius: .5rem;
    }
}

.carbon-img {
    float: left;
    margin-left: -145px
}

.carbon-poweredby {
    display: block;
    margin-top: .75rem;
    color: var(--bs-body-color) !important
}*/

.bg-body-tertiary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity)) !important;
}

[data-bs-theme=dark] {
    color-scheme: dark;
    --bs-body-color: #dee2e6;
    --bs-body-color-rgb: 222, 226, 230;
    --bs-emphasis-color: #fff;
    --bs-link-color: #6ea8fe;
    --bs-link-hover-color: #8bb9fe;
    --bs-link-color-rgb: 110, 168, 254;
    --bs-link-hover-color-rgb: 139, 185, 254;
    --bs-secondary-color: rgba(222, 226, 230, 0.75);
    --bs-tertiary-color: rgba(222, 226, 230, 0.5);
    --bs-tertiary-color-rgb: 222, 226, 230;
    --bs-tertiary-bg: #2b3035;
    --bs-tertiary-bg-rgb: 43, 48, 53;
    --bb-example-pre-background: #1e1e1e;
}

/* Use the selected site theme when an external SVG selects its own colors. */
.bb-site-brand {
    color-scheme: light;
}

[data-bs-theme="dark"] .bb-site-brand {
    color-scheme: dark;
}

.bb-demo-wordmark .navbar-brand-text {
    display: none;
}

/* Keep the one-line site header inside narrow viewports. The theme button keeps its aria-label, and the Showcase link keeps aria-label="Showcase". */
.bb-site-header-theme-switcher #bb-theme-text {
    display: none;
}

@media (max-width: 359.98px) {
    .bb-site-header-showcase-label {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   Showcase sample websites (/showcase)
   Each site layout sets --sc-primary, --sc-primary-rgb, --sc-primary-hover,
   --sc-primary-contrast, and font tokens on its .sc-site root; this bridge maps
   them onto the Bootstrap component variables that use literal colors.
   --------------------------------------------------------------------------- */
.sc-site {
    --bs-primary: var(--sc-primary);
    --bs-primary-rgb: var(--sc-primary-rgb);
    --bs-link-color: var(--sc-primary);
    --bs-link-color-rgb: var(--sc-primary-rgb);
    --bs-link-hover-color: var(--sc-primary-hover);
    --bs-link-hover-color-rgb: var(--sc-primary-rgb);
    --bs-focus-ring-color: rgba(var(--sc-primary-rgb), .3);
    --bs-body-font-family: var(--sc-font-body, var(--bs-font-sans-serif));
    font-family: var(--sc-font-body, var(--bs-font-sans-serif));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--sc-page-bg, var(--bs-body-bg));
}

    .sc-site h1, .sc-site h2, .sc-site h3, .sc-site h4, .sc-site h5, .sc-site h6,
    .sc-site .h1, .sc-site .h2, .sc-site .h3, .sc-site .h4, .sc-site .h5, .sc-site .h6,
    .sc-site .display-1, .sc-site .display-2, .sc-site .display-3, .sc-site .display-4, .sc-site .display-5, .sc-site .display-6 {
        font-family: var(--sc-font-heading, var(--sc-font-body, inherit));
    }

    .sc-site .btn-primary {
        --bs-btn-color: var(--sc-primary-contrast, #fff);
        --bs-btn-bg: var(--sc-primary);
        --bs-btn-border-color: var(--sc-primary);
        --bs-btn-hover-color: var(--sc-primary-contrast, #fff);
        --bs-btn-hover-bg: var(--sc-primary-hover);
        --bs-btn-hover-border-color: var(--sc-primary-hover);
        --bs-btn-active-color: var(--sc-primary-contrast, #fff);
        --bs-btn-active-bg: var(--sc-primary-hover);
        --bs-btn-active-border-color: var(--sc-primary-hover);
        --bs-btn-disabled-bg: var(--sc-primary);
        --bs-btn-disabled-border-color: var(--sc-primary);
        --bs-btn-focus-shadow-rgb: var(--sc-primary-rgb);
    }

    .sc-site .btn-outline-primary {
        --bs-btn-color: var(--sc-primary);
        --bs-btn-border-color: var(--sc-primary);
        --bs-btn-hover-color: var(--sc-primary-contrast, #fff);
        --bs-btn-hover-bg: var(--sc-primary);
        --bs-btn-hover-border-color: var(--sc-primary);
        --bs-btn-active-color: var(--sc-primary-contrast, #fff);
        --bs-btn-active-bg: var(--sc-primary);
        --bs-btn-active-border-color: var(--sc-primary);
        --bs-btn-focus-shadow-rgb: var(--sc-primary-rgb);
    }

    /* Bootstrap's outline-secondary text (#6c757d) is about 3.7:1 on the dark site surfaces; a lighter gray is above 4.5:1. */
    [data-bs-theme=dark] .sc-site .btn-outline-secondary {
        --bs-btn-color: #adb5bd;
        --bs-btn-border-color: #6c757d;
        --bs-btn-disabled-color: #adb5bd;
    }

    /* WCAG 1.4.3 and 1.4.10 for the nine enterprise sites (Online Learning and Travel are left as they are). Bootstrap's
       outline danger, success, warning, and secondary text is just under 4.5:1 on the tinted site surfaces, white text
       on the light dark-mode site colors is about 2:1, and the Callout link keeps its light-mode blue in dark mode. */
    .sc-site:not(.sc-learning):not(.sc-travel) .btn-outline-secondary {
        --bs-btn-color: #5c636a;
    }

    .sc-site:not(.sc-learning):not(.sc-travel) .btn-outline-danger {
        --bs-btn-color: #b02a37;
    }

    .sc-site:not(.sc-learning):not(.sc-travel) .btn-outline-success {
        --bs-btn-color: #146c43;
    }

    .sc-site:not(.sc-learning):not(.sc-travel) .btn-outline-warning {
        --bs-btn-color: #856404;
        --bs-btn-border-color: #ffc107;
    }

    [data-bs-theme=dark] .sc-site:not(.sc-learning):not(.sc-travel) .btn-outline-secondary {
        --bs-btn-color: #adb5bd;
    }

    [data-bs-theme=dark] .sc-site:not(.sc-learning):not(.sc-travel) .btn-outline-danger {
        --bs-btn-color: #ea868f;
    }

    [data-bs-theme=dark] .sc-site:not(.sc-learning):not(.sc-travel) .btn-outline-success {
        --bs-btn-color: #75b798;
    }

    [data-bs-theme=dark] .sc-site:not(.sc-learning):not(.sc-travel) .btn-outline-warning {
        --bs-btn-color: #ffc107;
    }

    [data-bs-theme=dark] .sc-site:not(.sc-learning):not(.sc-travel) {
        --bb-callout-link: var(--sc-primary-rgb);
    }

    [data-bs-theme=dark] .sc-site:not(.sc-learning):not(.sc-travel) .text-bg-primary {
        color: var(--sc-primary-contrast, #fff) !important;
    }

    /* The site bar's theme switcher shows only its icon on the nine kept sites, so the bar fits on one line at 320 CSS px;
       its accessible name ("Toggle theme") is unchanged. Online Learning and Travel keep the label (D-006 of 26112201). */
    .sc-site:not(.sc-learning):not(.sc-travel) .sc-sitebar #bb-theme-text {
        display: none;
    }

    /* Grid pagination: the current page uses the site color with its contrast text, and the page buttons wrap instead of
       pushing the page sideways at 320 CSS px. */
    .sc-site:not(.sc-learning):not(.sc-travel) .pagination {
        --bs-pagination-active-bg: var(--sc-primary);
        --bs-pagination-active-border-color: var(--sc-primary);
        --bs-pagination-active-color: var(--sc-primary-contrast, #fff);
        flex-wrap: wrap;
        row-gap: .25rem;
    }

    .sc-site .form-control:focus,
    .sc-site .form-select:focus,
    .sc-site .form-check-input:focus {
        border-color: rgba(var(--sc-primary-rgb), .6);
        box-shadow: 0 0 0 .25rem rgba(var(--sc-primary-rgb), .25);
    }

    .sc-site .form-check-input:checked {
        background-color: var(--sc-primary);
        border-color: var(--sc-primary);
    }

    .sc-site .form-range::-webkit-slider-thumb {
        background-color: var(--sc-primary);
    }

    .sc-site .form-range::-moz-range-thumb {
        background-color: var(--sc-primary);
    }

    .sc-site .nav-pills {
        --bs-nav-pills-link-active-bg: var(--sc-primary);
        --bs-nav-pills-link-active-color: var(--sc-primary-contrast, #fff);
    }

    .sc-site .nav-link {
        --bs-nav-link-color: var(--bs-body-color);
        --bs-nav-link-hover-color: var(--sc-primary);
    }

    .sc-site .nav-tabs .nav-link.active {
        color: var(--sc-primary);
    }

    .sc-site .pagination {
        --bs-pagination-active-bg: var(--sc-primary);
        --bs-pagination-active-border-color: var(--sc-primary);
        --bs-pagination-color: var(--sc-primary);
        --bs-pagination-hover-color: var(--sc-primary-hover);
        --bs-pagination-focus-color: var(--sc-primary-hover);
        --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--sc-primary-rgb), .25);
    }

    .sc-site .progress,
    .sc-site .progress-stacked {
        --bs-progress-bar-bg: var(--sc-primary);
    }

    .sc-site .dropdown-menu {
        --bs-dropdown-link-active-bg: var(--sc-primary);
        --bs-dropdown-link-active-color: var(--sc-primary-contrast, #fff);
    }

    .sc-site .list-group {
        --bs-list-group-active-bg: var(--sc-primary);
        --bs-list-group-active-border-color: var(--sc-primary);
    }

    .sc-site .accordion {
        --bs-accordion-active-color: var(--sc-primary);
        --bs-accordion-active-bg: rgba(var(--sc-primary-rgb), .08);
        --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--sc-primary-rgb), .25);
    }

/* The library styles every <main> as a 100vh scroll box for BlazorBootstrapLayout; showcase pages scroll with the document instead. */
.sc-main {
    flex: 1 0 auto;
    height: auto;
    overflow: visible;
}

/* One Carbon Ad per showcase page; the slot collapses when no ad renders (localhost, blockers). */
.sc-ad {
    display: flex;
    justify-content: center;
    margin-block: 1.5rem;
}

    .sc-ad:empty,
    .sc-ad:not(:has(#carbonads)) {
        display: none;
    }

.sc-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sc-primary);
}

.sc-card-hover {
    transition: transform .2s ease, box-shadow .2s ease;
}

    .sc-card-hover:hover {
        transform: translateY(-3px);
        box-shadow: 0 .75rem 1.75rem rgba(15, 23, 42, .12);
    }

@media (prefers-reduced-motion: reduce) {
    .sc-card-hover,
    .sc-card-hover:hover {
        transition: none;
        transform: none;
    }
}

/* Showcase Grid lists: a whole row opens its record through the row's primary link (class stretched-link), without
   making the row itself interactive (no nested controls). The row is the link's containing block, and the row's other
   controls sit above the stretched link so they stay clickable. Opt in with Class="... sc-grid-row-links" on the Grid. */
.sc-grid-row-links > tbody > tr {
    position: relative;
}

    .sc-grid-row-links > tbody > tr :is(input, button, select, label, a):not(.stretched-link) {
        position: relative;
        z-index: 2;
    }

/* Printing a showcase page (for example the Learning certificate) keeps only the page content. */
@media print {
    .sc-site > :not(.sc-main),
    .sc-site .sc-no-print {
        display: none !important;
    }
}

/* popover demos: a popover themed through Bootstrap's popover CSS variables, and a wider popover for table content */
.bb-demo-custom-popover {
    --bs-popover-max-width: 200px;
    --bs-popover-border-color: #6f42c1;
    --bs-popover-header-bg: #6f42c1;
    --bs-popover-header-color: #fff;
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: .5rem;
}

.bb-demo-popover-wide {
    --bs-popover-max-width: 22rem;
}
