/* mega menu (nav_overhaul.py) */
.mg-list{gap:2px}
.mg-g{position:relative}
.mg-top{display:flex;align-items:center}
.wn-links .mg-hub{padding:0 6px 0 13px}
.mg-tg{display:inline-flex;align-items:center;justify-content:center;width:26px;height:40px;border:0;background:none;color:#9fb3c2;cursor:pointer;border-radius:8px;padding:0}
.mg-ch{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.mg-tg[aria-expanded=true] .mg-ch{transform:rotate(180deg)}
.mg-tg:focus-visible{outline:2px solid var(--teal2);outline-offset:2px}
.mg-p{position:absolute;left:0;top:100%;min-width:300px;padding:12px;background:rgba(8,12,18,.98);border:1px solid rgba(255,255,255,.1);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.5);display:none;z-index:60}
.mg-g:hover .mg-p,.mg-g:focus-within .mg-p,.mg-g.open .mg-p{display:block}
.mg-g.closed .mg-p{display:none}
.mg-ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mg-g:nth-child(2) .mg-ul,.mg-g:nth-child(4) .mg-ul{grid-template-columns:1fr 1fr;min-width:460px}
.wn-links .mg-ul a{display:flex;height:auto;padding:9px 12px;border-radius:10px;font:500 14px/1.3 var(--b,Inter,sans-serif);white-space:normal}
.mg-feat{display:block;margin-top:10px;padding:12px 14px;border-radius:12px;background:rgba(95,208,214,.08);border:1px solid rgba(95,208,214,.25);color:#e8f1f3}
.mg-feat b{display:block;font:700 14px/1.3 var(--h)}.mg-feat span{font-size:13px;color:#a9bac6}
.mg-g:nth-child(n+5) .mg-p{left:auto;right:0}
.nv-rel .nv-sec{display:block;margin-top:12px;color:var(--teal2);font-weight:600}
@media (max-width:1400px){
 .mg-p{position:static;display:none;min-width:0;box-shadow:none;background:none;border:0;padding:0 0 8px 10px}
 .mg-g:hover .mg-p,.mg-g:focus-within .mg-p{display:none}
 .mg-g.open .mg-p{display:block}
 .mg-ul,.mg-g:nth-child(2) .mg-ul,.mg-g:nth-child(4) .mg-ul{grid-template-columns:1fr;min-width:0}
 .mg-top{justify-content:space-between}
 .wn-links .mg-hub{flex:1;height:52px;padding:0 16px;font-size:16px}
 .mg-tg{width:52px;height:52px}
 .wn-links .mg-ul a{padding:12px 16px;font-size:15px}
 .mg-cta{position:sticky;bottom:-22px;background:rgba(5,8,12,.97);padding:12px 0 6px;display:flex!important;flex-direction:column;gap:8px}
}

.wn-links a.mg-feat{display:block;height:auto;white-space:normal;padding:12px 14px;border-radius:12px;border:1px solid rgba(95,208,214,.25)}
.wn-links a.mg-feat span{display:block;font:400 13px/1.4 var(--b,Inter,sans-serif)}

/* fix1: no overlap, CSS-only toggle, installers button */
.nav .brand{flex:none;position:relative;margin-right:14px}
.nav .wrap{gap:10px}
.nav-cta{flex:none;display:flex;gap:8px}
.wn-cb{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.wn-cb-l{display:none;flex:none;width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:#e8f1f3;cursor:pointer;align-items:center;justify-content:center}
.wn-cb-l svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media (min-width:1401px) and (max-width:1560px){.wn-links .mg-hub{padding:0 2px 0 8px;font-size:13px}.mg-tg{width:20px}.nav-cta .btn-sm{padding-left:12px;padding-right:12px;font-size:12.5px}}
@media (max-width:1400px){.wn-cb:checked ~ .wrap .wn{opacity:1;visibility:visible;transform:none}.nav-cta .nv-inst{display:none}}
.nav .wrap{max-width:1500px}
.nav .brand{width:auto!important;min-width:max-content;overflow:visible;display:inline-flex;align-items:center;gap:6px}
.nav .brand .ai{position:static!important;flex:none;margin:0}
.wn-links{flex-wrap:nowrap;white-space:nowrap}
@media (min-width:1401px){.wn{min-width:max-content}}
