document.addEventListener("DOMContentLoaded", function(){
  var toggle=document.querySelector('.storm-nav-toggle');
  if(toggle){
    toggle.addEventListener('click', function(){
      document.body.classList.toggle('nav-open');
      toggle.setAttribute('aria-expanded', document.body.classList.contains('nav-open') ? 'true' : 'false');
    });
  }
  var overlay=document.getElementById('navOverlay');
  if(overlay){
    overlay.addEventListener('click', function(){
      document.body.classList.remove('nav-open');
      if(toggle) toggle.setAttribute('aria-expanded','false');
    });
  }
});
