/*
 * Article text: one font, one size, one line height, whatever the article's
 * HTML says.
 *
 * Articles come from Word or from the editor's font menu, so their HTML
 * carries its own fonts: <font face="NooriNastaleeq">, style="font-family:
 * Calibri / Times New Roman / Jameel Noori Nastaleeq", sizes from 10pt to
 * 24pt and Word's line-height: 115%. style.css sets Nafees only on p, a,
 * span and headings, so text sitting in a <font> or a <div> kept the
 * article's own font: one the site doesn't load (NooriNastaleeq, Jameel
 * Noori) or Roboto, which has no Urdu letters. Either way the reader's
 * device drew it in whatever Urdu font it had, usually a Naskh one: 370 of
 * the 819 Urdu articles were mostly drawn like that in December 2026.
 *
 * Here every element in the article body gets the site's fonts, and inline
 * sizes and line heights give way to the body's. Colours, bold, italics,
 * alignment and highlights stay as written.
 *
 * Arabic quoted in a Quranic or Arabic font (Al Qalam Quran, Muhammadi
 * Quranic, Traditional Arabic, ...) keeps an Arabic Naskh face: Nastaleeq is
 * for Urdu, and verses with full vowel marks read best in Naskh. Those
 * fonts aren't loaded either, so it is the reader's own Naskh font.
 */

.posts .entry-post {
	font-size: 21px;
	line-height: 2.1;
	color: #1d1d1d;
}

.posts .entry-post,
.posts .entry-post * {
	font-family: NafeesNastaleeq, JameelNooriLatin, UrduFallbackArial, UrduFallbackNaskh, UrduFallbackSans, LatinFallback, sans-serif !important;
}

/* Font Awesome icons keep their own font. */
.posts .entry-post .fa {
	font-family: FontAwesome !important;
}

/* Inline sizes and line heights (Word's 14pt, line-height: 115%, <font
   size="4">) give way to the body's, so every article reads the same. */
.posts .entry-post p,
.posts .entry-post div,
.posts .entry-post span,
.posts .entry-post font,
.posts .entry-post b,
.posts .entry-post strong,
.posts .entry-post i,
.posts .entry-post em,
.posts .entry-post u,
.posts .entry-post a,
.posts .entry-post li,
.posts .entry-post td,
.posts .entry-post th,
.posts .entry-post blockquote {
	font-size: inherit !important;
	line-height: inherit !important;
}

/* Paragraph spacing. Word pastes often use a <div> per paragraph and an
   empty one between them; App\Support\ArticleHtml drops the empty ones, so
   a div that holds text directly (no blocks inside) is spaced like a p. */
.posts .entry-post p,
.posts .entry-post div:not(:has(div, p, table, ul, ol, blockquote, h1, h2, h3, h4, h5, h6)) {
	margin: 0 0 0.9em;
}

/* Headings written as headings keep a heading size. */
.posts .entry-post h1,
.posts .entry-post h2 {
	font-size: 1.45em !important;
	line-height: 1.9 !important;
	margin: 1.2em 0 0.5em;
}
.posts .entry-post h3,
.posts .entry-post h4,
.posts .entry-post h5,
.posts .entry-post h6 {
	font-size: 1.2em !important;
	line-height: 1.9 !important;
	margin: 1em 0 0.4em;
}

/* Arabic set in a Quranic or Arabic font. */
.posts .entry-post [style*="quran" i],
.posts .entry-post [style*="quran" i] *,
.posts .entry-post [style*="qalam" i],
.posts .entry-post [style*="qalam" i] *,
.posts .entry-post [style*="muhammadi" i],
.posts .entry-post [style*="muhammadi" i] *,
.posts .entry-post [style*="arabic" i],
.posts .entry-post [style*="arabic" i] *,
.posts .entry-post [style*="naskh" i],
.posts .entry-post [style*="naskh" i] *,
.posts .entry-post [face*="quran" i],
.posts .entry-post [face*="quran" i] *,
.posts .entry-post [face*="qalam" i],
.posts .entry-post [face*="qalam" i] *,
.posts .entry-post [face*="arabic" i],
.posts .entry-post [face*="arabic" i] *,
.posts .entry-post [face*="naskh" i],
.posts .entry-post [face*="naskh" i] * {
	font-family: "Noto Naskh Arabic", "Traditional Arabic", "Geeza Pro", "Arabic Typesetting", "Times New Roman", serif !important;
}
.posts .entry-post [style*="quran" i],
.posts .entry-post [style*="qalam" i],
.posts .entry-post [style*="muhammadi" i],
.posts .entry-post [style*="arabic" i],
.posts .entry-post [style*="naskh" i],
.posts .entry-post [face*="quran" i],
.posts .entry-post [face*="qalam" i],
.posts .entry-post [face*="arabic" i],
.posts .entry-post [face*="naskh" i] {
	font-size: 1.05em !important;
}
