/* The layer takes precedence over legacy alignment rules marked important. */
@layer site-prose-alignment {
  html body p:not(:is(button *, nav *, label *, [role="button"] *)) {
    text-align: justify !important;
    text-align-last: start !important;
    text-justify: inter-word;
  }
}

@media (max-width: 767px) {
  @layer site-prose-alignment {
    html body footer p {
      text-align: start !important;
    }

    html body .app-install-footer > p {
      text-align: center !important;
      text-align-last: center !important;
    }

    html body main p:not(:is(button *, nav *, label *, [role="button"] *)) {
      font-size: min(0.95em, 14px) !important;
      text-justify: auto;
      -webkit-hyphenate-limit-before: 2;
      -webkit-hyphenate-limit-after: 2;
      hyphenate-limit-zone: 0;
      -webkit-hyphens: auto;
      hyphens: auto;
      hyphenate-limit-chars: 5 2 2;
      text-wrap: wrap;
    }
  }

  footer .wrap > p:has(> a[href^="tel:"]) {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0 !important;
  }

  footer .wrap > p:has(> a[href^="tel:"]) > a {
    font-size: 1rem !important;
    line-height: 1.5;
    max-width: 100%;
  }

  footer .wrap > p > a:is([href^="tel:"], [href^="mailto:"]) {
    flex-basis: 100%;
  }

  footer a[href^="tel:"] {
    white-space: nowrap;
  }

  footer a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }

  footer .footer-network-link {
    margin-inline-start: 12px;
  }

  footer .footer-network-link img {
    max-width: 64px;
    height: auto;
  }
}

@media (min-width: 901px) {
  html:root body main#page-content#page-content#page-content#page-content.home-premium .home-intro-copy > h2,
  html:root body main#page-content#page-content#page-content#page-content.home-premium .home-intro-full {
    display: block !important;
  }
  html:root body main#page-content#page-content#page-content#page-content.home-premium .home-intro-brief {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  html:root body main#page-content#page-content#page-content#page-content.home-premium .home-intro-copy > .home-text-link {
    margin-top: auto !important;
  }
}

@media (min-width: 1200px) {
  html:root body main#page-content#page-content#page-content#page-content.home-premium .home-intro-copy > .home-intro-full {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 12px;
  }
  html:root body main#page-content#page-content#page-content#page-content.home-premium .home-intro-full > p {
    font-size: clamp(16px, 1vw, 19px);
    margin-block: 0 !important;
  }
}
