/*
 * Glue between the static landing pages (layout-landing-page.css + maxlinear-pages.css)
 * and the site chrome in _LayoutProductLandingPage.cshtml (site header/footer + app.bundle.css).
 * Loaded last by that layout, which also puts the "mxl-landing" class on the body.
 */

/* position: sticky needs the page itself to be the scroll container */
body.mxl-landing {
    position: relative;
    overflow-x: initial;
}

/*
 * Sticky site header, as in the mock-ups. Desktop only: below 992px the menu becomes a
 * slide-down panel that can be taller than the screen and must scroll with the page.
 * The header is sized to 90px because the landing styles assume that height
 * (.content-nav sticks at top: 90px, anchors use scroll-margin-top: 150px).
 */
@media (min-width: 992px) {
    .mxl-landing #nav {
        position: sticky;
        top: 0;
        height: 90px;
        margin: 0;
        padding: 15px 0;
        box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    }

    .mxl-landing #nav .logo img {
        height: 60px;
    }
}

@media (max-width: 991px) {
    .mxl-landing .content-nav {
        top: 0;
    }
}

/*
 * The landing pages are designed against Bootstrap's base text styles, while app.bundle.css
 * sets its own on body (14px, tighter line height, #333) and on every heading (blue, Archivo,
 * normal weight, h3 top margin). Restore the Bootstrap values inside .landing-page.
 * :where() keeps the heading reset at element specificity so any landing rule still wins.
 */
.landing-page {
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
}

:where(.landing-page) h1,
:where(.landing-page) h2,
:where(.landing-page) h3,
:where(.landing-page) h4,
:where(.landing-page) h5,
:where(.landing-page) h6 {
    color: inherit;
    font-family: inherit;
    font-weight: 500;
}

:where(.landing-page) h3 {
    margin-top: 0;
}

