@media (max-width: 700px) {
  main :is(h1, h2, h3, p, li, summary, label),
  footer :is(.footer-legal, .footer-copyright, .footer-name) {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }

  main :is(h1, h2, h3):not(.brand-hero-title h1) {
    hyphens: auto;
    text-wrap: balance;
  }

  main :is(p, summary) {
    text-wrap: pretty;
  }

  main :is(.intro-title-line, .case-hero-line, .help-intro-first, .help-intro-second, .collab-final-line) {
    display: inline;
    white-space: normal;
  }

  main :is(.case-hero-line + .case-hero-line, .help-intro-first + .help-intro-second)::before {
    content: " ";
  }

  main :is(.btn, summary, .help-reading-toggle) > :is(.icon, .btn-icon, .method-symbol, .faq-toggle, svg),
  main .section-marker > svg {
    flex-shrink: 0;
  }

  main :is(.btn, .help-reading-toggle) {
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  main .contact-form > :is(label, input, textarea, select),
  main .contact-form label > :is(input, textarea, select) {
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  .article-page .article-table table {
    table-layout: fixed;
    min-width: 0;
  }

  .article-page .article-table :is(th, td) {
    padding: 9px 6px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .article-page .article-table :is(th, td):first-child {
    width: 37%;
  }

  .article-page .article-table p {
    text-wrap: wrap;
  }

  .site-footer .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer .footer-social a {
    flex-shrink: 0;
  }
}

@media (max-width: 390px) {
  html body > header .nav {
    gap: 5px !important;
    padding-inline: 8px !important;
  }

  html body > header .nav .nav-brand img { width: 21px !important; }
  html body > header .nav .nav-brand-wordmark strong { font-size: 12px !important; }
  html body > header .nav .nav-brand-wordmark small { font-size: 8px !important; }
  html body > header .nav .menu-toggle { padding-inline: 8px !important; }
  html body > header .nav .nav-actions { gap: 4px !important; }
  html body > header .nav .nav-action { width: 38px !important; height: 40px !important; }
}
