/* Shared hamburger menu. Loaded on site pages and the calculator. No tracking, no libraries. */
:root{--site-header-h:91px}
.site-hd{--site-header-h:81px}

.menu-toggle{
  appearance:none;-webkit-appearance:none;
  background:transparent;border:0;
  width:66px;height:66px;padding:0;margin-left:6px;
  cursor:pointer;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff;border-radius:9px;position:relative;z-index:201;
}
.menu-toggle:hover{background:rgba(255,255,255,.08)}
.menu-toggle:focus-visible{outline:3px solid #E0A03C;outline-offset:2px}
.menu-bars{display:block;width:33px;height:24px;position:relative}
.menu-bars span{
  position:absolute;left:0;right:0;height:3px;background:currentColor;border-radius:1.5px;
  transition:transform .2s ease,top .2s ease,opacity .2s ease;
}
.menu-bars span:nth-child(1){top:0}
.menu-bars span:nth-child(2){top:10.5px}
.menu-bars span:nth-child(3){top:21px}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1){top:10.5px;transform:rotate(45deg)}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3){top:10.5px;transform:rotate(-45deg)}

@media (min-width:600px){
  :root{--site-header-h:113.5px}
  .site-hd{--site-header-h:101.25px}
  .menu-toggle{width:82.5px;height:82.5px;margin-left:7.5px;border-radius:11.25px}
  .menu-bars{width:41.25px;height:30px}
  .menu-bars span{height:3.75px;border-radius:1.875px}
  .menu-bars span:nth-child(2){top:13.125px}
  .menu-bars span:nth-child(3){top:26.25px}
  .menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1){top:13.125px;transform:rotate(45deg)}
  .menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3){top:13.125px;transform:rotate(-45deg)}
}

.menu-backdrop{
  position:fixed;top:var(--site-header-h);left:0;right:0;bottom:0;
  background:rgba(8,17,31,.45);z-index:198;
}
.menu-panel{
  position:fixed;top:var(--site-header-h);right:0;
  width:min(100vw,360px);
  max-height:calc(100vh - var(--site-header-h));
  overflow:auto;
  background:#16294A;color:#fff;
  z-index:199;
  border-left:1px solid rgba(255,255,255,.08);
  box-shadow:-12px 0 40px rgba(0,0,0,.35);
  padding:8px 0 28px;
  -webkit-overflow-scrolling:touch;
}
.menu-nav{margin:0}
.menu-label{
  font-family:"Oswald","Arial Narrow",Impact,sans-serif;
  font-weight:600;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  color:#E0A03C;margin:16px 20px 6px;
}
.menu-list{list-style:none;margin:0;padding:0}
.menu-list a{
  display:block;color:#EEF1F6;text-decoration:none;
  font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:1rem;font-weight:600;line-height:1.3;
  padding:12px 20px;min-height:44px;
  border-left:3px solid transparent;
}
.menu-list a:hover{background:rgba(255,255,255,.06);color:#E0A03C}
.menu-list a[aria-current="page"]{color:#E0A03C;border-left-color:#E0A03C}
.menu-list a:focus-visible{outline:3px solid #E0A03C;outline-offset:-3px}

body.menu-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){
  .menu-bars span{transition:none}
}
@media print{
  .menu-toggle,.menu-panel,.menu-backdrop{display:none!important}
}

/* Keep the hamburger (and the calculator tool label) on the right when the desktop nav is hidden. */
.header-inner .menu-toggle,
.site-hd .site-tool{margin-left:auto}
.site-hd .menu-toggle{margin-left:4px}
@media (max-width:599px){
  /* live 1.5x: below 960px the calculator toggle margin is 6px (then auto under 440px). */
  .site-hd .menu-toggle{margin-left:6px}
}
@media (min-width:600px){
  .site-hd .menu-toggle{margin-left:5px}
}
@media (min-width:600px) and (max-width:1199px){
  .site-hd .menu-toggle{margin-left:7.5px}
  .site-hd .site-tool{margin-left:auto}
}
@media (min-width:1200px){
  .header-inner .menu-toggle{margin-left:7.5px}
}
@media (max-width:440px){
  /* tool label hides; hamburger takes the right edge */
  .site-hd .menu-toggle{margin-left:auto}
}


/* 72-Hour Go-Bag tool link: bright orange in every state, including :visited and
   iOS sticky :hover/:active. Distinct from the site gold (#E0A03C). */
:root{--go-bag-orange:#FF7B29}
.menu-list a[href="/go-bag/"],
.menu-list a[href="/go-bag/"]:link,
.menu-list a[href="/go-bag/"]:visited,
.menu-list a[href="/go-bag/"]:hover,
.menu-list a[href="/go-bag/"]:focus,
.menu-list a[href="/go-bag/"]:focus-visible,
.menu-list a[href="/go-bag/"]:active,
.menu-list a[href="/go-bag/"]:visited:hover,
.menu-list a[href="/go-bag/"]:visited:focus,
.menu-list a[href="/go-bag/"]:visited:active,
.menu-list a[href="/go-bag/"][aria-current="page"],
.menu-list a[href="/go-bag/"][aria-current="page"]:link,
.menu-list a[href="/go-bag/"][aria-current="page"]:visited,
.menu-list a[href="/go-bag/"][aria-current="page"]:hover,
.menu-list a[href="/go-bag/"][aria-current="page"]:focus,
.menu-list a[href="/go-bag/"][aria-current="page"]:focus-visible,
.menu-list a[href="/go-bag/"][aria-current="page"]:active{
  color:#FF7B29;
}
.menu-list a[href="/go-bag/"]:hover,
.menu-list a[href="/go-bag/"]:active,
.menu-list a[href="/go-bag/"][aria-current="page"]{
  background:rgba(255,123,41,.12);
}
.menu-list a[href="/go-bag/"][aria-current="page"]{
  border-left-color:#FF7B29;
}
.menu-list a[href="/go-bag/"]:focus-visible,
.menu-list a[href="/go-bag/"][aria-current="page"]:focus-visible{
  outline:3px solid #FF7B29;
  outline-offset:-3px;
}

/* /resources/ Preparedness list sits on paper (#F7F4EE). The game orange (#FF7B29) is too light for AA text there,
   so this link stays the deeper orange #B84300 (4.98:1, WCAG AA). */
.resource-list a[href="/go-bag/"],
.resource-list a[href="/go-bag/"]:link,
.resource-list a[href="/go-bag/"]:visited,
.resource-list a[href="/go-bag/"]:hover,
.resource-list a[href="/go-bag/"]:focus,
.resource-list a[href="/go-bag/"]:focus-visible,
.resource-list a[href="/go-bag/"]:active,
.resource-list a[href="/go-bag/"]:visited:hover,
.resource-list a[href="/go-bag/"]:visited:focus,
.resource-list a[href="/go-bag/"]:visited:active{
  color:#B84300;
}
.resource-list a[href="/go-bag/"]:focus-visible{
  outline:3px solid #B84300;
  outline-offset:2px;
}
