/*
 * DJJC Site, Brief 41. Loaded only for visitors, and only while "Patreon is
 * live" is unticked (Settings > DJJC Site). body.djjc-patreon-off is on every
 * page then.
 *
 * Nothing here hides anything: Patreon is already left out of the page. This
 * only keeps the header looking right without the pill.
 */

/* THE HOMEPAGE, WIDER THAN A PHONE. The header's own CSS (the Site Menu template > Header bar > Advanced >
   Custom CSS, part 6) puts the menu links in the middle of the screen by sharing the spare room between an
   empty space before the links and the Patreon pill after them. With no pill, an empty space after the links
   takes the pill's share, so the links are still in the middle at the top of the page. Once the page is
   scrolled that space closes and the links slide to the right edge, where they sat beside the pill.
   768px is the Mobile breakpoint in Site Settings > Layout > Breakpoints. */
@media (min-width: 768px) {
    body.home.djjc-patreon-off .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu::after {
        content: "";
        display: block;
        flex: 1 1 0;
        margin-left: var(--e-nav-menu-horizontal-menu-item-margin, 20px); /* the same gap the space before the links keeps, so the links are in the exact middle */
        transition: flex-grow 0.35s ease, margin-left 0.35s ease; /* how long the links take to slide over, the same as the header's */
    }
    body.home.djjc-patreon-off .elementor-location-header .elementor-sticky--effects .elementor-nav-menu--main > .elementor-nav-menu::after {
        flex-grow: 0.0001;
        margin-left: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.home.djjc-patreon-off .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu::after {
        transition: none;
    }
}
