/*
 * TM Blocks — self-hosted web fonts (Gutenberg / tm-blocks pages ONLY).
 * Enqueued as handle `tm-blocks-fonts` by tm-blocks.php; never loaded on Divi pages.
 *
 * Faces = what the 51 tm-blocks pages actually render (audit 2026-11-17):
 *   Oswald 300–700 → ONE variable woff2 per subset (weight range 300 700)
 *   Lato 400, 700, 400 italic (Lato has no 500/600; those resolve to 400/700)
 * Josefin Sans and Poppins are not used on any tm-blocks page and are not loaded.
 * Subsets: latin + latin-ext (₹ U+20B9 lives in latin-ext). Source: Google Fonts (OFL).
 *
 * Fallback faces: metric-adjusted Arial so text keeps its size/line breaks while the
 * web font downloads → no layout shift on swap. Values computed with fontTools from
 * these exact woff2 files vs Arial / Arial Bold.
 */

/* ── Oswald (variable) ── */
@font-face{font-family:'Oswald';font-style:normal;font-weight:300 700;font-display:swap;src:url(/wp-content/plugins/tm-blocks/assets/fonts/oswald-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Oswald';font-style:normal;font-weight:300 700;font-display:swap;src:url(/wp-content/plugins/tm-blocks/assets/fonts/oswald-var-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}

/* ── Lato 400 ── */
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url(/wp-content/plugins/tm-blocks/assets/fonts/lato-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url(/wp-content/plugins/tm-blocks/assets/fonts/lato-400-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}

/* ── Lato 700 ── */
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url(/wp-content/plugins/tm-blocks/assets/fonts/lato-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url(/wp-content/plugins/tm-blocks/assets/fonts/lato-700-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}

/* ── Lato 400 italic ── */
@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url(/wp-content/plugins/tm-blocks/assets/fonts/lato-400i-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url(/wp-content/plugins/tm-blocks/assets/fonts/lato-400i-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}

/* ── Metric-adjusted fallbacks (local Arial; Arimo / Liberation Sans are metric-compatible) ── */
/* Tuned 2026-11-17: Lato = width-matched on ~2,800 text elements; Oswald 500/600-700 = best hero-H1 line-wrap match on all 51 pages at 390px and 1440px. */
@font-face{font-family:'Oswald Fallback';font-style:normal;font-weight:300 400;src:local('Arial'),local('ArialMT'),local('Arimo'),local('Liberation Sans');size-adjust:80.29%;ascent-override:148.59%;descent-override:35.99%;line-gap-override:0%}
@font-face{font-family:'Oswald Fallback';font-style:normal;font-weight:401 500;src:local('Arial'),local('ArialMT'),local('Arimo'),local('Liberation Sans');size-adjust:87.01%;ascent-override:137.12%;descent-override:33.21%;line-gap-override:0%}
@font-face{font-family:'Oswald Fallback';font-style:normal;font-weight:600 700;src:local('Arial Bold'),local('Arial-BoldMT'),local('Arimo Bold'),local('Arimo-Bold'),local('Liberation Sans Bold'),local('LiberationSans-Bold');size-adjust:82.71%;ascent-override:144.23%;descent-override:34.94%;line-gap-override:0%}
@font-face{font-family:'Lato Fallback';font-style:normal;font-weight:300 500;src:local('Arial'),local('ArialMT'),local('Arimo'),local('Liberation Sans');size-adjust:97.15%;ascent-override:101.59%;descent-override:21.93%;line-gap-override:0%}
@font-face{font-family:'Lato Fallback';font-style:normal;font-weight:600 900;src:local('Arial Bold'),local('Arial-BoldMT'),local('Arimo Bold'),local('Arimo-Bold'),local('Liberation Sans Bold'),local('LiberationSans-Bold');size-adjust:94.23%;ascent-override:104.74%;descent-override:22.60%;line-gap-override:0%}
@font-face{font-family:'Lato Fallback';font-style:italic;font-weight:300 500;src:local('Arial Italic'),local('Arial-ItalicMT'),local('Arimo Italic'),local('Arimo-Italic'),local('Liberation Sans Italic'),local('LiberationSans-Italic');size-adjust:97.15%;ascent-override:101.59%;descent-override:21.93%;line-gap-override:0%}

/* ── Put the fallback right after each web font in every shared stack.
      Scoped to body.tm-blocks-page so the header/footer variables (also used on
      Divi pages) are only changed here. ── */
body.tm-blocks-page{
	--font-display:'Oswald','Oswald Fallback',system-ui,sans-serif;
	--font-body:'Lato','Lato Fallback',system-ui,-apple-system,sans-serif;
	--tmh-font-body:'Lato','Lato Fallback',system-ui,sans-serif;
}
/* footer-custom.php defines its vars on .tmf-footer; the case-studies grid on .tm-cs-grid */
body.tm-blocks-page .tmf-footer{
	--tmf-font-body:'Lato','Lato Fallback',system-ui,sans-serif;
	--tmf-font-display:'Oswald','Oswald Fallback',system-ui,sans-serif;
}
body.tm-blocks-page .tm-cs-grid{
	--tmg-font-display:'Oswald','Oswald Fallback',system-ui,sans-serif;
	--tmg-font-body:'Lato','Lato Fallback',system-ui,-apple-system,sans-serif;
}
