/* English phrases need room to wrap at phone widths, including in forms and navigation. */
@media screen and (max-width: 767px) {
  html[lang="en"] body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html[lang="en"] main :is(h1, h2, h3, p, li, dd, summary, label) {
    overflow-wrap: break-word;
  }

  html[lang="en"] main h1 {
    font-size: clamp(1.85rem, 6.8vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    text-wrap: pretty;
  }

  html[lang="en"] main :is(p, li) {
    font-size: .98rem;
    line-height: 1.58;
  }

  html[lang="en"] main :is(label, summary) {
    font-size: .925rem;
    line-height: 1.45;
  }

  html[lang="en"] :is(main, .support-compose) :is(input:not([type]), input[type="text"], input[type="search"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="date"], input[type="month"], select, textarea) {
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 1rem;
  }

  html[lang="en"] .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 16px;
  }

  html[lang="en"] .site-header > .header-actions { grid-column: 2; }
  html[lang="en"] .site-header :is(.mobile-menu, .cart-button) { width: 44px; height: 44px; }
  html[lang="en"] .site-header > .main-nav.open {
    max-height: 65vh;
    max-height: 65dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html[lang="en"] .language-select { min-height: 44px; font-size: 1rem; }
  html[lang="en"] .announcement .language-select { min-height: 44px; font-size: 1rem; }
  html[lang="en"] .mobile-service-paths { gap: 6px; padding: 10px 16px 4px; }
  html[lang="en"] .mobile-service-paths a {
    min-height: 46px;
    padding: 7px 4px;
    font-size: clamp(.84rem, 3.7vw, .94rem);
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
  }
  html[lang="en"] .homepage-secondary-mobile > summary { padding-block: 13px; }

  html[lang="en"] .storefront:not(.checkout-only) .hero {
    padding: 26px clamp(16px, 5vw, 32px) 30px;
  }
  html[lang="en"] .hero-copy { text-align: left; }
  html[lang="en"] .storefront:not(.checkout-only) .hero h1 {
    margin: 12px 0;
    font-size: clamp(1.85rem, 7.8vw, 2.5rem);
    line-height: 1.12;
    text-wrap: pretty;
  }
  html[lang="en"] .storefront .hero-copy > p {
    margin-inline: 0;
    font-size: 1rem;
    line-height: 1.55;
  }
  html[lang="en"] .hero-copy .eyebrow { letter-spacing: .07em; line-height: 1.45; }
  html[lang="en"] .hero-actions { align-items: stretch; flex-direction: column; }
  html[lang="en"] .storefront .hero-copy > .hero-registration-note {
    margin-top: 14px;
    font-size: .875rem;
  }

  html[lang="en"] :is(.programme-hero, .audience-center-hero, .community-hero, .assurance-hero) {
    min-height: auto;
    padding-block: 30px;
    gap: 22px;
  }
  html[lang="en"] :is(.audience-center-copy, .community-hero, .programme-hero, .assurance-hero) h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    line-height: 1.16;
    margin-block: 12px;
  }
  html[lang="en"] :is(.assurance-page, .audience-center-hero) a.primary-cta { color: white; }
  html[lang="en"] :is(.primary-cta, .secondary-cta) {
    min-height: 44px;
    height: auto;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
    line-height: 1.35;
  }
  html[lang="en"] :is(.catalog-nav, .catalog-product footer, .utility-topbar, .st-heading) { flex-wrap: wrap; }
  html[lang="en"] .catalog-nav { justify-content: flex-start; gap: 4px 14px; }
  html[lang="en"] .catalog-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .875rem;
  }
  html[lang="en"] .catalog-result-heading { flex-direction: column; align-items: flex-start; gap: 4px; }
  html[lang="en"] .catalog-result-heading > span { padding: 0; white-space: normal; }
  html[lang="en"] .catalog-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[lang="en"] .catalog-filters label { min-width: 0; }
  html[lang="en"] .catalog-filters button { min-height: 44px; }
  html[lang="en"] .st-nav { flex-wrap: wrap; position: static; }
  html[lang="en"] .st-nav button { flex: 1 1 8rem; min-height: 44px; }

  html[lang="en"] .site-policy-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
  html[lang="en"] .site-policy-links a { display: flex; align-items: center; min-height: 44px; }
  html[lang="en"] .support-trigger {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    grid-template: 1fr / 1fr;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 5px;
    border-radius: 50%;
  }
  html[lang="en"] .support-trigger > span { grid-row: 1; }
  html[lang="en"] .support-trigger :is(b, small) { display: none; }
  html[lang="en"] .support-panel { max-height: 100dvh; }
}

@media screen and (max-width: 480px) {
  html[lang="en"] .advisor-directory-compact .advisor-grid,
  html[lang="en"] .storefront .process-grid { grid-template-columns: minmax(0, 1fr); }
  html[lang="en"] .catalog-filters { grid-template-columns: minmax(0, 1fr); }
  html[lang="en"] .catalog-search button { padding-inline: 14px; }
  html[lang="en"] .assurance-hero .primary-cta { padding-inline: 12px; }
  html[lang="en"] .advisor-card { grid-template-columns: minmax(76px, 27%) minmax(0, 1fr); }
  html[lang="en"] .advisor-portrait img { max-width: 100%; }
}
