html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

main {
    flex: 1;
}

.page {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    flex-direction:row;
}

.page main {
    margin:40px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.sidebar {
    width: 220px;
    height: 100vh;
    position:sticky;
    top: 0;
}

.navbar {
    width: 100%;
    border-bottom:1px solid #EEEEEE;
}

.top-row.navbar {
    padding: 0px;
}

.nav-scrollable {
    width: 220px;
    min-width: 220px;
    border-right: 1px solid #EEEEEE;
    padding-top: 20px;
}

.version-picker {
    padding: 0 16px 16px;
}

.version-picker label {
    display: block;
    margin-bottom: 6px;
    color: #5c6470;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}


    .navbar-toggler:checked {
        background-color: rgba(255, 255, 255, 0.5);
    }

.top-row {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand {
    margin: 0px;
    margin-left:20px;
    padding: 0px;
    font-size: 18pt;
}

    .navbar-brand div {
        margin-top: 8px;
        text-align: center;
    }

    .navbar-brand p {
        text-align: center;
    }


.nav-item {
    color: #000000;
    background: none;
    border: none;
    align-items: stretch;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;
    border-radius: 6px 0px 0px 6px;
}

    .nav-item .nav-link {
        color: #000000;
        margin-top: 0px;
        margin-bottom: 0px;
        padding-top: 4px;
        padding-bottom: 4px;
        background: none;
        border: none;
        align-items: center;
        width: 100%;
        height: 100%;
    }
        .nav-item.active-parent {

        }

    .nav-item.active {
        background-color: #EEEEEE;
        border-right: 2px solid #AAAAAA;
    }

        .nav-item .nav-link i {
            margin-top: 2px;
            margin-bottom: -2px;
        }



@media (min-width: 641px) {
    .navbar-toggler {
        display: none;
    }

    .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh);
        overflow-y: auto;
    }
}

.bi {
    display: inline-block;
    position: relative;
    width: 1.1rem;
    height: 1.1rem;
    background-size: cover;
}

.bi-caret-right-fill {
    background-color: currentColor;
    content: '';
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-caret-right-fill' viewBox='0 0 16 16'%3E%3Cpath d='m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z'/%3E%3C/svg%3E");
    mask-type: alpha;
    mask-size: 100%;
    width: 16px;
    height: 16px;
}

.bi-caret-down-fill {
    background-color: currentColor;
    content: '';
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    mask-type: alpha;
    mask-size: 100%;
    width: 16px;
    height: 16px;
}

.bi-box-arrow-up-right {
    background-color: currentColor;
    content: '';
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-box-arrow-up-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
    mask-type: alpha;
    mask-size: 100%;
    width: 16px;
    height: 16px;
}

.bi-link-45deg {
    background-color: currentColor;
    content: '';
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-link-45deg' viewBox='0 0 16 16'%3E%3Cpath d='M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1 1 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4 4 0 0 1-.128-1.287z'/%3E%3Cpath d='M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243z'/%3E%3C/svg%3E");
    mask-type: alpha;
    mask-size: 100%;
    width: 16px;
    height: 16px;
}

.caret {
    transition: transform 0.3s ease;
}

a[aria-expanded="true"] .caret {
    transform: rotate(90deg);
}


.md-heading-1 {
    font-size: 18pt;
}

.md-heading-2 {
    font-size: 15pt;
}

.md-heading-3 {
    font-size: 14pt;
}

.md-heading-4 {
    font-size: 13pt;
}

.md-heading-5 {
    font-size: 12pt;
}

.md-heading {
    font-family: var(--bs-body-font-family);
    font-weight: 400;
}

    .md-heading:hover .md-heading-anchor {
        opacity:1;
    }

.md-heading-anchor {
    color: #000000;
    font-size: 14pt;
    opacity: 0;
    min-width: 24px;
    max-width: 24px;
    margin: 0px;
    margin-left: -32px;
    padding: 0px;
    padding-right: 8px;
    vertical-align: middle;
}

.md-heading-anchor .bi-link-45deg {
    width:24px;
    height:24px;
    margin-bottom:0px;
}

.md-link {

}

.md-link .bi-box-arrow-up-right {
    width:10px;
    height:10px;
    margin-bottom:4px;
    margin-left:4px;
}

.md-thematic-break {
    
}

.md-emphasis-inline {
    font-weight:500;
}

blockquote {
    border-left:6px solid #AAAAAA;
    background:#EFEFEF;
    padding:8px;
    margin:20px 10px;
}

blockquote p {
    padding: 0px;
    margin:0px;
}

.code-sample {
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    background: #f6f8fa;
}

.code-sample-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 12px;
    border-bottom: 1px solid #d8dee4;
    background: #eef1f4;
}

.code-sample-language {
    color: #4b5563;
    font-family: var(--bs-font-monospace);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: lowercase;
}

.code-copy-button {
    border: 0;
    background: transparent;
    color: #185abd;
    font-size: 0.85rem;
    font-weight: 600;
}

.code-copy-button:hover,
.code-copy-button:focus-visible {
    text-decoration: underline;
}

.code-sample pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    background: transparent;
}

.code-sample code {
    font-family: var(--bs-font-monospace);
    font-size: 0.9rem;
    line-height: 1.6;
}
