/* Shared mobile type scale based on the NEXUS recruiting reference. */
@media (max-width: 768px) {
  :is(body.has-site-header, body.corporate-site)
  :is(
    main > :not(.hero):not([class*="hero"]):not([id*="hero"]),
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(h1) {
    font-size: clamp(34px, 10vw, 50px) !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    main > :not(.hero):not([class*="hero"]):not([id*="hero"]),
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(h2) {
    font-size: 29px !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    main > :not(.hero):not([class*="hero"]):not([id*="hero"]),
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(h3) {
    font-size: 24px !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    main > :not(.hero):not([class*="hero"]):not([id*="hero"]),
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(h4) {
    font-size: 17px !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    main > :not(.hero):not([class*="hero"]):not([id*="hero"]),
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(
    p,
    li,
    dd,
    td
  ):not([class*="num"]):not([class*="stat"]):not([class*="value"]):not([class*="count"]):not([class*="year"]):not([class*="price"]) {
    font-size: 16px !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    main > :not(.hero):not([class*="hero"]):not([id*="hero"]),
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(
    .lead,
    .lede,
    .lead-copy,
    .intro-lead,
    .about-lead,
    .section-lead
  ) {
    font-size: 18px !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    main > :not(.hero):not([class*="hero"]):not([id*="hero"]),
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(
    .eyebrow,
    .kicker,
    .tagline,
    .sec-label .en,
    .section-label,
    .hero-label
  ) {
    font-size: 17px !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"]),
    main > :not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(
    p,
    li,
    dd,
    td
  ):not([class*="num"]):not([class*="stat"]):not([class*="value"]):not([class*="count"]):not([class*="year"]):not([class*="price"]) {
    line-height: 1.68 !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"]),
    main > :not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(
    .lead,
    .lede,
    .lead-copy,
    .intro-lead,
    .about-lead,
    .section-lead
  ) {
    line-height: 1.55 !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"]),
    main > :not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(h2, h3, h4) {
    line-height: 1.28 !important;
    margin-bottom: .55em !important;
  }

  :is(body.has-site-header, body.corporate-site)
  :is(
    section:not(.common-cta):not([style*="background:#888888"]):not(.hero):not([class*="hero"]):not([id*="hero"]),
    main > :not(.hero):not([class*="hero"]):not([id*="hero"])
  )
  :where(p, .lead, .lede, .lead-copy, .intro-lead, .about-lead, .section-lead) + :where(p, .lead, .lede, .lead-copy, .intro-lead, .about-lead, .section-lead) {
    margin-top: .72em !important;
  }
}
