/* stylelint-disable swissquote/no-type-outside-scope */
*,
*:after,
*:before {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

/* ============================================================================
Docs Body & Page Structure
============================================================================ */

html {
    font-size: 14px;

    @media (min-width: 850px) {
        font-size: 16px;
    }
}

html,
body {
    height: 100%;
    background-color: var(--body-background);
    color: var(--color-text);
}

.Columns__left {
    background-color: var(--sidebar-background);
}

.Columns__right__content {
    padding: 10px;
}

@media (max-width: 768px) {
    // mobile friendly sub-nav
    /* stylelint-disable-next-line selector-class-pattern */
    html:not(.no-js) .Collapsible__content {
        height: 0;
        overflow: hidden;
        transition: height 400ms ease-in-out;
    }
}

.Collapsible__trigger {
    margin: 12px;
    padding: 7px 10px;
    background-color: transparent;
    border: none;
    float: right;

    @include kill-background-image;
    @include kill-box-shadow;
}

.Collapsible__trigger__bar {
    display: block;
    width: 18px;
    height: 2px;
    margin-top: 2px;
    margin-bottom: 3px;
    background-color: var(--sidebar-collapsible--hamburger-color);
}

.Collapsible__trigger:hover {
    background-color: var(--sidebar-collapsible--hamburger-hover-background);

    @include kill-box-shadow;

    .Collapsible__trigger__bar {
        background-color: var(--sidebar-collapsible--hamburger-hover-color);
    }
}

@media screen and (min-width: 769px) {
    .Navbar {
        position: fixed;
        z-index: 1030;
        width: 100%;
    }

    .Collapsible__trigger {
        display: none !important;
    }

    .Collapsible__content {
        display: block !important;
    }

    .Columns {
        height: 100%;
    }

    .Columns:after,
    .Columns:before {
        content: " ";
        display: table;
    }

    .Columns:after {
        clear: both;
    }

    .Columns__left,
    .Columns__right {
        position: relative;
        min-height: 1px;
        float: left;
        overflow: auto;
        height: 100%;
    }

    .Columns__left {
        width: 25%;
        border-right: 1px solid var(--sidebar-border-color);
        overflow-x: hidden;
    }

    .Columns__right {
        width: 75%;
    }

    .Columns__right__content {
        padding: 0 20px 20px;
        min-height: 100%;
    }
}

.Page {
    // 860 == screen-width of 1200 - sidebar - margin
    max-width: 860px;
}

.u-visuallyHidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* added line */
}
