/* KurdWomen Pro 15.24.12 — editorial typography (Persian + Kurdish Sorani)
 * The site uses Vazirmatn via the existing 'kwp-font' stylesheet.
 * Style only article/page prose; preserve navigation, cards, headings, UI
 * and explicit alignments selected in the WordPress editor.
 */
body.kwp-site .kw9-prose,
body.kwp-site .kwp-prose {
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
}

/* Full justification for regular body paragraphs and longer list items.
 * Keep the final line aligned to the reading start (right in RTL).
 * Do not change text nodes or insert U+0640 tatweel characters.
 */
body.kwp-site :is(.kw9-prose, .kwp-prose) p:not([class*="has-text-align-"]):not([style*="text-align"]),
body.kwp-site :is(.kw9-prose, .kwp-prose) li:not([class*="has-text-align-"]):not([style*="text-align"]) {
  text-align: justify !important;
  text-align-last: start;
  text-justify: auto;
  word-break: normal;
  overflow-wrap: break-word;
}

/* If a browser explicitly supports Arabic-script kashida justification,
 * prefer its shaping engine rather than inserting fake elongation characters.
 * Unsupported browsers safely use the native auto justification above.
 */
@supports (text-justify: kashida) {
  body.kwp-site :is(.kw9-prose, .kwp-prose) p:not([class*="has-text-align-"]):not([style*="text-align"]),
  body.kwp-site :is(.kw9-prose, .kwp-prose) li:not([class*="has-text-align-"]):not([style*="text-align"]) {
    text-justify: kashida;
  }
}

/* Text explicitly aligned by authors, plus captions, headings, quotes in
 * blocks, controls and one-line UI labels, keep their original layout.
 */
