/* ═══════════════════════════════════════════════════════════════════════
   rtl.css — Al-Sumait i18n Shell · the one central right-to-left sheet
   ───────────────────────────────────────────────────────────────────────
   Loaded ONLY when the document is RTL (Polylang marks Arabic rtl →
   WordPress prints <html dir="rtl">). Every rule is scoped to
   `html[dir="rtl"]` so an accidental load on an LTR page is inert.

   Sections are titled by the plugin they correct. A rule is added here
   only after it was measured to be needed on a live Arabic page — never
   pre-emptively. No `!important` unless it answers an existing one
   (each such case names the rule it answers).

   0 · SITE — fonts and the three Arabic type rules
   1 · alsumait-word (page «من كلامه»)
   2 · Front page (474) — hero-motion · record · home · quotes
       (+ rtl.js for the one thing CSS cannot do: the strip's direction)
   3 · dsp-passing (chapter 08 «الرحيل», page 631)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 0 · SITE ──────────────────────────────────────────────────────────
   Fonts: Somar Sans for display (session 70, 2026-10-01), Tajawal for
   running text, Amiri for the man's own words. Aref Ruqaa stays only on
   the wordmark (header/footer/home) and the quote signatures (.dsq-who),
   through --ds-ar-mark. Somar is self-hosted from the Font Library
   (family 1149, 700 + 900); the rest come from Google Fonts. */
/* 1.10.0: the fonts are enqueued by alsumait-i18n.php (handle dsi18n-fonts) — one request, no @import */

@font-face{font-family:"Somar Sans";font-style:normal;font-weight:700;font-display:swap;src:url("/wp-content/uploads/fonts/SomarSans-Bold.woff") format("woff")}
@font-face{font-family:"Somar Sans";font-style:normal;font-weight:900;font-display:swap;src:url("/wp-content/uploads/fonts/SomarSans-Black.woff") format("woff")}

html[dir="rtl"] {
  --ds-ar-display: "Somar Sans", "Tajawal", "Cairo", sans-serif;
  --ds-ar-mark:    "Aref Ruqaa", "Amiri", serif;
  --ds-ar-body:    "Tajawal", "Cairo", system-ui, sans-serif;
  --ds-ar-quote:   "Amiri", "Aref Ruqaa", serif;
}

/* Rule 1 — Arabic has no letter-spacing and no uppercase. Every label
   that the English sheets track out gets reset here, by class, so the
   reset never leaks onto Latin fragments (a page number, «Al-Sumait»). */
html[dir="rtl"] body { font-family: var(--ds-ar-body); }

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--ds-ar-display);
  font-weight: 900;
  letter-spacing: 0;
}
/* Weight lock (session 70): the page layers set 400/600 on their headings,
   tuned for Ruqaa. Somar's display cut is 900, so the weight is held here.
   Excluded: the signatures and the footer wordmark (Ruqaa, .dsq-who / .dsm-wm-ar)
   and the two chapter h3 sets that run in Tajawal (gloss terms, next-chapter card),
   which keep their 400. */
html[dir="rtl"] :is(h1, h2, h3):not(.dsq-who):not(.dsm-wm-ar):not(.dsc-gloss h3):not(.dsc-nav-grid h3) {
  font-weight: 900 !important;
}
html[dir="rtl"] .dsc-gloss h3,
html[dir="rtl"] .dsc-nav-grid h3 { font-weight: 400; }

/* Rule 2 — Arabic needs taller lines than Latin at the same size:
   ascenders, descenders and the diacritics live above and below.
   Applied per page below, where the English value is known. */

/* Rule 3 — numerals stay Latin (site decision, session 36), and the
   Arabic text must not be given `font-variant-numeric` or `unicode-bidi`
   tricks: the digits are real characters in the content. */


/* ── 1 · alsumait-word — «من كلامه» ──────────────────────────────────
   word.css is already written with logical properties (inset-inline-*,
   margin-inline-end), so the layout mirrors itself. What remains is
   type, the quotation glyph, and the phone rail's direction. */

/* labels: no tracking, no uppercase, a heavier Tajawal so the small
   size still reads */
html[dir="rtl"] .dsc-word .dsw-lab,
html[dir="rtl"] .dsc-word .dsw-n,
html[dir="rtl"] .dsc-word .dsw-src b,
html[dir="rtl"] .dsc-word .dsw-chip,
html[dir="rtl"] .dsc-word .dsw-tier b,
html[dir="rtl"] .dsw-hud,
html[dir="rtl"] .dsw-cue {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ds-ar-body);
  font-weight: 700;
}
html[dir="rtl"] .dsc-word .dsw-lab { font-size: .82rem; }

/* Latin-digit counters («01 / 24», the transport) are read left-to-right
   even inside Arabic — isolate them so the bidi algorithm does not swap
   the two numbers around the slash */
html[dir="rtl"] .dsc-word .dsw-n,
html[dir="rtl"] .dsw-hud .n { direction: ltr; unicode-bidi: isolate; }
/* 1.2.1 — a block with direction:ltr aligns its text to the left; keep
   the counter on the reading edge (measured live on the desktop stage) */
html[dir="rtl"] .dsc-word .dsw-slide .dsw-n { text-align: right; }
html[dir="rtl"] .dsc-word .dsw-src b { font-size: .8rem; }

/* the watermark: Latin on the Arabic page («His Words»), mirroring the
   Arabic watermark on the English page — Instrument Serif like the site's
   own headings, and it sits at inset-inline-end, i.e. the left */
html[dir="rtl"] .dsw-hero .dsw-mark {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
}

/* cover type */
html[dir="rtl"] .dsw-hero .dsw-title {
  font-family: var(--ds-ar-display);
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 1.38;              /* was 1.04 */
  max-width: 16ch;
}
html[dir="rtl"] .dsw-hero .dsw-sub   { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.9; }
html[dir="rtl"] .dsw-hero .dsw-stand { font-size: 1.02rem; line-height: 1.95; }
html[dir="rtl"] .dsw-metaset .dsw-v  { font-family: "Instrument Serif", Georgia, serif; }

/* the standard */
html[dir="rtl"] .dsw-rule h2 { line-height: 1.45; }        /* was 1.16 */
html[dir="rtl"] .dsw-rule p  { line-height: 1.95; font-size: 1.02rem; }
html[dir="rtl"] .dsw-tier    { grid-template-columns: 2.2rem 1fr; }
html[dir="rtl"] .dsw-tier b  { font-family: var(--ds-ar-display); font-size: 1.35rem; }

