/* Version two, right to left (Arabic, Kurdish). Loaded only for those languages, after the mirrored stylesheets
   (published.rtl.css and site.rtl.css or pages/{key}.rtl.css, written by tools/v2_css_build.mjs). Here stands only what
   mirroring cannot do: the face for Arabic script, type that suits it, and what must never be mirrored. */

/* 1. Arabic script: Vazirmatn (SIL Open Font License, fonts/OFL-Vazirmatn.txt) under the site's two family names, for
      Arabic letters only; Latin words keep the site's own face. One face for each face site.css declares, with the very
      same style and weight range: only then do the two form one face, and the later one is asked first for the letters
      in its range. (A single face "100 900" is passed over: the browser takes site.css's face, and the Arabic letters
      come from Segoe UI or whatever the device has. Measured in Chrome, 2026-12-02; v2_check.php compares the lists.) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 349; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 350 549; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 550 649; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 650 1000; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Outfit"; font-style: italic; font-weight: 100 549; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Outfit"; font-style: italic; font-weight: 550 1000; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 100 349; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 350 549; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 550 649; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 650 1000; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 100 549; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 550 1000; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/*    The serif accent words and the quotations have no family name to hang the face on: without this their Arabic letters
      would be drawn in whatever serif the visitor's device has. Latin words in them keep the serif. */
@font-face { font-family: "AAF Arabic"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/vazirmatn-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
[dir="rtl"] :is(.font-serif, .v2-dg__h em, .cq-q p, .cm-open p, .cm-pull p, .drm-em) { font-family: "AAF Arabic", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; }

/* 2. Type. Arabic letters join: spacing between letters breaks the words, there are no capitals, and the script has no
      slanted form (a slanted Arabic line is only a distorted one). */
[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; font-style: normal !important; }

/* 3. Never mirrored: telephone numbers and addresses read left to right inside a right-to-left line */
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; text-align: -webkit-match-parent; text-align: match-parent; }

/* 4. Arrows point the way the reading goes. The drawing inside the icon is turned, not the icon itself, so an icon that
      moves on hover (its transform is mirrored with the stylesheet) still moves the right way. */
[dir="rtl"] svg:is(.lucide-arrow-right, .lucide-arrow-left, .lucide-chevron-right, .lucide-chevron-left, .lucide-arrow-up-right, .akp-arrow, .mcd-arrow, .blk-arrow, .drm-arrow) > *,
[dir="rtl"] svg:has(> path:is([d="M5 12h14M13 6l6 6-6 6"], [d="m12 5 7 7-7 7"], [d="M7 17 17 7"])) > * { transform: scaleX(-1); transform-origin: center; transform-box: view-box; }
/* an arrow that is turned to point down stays as it is drawn */
[dir="rtl"] :is(.akp-jump-item, .bdp-tile .akp-tile-go) .akp-arrow > * { transform: none; }

/* 5. Headings: Arabic letters stand taller and hang lower than Latin ones, so lines set as tightly as the Latin headings touch */
[dir="rtl"] :is(h1, h2, h3) { line-height: 1.3 !important; }

/* 6. (A row of logos that moves needs nothing here: the mirroring tool turns its keyframes, so the row starts at the
      right edge and travels to the right. Do not set a direction on it; the strip would run empty.) */

/* 7. The drop letter of the Chairman's message: Arabic letters join, and a letter taken out of its word breaks the word */
[dir="rtl"] .cm-first::first-letter { float: none; margin: 0; font: inherit; color: inherit; }

/* 8. A photograph is never mirrored, so the words stand on the side the photograph leaves free, as in English (the
      shade under them carries rtl:keep in site.css). The block of words keeps that side; inside it the lines run from
      the right. */
[dir="rtl"] .akp-all { justify-content: flex-end; }   /* the shop banner of a brand page: its products stand on the right of the picture */
[dir="rtl"] .akp-all-copy { flex: 0 1 auto; }
@media (min-width: 768px) {
  [dir="rtl"] .akp-hero-copy { width: fit-content; margin-right: auto; margin-left: 0; }
  [dir="rtl"] .bdp-hero .akp-hero-copy { max-width: 540px; }   /* right-aligned lines end at the block's edge: a little room before the blender */
}
@media (min-width: 641px) {
  [dir="rtl"] .fo-hero-in { display: grid; grid-template-columns: minmax(0, 40rem); justify-content: end; justify-items: start; }
}
@media (min-width: 1024px) {
  [dir="rtl"] .cp-b-copy { display: grid; grid-template-columns: minmax(0, 30rem); justify-content: end; justify-items: start; }
}

/* 9. A wide band with a large heading: Arabic lines stand taller, so the band grows with its words instead of cutting them */
[dir="rtl"] [data-s="trusted-authorized-distributor-in-iraq"] { height: auto; min-height: 60vh; padding-block: 96px; }
[dir="rtl"] [data-s="trusted-authorized-distributor-in-iraq"] :is(h1, h2) { text-wrap: balance; }

/* 10. The names on the drawn map of Iraq are placed by their left end: they keep that anchor, whatever the language */
[dir="rtl"] :is(.iq-mpin, .iq-mpin-area) text { direction: ltr; }

/* 12. A logo or a product drawn at one end of its box: the tool leaves object-position alone (a photograph keeps its
       crop), so the few boxes that anchor a picture to their start are turned here */
[dir="rtl"] :is(.v2-dg__store, .v2-hd__logo, .v2-hd__tiles, .v2-ft__tiles) img { object-position: right center; }
[dir="rtl"] .blk-jump > img { object-position: 0 50%; }

/* 11. A heading stacked over its line (the brand pages' product groups on phones): "baseline" in a column lines the two
       up by their left ends, which is the far side here */
@media (max-width: 767px) {
  [dir="rtl"] :is(.akp-fam-head, .smp-shelf, .drm-shelf) { align-items: flex-start; }
}
