/* Shared English subpage heroes. Earlier important layer overrides legacy page rules. */
@layer enHeroTypography {
  html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) {
    --bp-hero-stack-gap: 20px;
  }
  html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) h1 {
    font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', sans-serif !important;
    font-size: clamp(36px, 3.125vw, 60px) !important;
    font-weight: 600 !important;
    font-variation-settings: normal !important;
    line-height: 1em !important;
    letter-spacing: -.01em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word;
    margin-block: 0 !important;
  }
  html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) h1 :is(em,strong,b,span,small) {
    font: inherit !important;
    font-variation-settings: normal !important;
    letter-spacing: inherit !important;
  }
  html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) :is(p,span):has(~ h1) {
    font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', sans-serif !important;
    font-size: clamp(14px, .9375vw, 18px) !important;
    font-weight: 500 !important;
    font-variation-settings: normal !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    margin-block: 0 !important;
  }
  html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) h1 ~ :is(p,span) {
    font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', sans-serif !important;
    font-size: clamp(16px, 1.041667vw, 20px) !important;
    font-weight: 400 !important;
    font-variation-settings: normal !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    margin-block: 0 !important;
  }
  html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) div:has(> h1) {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  /* Board heroes have the heading directly inside the section. */
  html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) > h1 { margin-block: 20px !important; }
  html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) :is(.pills,.tags,[class$="-pills"]) > :is(span,i) {
    font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', sans-serif !important;
    font-size: clamp(14px, .833333vw, 16px) !important;
    font-weight: 500 !important;
    font-variation-settings: normal !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
  }
  @media (max-width: 760px) {
    html[lang="en"] body.en-page:not(.home-index) main :is(.sub-hero,.fa-hero,.a45.hero,.ts-hero,.dw-hero,.dg-hero,.cp-hero,.acne-hero,.ar-hero,.bl-hero,.hl-hero,.tl-hero,.fl-hero,.scar-hero,.sr-hero,.clinic-hero,.ci-hero,.info-hero,.community-hero,.consult-detail-hero) h1 { font-size: clamp(32px, 5.25vw, 40px) !important; }
  }
}