/* the sayings: Amiri, and room for the vowel marks */
html[dir="rtl"] .dsw-q {
  font-family: var(--ds-ar-quote);
  font-size: clamp(1.75rem, 4.2vw, 3.3rem);
  line-height: 1.55;              /* was 1.22 */
  max-width: 26ch;
}
html[dir="rtl"] .dsw-q.dsw-long {
  font-size: clamp(1.25rem, 2.45vw, 1.95rem);
  line-height: 1.8;               /* was 1.42 */
  max-width: 44ch;
}
html[dir="rtl"] .dsw-tail { font-size: 1.05rem; line-height: 1.9; max-width: 50ch; }
html[dir="rtl"] .dsw-src  { font-size: .88rem; line-height: 1.85; max-width: 52ch; }

/* the twin + sources */
html[dir="rtl"] .dsw-twin h2 { line-height: 1.45; }
html[dir="rtl"] .dsw-twin p,
html[dir="rtl"] .dsw-foot p  { line-height: 1.95; }
html[dir="rtl"] .dsw-foot p  { font-size: .92rem; }
html[dir="rtl"] .dsw-line    { font-size: 1.15rem; }

/* — phone — */
@media (max-width: 900px) {

  /* word.js injects two English strings the content cannot reach
     («Sayings» in the transport, «Keep scrolling» under the beads).
     Same device as switch.css for alsumait-traits: hide the text node,
     print the Arabic from a pseudo-element. */
  html[dir="rtl"] .dsw-hud > span:last-child { font-size: 0; }
  html[dir="rtl"] .dsw-hud > span:last-child .t { font-size: .68rem; }
  html[dir="rtl"] .dsw-hud > span:last-child .t::after { content: " قولاً"; }
  html[dir="rtl"] .dsw-cue { font-size: 0; }
  html[dir="rtl"] .dsw-cue::before { content: "تابع التمرير"; font-size: .7rem; }

  /* The rail. word.js drives it by writing a positive scrollLeft and
     reading offsetLeft — both of which flip sign in an RTL scroller.
     Rather than fork the script, the rail is kept LTR internally and
     mirrored as a whole, and each card's contents mirrored back. GSAP
     animates .dsw-slide (transform is overwritten there), so the second
     mirror sits on .dsw-wrap and on the two decorations, never on the
     slide itself. Result: card 01 enters from the right and the deck
     advances leftward, as an Arabic reader expects. */
  html[dir="rtl"] .dsw-rail { direction: ltr; transform: scaleX(-1); }
  html[dir="rtl"] .dsw-rail .dsw-slide .dsw-wrap,
  html[dir="rtl"] .dsw-rail .dsw-slide .dsw-wrap.in {   /* answers body.dsc-word-anim … .dsw-wrap.in {transform:none} by specificity */
    direction: rtl;
    transform: scaleX(-1);
  }
  html[dir="rtl"] .dsw-rail .dsw-slide::before,
  html[dir="rtl"] .dsw-rail .dsw-big { transform: scaleX(-1); }

  /* the opening mark becomes the Arabic one */
  html[dir="rtl"] .dsw-rail .dsw-slide::before { content: "\00AB"; font-size: 210px; top: -.22em; }
  html[dir="rtl"] .dsw-big { font-family: "Instrument Serif", Georgia, serif; }

  /* phone type */
  html[dir="rtl"] .dsw-hero .dsw-title { font-size: clamp(1.9rem, 8.4vw, 2.7rem); line-height: 1.4; max-width: 13ch; }
  html[dir="rtl"] .dsw-hero .dsw-sub   { font-size: 1.02rem; line-height: 1.8; }
  html[dir="rtl"] .dsw-metaset .dsw-lab { font-size: .68rem; }
  html[dir="rtl"] .dsw-q { font-size: clamp(1.3rem, 5.8vw, 1.8rem); line-height: 1.6; }
  html[dir="rtl"] .dsw-q.dsw-long { font-size: clamp(1.02rem, 4.2vw, 1.22rem); line-height: 1.75; }
  html[dir="rtl"] .dsw-tail { font-size: .9rem; line-height: 1.75; }
  html[dir="rtl"] .dsw-src  { font-size: .78rem; }
  html[dir="rtl"] .dsw-chip { font-size: .66rem; }
  html[dir="rtl"] .dsw-hud .n { font-family: "Instrument Serif", Georgia, serif; }
}


/* ── 2 · Front page (474) — hero-motion · record · home · quotes ─────
   Measured on the live Arabic front page (session 38). The card strip's
   direction of travel is NOT here: hero-motion.js tweens the strip by
   `x: -overflow`, a sign that only JavaScript can flip — see rtl.js. */

/* headline: the display face, no tracking, taller lines. The inline
   -1px letter-spacing was stripped from the Arabic content itself
   (inline style would beat any sheet). */
html[dir="rtl"] .is-hero-headline .wp-block-heading {
  font-family: var(--ds-ar-display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.5;
}
html[dir="rtl"] .is-hero-headline > p { font-family: var(--ds-ar-body); font-weight: 500; }
html[dir="rtl"] .is-hero-headline .dsm-cta a { font-family: var(--ds-ar-body); font-weight: 700; }

/* HUD: hero-motion.js 2.1.1 prints «تخطَّ ↓» itself on ar (1.10.0) — only the type changes here */
html[dir="rtl"] .dsm-hud__skip { letter-spacing: 0; text-transform: none; font-family: var(--ds-ar-body); font-size: 14px; }
html[dir="rtl"] .dsm-hud__count { direction: ltr; unicode-bidi: isolate; letter-spacing: 0; }

/* record strip: kicker and labels are tracked-out capitals in English */
html[dir="rtl"] .dsm-record .dsm-rec-kicker,
html[dir="rtl"] .dsm-record .dsm-rec-lab,
html[dir="rtl"] .dsm-record .dsm-rec-src {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ds-ar-body);
}
html[dir="rtl"] .dsm-record .dsm-rec-lab { font-weight: 700; font-size: .95rem; }
html[dir="rtl"] .dsm-record .dsm-rec-desc { line-height: 1.8; }
/* the number: see §12 — the paragraph is an LTR isolate so «+» follows the digits (1.10.0) */

/* work section rows */
html[dir="rtl"] .dsm-work p { line-height: 1.8; }

/* posts + testimonies: heads */
html[dir="rtl"] .dsm-posts .wp-block-post-title { line-height: 1.5; }
html[dir="rtl"] .dsc-quotes .dsq-lab {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--ds-ar-body);
  font-weight: 700;
  font-size: .82rem;
}
html[dir="rtl"] section.dsc-quotes .dsq-head h2 { letter-spacing: 0; line-height: 1.5; }   /* answers quotes.css letter-spacing:-.01em */

/* the testimony itself: Amiri, room for vowel marks, Arabic guillemets */
html[dir="rtl"] .dsc-quotes .dsq-q p {
  font-family: var(--ds-ar-quote);
  line-height: 1.65;
  letter-spacing: 0;
}
html[dir="rtl"] .dsc-quotes .dsq-q p:first-child::before { content: "\00AB"; }
html[dir="rtl"] .dsc-quotes .dsq-q p:last-child::after  { content: "\00BB"; }
html[dir="rtl"] .dsc-quotes .dsq-who  { font-family: var(--ds-ar-mark); }
html[dir="rtl"] .dsc-quotes .dsq-role { font-family: var(--ds-ar-body); line-height: 1.7; }

