/* v0.1.5 desktop header, hero selector and drawer scale fixes */

/* The numbered desktop selector is typographic navigation, not a filled tab. */
@media (min-width: 781px) {
  .xa-hero__controls button,
  .xa-hero__controls button.is-active,
  .xa-hero__controls button:hover,
  .xa-hero__controls button:focus-visible {
    background: transparent;
  }

  /* Reserve the third grid column for contact details. The centred, absolute
     logo no longer affects automatic grid placement or collides with them. */
  .xa-mainhead__left {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .xa-contact-actions {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
  }

  .xa-contact-actions > a,
  .xa-contact-actions > a > span:last-child {
    min-width: 0;
  }

  .xa-contact-actions strong {
    white-space: nowrap;
  }

  /* A compact desktop drawer leaves vertical room for future dropdowns. */
  .xa-drawer__panel {
    width: min(410px, 90vw);
    padding: 34px 44px 32px;
  }

  .xa-drawer__logo {
    width: 122px;
    margin-bottom: 20px;
  }

  .xa-drawer .menu a {
    padding: 7px 0;
    font-size: clamp(1.65rem, 2.1vw, 2rem);
    line-height: 1.05;
  }

  .xa-drawer .menu .sub-menu {
    margin-bottom: 5px;
    padding-top: 2px;
    padding-bottom: 3px;
  }

  .xa-drawer .menu .sub-menu a {
    padding: 5px 0;
    font-size: 1rem;
  }

  .xa-drawer__contact {
    margin-top: 20px;
    font-size: .92rem;
  }
}

@media (min-width: 1181px) {
  .xa-mainhead {
    grid-template-columns: minmax(390px, 1fr) 220px minmax(500px, 1fr);
  }

  .xa-contact-actions {
    gap: 20px;
  }

  .xa-contact-actions > a {
    gap: 10px;
    font-size: .88rem;
  }

  .xa-contact-actions strong {
    font-size: .98rem;
  }

  .xa-contact-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 781px) and (max-width: 1180px) {
  .xa-mainhead {
    grid-template-columns: minmax(230px, 1fr) 180px minmax(300px, 1fr);
  }

  .xa-contact-actions > a:nth-child(2) > span:last-child {
    display: none;
  }
}
