/*
 * Stellarnav - structure only
 * Based on the Stellarnav CSS by Vinny Moreira (MIT license).
 * Removed: colors, fonts, light/dark skins, mega dropdown and list padding.
 * The site theme provides those; spacing is set in ../style.css.
 */

/* all nav */
.stellarnav { z-index: 9900; line-height: normal; }
.stellarnav li { list-style: none; position: relative; }
.stellarnav li li { display: block; margin: 0; padding: 0; line-height: normal; }
.stellarnav ul ul { margin: 0; padding: 0; }

/* first level dropdown */
.stellarnav ul ul { top: auto; width: 220px; position: absolute; z-index: 9900; text-align: left; display: none; background: #ffffff; border: 1px solid #e0e0e0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

/* second level dropdown */
.stellarnav ul ul ul { top: 0; left: 220px; }

/* .drop-left (menu at the far right of the page) */
.stellarnav > ul > li.drop-left > ul { right: 0; }
.stellarnav li.drop-left ul ul { left: auto; right: 100%; }

/* arrows */
.stellarnav.desktop li.has-sub > a:not(.dd-toggle),
.stellarnav:not(.mobile) li.has-sub > a:not(.dd-toggle) {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}
.stellarnav.desktop li.has-sub > a:not(.dd-toggle):after,
.stellarnav:not(.mobile) li.has-sub > a:not(.dd-toggle):after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    margin-left: 6px !important;
    border: none !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    transform: rotate(45deg) !important;
    transition: transform 0.2s ease, top 0.2s ease !important;
    position: relative !important;
    top: -2px !important;
    vertical-align: middle !important;
    pointer-events: none !important;
}
.stellarnav.desktop li.has-sub:hover > a:not(.dd-toggle):after,
.stellarnav:not(.mobile) li.has-sub:hover > a:not(.dd-toggle):after {
    transform: rotate(-135deg) !important;
    top: 1px !important;
}
.stellarnav li li.has-sub > a:after { margin-left: 10px; float: right; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 6px solid currentColor; border-right: 0; position: relative; top: 4px; }
.stellarnav li.drop-left li.has-sub > a:after { float: left; margin-left: 0; margin-right: 10px; border-left: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 6px solid currentColor; }
.stellarnav.hide-arrows li.has-sub > a:after, .stellarnav.hide-arrows li li.has-sub > a:after, .stellarnav.hide-arrows li.drop-left li.has-sub > a:after { display: none !important; }

/* hamburger, close and expand buttons (hidden on desktop) */
.stellarnav .menu-toggle, .stellarnav .close-menu { display: none; text-decoration: none; }
.stellarnav .dd-toggle, .stellarnav a.dd-toggle { display: none !important; position: absolute; top: 0; right: 0; padding: 0; width: 48px; height: 48px; text-align: center; z-index: 9999; border: 0; }

/* dropdown toggle chevron icon (mobile only) */
.stellarnav.mobile li > a:after { display: none !important; }
.stellarnav.mobile a.dd-toggle { display: flex !important; align-items: center; justify-content: center; cursor: pointer; }
.stellarnav.mobile a.dd-toggle .icon-plus { box-sizing: border-box; display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.25s ease; position: relative; top: -2px; pointer-events: none; }
.stellarnav.mobile a.dd-toggle .icon-plus:before,
.stellarnav.mobile a.dd-toggle .icon-plus:after { display: none !important; }
.stellarnav.mobile li.open > a.dd-toggle .icon-plus { transform: rotate(-135deg); top: 2px; }

/* close icon */
.stellarnav .icon-close { box-sizing: border-box; width: 12px; height: 12px; position: relative; display: inline-block; }
.stellarnav .icon-close:before { content: ''; display: block; width: 12px; height: 0px; border-bottom: solid 3px currentColor; position: absolute; top: 50%; transform: rotate(45deg); }
.stellarnav .icon-close:after { content: ''; display: block; width: 12px; height: 0px; top: 50%; border-bottom: solid 3px currentColor; position: absolute; transform: rotate(-45deg); }

/* hamburger button */
.stellarnav .menu-toggle, .stellarnav .close-menu { padding: 15px; box-sizing: border-box; }
.stellarnav .menu-toggle span.bars { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 3.5px; position: relative; top: 0; }
.stellarnav .menu-toggle span.bars span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #ffffff !important; margin: 0; }
.stellarnav .full { width: 100%; }

/* hamburger mode (tablet / mobile) */
.stellarnav.mobile ul { position: relative; display: none; text-align: left; background: #ffffff; }
.stellarnav.mobile.active > ul { display: block; }
.stellarnav.mobile > ul { margin: 0; padding: 0; }
.stellarnav.mobile > ul > li { display: block; }
.stellarnav.mobile ul ul { position: relative; opacity: 1; visibility: visible; width: auto; display: none; background: #f5f5f5; border: 0; box-shadow: none; -moz-transition: none; -webkit-transition: none; transition: none; }
.stellarnav.mobile ul ul ul { left: auto; top: auto; }
.stellarnav.mobile li.drop-left ul ul { right: auto; }
.stellarnav.mobile li a { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.stellarnav.mobile li a.dd-toggle { border: 0; }
.stellarnav.mobile > ul > li > a.dd-toggle { padding: 0; }
.stellarnav.mobile .menu-toggle, .stellarnav.mobile .dd-toggle, .stellarnav.mobile .close-menu { display: inline-block; }
.stellarnav.mobile li.has-sub > a:after, .stellarnav.mobile li li.has-sub > a:after, .stellarnav.mobile li.drop-left li.has-sub > a:after { display: none; }

/* hamburger panel on the right */
.stellarnav.mobile.right > ul { position: fixed; top: 0; bottom: 0; right: 0; width: 90%; max-width: 90vw; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 9999; box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15); }
.stellarnav.mobile.right .close-menu { display: inline-block; text-align: right; }
