/* Shared by the application, saved CMS pages, and standalone presentations. */
@media (max-width: 767px), (max-width: 1023px) and (max-height: 500px) {
  :root {
    --mobile-title-xl: clamp(2rem, 1.25rem + 4vw, 2.75rem);
    --mobile-title-lg: clamp(1.625rem, 1.125rem + 3vw, 2.25rem);
    --mobile-title-md: clamp(1.125rem, .9375rem + 1vw, 1.375rem);
  }

  :root :is(main:not([data-admin-content]), [data-mobile-typography]) :is(h1, h2, h3, h4, h5, h6):not(.sr-only) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  :root :is(main:not([data-admin-content]), [data-mobile-typography]) h1:not(.sr-only) {
    font-size: var(--mobile-title-xl);
    line-height: 1.1;
    letter-spacing: -.03em;
  }

  :root :is(main:not([data-admin-content]), [data-mobile-typography]) h2:not(.sr-only) {
    font-size: var(--mobile-title-lg);
    line-height: 1.15;
    letter-spacing: -.025em;
  }

  :root :is(main:not([data-admin-content]), [data-mobile-typography]) h3:not(.sr-only) {
    font-size: var(--mobile-title-md);
    line-height: 1.3;
    letter-spacing: -.015em;
  }

  :root :is(main:not([data-admin-content]), [data-mobile-typography]) :is(h4, h5, h6):not(.sr-only) {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* Inline type sizes in saved campaign HTML must yield to the mobile scale. */
  :root .cms-page-content h1 { font-size: var(--mobile-title-xl) !important; line-height: 1.1 !important; }
  :root .cms-page-content h2 { font-size: var(--mobile-title-lg) !important; line-height: 1.15 !important; }
  :root .cms-page-content h3 { font-size: var(--mobile-title-md) !important; line-height: 1.3 !important; }

  /* Larger browser text must grow the hero rather than clip its copy. */
  :root .home-page .home-hero--talia {
    height: auto;
    min-height: 100svh;
  }

  :root .home-page .home-hero--talia .home-hero-copy {
    height: auto;
    min-height: 100svh;
    justify-content: flex-start;
    padding-bottom: max(16rem, 35svh);
  }
}
