/* Keep main.css unchanged; only image arrows and the mobile menu are adjusted. */
.ubix-arrow {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  line-height: 0;
  vertical-align: -2px;
  pointer-events: none;
}
.ubix-arrow__image {
  display: block;
  width: 16px;
  height: 16px;
  max-width: none;
}
.button > .ubix-arrow {
  margin-left: 8px;
}
.section-dark .ubix-arrow__image,
.text-link--light .ubix-arrow__image,
.button--dark .ubix-arrow__image,
.site-footer .ubix-arrow__image {
  filter: brightness(0) invert(1);
}

/* The SVG mask inherits the exact text color, including card hover colors. */
@supports (-webkit-mask-image: url("")) or (mask-image: url("")) {
  .ubix-arrow {
    background-color: currentColor;
    -webkit-mask-image: url("../images/arrow-up-right.svg");
    mask-image: url("../images/arrow-up-right.svg");
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 16px 16px;
    mask-size: 16px 16px;
    mask-mode: alpha;
  }
  .ubix-arrow__image {
    opacity: 0;
  }
}

/* Remove the menu from document flow so the header and hero keep their height. */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
}
.mobile-nav.is-open {
  max-height: var(--ubix-menu-height, 700px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
