.md-header {
    background-color: black;
}

/* Site-wide disclaimer rendered by _templates/layout.html in the hero block.
   Appears directly under the header, full width, above the main content. */
.creator-disclaimer {
    background-color: #fff8e1;
    color: #5d4037;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.6rem 1.2rem;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}
.creator-disclaimer strong {
    color: #000;
}

.md-nav__link--active {
    color: black;
    text-decoration: underline;
}

.md-nav--primary .md-nav__item--active>.md-nav__link{
    color: black;
}

.md-header__button.md-logo :-webkit-any(img,svg){
    height: 40px;
}

.md-typeset h1, .md-typeset h2 {
    font-weight:500;
    color: black;
}

.md-search__input{
    background-color: white;
}

.md-search__input::placeholder{
    color: black;
}

.md-search__icon[for=__search]{
    color: black;
}

.highlight .k, .highlight .kt{
    color: green !important;
}

.highlight .nc, .highlight .nf{
    color: purple !important;
}

code {
    overflow: scroll !important;
} 

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-thumb {
    -webkit-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
    background: rgba(0,0,0,.57);
    background-clip: padding-box;
    border-radius: 100px
}

.md-typeset .headerlink{
    display: none;
}

.rst-versions.rst-badge{
    position: fixed;
    top: 15px;
}

.rst-versions.rst-badge .rst-current-version{
    background-color: black;
    color: grey;
}

.span.std-ref {
    font-weight: bold;
    color:rgb(19, 127, 215)
}

/* Bold top-level (caption / first-level) entries in the left sidebar
   while keeping them collapsible (no navigation.sections feature). */
.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link,
.md-nav--primary > .md-nav__list > .md-nav__item > label.md-nav__link,
.md-nav__item--section > .md-nav__link {
    font-weight: 700;
}

/* Sidebar header — the theme renders the project title as a direct
   text node inside <label class="md-nav__title">. Hide the text
   (font-size:0) but restore size for the inner logo, then inject
   "Creator" via ::after. */
.md-nav--primary > .md-nav__title {
    font-size: 0;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: black;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    margin-bottom: 0.5rem;
}
.md-nav--primary > .md-nav__title > .md-nav__button {
    font-size: initial;
}
.md-nav--primary > .md-nav__title::after {
    content: "Creator";
    font-size: 1.35rem;
    font-weight: 400;
    display: block;
}

/* Top header: keep both topics non-bold so the brand/page-title swap
   on scroll doesn't toggle weight. */
.md-header__title,
.md-header__title .md-header__topic,
.md-header__title .md-ellipsis {
    font-weight: 400 !important;
}

/* Override only the FIRST topic (the site-name slot) to show
   "Creator documentation". The second topic stays as the theme's
   active page title. */
.md-header__title .md-header__topic:first-child .md-ellipsis {
    font-size: 0;
}
.md-header__title .md-header__topic:first-child .md-ellipsis::before {
    content: "Creator documentation";
    font-size: 1.125rem;
    font-weight: 400;
}

figure img.figure-clickable,
a.figure-clickable-trigger img {
    cursor: zoom-in;
}

body.figure-lightbox-open {
    overflow: hidden;
}

.figure-lightbox[hidden] {
    display: none;
}

.figure-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}

.figure-lightbox__image {
    display: block;
    max-width: min(96vw, 1800px);
    max-height: 92vh;
    width: auto;
    height: auto;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.45);
    border-radius: 0.25rem;
}
