/* ChargeNest Mobile UX Hotfix v1.0.0 — scoped, loaded after both existing stylesheets.
   No changes to desktop/navigation markup and no external dependencies. */
@media (max-width:900px) {
  body.cn-refresh .site-header {
    position:relative !important; z-index:100 !important;
    background:#fff !important; border-bottom:1px solid #dfeaf5 !important;
  }
  body.cn-refresh .site-header .header-inner {
    position:relative !important; display:flex !important;
    align-items:center !important; justify-content:space-between !important;
    min-height:72px !important; gap:12px !important;
  }
  body.cn-refresh .site-header .brand-lockup {flex:0 1 auto !important; min-width:0 !important;}
  body.cn-refresh .site-header .brand-lockup img {
    display:block !important; width:clamp(170px,52vw,220px) !important;
    height:auto !important; max-height:59px !important; object-fit:contain !important;
  }
  /* Rebuild the icon; the former site.css's dark-theme icon styles were invisible on white. */
  body.cn-refresh .mobile-menu {
    position:relative !important; display:flex !important; flex:0 0 46px !important;
    align-items:center !important; justify-content:center !important; flex-direction:column !important;
    width:46px !important; height:46px !important; min-width:46px !important;
    gap:5px !important; padding:0 !important;
    background:#f2f7fd !important; border:1px solid #c7d9ec !important;
    color:#0b2d5a !important; border-radius:12px !important;
    cursor:pointer !important; box-shadow:none !important;
    -webkit-appearance:none !important; appearance:none !important;
  }
  body.cn-refresh .mobile-menu span {
    display:block !important; position:absolute !important; left:50% !important; top:50% !important; box-sizing:border-box !important;
    width:21px !important; height:2.5px !important;
    min-height:2.5px !important; margin:0 !important; padding:0 !important;
    background:#0b397c !important; border:0 !important; border-radius:10px !important;
    opacity:1 !important; transform:translate(-50%,-50%) !important; transition:transform .18s ease,opacity .18s ease !important;
  }
  body.cn-refresh .mobile-menu span:nth-child(1) {transform:translate(-50%,-50%) translateY(-7px) !important;}
  body.cn-refresh .mobile-menu span:nth-child(3) {transform:translate(-50%,-50%) translateY(7px) !important;}
  body.cn-refresh .mobile-menu span:before,body.cn-refresh .mobile-menu span:after {content:none !important;display:none !important;}
  body.cn-refresh .mobile-menu:focus-visible {outline:3px solid #2679d8 !important;outline-offset:3px !important;}
  body.cn-refresh .site-header[data-cn-mobile-open="true"] .mobile-menu span:nth-child(1) {transform:translate(-50%,-50%) rotate(45deg) !important;}
  body.cn-refresh .site-header[data-cn-mobile-open="true"] .mobile-menu span:nth-child(2) {opacity:0 !important;}
  body.cn-refresh .site-header[data-cn-mobile-open="true"] .mobile-menu span:nth-child(3) {transform:translate(-50%,-50%) rotate(-45deg) !important;}

  /* Closed by default, regardless of legacy .open/.active navigation rules. */
  body.cn-refresh .site-header .main-nav {
    display:none !important; visibility:hidden !important;
    position:absolute !important; top:calc(100% + 6px) !important;
    left:auto !important; right:0 !important;
    width:min(400px,calc(100vw - 28px)) !important; max-width:none !important;
    margin:0 !important; padding:14px !important; box-sizing:border-box !important;
    background:#fff !important; border:1px solid #d7e7f5 !important;
    border-radius:18px !important; box-shadow:0 20px 42px rgba(7,36,77,.21) !important;
    opacity:1 !important; transform:none !important; z-index:130 !important;
    flex-direction:column !important; align-items:stretch !important; gap:3px !important;
    max-height:min(76dvh,650px) !important; overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  body.cn-refresh .site-header[data-cn-mobile-open="true"] .main-nav {
    display:flex !important; visibility:visible !important;
  }
  body.cn-refresh .site-header .main-nav>a:not(.nav-signin) {
    display:flex !important; align-items:center !important;
    width:100% !important; padding:11px 13px !important;
    color:#12355f !important; font-weight:800 !important;
    font-size:1rem !important; line-height:1.3 !important;
    background:transparent !important; border-radius:9px !important;
    opacity:1 !important; text-decoration:none !important; text-align:left !important;
  }
  body.cn-refresh .site-header .main-nav>a:not(.nav-signin):hover,
  body.cn-refresh .site-header .main-nav>a:not(.nav-signin):focus-visible {background:#edf5fe !important;color:#0b55b9 !important;}
  body.cn-refresh .site-header .main-nav .lang-switch {
    display:flex !important; align-items:center !important; justify-content:flex-start !important;
    padding:10px 13px !important; margin:4px 0 !important;
    color:#536e8a !important; gap:14px !important;
    width:100% !important; opacity:1 !important;
  }
  body.cn-refresh .site-header .main-nav .lang-switch a {color:#123c74 !important;font-weight:800 !important;font-size:1rem !important;opacity:1 !important;}
  body.cn-refresh .site-header .main-nav .lang-switch .active {color:#0967d5 !important;text-decoration:underline !important;text-underline-offset:4px !important;}
  body.cn-refresh .site-header .main-nav .nav-signin {
    display:flex !important; justify-content:center !important; align-items:center !important;
    margin:5px 0 0 !important; padding:14px !important; width:100% !important;
    min-height:48px !important; box-sizing:border-box !important;
    background:#1658b8 !important; color:#fff !important; border-radius:10px !important;
    font-size:.95rem !important; font-weight:800 !important; opacity:1 !important;
  }
  /* The dropdown may cover the hero but never pushes it down. */
  body.cn-refresh.cn-mobile-nav-open:before {
    content:""; position:fixed; inset:0; z-index:80;
    background:rgba(5,27,51,.23); pointer-events:none;
  }
  body.cn-refresh .hero-grid {padding-top:30px !important;padding-bottom:24px !important;gap:15px !important;}
  body.cn-refresh .hero-content {padding:0 !important;}
  body.cn-refresh .hero .eyebrow {margin-bottom:16px !important;}
  body.cn-refresh .hero h1 {line-height:1.075 !important;letter-spacing:-.05em !important; margin-bottom:17px !important;}
  body.cn-refresh .hero-description {line-height:1.55 !important;margin-bottom:22px !important;}
  body.cn-refresh .hero-actions {margin-bottom:18px !important;}
  body.cn-refresh .hero-actions .btn {min-height:50px !important;}
  body.cn-refresh .hero-visual {margin:0 auto !important;padding:0 2px 7px !important;}
  body.cn-refresh .hero-scenery:after {background:linear-gradient(180deg,rgba(248,252,255,.90) 0%,rgba(248,252,255,.78) 40%,rgba(248,252,255,.72) 100%) !important;}
  body.cn-refresh .float-card {display:none !important;}
}
@media (max-width:620px) {
  body.cn-refresh .shell {width:calc(100% - 32px) !important;}
  body.cn-refresh .header-inner {min-height:68px !important;}
  body.cn-refresh .site-header .brand-lockup img {width:clamp(165px,51vw,204px) !important;}
  body.cn-refresh .hero-grid {padding-top:25px !important;}
  body.cn-refresh .hero h1 {font-size:clamp(2.23rem,9.7vw,3.15rem) !important;}
  body.cn-refresh .hero-description {font-size:.99rem !important;}
  body.cn-refresh .hero-actions {gap:9px !important;}
  body.cn-refresh .hero-actions .btn {width:100% !important;min-height:50px !important;}
  body.cn-refresh .hero-foot {font-size:.76rem !important;line-height:1.45 !important;}
  body.cn-refresh .hero-bottom {margin-top:10px !important;}
  body.cn-refresh .ops-body {padding:14px !important;}
}
@media (prefers-reduced-motion:reduce){body.cn-refresh .mobile-menu span{transition:none !important;}}
