/* ==========================================================================
   TestKav global font switch: AzarMehr replaces Estedad on all non-exam pages.
   Keep this file loaded AFTER page CSS. Do NOT load it on quiz/timed/review pages.
   ========================================================================== */

@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Thin.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Thin.ttf') format('truetype');font-weight:100;font-style:normal;font-display:swap;}
@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-ExtraLight.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-ExtraLight.ttf') format('truetype');font-weight:200;font-style:normal;font-display:swap;}
@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Light.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Light.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap;}
@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Regular.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Medium.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-SemiBold.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-SemiBold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Bold.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-ExtraBold.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-ExtraBold.ttf') format('truetype');font-weight:800;font-style:normal;font-display:swap;}
@font-face{font-family:'AzarMehr';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Black.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Black.ttf') format('truetype');font-weight:900;font-style:normal;font-display:swap;}

/* Backward-compatible alias: old CSS that still says Estedad will render AzarMehr. */
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Thin.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Thin.ttf') format('truetype');font-weight:100;font-style:normal;font-display:swap;}
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-ExtraLight.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-ExtraLight.ttf') format('truetype');font-weight:200;font-style:normal;font-display:swap;}
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Light.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Light.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap;}
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Regular.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Medium.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-SemiBold.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-SemiBold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Bold.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-ExtraBold.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-ExtraBold.ttf') format('truetype');font-weight:800;font-style:normal;font-display:swap;}
@font-face{font-family:'Estedad';src:url('../fonts/AzarMehr/Statics/webfont(woff2)/AzarMehr-Black.woff2') format('woff2'),url('../fonts/AzarMehr/Statics/desktop(ttf)/AzarMehr-Black.ttf') format('truetype');font-weight:900;font-style:normal;font-display:swap;}

:root{
  --tk-font-sans:'AzarMehr', Vazirmatn, Tahoma, Arial, sans-serif;
  --ff:'AzarMehr', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans:'AzarMehr', Vazirmatn, Tahoma, Arial, sans-serif;
  --bs-body-font-family:'AzarMehr', Vazirmatn, Tahoma, Arial, sans-serif;
}

html:not(.tk-exam-font-preserve),
body:not(.tk-exam-font-preserve){
  font-family:var(--tk-font-sans) !important;
}

body:not(.tk-exam-font-preserve) button,
body:not(.tk-exam-font-preserve) input,
body:not(.tk-exam-font-preserve) textarea,
body:not(.tk-exam-font-preserve) select,
body:not(.tk-exam-font-preserve) option,
body:not(.tk-exam-font-preserve) .dropdown-menu,
body:not(.tk-exam-font-preserve) .modal,
body:not(.tk-exam-font-preserve) .offcanvas,
body:not(.tk-exam-font-preserve) .popover,
body:not(.tk-exam-font-preserve) .tooltip,
body:not(.tk-exam-font-preserve) .select2-container{
  font-family:var(--tk-font-sans) !important;
}

/* Preserve icon and code fonts. */
body:not(.tk-exam-font-preserve) .bi,
body:not(.tk-exam-font-preserve) [class^='bi-'],
body:not(.tk-exam-font-preserve) [class*=' bi-']{font-family:'bootstrap-icons' !important;}
body:not(.tk-exam-font-preserve) .fa,
body:not(.tk-exam-font-preserve) .fas,
body:not(.tk-exam-font-preserve) .far,
body:not(.tk-exam-font-preserve) .fab,
body:not(.tk-exam-font-preserve) .fal,
body:not(.tk-exam-font-preserve) .fad{font-family:'Font Awesome 6 Free','Font Awesome 5 Free','FontAwesome' !important;}
body:not(.tk-exam-font-preserve) code,
body:not(.tk-exam-font-preserve) pre,
body:not(.tk-exam-font-preserve) kbd,
body:not(.tk-exam-font-preserve) samp,
body:not(.tk-exam-font-preserve) .font-monospace{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace !important;}

/* ==========================================================================
   Public (pre-login) LUXE pages — typography policy:
   Pinar is reserved for h1–h6 headings ONLY. Every other element renders in
   AzarMehr, overriding any component-level `font-family: var(--ff-d)`.
   Scoped to body.tk-luxe so panel/exam pages are untouched. Icon fonts and
   code samples are excluded. Heading DESCENDANTS (spans/bdi inside h*) are
   excluded too, so headings stay fully Pinar.
   ========================================================================== */
body.tk-luxe :not(:is(h1,h2,h3,h4,h5,h6)):not(:is(h1,h2,h3,h4,h5,h6) *):not(.bi):not([class^="bi-"]):not([class*=" bi-"]):not(code):not(pre):not(kbd){
  font-family:'AzarMehr', Vazirmatn, Tahoma, Arial, sans-serif !important;
}

/* --------------------------------------------------------------------------
   Targeted exceptions to the headings-only Pinar policy (design decision):
   ONLY the card titles on the providers list page and the exam list page
   render in Pinar (it suits their Latin names). The repeated class selector
   is intentional — it must out-rank the global AzarMehr override above.
   -------------------------------------------------------------------------- */
body.tk-luxe .cat-page--providers .cat-card__name.cat-card__name.cat-card__name.cat-card__name,
body.tk-luxe .cat-page--exams .cat-card__xname.cat-card__xname.cat-card__xname.cat-card__xname{
  font-family:'Pinar','AzarMehr',Vazirmatn,Tahoma,sans-serif !important;
}
