/* Static GZ-Amel export: narrow-screen conflict fixes. */
@media screen and (max-width: 600px) {
    /* Override the historic home-page logo position (top: 75vh). */
    body.home .custom-header {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 5.5rem;
        margin: 0 !important;
        padding: 0 0.75rem !important;
        pointer-events: none;
        z-index: 112;
    }

    body.home .custom-header .wrap,
    body.home .custom-header .site-branding {
        display: block;
        width: 100%;
        height: 100%;
        text-align: right;
    }

    body.home .custom-header .custom-logo-link {
        display: inline-block;
        pointer-events: auto;
    }

    body.home .custom-header .custom-logo-link img {
        width: auto;
        max-width: 34vw !important;
        max-height: 4.25rem !important;
        margin-top: 0.45rem;
    }

    /* The desktop home title and scroll cue conflict with the compact header. */
    body.home .custom-header .site-branding-text,
    .menu-scroll-down {
        display: none !important;
    }

    /* A narrow screen gets one coherent post card, not desktop floats. */
    .postlist .postimage {
        float: none;
        margin: 0 0 1rem;
    }

    .postlist .postimage img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
    }

    .postlist .posttext {
        clear: both;
    }

    /* Touch menu: opened by cghub-static-mobile-menu.js, never hover-only. */
    .navigation-top .menu-submenu-container {
        display: none;
        border-radius: 0 0 16px 16px;
    }

    .navigation-top .menu-submenu-container.cghub-menu-open {
        display: block;
    }

    .navigation-top .menu-submenu-container.cghub-menu-open #folded-menu {
        display: block !important;
        padding: 1rem 1.25rem 1.5rem;
    }

    .navigation-top .menu-submenu-container.cghub-menu-open #folded-menu > li {
        display: block !important;
        min-width: 0;
        margin: 0 0 1rem;
    }

    .navigation-top .menu-submenu-container.cghub-menu-open .close_folded {
        display: block !important;
    }

    /* Keep the deliberately angled logo below the readable contact copy. */
    .quickcontact .gz-static-contact {
        padding-bottom: 10rem;
    }
}
