/**
 * Blog script fonts.
 *
 * Al Qalam and Noor-e-Huda are the local Arabic faces the editor can apply
 * to a selection (Quill saves them as ql-font-* classes).
 *
 * Urdu articles use Noto Nastaliq Urdu. BBC News Urdu is set in BBC Reith
 * Qalam, which the BBC does not license outside the BBC, so Nastaliq is the
 * open face used in that role, at a similar reading size.
 */

@font-face {
    font-family: "Al Qalam";
    src: url("../fonts/Al_Qalam.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noor e Huda";
    src: url("../fonts/noorehuda.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-urdu: "Noto Nastaliq Urdu", "Noto Sans Arabic", serif;
    --font-al-qalam: "Al Qalam", "Noto Naskh Arabic", "Noto Sans Arabic", serif;
    --font-noorehuda: "Noor e Huda", "Noto Naskh Arabic", "Noto Sans Arabic", serif;
}

/* Quill stores the choice as a class on the selected words. */
.ql-font-al-qalam,
#postForm .ql-editor .ql-font-al-qalam,
.post-content .ql-font-al-qalam,
.post-single.is-urdu .post-content .ql-font-al-qalam,
.post-single.is-urdu .post-faq .ql-font-al-qalam {
    font-family: var(--font-al-qalam);
    font-size: 1.35em;
    font-style: normal;
    line-height: 2;
}

.ql-font-noorehuda,
#postForm .ql-editor .ql-font-noorehuda,
.post-content .ql-font-noorehuda,
.post-single.is-urdu .post-content .ql-font-noorehuda,
.post-single.is-urdu .post-faq .ql-font-noorehuda {
    font-family: var(--font-noorehuda);
    font-size: 1.35em;
    font-style: normal;
    line-height: 2;
}

.ql-font-nastaliq,
#postForm .ql-editor .ql-font-nastaliq,
.post-content .ql-font-nastaliq {
    font-family: var(--font-urdu);
    font-size: 1.15em;
    line-height: 2.15;
}
