.epic-mobile-nav { display:none; }
.epic-package-actions { display:none; }
@media (max-width:767px) {
  .header-wrapper .header-container.epic-mobile-ready { position:relative; box-sizing:border-box; background:#082c42; min-height:64px; }
  .header-wrapper .epic-mobile-ready .gdl-navigation-wrapper { display:none !important; }
  .header-wrapper .epic-mobile-ready .logo-wrapper { float:none; text-align:right; margin:0 12px 0 100px; padding:10px 0; }
  .header-wrapper .epic-mobile-ready .logo-wrapper img { max-width:100%; max-height:44px; width:auto; height:auto; }
  .epic-mobile-ready .epic-mobile-nav { display:block; position:absolute; top:0; left:0; right:0; height:0; z-index:1000; color:#fff; font:600 16px/1.45 system-ui,sans-serif; }
  .epic-mobile-nav summary { display:inline-flex; align-items:center; gap:10px; cursor:pointer; min-height:44px; margin:10px 0 0 12px; padding:0 8px; border:0; background:transparent; color:#fff; list-style:none; }
  .epic-mobile-nav summary::-webkit-details-marker { display:none; }
  .epic-mobile-icon { width:23px; height:18px; border-block:2px solid currentColor; position:relative; box-sizing:border-box; }
  .epic-mobile-icon:after { content:''; position:absolute; top:6px; left:0; right:0; border-top:2px solid currentColor; }
  .epic-mobile-nav details[open] .epic-mobile-icon { border:0; }
  .epic-mobile-nav details[open] .epic-mobile-icon:before,.epic-mobile-nav details[open] .epic-mobile-icon:after { content:''; position:absolute; left:0; right:0; top:8px; border-top:2px solid currentColor; transform:rotate(45deg); }
  .epic-mobile-nav details[open] .epic-mobile-icon:after { transform:rotate(-45deg); }
  .epic-mobile-nav .epic-mobile-panel { position:absolute; top:64px; left:0; right:0; max-height:70vh; max-height:70dvh; overflow:auto; overscroll-behavior:contain; box-sizing:border-box; padding:8px 20px 20px; background:#082c42; border-top:1px solid #ffffff30; box-shadow:0 12px 24px #0005; animation:epic-nav-in .16s ease-out; }
  @keyframes epic-nav-in { from {opacity:0;transform:translateY(-5px)} to {opacity:1;transform:translateY(0)} }
  @media(prefers-reduced-motion:reduce) { .epic-mobile-nav .epic-mobile-panel { animation:none; } }
  .epic-mobile-nav ul,.epic-mobile-nav li { list-style:none; margin:0; padding:0; }
  .epic-mobile-nav a { display:flex; align-items:center; min-height:48px; box-sizing:border-box; color:#fff !important; text-decoration:none; padding:10px 4px; white-space:normal; }
  .epic-mobile-nav li { border-bottom:1px solid #ffffff20; }
  .epic-mobile-nav .epic-mobile-row { display:flex; align-items:center; }
  .epic-mobile-nav .epic-mobile-row a { flex:1; min-width:0; }
  .epic-mobile-nav .epic-mobile-expand { flex:0 0 48px; height:48px; background:transparent; border:0; color:#c6dfeb; cursor:pointer; }
  .epic-mobile-expand:after { content:''; display:inline-block; width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); }
  .epic-mobile-expand[aria-expanded=true]:after { transform:rotate(225deg); }
  .epic-mobile-nav .sub-menu { padding-left:14px; border-left:1px solid #ffffff30; }
  .epic-mobile-nav .sub-menu[hidden] { display:none !important; }
  .epic-mobile-nav .sub-menu a { font-size:14px; color:#dbeafe !important; }
  .epic-mobile-nav .current-menu-item > a,.epic-mobile-nav .current-menu-item > .epic-mobile-row > a { color:#ffc72c !important; }
  .epic-mobile-nav .epic-mobile-cta { justify-content:center; background:#0879b8; border-radius:8px; margin-top:16px; }
  .epic-mobile-nav :focus-visible { outline:2px solid #ffc72c; outline-offset:2px; }
  .epic-package-modern .epic-package-actions:not([hidden]) { display:flex; gap:8px; position:fixed; bottom:0; left:0; right:0; z-index:90; background:#082c42; padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px)); }
  .epic-package-actions a { flex:1; min-height:44px; display:flex; align-items:center; justify-content:center; text-align:center; background:#0879b8; color:white !important; border-radius:8px; font-weight:600; padding:6px; box-sizing:border-box; }
  .epic-package-actions a + a { background:transparent; border:1px solid #a7bdcc; }
  body.epic-package-has-actions { padding-bottom:calc(70px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width:767px) {
  /* The full-width zero-height navigation layer must not intercept logo taps. */
  .epic-mobile-ready .epic-mobile-nav { pointer-events:none; }
  .epic-mobile-nav summary,.epic-mobile-nav .epic-mobile-panel { pointer-events:auto; }
  .header-wrapper .epic-mobile-ready .logo-wrapper a { display:inline-flex; align-items:center; justify-content:flex-end; min-height:44px; cursor:pointer; }
  .header-wrapper .epic-mobile-ready .logo-wrapper a:hover { opacity:.85; }
  .header-wrapper .epic-mobile-ready .logo-wrapper a:focus-visible { outline:2px solid #ffc72c; outline-offset:2px; }
  .epic-mobile-nav .current-menu-ancestor > .epic-mobile-row > a,.epic-mobile-nav .current-menu-parent > .epic-mobile-row > a,.epic-mobile-nav .current_page_ancestor > .epic-mobile-row > a { color:#ffc72c !important; }
  body.epic-mobile-menu-open { overflow:hidden; }
  .epic-mobile-nav .epic-mobile-panel { max-height: min(70vh, calc(100vh - 110px)); max-height: min(70dvh, calc(100dvh - 110px)); }
}

.epic-mobile-nav .epic-mobile-cta:hover,.epic-package-actions a:first-child:hover {background-color:#056296;}

/* v0.3.4: WordPress menu item visibility, aligned with the mobile navigation breakpoint. */
@media (min-width:768px) {
  .gdl-navigation-wrapper li.hide_on_desktop { display:none !important; }
}
@media (max-width:767px) {
  .epic-mobile-nav li.hide_on_mobile,.gdl-navigation-wrapper li.hide_on_mobile { display:none !important; }
  /* Only the redesigned homepage and modern packages have edge-to-edge heroes. */
  body.home:has(.epic-home-v3 .epic-hero-mobile) .header-wrapper,
  body.epic-package-modern:has(.epic-pkg-hero) .header-wrapper { background:#082c42 !important; }
  body.home:has(.epic-home-v3 .epic-hero-mobile) .header-container.epic-mobile-ready,
  body.epic-package-modern:has(.epic-pkg-hero) .header-container.epic-mobile-ready { width:100%; max-width:none; }
  body.home:has(.epic-home-v3 .epic-hero-mobile) .gdl-page-item { margin-top:0 !important; }
  body.home .epic-home-v3 .epic-hero-mobile {
    position:relative; left:50%; transform:translateX(-50%);
    width:100vw !important; max-width:none !important;
    margin-top:0 !important; margin-left:0 !important; margin-right:0 !important;
    border-radius:0 !important;
    box-shadow:0 6px 14px rgba(8,44,66,.15);
  }
  body.epic-package-modern:has(.epic-pkg-hero) .epic-package-shell { padding-top:0 !important; }
  body.epic-package-modern .epic-pkg-design .epic-pkg-hero {
    position:relative; left:50%; transform:translateX(-50%);
    width:100vw !important; max-width:none !important;
    margin-top:0 !important; margin-left:0 !important; margin-right:0 !important;
    border-radius:0 !important;
    box-shadow:0 6px 14px rgba(8,44,66,.15);
  }
}