/* the bubble's tail and badge sit at left:56px / left:44px on the
   desktop; on the reading edge for Arabic (phone keeps them centred) */
@media (min-width: 901px) {
  html[dir="rtl"] .dsq-on .dsq-tail  { left: auto; right: 56px; }
  html[dir="rtl"] .dsq-on .dsq-badge { left: auto; right: 44px; }
}

/* quotes.js 1.4.6 prints «↓ مرّر» itself on ar (1.10.0) — only the type changes here */
html[dir="rtl"] .dsq-on.dsq-pin .dsq-hint { letter-spacing: 0; text-transform: none; font-family: var(--ds-ar-body); font-size: 14px; }

/* video card caption */
html[dir="rtl"] .dsm-video figcaption { font-family: var(--ds-ar-body); }

/* — phone — */
@media (max-width: 900px) {


  /* The two script-driven rails (home.js for the posts, quotes.js for
     the testimonies) index by a positive scrollLeft and a rail width —
     both LTR assumptions. Same device as the «من كلامه» rail: the rail
     stays LTR inside and is mirrored as a whole, and each slide's box is
     mirrored back. GSAP does not touch these boxes on the phone. */
  html[dir="rtl"] .dsm-posts .wp-block-post-template,
  html[dir="rtl"] .dsc-quotes .dsq-grid { direction: ltr; transform: scaleX(-1); }
  html[dir="rtl"] .dsm-posts .wp-block-post-template > li,
  html[dir="rtl"] .dsc-quotes .dsq-grid > li { direction: rtl; transform: scaleX(-1); }

  /* their arrows point the other way now; the counters stay Latin */
  html[dir="rtl"] .dsm-nav .dsm-btn,
  html[dir="rtl"] .dsq-nav .dsq-btn { transform: scaleX(-1); }
  html[dir="rtl"] .dsm-count,
  html[dir="rtl"] .dsq-count { direction: ltr; unicode-bidi: isolate; letter-spacing: 0; }

  /* the work rail is native scroll-snap — RTL scrolls it correctly on
     its own; nothing to do */
}


/* ── 3 · الفصل الثامن «الرحيل» (dsp-passing) — الصفحة 631 ───────────── */

/* passing.css 1.0.1 فرضت text-align:left !important على التعليقات
   لتغلب الثيم (المصيدة ١٩). rtl.css تُحمَّل بعدها فتعكسها بالتخصيص نفسه. */
.dsp-passing figcaption,
.dsp-passing .wp-element-caption{text-align:right !important}


/* ── ٤ · alsumait-traits — الفصل ٠٥ «خصاله» (1.5.0) ──────────────────
   القياس الحيّ على 638 عند 1530 قبل أيّ قاعدة: scrollWidth = clientWidth،
   صفر تجاوز أفقي، وترتيب الأعمدة والتنقّل ومواضع الأرقام انعكست كلّها
   تلقائياً — فالتخطيط لم يحتج شيئاً. القصور كلّه في الطباعة: traits.css
   تكتب font-family على عناصرها بنفسها، فلا تبلغها قاعدة الموقع
   body{font-family:var(--ds-ar-body)}. المقيس: كلّ متنٍ Mona Sans وكلّ
   عنصر عرضٍ Instrument Serif — عربيٌّ بخطوطٍ لاتينية بالسقوط الاحتياطي. */

/* المتن الجاري ← Tajawal */
.dsc-traits,
.dsc-traits .lede,
.dsc-traits .one,
.dsc-traits .card,
.dsc-traits .card p,
.dsc-traits .tier,
.dsc-traits .deckrule,
.dsc-traits .ledger td,
.dsc-traits .note,
.dsc-traits .sheettop p,
.dsc-traits .stampline p,
.dsc-traits .asidecell span,
.dsc-traits .aftercell p,
.dsc-traits .qitem .n,
.dsc-traits .kout p,
.dsc-traits .slab .n,
.dsc-traits .whysmall p,
.dsc-traits .final,
.dsc-traits .foot p,
.dsc-traits .qs li,
.dsc-traits .fnav p{font-family:var(--ds-ar-body);letter-spacing:0}

/* الوسوم — الإنجليزية تُباعد حروفها وترفعها كابيتال */
.dsc-traits .lab,
.dsc-traits .mark,
.dsc-traits .stamp,
.dsc-traits .arw,
.dsc-traits .src,
.dsc-traits .who,
.dsc-traits .k,
.dsc-traits .masthead .meta,
.dsc-traits small,
.dsc-traits b{font-family:var(--ds-ar-body);letter-spacing:0;text-transform:none}

/* العرض ← Aref Ruqaa. والرقمان (mvhead .n و qitem .x) هنديّان في المحتوى
   نفسه، فيأخذان خطّ العرض لا الـserif اللاتيني. */
.dsc-traits h1,
.dsc-traits h2,
.dsc-traits h3,
.dsc-traits .tocrow .t,
.dsc-traits .slab .t,
.dsc-traits .qbody .t,
.dsc-traits .masthead .t,
.dsc-traits .mvhead .n,
.dsc-traits .qitem .x{font-family:var(--ds-ar-display);letter-spacing:0;line-height:1.5}

/* كلامه هو ← Amiri */
.dsc-traits .card .q,
.dsc-traits .ethio .q,
.dsc-traits .qend .q,
.dsc-traits .held .q,
.dsc-traits .colar p,
.dsc-traits .kcell p{font-family:var(--ds-ar-quote);line-height:1.7;letter-spacing:0}

/* المحاذاة — المصيدة ١٩ ثانيةً (traits.css/الثيم تفرضان اليسار) */
.dsc-traits figcaption,
.dsc-traits .wp-element-caption{text-align:right !important}

/* عدّادات data-count (asidecell b وخانات السجلّ) تبقى بالـserif اللاتيني
   عمداً — أرقامها لاتينية في المحتوى نفسه. */


/* ── ٤-ب · traits — رفعُ التخصيص لأربعة مواضع ────────────────────────
   قيست بعد رفع 1.5.0: أربعة مُحدِّدات لم تكسب لأن traits.css تحملها
   بمُحدِّدٍ أطول. البادئة html[dir="rtl"] تضيف درجةً واحدة فتكسب،
   وتعليقُ الصورة يحتاج !important لأنه يجيب !important قائماً. */
