@layer site-typography {
/* =========================================================
   Mobile typography
   Old IT-cares mobile type scale reference.
   Scope: smartphone only. Desktop/tablet styles remain unchanged.
   ========================================================= */

@media (max-width: 767px) {
  :root {
    --itc-mobile-body: 15px;
    --itc-mobile-h1: 24px;
    --itc-mobile-h2: 20px;
    --itc-mobile-h3: 16px;
    --itc-mobile-h4: 14px;
    --itc-mobile-label: 11px;
  }

  body {
    font-size: var(--itc-mobile-body);
    line-height: 1.82;
  }

  /* The typography layer owns smartphone text metrics. */
  body main h1 {
    font-size: var(--itc-mobile-h1);
    line-height: 1.3;
    letter-spacing: -0.03em;
  }

  body main h2 {
    font-size: var(--itc-mobile-h2);
    line-height: 1.35;
    letter-spacing: -0.03em;
  }

  body main h3 {
    font-size: var(--itc-mobile-h3);
    line-height: 1.4;
    letter-spacing: -0.01em;
  }

  body main h4 {
    font-size: var(--itc-mobile-h4);
    line-height: 1.45;
  }

  /* Directory headings keep their original visual scale after semantic promotion. */
  body main .directory-grid .directory-heading {
    font-size: var(--itc-mobile-h3);
    line-height: 1.4;
    letter-spacing: -0.01em;
  }

  body main.faq-directory #faq .faq-item > h3.faq-heading {
    font-size: var(--itc-mobile-h4);
    line-height: 1.45;
    letter-spacing: normal;
  }

  body main p,
  body main li:not(.audience-list > li) {
    font-size: var(--itc-mobile-body);
    line-height: 1.82;
  }

  body main :is(
    .section-label,
    .section-eyebrow,
    .eyebrow,
    .mini-label,
    .meta-label,
    .faq-mini-label,
    .lp-kicker,
    .hero-card-label
  ) {
    font-size: var(--itc-mobile-label);
    line-height: 1.2;
  }
}
}

@layer site-base {
@media (max-width: 767px) {
  body main [class*="card"] :is(h2, h3, h4),
  body main [class*="panel"] :is(h2, h3, h4),
  body main [class*="box"] :is(h2, h3, h4) {
    margin-top: 0;
  }

  body main :is(
    .section-label,
    .section-eyebrow,
    .eyebrow,
    .mini-label,
    .meta-label,
    .faq-mini-label,
    .lp-kicker,
    .hero-card-label
  ) + :is(h1, h2, h3, h4) {
    margin-top: 0;
  }
}
}
