/* ==========================================================================
   CXM Academy: right to left additions (Arabic sites)
   Loaded after theme.css only when the page is right to left: wp_style_add_data( 'cxm-academy-theme', 'rtl', ... )
   in inc/locale.php, and in the editor through add_editor_style(), which picks up this -rtl file.
   theme.css already uses logical properties (margin-inline, border-inline, inset-inline), so grids,
   the hero inset panel, cards, chips, the mobile menu and the footer mirror by themselves.
   This file only handles what does not mirror on its own: arrows and type habits that suit Latin only.
   Generated into the theme by _build/build_theme.py from _build/src/assets/css/theme-rtl.css.
   ========================================================================== */

/* Arrows point the way you read. */
html[dir="rtl"] .cxm-link-arrow a::after,
html[dir="rtl"] a.cxm-link-arrow::after,
html[dir="rtl"] .wp-block-button.cxm-arrow > .wp-block-button__link::after,
html[dir="rtl"] .wp-block-read-more.cxm-link-arrow::after{transform:scaleX(-1)}
html[dir="rtl"] .cxm-link-arrow a:hover::after,
html[dir="rtl"] a.cxm-link-arrow:hover::after{transform:scaleX(-1) translateX(3px)}

/* Arabic has no capitals and its letters join: no uppercase, no letter spacing, no italics. */
html[dir="rtl"] :is(.cxm-kicker,.cxm-tag,.cxm-clients-label,.cxm-footer h4,.cxm-offer-side h4,.cxm-callout h4,.cxm-attempt .cxm-attempt-lbl,.cxm-tags-row a,.cxm-locale-title,.cxm-faculty .cxm-role,.cxm-price .cxm-price-note,.cxm-signin .cxm-signin-host){letter-spacing:0;text-transform:none}
html[dir="rtl"] .wp-block-heading.cxm-mixed{text-transform:none;letter-spacing:0;line-height:1.25}
html[dir="rtl"] .wp-block-heading.cxm-mixed em{font-style:normal;font-weight:700;line-height:1.35;letter-spacing:0}
html[dir="rtl"] :is(h1,h2,h3,h4,h5,h6){letter-spacing:0;line-height:1.35}
html[dir="rtl"] body{line-height:1.8}
html[dir="rtl"] .cxm-kicker{font-size:13px}

/* Addresses, email and numbers keep their own direction inside Arabic text. */
html[dir="rtl"] a[href^="mailto:"],html[dir="rtl"] a[href^="tel:"],html[dir="rtl"] .cxm-price-amount,html[dir="rtl"] .cxm-signin-host{unicode-bidi:isolate}