html[dir="rtl"] .dsc-traits .toc .tocrow .t,
html[dir="rtl"] .dsc-traits .tocrow .t{font-family:var(--ds-ar-display)}
html[dir="rtl"] .dsc-traits .deck .card .q,
html[dir="rtl"] .dsc-traits .card .q{font-family:var(--ds-ar-quote)}
html[dir="rtl"] .dsc-traits .close .final,
html[dir="rtl"] .dsc-traits .final{font-family:var(--ds-ar-body)}
html[dir="rtl"] .dsc-traits .band figcaption,
html[dir="rtl"] .dsc-traits figcaption,
html[dir="rtl"] .dsc-traits .wp-element-caption{text-align:right !important}

/* ٤-ج · الألواح الثلاثة: إثيوبيا · خاتمة الباب الرابع · الستّة والعشرون يوماً */
html[dir="rtl"] .dsc-traits .ethio .wrap .q,
html[dir="rtl"] .dsc-traits .ethio .q,
html[dir="rtl"] .dsc-traits .held .wrap .q,
html[dir="rtl"] .dsc-traits .held .q,
html[dir="rtl"] .dsc-traits .qend .q{font-family:var(--ds-ar-quote);line-height:1.7}


/* ── ٥ · alsumait-umma — الفصل ٠٦ «جامعة الأمة» (الصفحة 640) ─────────
   القياسُ الحيّ على 640 قبل أيّ قاعدة قلبَ نتيجةَ القسم ٤ رأساً على عقب:

   • **الطباعة صحيحةٌ من غير تدخّل.** مسحٌ على كلّ p/h/td/li/figcaption/cite
     داخل ‎.dsc-umma‎ عند 1521: **صفر عنصرٍ عربيّ بخطٍّ لاتيني** — المتن
     Tajawal والعناوين Aref Ruqaa (من القسم ٠) والاقتباساتُ والأرقام Amiri.
     والسببُ أنّ ‎umma.css‎ تكتب ‎var(--dsu-serif)‎ = Amiri على عناصر عرضها،
     وAmiri خطٌّ عربيٌّ أصلاً — فالسقوطُ الاحتياطي الذي أفسد الفصل ٠٥ لا
     يقع هنا. **الاستثناء الوحيد** هو العلامة المائية، وقد صارت لاتينيةً
     بالمحتوى (٥-أ).
   • **والقصور كلّه في المرآة** — وهو عكس الفصل ٠٥ تماماً. و‎umma.css‎
     مكتوبةٌ بخصائصَ منطقية في معظمها (‎margin-inline-start:auto‎ على
     المحطّة، فتنعكس وحدها ويبقى النصُّ ملاصقاً لحائط الصور في الاتجاهين)،
     لكن ستّة مواضع بقيت فيزيائية، ورفٌّ ثالثٌ بقي أعمق من الـCSS (٥-ج).
   • صفر تجاوزٍ أفقي عند 1521 وعند 375 قبل هذه القواعد.

   والقواعد كلّها مسبوقةٌ بـhtml[dir="rtl"] من البداية — المصيدة ١٠٦. */

/* ٥-أ · العلامة المائية: «Umma University» بالعربية، كما تعلو «جامعة
   الأمة» عنواناً إنجليزياً. فتحتاج خطّاً لاتينياً للعرض (Instrument Serif
   كما في القسم ١)، واتجاهاً لاتينياً، وتنتقل إلى الحافة المقابلة —
   umma.css تضعها بـ‎right:3vw‎. */
html[dir="rtl"] .dsc-um2-hero .dsu2-ar{
  font-family:"Instrument Serif",Georgia,serif;
  direction:ltr;
  text-align:left;
  right:auto;
  left:3vw;
}

/* ٥-ب · شريط الاقتباس: umma.css تضعه ‎border-left‎ مع حشوٍ يساريّ.
   و‎!important‎ هنا **جوابٌ لا مبادأة**: أنماط ووردبريس العامة تحمل
   ‎:root :where(.wp-block-quote){border-right-width:0 !important}‎، فبقي
   الشريطُ صفراً على الجهتين مع أنّ اللونَ والنمطَ أخذا قيمتَيهما من
   قاعدتنا — عرضُ الحدّ وحده هو المحجوب. (قيس: 0px ← 2px بعد الجواب.) */
html[dir="rtl"] .dsc-umma .dsu2-pull{
  border-left:0 !important;
  border-right:2px solid var(--dsu-primary) !important;
  padding-left:0;
  padding-right:22px;
}

/* ٥-ج · تعليقات المعرض: مطلقةٌ بـ‎left:18px‎ ومحاذاةٌ يسارية —
   المصيدة ١٩ ثالثةً بعد 631 و638 */
html[dir="rtl"] .dsc-um2-gallery .dsu2-grow figcaption{
  text-align:right;
  left:auto;
  right:18px;
}

/* ٥-د · السجلّ: الخانةُ الأخيرة تُدفَع إلى الحافة البعيدة عن السنة،
   وهي في RTL اليسار */
html[dir="rtl"] .dsc-umma .dsu2-ledger td:last-child{text-align:left}

/* ٥-هـ · التنقّل: «السابق» يقع يميناً تلقائياً (ترتيبُ الأعمدة ينعكس)،
   فيبقى الحشوُ والفاصلُ والمحاذاة. وعلى الجوال يستقيم العمودان فوق
   بعضهما ويصير الفاصلُ أفقياً — فتعود المحاذاة إلى اليمين (البداية). */
html[dir="rtl"] .dsc-um2-nav .dsu2-prev{padding-right:0;padding-left:38px}
html[dir="rtl"] .dsc-um2-nav .dsu2-next{
  padding-left:0;
  padding-right:38px;
  text-align:left;
  border-left:0;
  border-right:1px solid var(--dsu-rule);
}
@media (max-width:900px){
  html[dir="rtl"] .dsc-um2-nav .dsu2-prev{padding-left:0;padding-right:0}
  html[dir="rtl"] .dsc-um2-nav .dsu2-next{
    padding-left:0;padding-right:0;
    text-align:right;
    border-right:0;
  }
}

