/* Thai Law Explained - Thai pages only (loaded after styles.css by the *-th.html pages; never loaded on English pages).
   Same navy / gold / ivory design. This file only swaps in a Thai-capable font and tunes Thai reading comfort.
   Noto Sans Thai (SIL Open Font License) is self-hosted from /fonts, so no request goes to Google Fonts. */

@font-face {
  font-family: "Noto Sans Thai"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/NotoSansThai-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/NotoSansThai-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html[lang="th"] {
  --th-font: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}
html[lang="th"] body,
html[lang="th"] button, html[lang="th"] input, html[lang="th"] select, html[lang="th"] textarea {
  font-family: var(--th-font);
}
html[lang="th"] body { font-size: 1rem; line-height: 1.8; }

/* Headings: the English serif has no Thai glyphs, so headings use Noto Sans Thai (bold) with a roomier line height for tone marks */
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4,
html[lang="th"] .about-headline, html[lang="th"] .vl-name, html[lang="th"] .prose p:first-child {
  font-family: var(--th-font); font-weight: 700; line-height: 1.4; letter-spacing: 0;
}
html[lang="th"] h1 { font-size: clamp(1.85rem, 4.6vw, 2.9rem); }
html[lang="th"] h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
html[lang="th"] h3 { font-size: 1.15rem; }
html[lang="th"] .about-headline { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.4; }
html[lang="th"] .vl-name { font-size: 1.05rem; line-height: 1.5; }
html[lang="th"] .brand { font-family: Georgia, serif; }   /* the brand name stays in its English logotype */
html[lang="th"] .step-num { font-family: Georgia, "Times New Roman", serif; }

/* Thai has no capitals or word spaces: no tracking / uppercase, break long runs instead of overflowing */
html[lang="th"] .eyebrow, html[lang="th"] .morph-cue, html[lang="th"] .acc-soon, html[lang="th"] .btn {
  letter-spacing: 0; text-transform: none;
}
html[lang="th"] p, html[lang="th"] li, html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] a { overflow-wrap: break-word; }
html[lang="th"] .lang-switch a { font-family: "Noto Sans Thai", system-ui, sans-serif; }

/* Header: slightly tighter nav so the Thai labels fit on one row */
html[lang="th"] .main-nav a { font-size: .95rem; }

/* Home hero: two rows that never wrap (Thai rows are shorter than the English ones) */
html[lang="th"] .hero--home h1 { font-size: min(2.6rem, calc((100vw - 2.5rem) / 9.2)); line-height: 1.35; }
@media (min-width: 900px) { html[lang="th"] .hero--home h1 { font-size: min(3rem, calc((100vw - 2.5rem - 280px - 1.5rem - 3rem) / 9.2)); } }
@media (min-width: 1200px) { html[lang="th"] .hero--home h1 { font-size: 3.1rem; } }
html[lang="th"] .hero p.lead { line-height: 1.8; }

/* Final call to action */
html[lang="th"] .cta h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.4; }
html[lang="th"] .cta p { line-height: 1.85; }

/* Service cards (scroll-morph): Thai text is taller than English, keep it compact and readable */
html[lang="th"] .morph-on .card h3 { font-size: 1.02rem; line-height: 1.45; }
html[lang="th"] .morph-on .card p { font-size: .88rem; line-height: 1.65; }
@media (max-width: 767px) {
  html[lang="th"] .morph-on .card h3 { font-size: .92rem; }
  html[lang="th"] .morph-on .card p { font-size: .76rem; line-height: 1.55; }
  html[lang="th"] .morph-compact .card h3 { font-size: .86rem; }
  html[lang="th"] .morph-compact .card p { font-size: .7rem; line-height: 1.5; }
}

/* Footer */
html[lang="th"] .site-footer h3 { font-size: 1.05rem; }
html[lang="th"] .disclaimer { line-height: 1.8; }
/* Contact page: the English page uses a serif tagline and uppercase, tracked eyebrows; neither suits Thai */
html[lang="th"] .hero .c-sub { font-family: var(--th-font); font-weight: 600; line-height: 1.45; }
html[lang="th"] .c-eyebrow-dark { letter-spacing: 0; text-transform: none; }
html[lang="th"] .option-text, html[lang="th"] .field .hint, html[lang="th"] .field-error, html[lang="th"] .privacy-note, html[lang="th"] .form-summary, html[lang="th"] .form-status { line-height: 1.7; }
html[lang="th"] .field label { line-height: 1.5; }
html[lang="th"] .field input, html[lang="th"] .field select, html[lang="th"] .field textarea { font-family: var(--th-font); }
