/* Keep the shared navigation on legacy, BuddyBoss and archive surfaces. */
body.eotec-nav-shell #masthead { position:sticky; top:0; z-index:100; min-height:var(--header-height); background:#fff; box-shadow:0 1px 0 var(--nav-border); }
body.eotec-nav-shell #masthead .site-header-container { max-width:var(--content-width); min-height:var(--header-height); }
body.eotec-nav-shell #masthead #site-logo .site-title { display:flex; align-items:center; width:var(--logo-size); height:var(--logo-size); }
body.eotec-nav-shell #masthead #site-logo .site-title a { display:flex; align-items:center; width:100%; height:100%; }
body.eotec-nav-shell #masthead #site-logo img { display:block; width:var(--logo-size)!important; height:var(--logo-size)!important; max-width:none!important; max-height:none!important; object-fit:contain; }
body.eotec-nav-shell #masthead .primary-menu > li > a { color:var(--nav-link); font:600 15px/1.3 var(--font-body); letter-spacing:.005em; }
body.eotec-nav-shell #masthead .primary-menu > li.current-menu-item > a,
body.eotec-nav-shell #masthead .primary-menu > li.current-menu-ancestor > a { color:var(--nav-link-active); }
body.eotec-nav-shell #masthead .primary-menu .wrapper.ab-submenu { border-top:2px solid var(--nav-accent); background:#fff; box-shadow:0 22px 40px #071c3830; }
body.eotec-nav-shell #masthead .primary-menu .bb-sub-menu a { font:600 14px/1.3 var(--font-body); }
@media(min-width:1181px) {
  body.eotec-nav-shell #masthead .site-header-container { display:flex; align-items:center; gap:24px; }
  body.eotec-nav-shell #masthead #site-logo { flex:0 0 var(--logo-size); margin:0; }
  body.eotec-nav-shell #masthead #site-navigation { display:flex; flex:1 1 auto; justify-content:center; min-width:0; margin:0; }
  body.eotec-nav-shell #masthead #primary-navbar { display:flex; justify-content:center; }
  body.eotec-nav-shell #masthead #primary-menu { display:flex; align-items:center; gap:clamp(18px,1.8vw,28px); margin:0; }
  body.eotec-nav-shell #masthead #primary-menu > li { margin:0; }
  body.eotec-nav-shell #masthead #primary-menu > li.menu-item-has-children { padding:0; }
  body.eotec-nav-shell #masthead #primary-menu > li.menu-item-has-children::after,
  body.eotec-nav-shell #masthead #primary-menu > li.menu-item-has-children > a::after { display:none!important; content:none!important; }
  body.eotec-nav-shell #masthead #primary-menu > li > a { display:flex; align-items:center; min-height:var(--header-height); padding:0; }
  body.eotec-nav-shell #masthead #primary-menu > li > a > span { display:inline-block; }
  body.eotec-nav-shell #masthead #primary-menu > li.menu-item-has-children > a > span { display:inline-flex; align-items:center; gap:11px; }
  body.eotec-nav-shell #masthead #primary-menu > li.menu-item-has-children > a > span::after { content:""; display:block; width:6px; height:6px; flex:none; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); opacity:.82; }
  body.eotec-nav-shell #masthead #primary-menu > li.current-menu-item > a > span,
  body.eotec-nav-shell #masthead #primary-menu > li.current-menu-ancestor > a > span { border-bottom:2px solid var(--nav-accent); padding-bottom:8px; margin-top:10px; }
  body.eotec-nav-shell #masthead #header-aside { flex:0 0 auto; margin-left:0; }
}
