/* Scoped corrections for the installed Rufous/Kubio public theme. */
@media (min-width: 768px) {
  /* Keep the first dropdown inside its right-aligned menu item, even while
     Kubio parks the closed dropdown above the viewport. */
  body.wp-theme-rufous .kubio-dropdown-menu .kubio-menu > .menu > .menu-item-has-children > .sub-menu {
    left: auto !important;
    right: 0 !important;
  }
}

/* Keep the legacy Contact form's intrinsic input size inside its phone column. */
@media (max-width: 767px) {
  body.wp-theme-rufous.page-id-2492 .wpcf7-form-control-wrap {
    display: block;
    max-width: 100% !important;
  }

  body.wp-theme-rufous.page-id-2492 .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
  body.wp-theme-rufous.page-id-2492 .wpcf7 textarea,
  body.wp-theme-rufous.page-id-2492 .wpcf7 select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  /* A long email address must shrink and wrap inside its existing column. */
  body.wp-theme-rufous .wp-block-kubio-linkgroup .wp-block-kubio-link__outer {
    box-sizing: border-box;
    max-width: 100% !important;
    min-width: 0;
  }

  body.wp-theme-rufous .wp-block-kubio-linkgroup a[href^="mailto:"],
  body.wp-theme-rufous .wp-block-kubio-linkgroup a[href^="mailto:"] .wp-block-kubio-link__text {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
