/* WordPress integration. Original visual rules are kept verbatim in header.css. */
#stec-header { width:100%; margin:0; padding:0; color:#000; line-height:normal; letter-spacing:normal; text-transform:none; top:var(--stec-admin-offset,0px); }
#stec-header [hidden] { display:none!important; }
#stec-header a { box-shadow:none; }
#stec-header button { font-family:inherit; font-style:normal; text-transform:none; letter-spacing:normal; box-shadow:none; min-height:0; }
#stec-header .stec-logo-img { max-height:none; border:0; }
#stec-header .stec-search-fallback input { min-width:0; width:auto; border-radius:0; box-shadow:none; color:#000; padding:0; margin:0; line-height:normal; }
#stec-header a:focus-visible, #stec-header button:focus-visible { outline:2px solid #a52226; outline-offset:3px; }
#stec-header .stec-search-overlay, #stec-header .stec-mobile-menu { top:var(--stec-admin-offset,0px); }
#stec-header .stec-search-overlay { overflow-y:auto; }
body.admin-bar #stec-header { --stec-admin-offset:32px; }
@media(max-width:782px) { body.admin-bar #stec-header { --stec-admin-offset:46px; } }

/* Optional nested menus: the original one-level navigation stays unchanged. */
#stec-header .stec-nav li, #stec-header .stec-utility-menu li { position:relative; }
#stec-header .stec-nav .sub-menu, #stec-header .stec-utility-menu .sub-menu {
  display:block; position:absolute; top:100%; left:0; height:auto; min-width:200px;
  background:#fff; border:1px solid #eaeaea; box-shadow:0 6px 18px rgba(0,0,0,.08);
  list-style:none; padding:6px 0; visibility:hidden; opacity:0; pointer-events:none; z-index:20;
}
#stec-header .stec-nav .sub-menu li, #stec-header .stec-utility-menu .sub-menu li { display:flex; height:auto; }
#stec-header .stec-nav .sub-menu a, #stec-header .stec-utility-menu .sub-menu a { flex:1; height:auto; padding:12px 16px; line-height:1.4; }
#stec-header .stec-nav .sub-menu .sub-menu, #stec-header .stec-utility-menu .sub-menu .sub-menu { top:0; left:100%; }
#stec-header .stec-nav li:hover > .sub-menu, #stec-header .stec-nav li:focus-within > .sub-menu,
#stec-header .stec-utility-menu li:hover > .sub-menu, #stec-header .stec-utility-menu li:focus-within > .sub-menu,
#stec-header li.stec-submenu-open > .sub-menu { visibility:visible; opacity:1; pointer-events:auto; }
#stec-header .stec-submenu-toggle { flex-shrink:0; width:24px; height:32px; border:0; background:transparent; color:#000; display:flex; align-items:center; justify-content:center; cursor:pointer; }
#stec-header .stec-submenu-toggle svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.6; transition:transform .15s; }
#stec-header .stec-submenu-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
#stec-header .stec-mobile-menu-list li { position:relative; }
#stec-header .stec-mobile-menu-list .sub-menu { display:none; list-style:none; padding-left:20px; }
#stec-header .stec-mobile-menu-list li.stec-submenu-open > .sub-menu { display:block; }
#stec-header .stec-mobile-menu-list .menu-item-has-children > a { padding-right:60px; }
#stec-header .stec-mobile-menu-list .stec-submenu-toggle { position:absolute; top:9px; right:12px; width:40px; height:40px; }
#stec-header .stec-mobile-menu-list .sub-menu a { font-size:14px; }
@media(prefers-reduced-motion:reduce) { #stec-header *, #stec-header *::after { transition:none!important; animation:none!important; } }
