/* Shared phone/tablet refinements; desktop layouts keep their existing styles. */
@media (max-width: 860px) {
  .nav-right .nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    font-size: 16px;
    margin-left: 8px;
  }

  .nav-toggle,
  .nav-cart {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .nav-right .nav-cart,
  .nav-toggle {
    margin-left: 4px;
  }

  /* Scoped to #navLinks (the slide out drawer) — faq.html reuses the
     .nav-links class for an always visible inline row, which must keep
     its own compact sizing. */
  #navLinks a,
  .nav-dropdown-menu-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-right .nav-dropdown-menu {
    position: fixed;
    top: 68px;
    right: 4%;
    left: auto;
    width: min(280px, 92vw);
    min-width: 0;
    transform: none;
  }

  .sticky-buy {
    top: 77px;
  }

  /* Keep the closed drawer out of the tab order and off screen readers.
     #navLinks only — faq.html's .nav-links is a visible inline nav that
     never gets .open, so a class wide rule would hide it outright. */
  #navLinks:not(.open) {
    visibility: hidden;
  }

  .footer-subscribe input:not([type="hidden"]) {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }

  .footer-subscribe button {
    min-height: 44px;
  }

  .spec-label {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .nav {
    padding: 12px 4%;
  }

  .logo {
    gap: 6px;
    font-size: 18px;
    white-space: nowrap;
  }

  .logo svg {
    width: 16px;
    height: 16px;
  }

  .nav-right .nav-dropdown-trigger {
    font-size: 14px;
    margin-left: 4px;
  }

  .nav-right .nav-cart,
  .nav-toggle {
    margin-left: 0;
  }

  .sticky-buy {
    top: 69px;
  }
}

@media (max-width: 700px) {
  .launch-hero-copy .cta-buttons {
    align-items: flex-start;
  }

  .launch-hero-copy .cta-buttons .btn {
    padding-inline: 24px;
  }

  .launch-hero-copy .launch-learn-more {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer-subscribe input:not([type="hidden"]),
  .footer-subscribe button {
    flex: 1 1 100%;
    width: 100%;
  }

  .footer-newsletter,
  .brand-newsletter--wide {
    width: 100%;
    min-width: 0;
  }

  /* Footer links are 18px tall text rows with an 8px gap — too tight to
     tap accurately. Trade the margin for padding so each row grows to a
     comfortable target without stretching the footer. */
  .footer-links a,
  .footer-socials a {
    padding-block: 10px;
    margin-bottom: 0;
  }

  .btn-buy.sticky {
    min-height: 40px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .plugin-card:hover .plugin-img,
  .detail-img-wrap:hover .detail-img {
    transform: none;
  }
}
