/* Telugu edition typography (V1.1 order §10, owner-approved Option A, 2026-09-09):
   Noto Serif Telugu for long-form reading (headings, body, quotes), Noto Sans Telugu for UI/navigation/
   metadata — the same reading/apparatus split the English identity uses (Source Serif 4 / system sans).
   Loaded ONLY on /te/ pages (functions.php enqueues it when tj_current_language() === 'te'); English pages
   carry no Telugu font asset. Files are self-hosted subsets (SIL OFL): the Telugu block and basic Latin per
   weight, so Latin technical terms inside Telugu prose (API, LLM, Docker) render in the same face. */

/* Both families are Google's VARIABLE builds (one file covers weights 400–600), split into the Telugu block
   and basic Latin: four files, ~284 KB total, instead of one file per weight. Found by the Telugu Lighthouse
   run (docs/gate2-evidence/telugu-pilot/lighthouse): per-weight copies of the same bytes were downloaded
   three times over (555 KB of fonts on the home page). */
@font-face { font-family: "Noto Serif Telugu"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/noto-serif-telugu-telugu.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Serif Telugu"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/noto-serif-telugu-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; }
@font-face { font-family: "Noto Sans Telugu"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/noto-sans-telugu-telugu.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Telugu"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/noto-sans-telugu-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; }

/* Swap the two theme font roles for the whole page. Everything in theme.json/style.css that reads these
   variables (headings, body, .tj-label/.tj-meta, buttons, nav, forms, breadcrumb, footer …) follows. */
.tj-lang-te {
  --wp--preset--font-family--reading: "Noto Serif Telugu", "Source Serif 4", Georgia, serif;
  --wp--preset--font-family--apparatus: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tj-sans: var(--wp--preset--font-family--apparatus);
}
/* Telugu glyphs stack above and below the baseline; the English 1.6 body leading crowds the vowel signs
   and subscript consonants, so leading opens up a step and the heading tracking is neutral (no negative
   tracking — Telugu letterforms are round and already touch at tight settings). */
.tj-lang-te body, .tj-lang-te .wp-block-post-content p, .tj-lang-te .tj-author-block p, .tj-lang-te .tj-standfirst, .tj-lang-te .wp-block-post-excerpt { line-height: 1.8; }
.tj-lang-te h1, .tj-lang-te .wp-block-post-title, .tj-lang-te .tj-home-statement h1 { letter-spacing: 0; line-height: 1.3; }
.tj-lang-te h2, .tj-lang-te h3 { line-height: 1.4; }
.tj-lang-te .wp-block-quote { line-height: 1.8; font-style: normal; }   /* Noto Serif Telugu ships no italic; a synthesized slant would distort the script */
.tj-lang-te em, .tj-lang-te i { font-style: normal; font-weight: 600; }  /* same reason: emphasis carries as weight, never a faux italic */
.tj-lang-te .tj-label, .tj-lang-te .tj-meta, .tj-lang-te .tj-breadcrumb, .tj-lang-te .wp-block-navigation, .tj-lang-te .tj-footer { line-height: 1.6; }
.tj-lang-te .tj-label { letter-spacing: 0; }
/* Long unbroken Telugu words (compounds, transliterated terms) still wrap safely inside the measure. */
.tj-lang-te p, .tj-lang-te li, .tj-lang-te h1, .tj-lang-te h2, .tj-lang-te h3 { overflow-wrap: anywhere; }
