.documentation .header {
    background: #f3f3f3;
    color: #494d55;
    padding: 20px 0;
}

.documentation .breadcrumb li.active, .documentation .breadcrumb li a {
    color: #000;
}

.documentation .header h1 {
    text-align: center;
}

.header {
    border-top: none;
}

span.file-path {
    background: #F8F8FF;
    /*border: black dashed 1px;*/
    padding: 3px;
    font-weight: bold;
}

body.documentation div.doc-wrapper div.container {
    margin-bottom: 600px; /* Need enough space after the content to be able to scroll directly the in-page elements by using #an-id links */
}

body.landing-page .cards-section {
    padding: 20px 0;
}
#doc-menu {
    max-width: 230px;
}

/* The nav lists every section on the page, so on a long page it is taller than the window.
   Bootstrap's affix pins it in place but does not bound its height, so its lower part sits
   below the fold with no way to reach it: scrolling moves the content and the nav stays put.
   Bound it to the window and give it its own scrollbar instead. main.js keeps the section
   you are reading scrolled into view within this box. */
#doc-menu.affix,
#doc-menu.affix-top,
#doc-menu.affix-bottom {
    max-height: calc(100vh - 130px); /* .affix sits at top: 110px, plus a little breathing room */
    overflow-y: auto;
    overflow-x: hidden;
}

/* A permanent scrollbar would be visual noise beside body text, so keep it thin and quiet
   until the pointer is over the nav. Progressive enhancement: browsers without these
   properties just show their normal scrollbar, which is still an improvement on no scroll. */
#doc-menu.affix,
#doc-menu.affix-top,
#doc-menu.affix-bottom {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

#doc-menu.affix:hover,
#doc-menu.affix-top:hover,
#doc-menu.affix-bottom:hover {
    scrollbar-color: #c8ccd4 transparent;
}

#doc-menu::-webkit-scrollbar {
    width: 6px;
}

#doc-menu::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

#doc-menu:hover::-webkit-scrollbar-thumb {
    background: #c8ccd4;
}

/* The link icon beside each heading shows on hover or keyboard focus only, and stays while the
   menu it opens on a mirrored page (main.js addSectionMenus) is open or its tick is showing. A
   touch screen has no hover, so there it is always shown. */
.section-link {
    display: inline-block;
    margin-left: 8px;
    opacity: 0;
    font-size: 16px;
    transition: opacity 0.2s;
    color: #999;
    text-decoration: none;
}

h2:hover .section-link,
h3:hover .section-link,
h4:hover .section-link,
.section-link:focus,
.open > .section-link,
.section-link.done {
    opacity: 1;
}

@media (hover: none) {
    .section-link {
        opacity: 1;
    }
}

.section-link:hover {
    color: #0078D4;
    text-decoration: none;
}

.section-menu {
    display: inline-block;
}

/* Markdown mirror controls (theme docs-markdown-mirrors, R4 and R7): the Copy page split button
   sits at the top right of the centred doc header, and flows under the title on a narrow screen. */
.doc-header {
    position: relative;
}

.md-copy-page {
    position: absolute;
    top: 0;
    right: 0;
}

@media (max-width: 767px) {
    .md-copy-page {
        position: static;
        margin-top: 10px;
    }
}

.md-copy-page .dropdown-menu {
    text-align: left;
}

/* BEGIN docs-site-mobile-friendly: from here to the END line, scripts/copy-docs-mobile-css.sh copies
   this block from the write-target folder into every docs folder's tp.css. Edit it here, then run it. */

/* Phones and tablets (theme docs-site-mobile-friendly, WI-3). Below 1200px only, so the desktop
   layout at 1280 and wider is untouched; there a table keeps Bootstrap's full width.
   - A table wider than the text column scrolls sideways inside its own box, every cell reachable,
     instead of running off the page, or below 768px being cut off by the site-wide
     .container { overflow: hidden }. As a block it keeps its natural width up to the column's.
   - Inline code is nowrap site-wide (combined-15-10-2018.css) and an inline-block here
     (styles.css), so a long property or class name ran off the screen. Here it wraps within the
     line's width, as do long samples and links, breaking inside a word only when the word is wider
     than the line. A table's columns still size to their longest word, so a wide table scrolls
     rather than splitting its names letter by letter.
   - Embedded videos scale down to the column, and code blocks scroll inside their box. */
@media (max-width: 1199px) {
    .content-inner {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .content-inner :not(pre) > code {
        white-space: normal;
        max-width: 100%;
    }

    .content-inner table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content-inner pre {
        max-width: 100%;
        overflow-x: auto;
    }

    .content-inner iframe {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Images scale down to the column at every width (R11), whatever class their HTML carries: Bootstrap 4's
   img-fluid, which some pages use, does nothing on this Bootstrap 3 site. It changes only an image wider
   than its column, so on a desktop every other page renders as before. */
.content-inner img {
    max-width: 100%;
    height: auto;
}

/* Small text (WI-4): Bootstrap's .label and its sup and sub are 75% of the 15px body text, 11.25px.
   Below 1200px they keep 75% only where that comes to 12px or more. */
@media (max-width: 1199px) {
    .content-inner .label,
    .content-inner sup,
    .content-inner sub {
        font-size: max(75%, 12px);
    }
}

/* 768 to 991px (WI-4): with 15px either side of each link, the header's menu does not fit beside the
   logo and wraps to a second row. The fixed header, which everything below it allows one row for
   (the breadcrumb starts 68px down, an anchor scrolls to 80px), then covers the breadcrumb and the
   heading a link to a section lands on. With 8px either side the menu fits on one row with 14px to
   spare in DejaVu Sans, a fallback for Lato when it does not load and wider than it. #header
   outranks the same selector in combined-15-10-2018.css, which loads after this file. */
@media (min-width: 768px) and (max-width: 991px) {
    #header .navbar .navbar-nav > li > a {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* END docs-site-mobile-friendly */