/* Airwright CMS – submenus in the menu bar, for every template (script: nav.js).
   Everything here is written with :where(), so it has no weight: any rule in the stylesheet of a template wins. */
:where(.nav-group) { position: relative; display: inline-flex; }
:where(.nav-parent) { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
:where(.nav-parent svg) { flex: none; opacity: .7; }
:where(.nav-sub) { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px; display: none; flex-direction: column; gap: 2px; padding: 8px;
    background: var(--aw-surface, #fff); color: var(--aw-text, #111); border: 1px solid var(--aw-line, rgba(128, 128, 128, .3)); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
:where(.nav-group:hover > .nav-sub, .nav-group:focus-within > .nav-sub, .nav-group.open > .nav-sub) { display: flex; }
:where(.nav-sub a) { white-space: nowrap; }
:where(.nav-more > .nav-sub) { left: auto; right: 0; }
:where(#aw-nav > *) { flex-shrink: 0; }
/* items that moved into "More" and had sub-items themselves: shown as a small heading with its links under it */
:where(.nav-sub .nav-group) { display: flex; flex-direction: column; }
:where(.nav-sub .nav-group > .nav-parent) { pointer-events: none; font-size: .8em; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
:where(.nav-sub .nav-group > .nav-parent svg) { display: none; }
:where(.nav-sub .nav-group > .nav-sub) { position: static; display: flex; padding: 0; border: 0; box-shadow: none; background: none; min-width: 0; }
/* the menu as a list under each other (the drawer on a phone): nav.js sets .nav-stacked */
:where(.nav-stacked .nav-group) { display: flex; flex-direction: column; }
:where(.nav-stacked .nav-sub) { position: static; display: flex; padding: 0 0 6px 16px; border: 0; box-shadow: none; background: none; min-width: 0; }
:where(.nav-stacked .nav-parent svg) { display: none; }