/* ── ٥-و · الأرفف على الجوال — المرآةُ في المرآة ─────────────────────
   umma.js (2.2.7) تُحوِّل تقدُّمَ القارئ الرأسيَّ في لوحٍ لاصقٍ إلى
   ‎scrollLeft‎ **موجب** على الرفّ («لئلّا يحتاج القارئ إلى السحب»)،
   وتحسب مداها بـ‎scrollWidth - clientWidth‎. وكلا الأمرين افتراضٌ
   لاتينيّ: في RTL يكون مدى ‎scrollLeft‎ من 0 إلى **سالبٍ**، فالقيمةُ
   الموجبة تُقصَر إلى 1 ولا يتحرّك الرفّ أبداً.

   **المقيسُ حيّاً على 640 عند 375:** المحطّاتُ الأربع عند
   x = 33 · ‎-304‎ · ‎-641‎ · ‎-977‎ — أي أنّ ثلاثاً منها خارج الشاشة
   يساراً و‎overflow-x:hidden‎ مضروبٌ عليها، **فلا سبيل إلى الوصول
   إليها**. و‎scrollWidth‎ يُبلَّغ 633 بدل 1373 (قيمةُ الإنجليزية)،
   فحتى تصحيحُ الإشارة وحده لا يكفي: المدى نفسه مقروءٌ خطأً.
   *(وتُحقِّق أنّ هذا ليس وهمَ قياسٍ: الصفحةُ الإنجليزية عند 375 نفسها
   تُبلّغ 1373 وتقف محطّاتُها عند 20 · 357 · 693 · 1030.)*

   والعلاجُ هو نفسه المثبَّت مرّتين في القسمين ١ و٢: **يبقى الرفُّ
   لاتينياً في داخله ويُقلَب كلُّه بالمرآة، ثم يُقلَب كلُّ بطاقةٍ فيه
   مرّةً ثانية** — فتقرأ الـJS مدىً موجباً صحيحاً كما تقرؤه في
   الإنجليزية بلا حرفٍ واحدٍ من التعديل، ويرى القارئُ العربيُّ المحطّةَ
   الأولى يميناً والرفَّ يتقدّم يساراً. و‎GSAP‎ لا يكتب ‎transform‎ إلا
   على ‎.dsu2-rise‎ داخل المحطّة، فالمرآةُ الثانية على المحطّة نفسها
   لا تتنازع معه. */
@media (max-width:900px){

  html[dir="rtl"] .dsc-um2-duo .dsu2-rail,
  html[dir="rtl"] .dsc-um2-gallery .dsu2-grow{direction:ltr;transform:scaleX(-1)}

  html[dir="rtl"] .dsc-um2-duo .dsu2-rail > .dsc-um2-stn,
  html[dir="rtl"] .dsc-um2-gallery .dsu2-grow > .wp-block-column{direction:rtl;transform:scaleX(-1)}

  /* لوحةُ العدّ: umma.js تحقن «Stations» و«Photographs» نصّاً — نفسُ
     حيلة القسمين ١ و٢: يُخفى نصُّ العنصر ويُطبع العربيُّ من عنصرٍ زائف.
     واللوحةُ خارج الرفّ فلا تمسّها المرآة. */
  html[dir="rtl"] .dsu2-railhud > span:last-child{font-size:0}
  html[dir="rtl"] .dsu2-railhud > span:last-child .dsu2-t{font-size:.68rem}
  html[dir="rtl"] .dsc-um2-duo .dsu2-railhud > span:last-child::before{content:"محطّات ";font-size:.68rem;font-family:var(--ds-ar-body)}
  html[dir="rtl"] .dsc-um2-gallery .dsu2-railhud > span:last-child::before{content:"صور ";font-size:.68rem;font-family:var(--ds-ar-body)}

  /* العدّادان لاتينيّان («01» و«· 04») — يُعزلان لئلّا يقلب مُحرّكُ
     الاتجاه النقطةَ والرقم، ويبقيان على حافة القراءة */
  html[dir="rtl"] .dsu2-railhud .dsu2-n,
  html[dir="rtl"] .dsu2-railhud .dsu2-t{direction:ltr;unicode-bidi:isolate;text-align:right}

  /* شريطُ التقدّم مطلقٌ بـ‎left:0‎ وينمو بالعرض — فينمو في RTL من اليمين */
  html[dir="rtl"] .dsu2-railhud .dsu2-bar i{left:auto;right:0}
}


/* ── ٦ · alsumait-umma — الفصل ٠٧ «الجوائز والأوسمة» (الصفحة 670) ─────
   القياسُ الحيّ على 670 **قبل** أيّ قاعدة:

   • **الطباعة صحيحةٌ من غير تدخّل** — كما في القسم ٥ وللسبب نفسه:
     umma.css تكتب var(--dsu-serif) = Amiri وهو خطٌّ عربيّ. المقيس عند
     1521: **صفر عنصرٍ عربيّ بخطٍّ لاتيني**.
   • **العلامة المائية لا تحتاج قاعدةً جديدة:** قاعدةُ ٥-أ تستهدف
     .dsc-um2-hero .dsu2-ar فتشمل هذه الصفحة، والمحتوى صار لاتينياً
     («Awards & Honors») بالقرار ١٤. المقيس: Instrument Serif · left:46px.
   • صفر تجاوزٍ أفقي عند 1521 وعند 372.
   • **والجديدُ موضعان فيزيائيان في بلاطة السجلّ، والرفُّ الثالث** الذي
     تنبّأت به المصيدة ١١٧ — وقد تحقّق حرفياً. */

/* ٦-أ · بلاطةُ التكريم: umma.css تضع الشرطةَ الصغيرة مطلقةً بـleft:20px
   والسنةَ بـright:20px — يتبادلان في RTL فتبقى الشرطةُ فوق أوّل الحرف
   والسنةُ في الزاوية المقابلة. وهما الموضعان الوحيدان اللذان كشفهما مسحُ
   .dsu2-dept* و.dsu2-verse و.dsu2-money و.dsu2-legend و.dsu2-headnote —
   والباقي منطقيٌّ ينعكس وحده. */
html[dir="rtl"] .dsc-umma .dsu2-dept::before{left:auto;right:20px}
html[dir="rtl"] .dsc-umma .dsu2-dept-y{right:auto;left:20px}

/* ── ٦-ب · رفُّ التكريمات على الجوال — المرآةُ في المرآة، الثالثة ─────
   .dsu2-depts يصير على الجوال رفّاً أفقياً («rail 2 — the honours» في
   umma.css) تسوقه umma.js بـscrollLeft موجب، فيقع فيه عطبُ المصيدة ١١٧
   نفسه بلا تغيير.

   **المقيسُ حيّاً على 670 عند 372 قبل هذه القاعدة:** البلاطاتُ الاثنتا
   عشرة عند x = 181 · 0 · -181 · -362 · -544 … — أي **عشرٌ من اثنتي عشرة
   خارج الشاشة يساراً** وscrollLeft عالقٌ عند 0، وscrollWidth 2203 مقابل
   clientWidth 357.

   والعلاجُ هو المثبَّت مرّتين قبله: يبقى الرفُّ لاتينياً في داخله ويُقلَب
   كلُّه، ثم تُقلَب كلُّ بلاطةٍ فيه مرّةً ثانية — بلا حرفٍ من تعديل الـJS.
   ولوحةُ العدّ خارج الرفّ فلا تمسّها المرآة، وقواعدُ ٥-و (font-size:0
   والعدّادان وشريطُ التقدّم) تشملها أصلاً، فلا يبقى إلا نصُّها العربيّ. */
@media (max-width:900px){

  html[dir="rtl"] .dsc-um2-depts .dsu2-depts{direction:ltr;transform:scaleX(-1)}

  html[dir="rtl"] .dsc-um2-depts .dsu2-depts > .dsu2-dept{direction:rtl;transform:scaleX(-1)}

  html[dir="rtl"] .dsc-um2-depts .dsu2-railhud > span:last-child::before{content:"تكريمات ";font-size:.68rem;font-family:var(--ds-ar-body)}
}


