/* General page sizing - make it a bit wider in general compared to the normal Book theme */

.bd-main .bd-content .bd-article-container {
    max-width: 100%;
    /* default is 60em */
}

.bd-page-width {
    max-width: 100rem;
    /* default is 88rem */
}

@media (min-width:992px) {
    .bd-sidebar-primary {
        flex-basis: 19%
    }
}

@media (max-width: 991px) {
    .bd-content {
        right: 0;
    }

    .bd-sidebar-secondary {
        top: 0;
    }
}

@media (max-width: 991px) and (min-width: 960px) {
    input#__primary:checked~.bd-container .bd-sidebar-primary {
        margin-left: -25%;
        visibility: hidden;
        opacity: 0;
    }
}

@media (max-width: 959px) {
    .bd-sidebar-primary {
        position: fixed;
        top: 0 !important;
        height: 100%;
        margin-top: 0;
    }
}

@media (max-width: 570px) {
    .label-long {
        display: none;
    }

    .label-short {
        display: inline;
    }
}

/* Bosch supergraphic line at page top */

#header-supergraphic-line {
    height: 8px;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Header bar with "Bosch" logo, docs name, link bar, version control... */

.bd-header {
    z-index: 3;
    border-bottom: 1px solid var(--pst-color-border);
    box-shadow: 0 0 0 0;
}

.bd-header .navbar-header-items {
    justify-content: right;
}

/* Bosch logo */

.bd-header #logo {
    padding: 0;
    height: 40px;
}

.bd-header #logo-text a {
    color: var(--pst-color-headline);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    padding-left: 2.5rem;
}

.bd-header #logo-text {
    margin-right: 1.5rem;
}

/* Flips color from black to white for not only bosch logo but also other buttons as well */
.logoDark {
    filter: invert(100%) sepia(14%) saturate(1%) hue-rotate(305deg) brightness(108%) contrast(101%) !important;
}

/* Article header area where breadcrumbs and the source download button are located */

.bd-header-article {
    z-index: 2;
    padding: 0.5em 2em 0em 2em;
}

.bd-header-article .header-article-item {
    display: inline-flex;
}

.bd-header-article ul.bd-breadcrumbs {
    margin-bottom: 0;
    padding-left: 0.5em;
}

/* Left-hand navigation */

/* smaller font when deeper in the toctree */
li.toctree-l1,
li.toc-h1 a.nav-link {
    font-size: 1.0rem;
}
li.toctree-l2,
li.toc-h2 a.nav-link {
    font-size: 0.9rem;
}
li.toctree-l3,
li.toc-h3 a.nav-link {
    font-size: 0.8rem;
}
li.toctree-l4,
li.toc-h4 a.nav-link {
    font-size: 0.7rem;
}
li.toctree-l5,
li.toc-h5 a.nav-link {
    font-size: 0.6rem;
}

.toctree-wrapper li[class^="toctree-l"] > a {
    font-size: 1.0em;
}

.toctree-wrapper p.caption {
    /* FIXME: what styling to use? */
    font-size: 1.0em;
    font-style: italic;
    color: var(--sboscht-color-default);
}

.sidebar-indices-items ul.indices-link {
    margin-left: 0;
}