/* Phone typography and spacing. Desktop and tablet layouts keep their existing styles. */
@media (max-width: 640px) {
  main h1, main h2, main h3 { overflow-wrap: break-word; }
  main h1 { font-size: 32px !important; line-height: 1.16 !important; letter-spacing: -.4px; }
  main .hero h1.hero-support-message { font-size: 22px !important; line-height: 1.3 !important; }
  main .hero h1 { font-size: 34px !important; line-height: 1.12 !important; letter-spacing: -.5px; margin: 14px 0; }
  main h2 { font-size: 24px !important; line-height: 1.25 !important; }
  main .sectionhead h2, main .public-banner h1, main .public-banner h2 { font-size: 23px !important; line-height: 1.25 !important; letter-spacing: 0; max-width: 100%; }
  main .card h3, main .public-updates article h3 { font-size: 22px !important; line-height: 1.3 !important; margin: 10px 0; }
  main .heroaside h2 { font-size: 23px !important; }
  main .membership h2 { font-size: 28px !important; line-height: 1.2 !important; }
  main .about h2 { font-size: 26px !important; }
  main .public-banner { min-height: 120px; padding: 20px 16px; margin: 22px 0 18px; }
  #latest-news > .sectionhead, #school-preview > .sectionhead,
  #government > .sectionhead, #lco-updates > .sectionhead,
  #calendar > .sectionhead, #community-updates > .sectionhead {
    min-height: 120px; padding: 20px 16px; margin: 22px 0 18px; gap: 10px;
  }
  main .hero { padding-top: 30px; padding-bottom: 30px; gap: 22px; }
  main .hero p { margin-top: 12px; }
  main .cards { gap: 18px; }
  main .card { padding: 18px 16px; }
  main .story-lead { font-size: 18px; }
  main .public-breadcrumb { overflow-wrap: anywhere; }
  /* Keep inline form controls within the phone width without shrinking input text. */
  main form input:not([type=checkbox]):not([type=radio]), main form select, main form textarea { max-width: 100%; min-width: 0; }
}
@media (max-width: 380px) {
  main .hero h1 { font-size: 31px !important; }
  main .sectionhead h2, main .public-banner h1, main .public-banner h2 { font-size: 22px !important; }
}
