/* Lingonik Story Readers — Persian font hotfix
   Uses the EXISTING website/static/fonts/Vazirmatn-Medium.ttf
   No font asset is bundled with this patch.
   CSS path: static/story_readers/vazirmatn-fix.css
   ../fonts resolves to static/fonts, including when STATIC_URL has a prefix.
*/
@font-face {
    font-family: 'LingonikVazirmatn';
    src: url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Catalog + original introductory page + locked-page Persian copy. */
.lsr-page,
.lsr-original-intro,
.lsr-locked-shell,
.lsr-page button,
.lsr-page input,
.lsr-page select,
.lsr-page textarea,
.lsr-locked-shell button {
    font-family: 'LingonikVazirmatn', Tahoma, Arial, sans-serif;
}
.lsr-page h1,
.lsr-page h2,
.lsr-page h4,
.lsr-page h5,
.lsr-page h6,
.lsr-locked-shell h2,
.lsr-locked-shell p {
    font-family: 'LingonikVazirmatn', Tahoma, Arial, sans-serif;
}
/* Keep English story titles in the same Latin font as before. */
.lsr-card h3[lang="en"] {
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}

/* Standalone story reader does not inherit website/base.html's @font-face. */
body:has(#story-library),
body:has(#story-library) button,
body:has(#story-library) input,
body:has(#story-library) select,
body:has(#story-library) textarea,
.story-site-top,
.reader-links,
.story-path,
.story-join {
    font-family: 'LingonikVazirmatn', Tahoma, Arial, sans-serif;
}
/* Preserve intended Latin typography of English story and exercises. */
body:has(#story-library) .story,
body:has(#story-library) .lesson-title {
    font-family: Georgia, serif;
}
body:has(#story-library) .content-en,
body:has(#story-library) .en,
body:has(#story-library) .byline {
    font-family: Arial, sans-serif;
}
