/* Clean header on every screen (owner, 17.11.2026): as on the phone, the pages are in a menu that opens from the
   two-line button beside the logo; the row of links under the logo is gone on the computer too. The language flag
   stands alone on the other side of the logo. Hebrew: menu on the right, flag on the left; English: the mirror.
   The links themselves stay in the page (the side menu is always in the HTML), so nothing changes for Google. */

/* 1. The desktop link row under the logo: hidden. */
#header-nav { display: none !important; }

/* 2. The menu button on every width, the same 32 px box as on the phone. */
@media (min-width: 1024px) {
    #mobile-menu-toggle { display: flex !important; }
    #mobile-menu { display: block !important; }
}

/* 3. The flag, level with the menu button, at the same distance from the edge. */
.barami-header-flag {
    position: absolute;
    left: 2.5rem;
    top: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    z-index: 120;
    transition: transform .3s ease, opacity .3s ease;
}
.barami-header-flag:hover,
.barami-header-flag:focus-visible { transform: translateY(-1px); }
.barami-header-flag .barami-flag-icon { width: 22px; height: 22px; filter: none !important; }

/* 4. English site: the mirror image (menu on the left, flag on the right). */
body.barami-en #mobile-menu-toggle { right: auto !important; left: 2.5rem !important; }
body.barami-en .barami-header-flag { left: auto; right: 2.5rem; }

/* 5. The flag no longer needs a row inside the menu. */
#mobile-menu .barami-menu-flag-item { display: none !important; }

/* 6. On the computer the menu is a side panel, not the whole screen: on the right in Hebrew, on the left in English. */
@media (min-width: 1024px) {
    #mobile-menu {
        left: auto !important;
        right: 0 !important;
        width: 440px;
        box-shadow: -24px 0 60px rgba(0, 0, 0, .12);
    }
    body.barami-en #mobile-menu {
        right: auto !important;
        left: 0 !important;
        box-shadow: 24px 0 60px rgba(0, 0, 0, .12);
    }
    #mobile-menu nav { padding-left: 48px !important; padding-right: 48px !important; }
}
