/* Fixes layered on top of the Webflow export. */

@media screen and (max-width: 991px) {
  /* Webflow forces display:block !important on the open menu, which lays the links out in a row. Stack them instead. */
  .nav-menu[data-nav-menu-open] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    grid-row-gap: 40px;
    width: 100%;
    height: 100vh;
    left: 0;
    right: 0;
    padding-top: 120px;
    background-color: var(--n2);
  }

  .nav-menu[data-nav-menu-open] .nav-link.mobile {
    display: block;
    width: auto;
    margin-top: 0;
    padding: 0;
  }

  .nav-menu[data-nav-menu-open] .nav-link.mobile.hidden {
    display: none;
  }

  .nav-menu[data-nav-menu-open] .nav-button {
    margin-top: 16px;
    font-size: 20px;
    padding: 12px 24px;
  }

  /* No sideways scroll from the 100vw overlay */
  .w-nav-overlay {
    overflow: hidden;
  }

  /* Keep the menu button above the open menu and show an X while it's open */
  .menu-button-2 {
    position: relative;
    z-index: 100;
  }

  .menu-button-2.w--open .w-icon-nav-menu:before {
    content: "\2715";
    font-family: Nunito, sans-serif;
  }
}

/* Name next to the logomark links home too */
.name-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Footer: keep it inside the screen between the tablet and phone breakpoints */
/* The divider also picks up the unrelated .footer rule's padding and 100vw min-width */
.divider.footer {
  height: 1px;
  max-height: 1px;
  min-width: 0;
  padding: 0;
  flex: none;
}

@media screen and (max-width: 991px) {
  .arrow-link----large {
    max-width: 100%;
    min-width: 0;
  }

  .footer-email-address.white {
    font-size: clamp(16px, 4.2vw, 32px);
    text-indent: 0;
    overflow-wrap: anywhere;
    min-width: 0;
  }

  .wrapper----right-align {
    flex-wrap: wrap;
    justify-content: flex-start;
    grid-row-gap: 16px;
  }

  .copyright-v2 {
    flex-basis: 100%;
    text-align: left;
  }
}

@media screen and (max-width: 479px) {
  .arrow-link----large .icon._48 {
    flex: none;
  }

  .copyright-v2 {
    width: auto;
    text-align: left;
  }
}

/* Footer links: shrink the text so Home / LinkedIn / Resume stay on one row (replaces the visual-only scale(.7)) */
@media screen and (max-width: 991px) {
  .wrapper----right-align {
    grid-column-gap: 24px;
  }

  .wrapper----right-align .arrow-link {
    flex: none;
    transform: none;
  }

  .wrapper----right-align .arrow-link .header-cap-h4---20px {
    font-size: clamp(11px, 3.2vw, 20px);
  }

  .wrapper----right-align .arrow-link .icon {
    width: clamp(14px, 3.6vw, 24px);
    height: clamp(14px, 3.6vw, 24px);
  }
}

@media screen and (max-width: 991px) {
  .wrapper----right-align {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 479px) {
  .wrapper----right-align {
    grid-column-gap: 16px;
  }
}

/* 44px touch targets for the footer links on touch-size screens */
@media screen and (max-width: 991px) {
  .wrapper----right-align .arrow-link {
    min-height: 44px;
    align-items: center;
  }
}
