/* STEP10-09 | TH-master mobile type scale shared across TH, EN and KO. Loaded after page styles.
   All six heading levels have a single size scale. Main reading copy has a
   minimum readable size instead of inheriting 6-11px page-specific values.
   Desktop remains untouched; all three locales now use the same mobile sizing. */
@media (max-width:768px) {
  body:is(.locale-th,.locale-en,.locale-ko) {
    --lp-t-h1:clamp(30px,8.25vw,36px);
    --lp-t-h2:clamp(24px,6.45vw,28px);
    --lp-t-h3:clamp(20px,5.35vw,23px);
    --lp-t-h4:18px;
    --lp-t-h5:16px;
    --lp-t-h6:15px;
    --lp-t-body:15px;
    --lp-t-caption:12px;
    --lp-t-action:14px;
    font-size:var(--lp-t-body);
    line-height:1.65;
    overflow-wrap:break-word;
  }
  /* Heading tokens override the multiple legacy page-specific pixel sizes.
     Don't touch decorative oversized background numerals or brand imagery. */
  body:is(.locale-th,.locale-en,.locale-ko) .site-main h1 {
    font-size:var(--lp-t-h1)!important;
    line-height:1.22!important;
    letter-spacing:-.035em;
    overflow-wrap:break-word;
  }
  body:is(.locale-th,.locale-en,.locale-ko) .site-main h2 {
    font-size:var(--lp-t-h2)!important;
    line-height:1.3!important;
    letter-spacing:-.025em;
    overflow-wrap:break-word;
  }
  body:is(.locale-th,.locale-en,.locale-ko) .site-main h3 {
    font-size:var(--lp-t-h3)!important;
    line-height:1.34!important;
    overflow-wrap:break-word;
  }
  body:is(.locale-th,.locale-en,.locale-ko) .site-main h4 {font-size:var(--lp-t-h4)!important;line-height:1.4!important}
  body:is(.locale-th,.locale-en,.locale-ko) .site-main h5 {font-size:var(--lp-t-h5)!important;line-height:1.45!important}
  body:is(.locale-th,.locale-en,.locale-ko) .site-main h6 {font-size:var(--lp-t-h6)!important;line-height:1.5!important}

  /* Readable prose / summaries across all three localized templates. */
  body:is(.locale-th,.locale-en,.locale-ko) .site-main p {
    font-size:var(--lp-t-body)!important;
    line-height:1.67;
    overflow-wrap:break-word;
  }
  body:is(.locale-th,.locale-en,.locale-ko) .site-main small {font-size:var(--lp-t-caption)!important;line-height:1.5}
  body:is(.locale-th,.locale-en,.locale-ko) .site-main label {font-size:13px;line-height:1.5}
  body:is(.locale-th,.locale-en,.locale-ko) .site-main input,
  body:is(.locale-th,.locale-en,.locale-ko) .site-main textarea,
  body:is(.locale-th,.locale-en,.locale-ko) .site-main select {font-size:16px!important;line-height:1.5}
  body:is(.locale-th,.locale-en,.locale-ko) .site-main :is(button,a[class*="btn"]) {
    font-size:var(--lp-t-action)!important;
    line-height:1.45;
  }
  /* Compact step 01-09 CTAs are anchors rather than HTML buttons. */
  body:is(.locale-th,.locale-en,.locale-ko) .site-main :is(
    .lp-home-button,.lp-home-text-link,.lp-media-link,.lp-media-contact-button,
    .lp-service-link,.lp-service-button,.lp-ent-compact-footer a,
    .lp-team-compact-contact a
  ) {font-size:var(--lp-t-action)!important;line-height:1.5;overflow-wrap:anywhere}
  body.locale-ko .site-main :is(h1,h2,h3) {word-break:keep-all;overflow-wrap:anywhere}
  /* Kicker lines are intentional display labels, not body copy. */
  body:is(.locale-th,.locale-en,.locale-ko) .site-main p.home-eyebrow {font-size:11.5px!important;line-height:1.5}
  body:is(.locale-th,.locale-en,.locale-ko) .site-main .home-section-head>div small,
  body:is(.locale-th,.locale-en,.locale-ko) .site-main .home-original-copy small,
  body:is(.locale-th,.locale-en,.locale-ko) .site-main .home-people-card>span,
  body:is(.locale-th,.locale-en,.locale-ko) .site-main .home-system-panel>span {font-size:12px!important}

  /* Retained narrow-screen safeguards for any legacy AI art panels. */
  body:is(.locale-th,.locale-en,.locale-ko) .lp-ai-showcase-card {min-height:265px}
  body:is(.locale-th,.locale-en,.locale-ko) .lp-ai-showcase-art {height:76px}
  body:is(.locale-th,.locale-en,.locale-ko) .lp-ai-showcase-center p {font-size:12.5px!important;line-height:1.5}

  @media (max-width:350px) {
    body:is(.locale-th,.locale-en,.locale-ko) .lp-ai-showcase-card {min-height:275px}
    body:is(.locale-th,.locale-en,.locale-ko) .lp-ai-showcase-art {height:68px}
  }

  /* Shared navigation and company footer are outside <main>. */
  body:is(.locale-th,.locale-en,.locale-ko) .mobile-menu-heading,
  body:is(.locale-th,.locale-en,.locale-ko) .mobile-language-title,
  body:is(.locale-th,.locale-en,.locale-ko) .mobile-main-nav :is(a,summary)>small {font-size:11px}
  body:is(.locale-th,.locale-en,.locale-ko) .lp-footer-col a,
  body:is(.locale-th,.locale-en,.locale-ko) .lp-footer-company dd {font-size:13px}
  body:is(.locale-th,.locale-en,.locale-ko) .lp-footer-col h2 {font-size:14px}
  body:is(.locale-th,.locale-en,.locale-ko) .lp-footer-company dt,
  body:is(.locale-th,.locale-en,.locale-ko) .lp-footer-brand-col>span {font-size:12px}
  body:is(.locale-th,.locale-en,.locale-ko) .lp-footer-brand-col>p {font-size:14px;line-height:1.65}
}
