/*
 * V13 shared professional-page navigation and interaction tokens.
 * This stylesheet is referenced by static Labs, Cases, Hiring and Trust pages.
 * The React landing page has its own tested navigation treatment.
 */
:root {
  --page-interactive-min: 44px;
  --page-focus-color: #d9f9ad;
  --page-radius-sm: 9px;
}
header nav a,
.top nav a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--page-interactive-min);
  padding: 10px 9px;
  line-height: 1.35;
  border-radius: var(--page-radius-sm);
  text-underline-offset: 4px;
  white-space: normal;
}
header nav a:hover,
.top nav a:hover { background: rgba(196, 244, 168, .11); }
header nav a:focus-visible,
.top nav a:focus-visible {
  outline: 3px solid var(--page-focus-color);
  outline-offset: 3px;
}
@media (max-width: 650px) {
  /* Spanish technical-lab brand + navigation must wrap into two rows rather
     than overflow a 320px viewport when links have 44px tap targets. */
  .top { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .top .brand { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .top nav { flex-basis: 100%; width: 100%; justify-content: flex-start; }
  header nav, .top nav {
    flex-wrap: wrap;
    gap: 3px 7px;
    max-width: 100%;
  }
  header nav a, .top nav a {
    min-height: var(--page-interactive-min);
    font-size: 13px;
    padding-inline: 9px;
  }
}
@media (max-width: 350px) {
  header nav a, .top nav a { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* The localized lab title contains a long Spanish word, which otherwise
   overflows the viewport at 320px when the original minimum size is 43px. */
@media (max-width: 390px) {
  html[lang="es"] .intro h1 {
    font-size: clamp(30px, 9vw, 36px);
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}
