/*
  Theme Name: Divi Child
  Version: 1.0.0
  Template: Divi
  Author: Divi Pixel
  Author URI: https://www.divi-pixel.com
  Text Domain: divi-child
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Mobile nav: let the off-canvas panel scroll when the menu is taller than the screen */
.et_pb_section.mobile-nav-section {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: 28px !important;
  padding-bottom: 40px !important;
}

/* Mobile nav: keep the sticky header (z-index 10010) from covering the open menu panel */
header[data-canvas="Mobile Menu"] .et_builder_inner_content {
  z-index: 1000000;
}

/* Mobile nav: tighten the gap between About Us, Resources and Contact Us (default row gap is 35px) */
.mobile-nav-section :is(.et-menu, .et_mobile_menu) > li:not(.menu-item-has-children) ~ li {
  margin-top: -20px;
}
