/* ==========================================================================
   Chrome fixes
   --------------------------------------------------------------------------
   The site header is position:fixed, and the parent theme clears it with a
   top margin on .container. The homepage stylesheet zeroes that margin (it
   needs the sections to run full-bleed), which lets the header sit over the
   hero heading.

   Restore the clearance for the homepage only, matching the breakpoints and
   values the chrome CSS uses. Loaded after the homepage stylesheet so these
   win the cascade.
   ========================================================================== */

main.container.cbdbc-home,
main#container.cbdbc-home {
    margin-top: 141px !important;
}
body.no-tagline main.container.cbdbc-home,
body.no-tagline main#container.cbdbc-home {
    margin-top: 91px !important;
}

@media only screen and (max-width: 1570px) {
    main.container.cbdbc-home,
    main#container.cbdbc-home {
        margin-top: 138px !important;
    }
    body.no-tagline main.container.cbdbc-home,
    body.no-tagline main#container.cbdbc-home {
        margin-top: 88px !important;
    }
}

@media only screen and (max-width: 1350px), (hover: none) and (pointer: coarse) {
    main.container.cbdbc-home,
    main#container.cbdbc-home {
        margin-top: 115px !important;
    }
    body.no-tagline main.container.cbdbc-home,
    body.no-tagline main#container.cbdbc-home {
        margin-top: 65px !important;
    }
}

@media only screen and (max-width: 600px) {
    main.container.cbdbc-home,
    main#container.cbdbc-home {
        margin-top: 105px !important;
    }
    body.no-tagline main.container.cbdbc-home,
    body.no-tagline main#container.cbdbc-home {
        margin-top: 55px !important;
    }
}

/* No admin-bar rule here on purpose: WordPress's own admin bar stylesheet
   already pushes the document down (html{margin-top:32px}), and the chrome CSS
   moves the fixed header down to match. Adding an offset here as well
   double-counts it and leaves a white gap under the header. */