/* ==========================================================================
 * 7 · chapter layer — alsumait-chapter (dsc-*)
 * Serves 680 (ch 03) and later 01 / 02 / Malawi. Session 45 — 2026-09-10.
 * ========================================================================== */

html[dir="rtl"] {
	--dsc-serif: var(--ds-ar-display);
}
html[dir="rtl"] .dsc-hero-mark,
html[dir="rtl"] .dsc-watermark,
html[dir="rtl"] .dsc-reason-n,
html[dir="rtl"] .dsc-num {
	font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
}
html[dir="rtl"] .dsc-reason-t,
html[dir="rtl"] .dsc-rail-item .dsc-rail-year,
html[dir="rtl"] .dsc-gloss h3,
html[dir="rtl"] .dsc-nav-grid h3 {
	font-family: var(--ds-ar-body);
}

html[dir="rtl"] .dsc-eyebrow,
html[dir="rtl"] .dsc-h-eyebrow,
html[dir="rtl"] .dsc-h-meta,
html[dir="rtl"] .dsc-readlink {
	letter-spacing: normal;
}

html[dir="rtl"] .dsc-hero .dsc-hero-mark {
	right: auto;
	left: -0.06em;
	transform-origin: right top !important;
}
@media (max-width: 781px) {
	html[dir="rtl"] .dsc-hero .dsc-hero-mark { right: auto; left: -0.02em; }
}
html[dir="rtl"] .dsc-opener .dsc-watermark { left: auto; right: -0.04em; }
html[dir="rtl"] .dsc-frame { margin-left: 0; margin-right: auto; }

html[dir="rtl"] .dsc-rail-item {
	border-left: 0;
	border-right: 2px solid var(--wp--preset--color--border-light);
	padding-left: 0;
	padding-right: 1rem;
}
@media (max-width: 781px) {
	html[dir="rtl"] .dsc-rail-item { border-right: 0; padding-right: 0; }
}
html[dir="rtl"] .dsc-body .dsc-lead::first-letter {
	float: right;
	padding: 0.06em 0 0 0.12em;
}
html[dir="rtl"] .dsc-testimony::before { content: "\201D"; }

html[dir="rtl"] .dsc-chapter-page .wp-block-image.dsc-frame figcaption,
html[dir="rtl"] .dsc-chapter-page .wp-block-image.dsc-album-img figcaption,
html[dir="rtl"] .dsc-chapter-page .wp-block-image.dsc-bleed figcaption,
html[dir="rtl"] .dsc-card .dsc-eyebrow,
html[dir="rtl"] .dsc-card .wp-block-heading,
html[dir="rtl"] .dsc-card p {
	text-align: right;
}
html[dir="rtl"] .dsc-shuwaikh-grid .dsc-bleed figcaption {
	left: auto;
	right: var(--wp--preset--spacing--medium);
}

html[dir="rtl"] .dsc-reason-count { right: auto; left: 0; }
html[dir="rtl"] .dsc-reason .dsc-reason-n { transform-origin: right center !important; }

html[dir="rtl"] .dsc-life-row .dsc-bar { transform-origin: right center !important; }
html[dir="rtl"] .dsc-life-row .dsc-life-val { text-align: left; }

html[dir="rtl"] .dsc-nav-grid .dsc-col-prev {
	border-right: 0;
	border-left: 1px solid var(--wp--preset--color--border-light);
}
html[dir="rtl"] .dsc-nav-grid .dsc-col-next {
	padding-left: 0;
	padding-right: var(--wp--preset--spacing--x-large);
}
@media (max-width: 781px) {
	html[dir="rtl"] .dsc-nav-grid .dsc-col-prev { border-left: 0; }
	html[dir="rtl"] .dsc-nav-grid .dsc-col-next { padding-right: 0; }
}

html[dir="rtl"] .dsc-thunder p,
html[dir="rtl"] .dsc-testimony p,
html[dir="rtl"] .dsc-fertile p {
	font-family: var(--ds-ar-quote);
}

html[dir="rtl"] .dsc-testimony cite,
html[dir="rtl"] .dsc-thunder cite {
	font-family: var(--ds-ar-body);
}

/* 7-i · Arabic display metrics: Latin tracking and 0.94 leading clip Aref Ruqaa. */
html[dir="rtl"] .dsc-hero .dsc-h-title,
html[dir="rtl"] .dsc-opener .dsc-title {
	letter-spacing: normal;
	line-height: 1.3;
}
html[dir="rtl"] .dsc-hero .dsc-line { padding-bottom: 0.26em; }
html[dir="rtl"] .dsc-thunder p,
html[dir="rtl"] .dsc-testimony p,
html[dir="rtl"] .dsc-fertile p { line-height: 1.6; }
html[dir="rtl"] .dsc-reason-t,
html[dir="rtl"] .dsc-gloss h3,
html[dir="rtl"] .dsc-nav-grid h3 { line-height: 1.5; }
html[dir="rtl"] .dsc-scale-num,
html[dir="rtl"] .dsc-stat-num { line-height: 1.35; }

/* 7-j · core table headers are hard-left in the theme; mirror them. */
html[dir="rtl"] .dsc-chapter-page .wp-block-table th,
html[dir="rtl"] .dsc-chapter-page table th {
	text-align: right;
}


/* ==========================================================================
 * 8 · alsumait-woman (rw-*) — 689 "The Righteous Woman". Session 47 — 2026-09-10.
 * ========================================================================== */

/* 8-a · two variables carry the whole page's typography. */
html[dir="rtl"] .dsc-woman {
	--rw-serif: var(--ds-ar-display);
	--rw-sans: var(--ds-ar-body);
}
/* The cover mark carries the LATIN title in the Arabic edition (decision 6). */
html[dir="rtl"] .dsc-woman .rw-cover__mark {
	right: auto;
	left: 28px;
	font-family: "Instrument Serif", Georgia, serif;
}
@media (max-width: 900px) {
	html[dir="rtl"] .dsc-woman .rw-cover__mark { right: auto; left: 14px; }
}

/* 8-b · Latin tracking breaks the joined Arabic letter. */
html[dir="rtl"] .dsc-woman .rw-kick,
html[dir="rtl"] .dsc-woman .rw-k,
html[dir="rtl"] .dsc-woman .rw-dp__place,
html[dir="rtl"] .dsc-woman .rw-tile a {
	letter-spacing: normal;
}

/* 8-c · the cover: veil and subject swap sides with the text.
 * The veil is two stacked gradients over inset:0 — mirroring the whole
 * pseudo-element preserves both layers, redeclaring them would not. */
