/* Static mobile navigation for the Cloudflare/GitHub mirror.
   Uses native <details>/<summary>; no Divi or JavaScript is required to open it. */
@media (min-width: 981px) {
  .budget-native-mobile-nav {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .et_pb_menu .budget-native-mobile-nav {
    display: flex !important;
    align-items: center;
    margin: 0 6px;
    position: relative;
    z-index: 2147483000;
  }

  .budget-mobile-details {
    position: static;
  }

  .budget-mobile-summary {
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    list-style: none;
    position: relative;
    touch-action: manipulation;
    width: 48px;
    z-index: 2147483002;
  }

  .budget-mobile-summary::-webkit-details-marker {
    display: none;
  }

  .budget-mobile-summary::marker {
    content: "";
    display: none;
  }

  .budget-mobile-bars,
  .budget-mobile-bars::before,
  .budget-mobile-bars::after {
    background: #000958;
    border-radius: 3px;
    display: block;
    height: 3px;
    position: absolute;
    transition: transform .2s ease, opacity .2s ease;
    width: 29px;
  }

  .budget-mobile-bars {
    position: relative;
  }

  .budget-mobile-bars::before,
  .budget-mobile-bars::after {
    content: "";
    left: 0;
  }

  .budget-mobile-bars::before { top: -9px; }
  .budget-mobile-bars::after { top: 9px; }

  .budget-mobile-details[open] .budget-mobile-bars {
    background: transparent;
  }

  .budget-mobile-details[open] .budget-mobile-bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  .budget-mobile-details[open] .budget-mobile-bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .budget-mobile-drawer {
    background: #fff;
    border-top: 3px solid #ee6a19;
    box-shadow: 0 12px 30px rgba(0, 9, 88, .18);
    box-sizing: border-box;
    left: 0;
    max-height: calc(100dvh - 82px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 18px 30px;
    position: fixed;
    right: 0;
    top: 82px;
    width: 100vw;
    z-index: 2147483001;
  }

  .budget-mobile-list,
  .budget-mobile-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .budget-mobile-list > li {
    border-bottom: 1px solid #e8eaf3;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .budget-mobile-list a {
    color: #000958 !important;
    display: block !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    opacity: 1 !important;
    padding: 15px 10px !important;
    text-decoration: none !important;
    width: auto !important;
  }

  .budget-mobile-list .sub-menu {
    background: #f7f8fb !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
    opacity: 1 !important;
    padding: 5px 0 8px 18px !important;
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    width: 100% !important;
  }

  .budget-mobile-list .sub-menu li {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .budget-mobile-list .sub-menu a {
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
  }

  .budget-mobile-list > li:nth-last-child(2),
  .budget-mobile-list > li:last-child {
    border-bottom: 0;
    margin-top: 12px !important;
  }

  .budget-mobile-list > li:nth-last-child(2) > a,
  .budget-mobile-list > li:last-child > a {
    border-radius: 999px;
    color: #fff !important;
    text-align: center;
  }

  .budget-mobile-list > li:nth-last-child(2) > a {
    background: #000958;
  }

  .budget-mobile-list > li:last-child > a {
    background: #ee6a19;
  }

  .budget-mobile-list .menu-item-has-children > a:first-child::after {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .budget-mobile-drawer {
    top: 78px;
    max-height: calc(100dvh - 78px);
    padding-left: 14px;
    padding-right: 14px;
  }
}
