/**
 * DuSunnah honorific / salutation marks — KFGQPC Arabic Symbols.
 * ===========================================================================
 * A SEMANTIC editorial system, not an icon dump. The King Fahd Qurʾān Printing
 * Complex "Arabic Symbols" font supplies compact ligature glyphs for the
 * traditional honorifics (ṣallallāhu ʿalayhi wa-sallam, raḍiya llāhu ʿanhu …).
 * All of its glyphs live in the Private Use Area (U+E800–U+E855), so a naked
 * PUA character in prose would be meaningless to screen readers and fragile.
 *
 * Each honorific is an EMPTY span carrying:
 *   - a semantic class  (.dus-honorific--saw)         → chooses the glyph
 *   - role="img" + aria-label                          → the spoken meaning
 * and the glyph is delivered by CSS ::before content in this font. The PUA
 * codepoint never appears in editor content or the accessibility tree.
 *
 * CANONICAL STYLE (locked): the COMPACT honorific marks — the single-stamp
 * forms that sit inside a name's width in running English prose (like the
 * standard ﷺ / ﷻ they replace). The font's WIDE horizontal calligraphic
 * ligatures spell the whole phrase across ~7 character widths and are too large
 * inline, so they are NOT used. Only genuine honorific / salutation expressions
 * are exposed; basmala, weekdays, Hijrī months, ʿĪd, chapter/section and
 * ornamental glyphs stay out of this API.
 *
 * SEMANTIC, NOT VISUAL: a token is fixed to one Arabic FORMULA. A glyph that
 * spells a different wording (e.g. ʿalayhi aṣ-ṣalātu wa-s-salām) is a different
 * token, never an alternate — see --saw.
 *
 * KFGQPC is used ONLY for these marks: ordinary Arabic prose stays in Amiri,
 * English body SF/system sans, editorial headings EB Garamond.
 */

@font-face {
	font-family: "KFGQPC Arabic Symbols";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/kfgqpc-arabic-symbols.woff2") format("woff2");
}

/* Base mark. The compact stamps are roughly square, so they carry a little more
   size than the Latin around them and a small baseline nudge to sit centred on
   the text. */
.dus-honorific {
	font-family: "KFGQPC Arabic Symbols";
	font-weight: 400;
	font-style: normal;
	/*
	 * Optically matched to the SF body: the compact stamp reads at roughly the
	 * English text height and sits on the baseline, not as a large badge. Size
	 * and vertical-align are tuned to the glyph metrics, not forced to the
	 * numeric body size; line-height:1 stops it enlarging the line box.
	 */
	font-size: 1.2em;
	line-height: 1;
	vertical-align: -0.12em;
	margin: 0 0.04em;
	speak: never;               /* legacy AT hint; role=img is the real control */
	-webkit-user-select: all;
	user-select: all;
}

.dus-honorific::before { content: "\FEFF"; }   /* overridden per honorific */

/* =============================================== DIVINE-NAME HONORIFICS (compact) */
.dus-honorific--jalla-jalaluhu::before { content: "\E82A"; }  /* جل جلاله */
.dus-honorific--jalla-wa-ala::before   { content: "\E82B"; }  /* جل وعلا */
.dus-honorific--azza-wa-jall::before   { content: "\E828"; }  /* عز وجل */
.dus-honorific--subhanahu::before      { content: "\E829"; }  /* سبحانه */
.dus-honorific--tabaraka::before       { content: "\E82C"; }  /* تبارك وتعالى */

/* =============================================== PROPHETIC SALUTATION (compact) */
/* ṣallallāhu ʿalayhi wa-sallam. CANONICAL = E82D — the compact stamp of exactly
   this formula. (The wide ligature E80E spells the same phrase but is too large
   inline.) The other "sallallahu…" glyphs are NOT this token: E80D adds
   "wa-ʿalā ālihi"; E815 = "ʿalayhi aṣ-ṣalātu wa-s-salām"; E814 adds "wa-ʿalā
   ālihi" to that; E833 is a second compact stamp of ṣallallāhu ʿalayhi wa-sallam. */
.dus-honorific--saw::before            { content: "\E82D"; }  /* صلى الله عليه وسلم */

/* =============================================== COMPANION SUPPLICATIONS (compact) */
.dus-honorific--ra-anhu::before        { content: "\E82E"; }  /* رضي الله عنه */
.dus-honorific--ra-anha::before        { content: "\E82F"; }  /* رضي الله عنها */
.dus-honorific--ra-anhuma::before      { content: "\E831"; }  /* رضي الله عنهما */
.dus-honorific--ra-anhum::before       { content: "\E830"; }  /* رضي الله عنهم */
.dus-honorific--ra-anhunna::before     { content: "\E832"; }  /* رضي الله عنهن */

/* =============================================== PROPHETS / PEACE UPON (compact) */
.dus-honorific--alayhi-salam::before   { content: "\E834"; }  /* عليه السلام */
.dus-honorific--alayha-salam::before   { content: "\E835"; }  /* عليها السلام */
.dus-honorific--alayhima-salam::before { content: "\E837"; }  /* عليهما السلام */
.dus-honorific--alayhim-salam::before  { content: "\E836"; }  /* عليهم السلام */

/* =============================================== MERCY SUPPLICATIONS (compact) */
.dus-honorific--rahimahullah::before     { content: "\E838"; } /* رحمه الله */
.dus-honorific--rahimahallah::before     { content: "\E83B"; } /* رحمها الله */
.dus-honorific--rahimahumallah::before   { content: "\E83A"; } /* رحمهما الله */
.dus-honorific--rahimahumullah::before   { content: "\E839"; } /* رحمهم الله */
.dus-honorific--rahimahunnallah::before  { content: "\E83C"; } /* رحمهن الله */