html[dir="rtl"] .dsc-woman .rw-cover::after { transform: scaleX(-1); }
html[dir="rtl"] .dsc-woman .rw-cover figure.wp-block-image img { object-position: left center; }
@media (max-width: 900px) {
	html[dir="rtl"] .dsc-woman .rw-cover figure.wp-block-image img { object-position: 28% 50%; }
}
html[dir="rtl"] .dsc-woman .rw-cover h1 .rw-ln { padding-bottom: 0.18em; }

/* 8-d · the three struck conditions grow from the reading edge. */
html[dir="rtl"] .dsc-woman .rw-cline i {
	left: auto;
	right: 0;
	transform-origin: 100% 50% !important;
}

/* 8-e · numeral badge and slab rule follow the direction. */
html[dir="rtl"] .dsc-woman .rw-num { right: auto; left: 18px; }
@media (max-width: 900px) {
	html[dir="rtl"] .dsc-woman .rw-num { right: auto; left: 14px; }
}
html[dir="rtl"] .dsc-woman .rw-slab::before {
	background: linear-gradient(270deg, var(--rw-gold), rgba(199,154,58,0));
}

/* 8-f · the Latin mark is far wider than the Arabic one it replaces.
 * Measured at 375px: 485px wide inside a 360px cover — clipped by 154px.
 * The desktop cap (167px) still fits (1232px in 1506px), so only the
 * mobile size is rescaled. */
@media (max-width: 900px) {
	html[dir="rtl"] .dsc-woman .rw-cover__mark {
		font-size: clamp(26px, 10.4vw, 60px);
	}
}

/* 8-g · Aref Ruqaa's ink overflows the line box the reveal mask clips.
 * The box fits (48px span in a 55px mask) yet the glyphs are cut, so the
 * mask itself is padded on both edges rather than the type resized. */
html[dir="rtl"] .dsc-woman .rw-cover h1 .rw-ln {
	padding-top: 0.22em;
	padding-bottom: 0.24em;
	margin-bottom: -0.20em;
}


/* ============================================================
   ٩ · الفوتر — عنوان نداء الختام (الجلسة ٤٨)
   قالب الفوتر يكتب خطّ العرض اللاتيني Instrument Serif على h2،
   ومعه تتبّعٌ سالب (-0.01em) يفسد وصل الحروف العربية.
   فيسقط العنوان العربي إلى خطّ احتياطيّ يختلف من جهازٍ إلى جهاز —
   وهو على كلّ صفحةٍ عربية، لا على صفحةٍ بعينها.
   ============================================================ */
html[dir="rtl"] .site-footer .ftl-cta h2,
html[dir="rtl"] .site-footer .ftl-cta__txt h2{
  font-family: var(--ds-ar-display), "Aref Ruqaa", "Amiri", serif;
  letter-spacing: normal;
  line-height: 1.5;
}


/* ===== 10 · المكتبة العربية — العلامتان المائيتان (الجلسة ٥٢) =====
   «بصوته» و«كُتُب» عربيتان بخط Amiri في الإنجليزية، وقد انقلبتا لاتينيتين
   بالقرار ٦ (His Voice · Books) فتتبعان قاعدة العلامات اللاتينية. */
html[dir="rtl"] .dsc-au2-mark,
html[dir="rtl"] .dsc-bk-mark{font-family:"Instrument Serif",Georgia,serif;letter-spacing:0}


/* ── 11 · alsumait-said — «قالوا عنه» (821) ─────────────────────────────
   The watermark stays Arabic on this page on purpose: «ثناء المحبّين» is
   the reference book's own chapter title (p. 595), not a translation of
   the page name — so the rule that flips a mark to Latin (decisions 6
   and 45) does not apply, and the mark keeps its face and its corner.
   What the Arabic does need: no tracking on the small labels, taller
   lines under Aref Ruqaa, no synthetic italic on Amiri, and the Latin
   numerals isolated so «· 03» never turns round. */

html[dir="rtl"] .dsc-said .dss-lab,
html[dir="rtl"] .dsc-said .dss-src,
html[dir="rtl"] .dsc-said .dss-legend,
html[dir="rtl"] .dsc-said .dss-hud { letter-spacing: normal; text-transform: none; }
html[dir="rtl"] .dsc-said .dss-lab { font-weight: 600; }
html[dir="rtl"] .dsc-said .dss-grid .dss-src { font-size: 11.5px; line-height: 1.8; }

/* Aref Ruqaa carries long ascenders — a 1.08 line clips them */
html[dir="rtl"] .dsc-said.dss-hero h1 { line-height: 1.32; letter-spacing: normal; max-width: 17ch; }
html[dir="rtl"] .dsc-said .dss-acthead h2,
html[dir="rtl"] .dsc-said .dss-acts .dss-act h3,
html[dir="rtl"] .dsc-said.dss-reg h3,
html[dir="rtl"] .dsc-said.dss-twin h2,
html[dir="rtl"] .dsc-said .dss-wall-title,
html[dir="rtl"] .dsc-said .dss-tile h3 { line-height: 1.42; letter-spacing: normal; }

/* Amiri has no italic — the browser slants it */
html[dir="rtl"] .dsc-said .dss-sub { font-style: normal; line-height: 1.55; }

/* Arabic reads at a taller line than Latin at the same size */
html[dir="rtl"] .dsc-said .dss-stand { line-height: 1.9; }
html[dir="rtl"] .dsc-said .dss-rule-note { line-height: 1.85; }
html[dir="rtl"] .dsc-said .dss-acthead p,
html[dir="rtl"] .dsc-said .dss-acts .dss-act p,
html[dir="rtl"] .dsc-said.dss-reg p,
html[dir="rtl"] .dsc-said .dss-note,
html[dir="rtl"] .dsc-said .dss-tile p { line-height: 1.85; }
html[dir="rtl"] .dsc-said.dss-foot p { font-size: 14px; line-height: 1.95; }
html[dir="rtl"] .dsc-said .dss-grid .dss-who { font-size: 15px; line-height: 1.7; }

/* Latin numerals inside Arabic: isolated, and kept on the start side
   (trap 89 — a block with direction:ltr aligns its own text left) */
html[dir="rtl"] .dsc-said .dss-num { direction: ltr; unicode-bidi: isolate; text-align: right; }
html[dir="rtl"] .dsc-said .dss-hud .n,
html[dir="rtl"] .dsc-said .dss-hud .t,
html[dir="rtl"] .dsc-said .dss-chip b { direction: ltr; unicode-bidi: isolate; }

/* ═══════════════════════════════════════════════════════════════════════════
   12 · الصفحة الأمامية — المرحلة الأولى من أمر العمل home-mobile (1.10.0 · الجلسة ٦٠)
   إصلاحات صحّة فقط: اتجاه الأرقام، حدود الخط، أهداف اللمس. لا إعادة تصميم.
   ═══════════════════════════════════════════════════════════════════════════ */

