/* Hamisu v3.4 navigation fixes.
 * Loaded after the shared stylesheet so imported compatibility layers cannot
 * enlarge the desktop bar or place a mobile overlay above the drawer. */
.hamisu-site-header {
  position: sticky !important;
  top: 0;
  z-index: 10000 !important;
}

.hamisu-menu-backdrop { display: none; }

@media (min-width: 901px) {
  .hamisu-header-inner { min-height: 90px !important; }
  .hamisu-brand {
    top: 7px !important;
    width: 76px !important;
  }
  .hamisu-brand img {
    width: 76px !important;
    height: 76px !important;
  }
  .hamisu-nav a { padding: 33px 0 29px !important; }
  .hamisu-nav .sub-menu a { padding: 11px 0 !important; }
  .hamisu-header-tools { top: 32px !important; }
}

@media (max-width: 900px) {
  body.menu-open::before {
    display: none !important;
    content: none !important;
  }
  .hamisu-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(25, 17, 14, 0.38);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
  }
  .hamisu-menu-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .hamisu-nav {
    z-index: 20 !important;
    background: #fffefa !important;
    isolation: isolate;
  }
  .hamisu-nav > ul,
  .hamisu-nav > ul > li,
  .hamisu-nav a,
  .hamisu-submenu-toggle {
    position: relative;
    z-index: 1;
  }
  .hamisu-brand { z-index: 4 !important; }
  .hamisu-header-tools { z-index: 30 !important; }
}
