/* Share phone and tablet fixes without changing the desktop styles. */
img,
picture,
video,
canvas,
iframe,
embed,
object {
  max-width: 100%;
}

img,
video,
canvas {
  height: auto;
}

iframe,
embed,
object {
  height: auto;
  aspect-ratio: 16 / 9;
}

@media (max-width: 990px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 16px;
    overflow-x: visible;
    overflow-wrap: anywhere;
  }

  /* Let grid and flex children shrink to the available screen width. */
  .container *,
  .article-wrap * {
    min-width: 0;
  }

  body :is(p, li, label, small, input, select, textarea, .btn,
    .announcement, .nav-links, .eyebrow, .hero-note, .ticker-inner,
    .tick-label, .kicker, .step-num, .popular, .package-detail,
    .form-note, .form-status, .footer-links, .copyright,
    .market-number, .market-cta, .independent-note, .text-link,
    .price-note, .proof-note, .small-legal, .panel-intro,
    .blog-label, .backlink, .bread, .bullets, .deliver, .legalnote),
  .flagship .eyelabel,
  .contact-info .checkline,
  .pill-list span,
  .form-row label,
  .blog-card .text-link,
  .article-wrap .backlink {
    font-size: 16px;
  }

  body a[href]:not(.nav-cta) {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    vertical-align: middle;
  }

  button,
  input:not([type="hidden"]),
  select,
  textarea {
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
  }

  /* The consultation submit button has an inline font size. */
  .contact-panel button[type="submit"] {
    font-size: 16px !important;
  }

  .form-row input[type="checkbox"] {
    flex: 0 0 44px;
  }

  .nav-inner {
    gap: 12px;
  }

  .mobile-toggle {
    flex-shrink: 0;
    min-width: 44px;
  }

  .nav-links {
    top: 100%;
    gap: 8px;
    max-height: min(75vh, var(--menu-available-height, 75vh));
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: #ffffff12;
  }

  :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
  }

  .nav :is(a, button):focus-visible {
    outline-color: var(--cyan);
  }

  .eyebrow .dot {
    flex-shrink: 0;
  }

  .hero-note::before {
    flex-shrink: 0;
  }

  .dash-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-cta {
    width: 100%;
  }

  .why-visual h3 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .footer-links {
    column-gap: 20px;
    row-gap: 4px;
  }
}

@media (max-width: 760px) {
  .brand-title {
    font-size: clamp(15px, 4.3vw, 17px);
  }

  .hero-inner,
  .two-col,
  .cta-grid,
  .subgrid,
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