/* §1.1 · «+» بعد الرقم لا قبله: الفقرة كلّها عزلٌ LTR مع محاذاة يمين (المصيدة ٨٩) */
html[dir="rtl"] .dsm-record .dsm-rec-num { direction: ltr; unicode-bidi: isolate; text-align: right; }
html[dir="rtl"] .dsm-record .dsm-rec-num .dsm-rec-sfx { unicode-bidi: isolate; }
/* أرقام الفصول 01–08 في الفوتر والقائمة: عزلٌ صريح، والفراغ بـgap لا بهامش منطقي */
html[dir="rtl"] .ftl-chap .n,
html[dir="rtl"] .site-footer .ftl-chap .n { direction: ltr; unicode-bidi: isolate; }
/* عدّاد الـHUD كان على Plus Jakarta Sans — لم تعد تُحمَّل على العربية */
html[dir="rtl"] .dsm-hud__count { font-family: var(--ds-ar-body); }

/* §1.12 · حدود الخط: لا شيء دون 14px (البيانات الثانوية) و15px للمتن */
html[dir="rtl"] .dsc-quotes .dsq-lab { font-size: 14px; }
html[dir="rtl"] .dsm-work .dsw-k,
html[dir="rtl"] .dsm-work .dsw-cite,
html[dir="rtl"] .dsm-work .dsw-src,
html[dir="rtl"] .dsm-work small { font-size: 14px !important; }
html[dir="rtl"] .dsm-work .dsw-ledger li,
html[dir="rtl"] .dsm-work .dsw-ledger i { font-size: 15px !important; }
html[dir="rtl"] .site-footer .ftl-eyebrow,
html[dir="rtl"] .site-footer .lsw-lb,
html[dir="rtl"] .site-footer .dsf-soc__label { font-size: 14px !important; }
html[dir="rtl"] .site-footer .ftl-brand__d,
html[dir="rtl"] .site-footer .ftl-tlink,
html[dir="rtl"] .site-footer .ftl-link,
html[dir="rtl"] .site-footer .ftl-chap .t,
html[dir="rtl"] .site-footer .lsw-row a,
html[dir="rtl"] .site-footer .wp-block-paragraph { font-size: 15px !important; }

/* §1.13 · أهداف اللمس ≥ 44px على الجوال — الروابط داخل الجمل مستثناة */
@media (max-width: 781px) {
  /* كتل وأزرار: ارتفاع أدنى */
  html[dir="rtl"] .site-header .wp-block-navigation__responsive-container-open,
  html[dir="rtl"] .site-header .wp-block-button__link,
  html[dir="rtl"] .dsm-posts .wp-block-button__link,
  html[dir="rtl"] .dsc-quotes .wp-block-button__link,
  html[dir="rtl"] .dsm-video .wp-block-button__link,
  html[dir="rtl"] .site-footer .wp-block-button__link,
  html[dir="rtl"] .dsm-work .dsw-cta,
  html[dir="rtl"] .dsm-hud__skip,
  html[dir="rtl"] .site-footer .ftl-link a,
  html[dir="rtl"] .site-footer .dsf-soc__lnk { min-height: 44px; box-sizing: border-box; }
  html[dir="rtl"] .site-header .wp-block-navigation__responsive-container-open { min-width: 44px; }
  html[dir="rtl"] .site-header .wp-block-button__link,
  html[dir="rtl"] .dsm-posts .wp-block-button__link,
  html[dir="rtl"] .dsc-quotes .wp-block-button__link,
  html[dir="rtl"] .dsm-video .wp-block-button__link,
  html[dir="rtl"] .site-footer .wp-block-button__link,
  html[dir="rtl"] .dsm-work .dsw-cta,
  html[dir="rtl"] .dsm-hud__skip { display: inline-flex; align-items: center; justify-content: center; }
  html[dir="rtl"] .site-footer .ftl-link a { display: flex; align-items: center; }
  /* روابط سطرية تحمل هدفاً قائماً بذاته: تكبير منطقة اللمس بلا تحريك التخطيط */
  html[dir="rtl"] .site-header .wp-block-site-title a { display: inline-block; padding-block: 14px; margin-block: -14px; }
  html[dir="rtl"] .is-hero-headline .dsm-cta a,
  html[dir="rtl"] .is-hero-motion .wp-block-cover p > a,
  html[dir="rtl"] .dsm-posts .taxonomy-category a,
  html[dir="rtl"] .dsm-posts .wp-block-post-title a,
  html[dir="rtl"] .site-footer .ftl-tlink a,
  html[dir="rtl"] .site-footer h3 a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}

/* §1.12 (تكملة) · المقاس المسبق x-small في الثيم يهبط إلى 13.3px تحت 400px — أرضيّته 14px؛
   وتسمية السجلّ تجيب على 11px!important في home.css */
html[dir="rtl"] .has-x-small-font-size { font-size: max(14px, var(--wp--preset--font-size--x-small)) !important; }
html[dir="rtl"] .dsm-record .dsm-rec-lab { font-size: 15px !important; }
html[dir="rtl"] .site-footer .ftl-chapdet > summary { font-size: 14px !important; }

/* ═══ 13 · the Arabic wordmark (WORK-ORDER-home-mobile §3.8 — session 60c) ═══
   The Arabic header (template part 600) and footer (601) carry a paragraph/heading with the classes
   wp-block-site-title dsm-wm-ar in place of the site-title block: «د. عبدالرحمن السميط» in the display face.
   The Latin site name stays on the other locales. */
html[dir="rtl"] .site-header .wp-block-site-title.dsm-wm-ar{margin:0}
html[dir="rtl"] .site-header .wp-block-site-title.dsm-wm-ar a{font-family:var(--ds-ar-mark,"Aref Ruqaa"),"Amiri",serif!important;font-size:24px!important;font-weight:400!important;letter-spacing:0!important;line-height:1.3!important;text-decoration:none}

/* ═══ 14 · Somar Sans replaces Ruqaa on headings — the wordmark keeps Ruqaa (session 70, 2026-10-01) ═══
   --ds-ar-display is now Somar Sans. Three wordmark rules outside this sheet read
   var(--ds-ar-display, "Aref Ruqaa"), so they are pointed back at --ds-ar-mark here:
   · footer 601 (.ftl .ftl-brand .dsm-wm-ar — answers its !important)
   · home mobile header and drawer (hero-motion.css @781px: .dsm-hwm, .dsm-dtop .dsm-wm)
   And the home mobile headline: hero-motion.css sets 400 !important there — answered with 900. */
html[dir="rtl"] .ftl .ftl-brand .dsm-wm-ar { font-family: var(--ds-ar-mark) !important; }
html[dir="rtl"][lang] body.home .dsm-hwm,
html[dir="rtl"][lang] body.home .dsm-dtop .dsm-wm { font-family: var(--ds-ar-mark); }
@media (max-width: 781px) {
  html[dir="rtl"][lang] body.home .is-hero-headline .wp-block-heading { font-weight: 900 !important; }
}
