/* English typography: rounded, confident headings; gentle tracking for smaller copy.
   Thai text and the expressive homepage promise retain their own typography. */
html[lang=en] body :where(*):where(:lang(en)):where(:not(svg, svg *, .hero-title, .hero-title *)) {
  letter-spacing:-.015em!important;
}
html[lang=en] body :is(h1,h2,h3,h4,h5,h6,[role=heading],.partner-invitation,.image-brief-title,.plan-question,.faq-list summary):lang(en):not(.hero-title *) {
  font-family:Nunito,QoohooThai,sans-serif!important;
  font-weight:900!important;
  letter-spacing:clamp(-1px,-.028em,-.4px)!important;
}
html[lang=en] body :is(h1,h2,h3,h4,h5,h6,[role=heading],.partner-invitation,.image-brief-title,.plan-question,.faq-list summary):lang(en):not(.hero-title *) :where(span,em,strong,b,a):lang(en) {
  font-family:inherit!important;
  font-weight:inherit!important;
  letter-spacing:inherit!important;
}
/* Keep the approved hero subtitle exactly as tried locally. */
html[lang=en] body .hero-split .partner-invitation {
  letter-spacing:-1px!important;
}

/* Let the English promise flow across phrase boundaries. */
html[lang=en] .editorial-home #free #entry-paid-title > .entry-title-phrase {
  display:inline;
  text-wrap:wrap;
}

/* Prices use upright, aligned numerals rather than the display face. */
html[lang] body.qoohoo-soft.benchmark-v2 :is(.entry-price strong,.plan-price,.free-price,.enrollment-price,.start-price) {
  font-family:Nunito,QoohooThai,sans-serif!important;
  font-weight:800!important;
  font-style:normal;
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:0!important;
}

/* Latin glyphs in Thai copy share the English face without changing Thai glyphs. */
@font-face {
  font-family:QoohooThai;
  src:url('/assets/fonts/Nunito-Variable.woff2') format('woff2');
  font-weight:200 1000;
  font-style:normal;
  font-display:swap;
  unicode-range:U+0000-024F;
}
@font-face {
  font-family:QoohooHeadingThai;
  src:url('/assets/fonts/Nunito-Variable.woff2') format('woff2');
  font-weight:600;
  font-style:normal;
  font-variation-settings:"wght" 900;
  font-display:swap;
  unicode-range:U+0000-024F;
}
/* The wordmark sits inline, with language-specific surrounding copy. */
#plan-invitation-title .plan-heading-logo {
  display:inline-block;
  width:3.05em;
  height:auto;
  vertical-align:-.22em;
  margin-inline:.12em;
}
html[lang=en] #plan-invitation-title [lang=th],
html[lang=th] #plan-invitation-title [lang=en] { display:none; }
html[lang] body #plan-invitation-title > span {
  font-family:inherit!important;
  font-weight:inherit!important;
  letter-spacing:inherit!important;
}
