/* Native WordPress lists inherit the theme's menu typography and spacing. */
#menu, .bde-menu-list, .bde-menu-list li { min-width: 0; }
.masthead { max-width: calc(100% - 2 * var(--edge)); }
.masthead.has-contact { max-width: calc(100% - 3 * var(--edge) - var(--bde-cta-width, 8rem)); }
.bde-menu-list, .bde-menu-list ul { list-style: none; margin: 0; padding: 0; }
.bde-menu-list { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem clamp(1rem, 1.7vw, 2.5rem); }
.bde-menu-list li { position: relative; }
.bde-menu-list a { display: inline-block; overflow-wrap: anywhere; }
.bde-menu-list .sub-menu { background: var(--white); padding: .45rem .85rem; border-radius: var(--radius); }
.bde-sub-toggle { display: inline-grid; place-items: center; width: 1.85rem; min-height: 2.4rem; vertical-align: middle; }
.bde-sub-toggle::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.1rem) rotate(45deg); }
.bde-sub-toggle[aria-expanded="true"]::after { transform: translateY(.1rem) rotate(225deg); }
.enhanced .bde-sub-toggle[aria-expanded="false"] + .sub-menu { display: none; }
.standard-page { padding-block-start: calc(var(--bde-header-height, 4rem) + var(--edge) + var(--card-pad)); }
@media (min-width: 741px) {
  .bde-menu-list > li > .sub-menu {
    position: absolute; top: 100%; left: 0; z-index: 1; width: max-content; min-width: 10rem;
    max-width: min(18rem, 70vw); max-height: 62vh; overflow-y: auto; box-shadow: 0 3px 10px rgb(var(--shade) / 12%);
  }
  .bde-menu-list > li:last-child > .sub-menu { left: auto; right: 0; }
  .bde-menu-list .sub-menu .sub-menu { padding-block: 0; border-left: var(--rule); border-radius: 0; }
  html:not(.enhanced) .bde-menu-list li:not(:hover):not(:focus-within) > .sub-menu { display: none; }
}
@media (max-width: 740px) {
  #menu { max-height: calc(100vh - var(--anchor-offset) - 1rem); max-height: calc(100dvh - var(--anchor-offset) - 1rem);
    max-width: calc(100vw - 2 * var(--edge)); overflow-y:auto; }
  .bde-menu-list { display: block; }
  .bde-menu-list .sub-menu { padding: 0 0 0 .75rem; border-left: var(--rule); }
  .bde-sub-toggle { min-width: 2.75rem; min-height: 2.75rem; }
  .nav-contact { max-width: 42vw; overflow-wrap: anywhere; }
  html:not(.enhanced) .masthead { position: relative; flex-wrap: wrap; }
  html:not(.enhanced) #menu { position: static; flex-basis: 100%; max-height: none; }
}
