/* Site-wide QA fixes. */

/* Desktop nav: the full menu needs ~1170px on one line. Between 981px and
   1199px show the mobile (hamburger) menu instead of wrapping; from 1200px to
   1439px tighten the items so they fit on one row. 1440px+ is unchanged. */
@media (min-width: 981px) and (max-width: 1199px) {
  .et_pb_fullwidth_menu_0_tb_header .et_pb_menu__menu { display: none !important; }
  .et_pb_fullwidth_menu_0_tb_header .et_mobile_nav_menu {
    display: flex !important;
    align-items: center;
    margin-left: auto;
  }
  .et_pb_fullwidth_menu_0_tb_header .et_pb_menu__wrap { justify-content: flex-end; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .et_pb_fullwidth_menu_0_tb_header .et-menu > li { padding-left: 6px; padding-right: 6px; }
  .et_pb_fullwidth_menu_0_tb_header.et_pb_fullwidth_menu ul.et-menu > li > a { font-size: 14px; }
  /* Dropdowns of the right-most parents open leftwards so they stay on screen. */
  .et_pb_fullwidth_menu_0_tb_header .et-menu > li.menu-item-has-children:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right: 0;
  }
}

/* Form fields at 16px so iOS Safari doesn't zoom the page on focus. */
.wpcf7-form input.wpcf7-form-control,
.wpcf7-form textarea.wpcf7-form-control,
.wpcf7-form select.wpcf7-form-control {
  font-size: 16px !important;
}

/* reCAPTCHA v3 badge: hidden (it overflowed narrow screens). Google permits
   this when the attribution text below each form is shown instead. */
.grecaptcha-badge {
  visibility: hidden !important;
  right: auto !important;
  left: 0 !important;
}
.recaptcha-note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #666666;
}
.recaptcha-note a { color: inherit; text-decoration: underline; }

/* Avily credit logo (template: templates/designed-by-avily.html). */
.avily-credit img {
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin: 0 4px;
}

/* A few Divi hero columns are ~10-30px wider than narrow phones, which let the
   page scroll sideways. clip (not hidden) keeps sticky/fixed headers working. */
html, body { overflow-x: clip; }
