/* Arabic (RTL) layer for /ar pages only (2026-11-12). Linked from IntlPage.astro when lang === "ar"; never loaded
   on EN/ES/sv/nl/pl/de pages, so the rest of the site is unaffected. Mirrors the physical properties of
   global.css that do not follow `dir`, adds Arabic fonts and removes letter-spacing/uppercase (they break Arabic joins). */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/ar/plex-arabic-300.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ar/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ar/plex-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/ar/plex-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/ar/naskh-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }

/* Type: Latin runs (KNX, Control4, Touch and Control) keep Montserrat/Cormorant; Arabic glyphs come from the fonts above. */
html[dir="rtl"] { --font: "Montserrat", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; --display: "Cormorant Garamond", "Noto Naskh Arabic", "Iowan Old Style", Georgia, serif; }
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }
html[dir="rtl"] h1 { font-weight: 600; }
html[dir="rtl"] h2 { font-weight: 500; }
/* No letter-spacing / uppercase on Arabic text anywhere */
html[dir="rtl"] .eyebrow, html[dir="rtl"] .lang, html[dir="rtl"] .mnav .grp, html[dir="rtl"] .ftr .fh, html[dir="rtl"] .mbar a,
html[dir="rtl"] .blabel, html[dir="rtl"] .bnote, html[dir="rtl"] .hbadges li, html[dir="rtl"] .illus, html[dir="rtl"] .brand span,
html[dir="rtl"] .aud .k, html[dir="rtl"] .core-card .ckicker, html[dir="rtl"] .tl .del b, html[dir="rtl"] .tl .flag,
html[dir="rtl"] .tscroll thead th, html[dir="rtl"] .tscroll td::before, html[dir="rtl"] .creds .avixa { letter-spacing: 0 !important; text-transform: none; }
html[dir="rtl"] .eyebrow { font-size: 14px; }
html[dir="rtl"] .mnav .grp { font-size: 14px; }
html[dir="rtl"] .ftr .fh { font-size: 15px; }
html[dir="rtl"] .mbar a { font-size: 13.5px; }
/* Brand strings stay LTR with their tracking */
html[dir="rtl"] .ftr .tagline { direction: ltr; text-align: right; }

/* Mirroring of physical properties (global.css line refs, head 08e48892) */
html[dir="rtl"] .skip { left: auto; right: 12px; }                                   /* 28 */
html[dir="rtl"] .tlink svg, html[dir="rtl"] .related svg { transform: scaleX(-1); }     /* arrows point to the reading direction */
html[dir="rtl"] .tlink:hover svg { transform: translateX(-3px) scaleX(-1); }           /* 64 */
html[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }                         /* 74 */
@media (min-width: 1080px) { html[dir="rtl"] .dd-panel { left: auto; right: -12px; } } /* 86 */
html[dir="rtl"] .lang-x-panel { right: auto; left: 0; }                                /* 102 */
html[dir="rtl"] .burger { margin-right: 0; margin-left: -10px; }                       /* 107 */
html[dir="rtl"] .ticks li { padding-left: 0; padding-right: 28px; }                    /* 180 */
html[dir="rtl"] .ticks li::before { left: auto; right: 2px; }                          /* 181 */
html[dir="rtl"] .steps li::before { left: auto; right: 0; }                            /* 217 */
@media (min-width: 900px) { html[dir="rtl"] .split-hero .txt .in { margin-left: 0; margin-right: auto; padding: 0 var(--pad) 0 56px; } } /* 246 */
html[dir="rtl"] .fld .req { margin-left: 0; margin-right: 2px; }                       /* 318 */
html[dir="rtl"] .mbar a + a { border-left: 0; border-right: 1px solid var(--line-light); } /* 356, 794 */
html[dir="rtl"] .legal-doc ul { padding-left: 0; padding-right: 1.2em; }               /* 368 */
html[dir="rtl"] .tscroll th, html[dir="rtl"] .tscroll td { text-align: right; }        /* 380 */
html[dir="rtl"] .statement .note { padding-left: 0; border-left: 0; padding-right: 18px; border-right: 1px solid var(--gold-dark); } /* 419 */
@media (min-width: 900px) { html[dir="rtl"] .trust li { text-align: right; } }        /* 538 */
html[dir="rtl"] .logos li.txt { padding-left: 0; border-left: 0; padding-right: 18px; border-right: 1px solid var(--line-light); } /* 555 */
html[dir="rtl"] .cc { margin-left: 0; margin-right: auto; }                            /* 577 */
html[dir="rtl"] .chip-in:checked + .chip::before { margin-right: 0; margin-left: 9px; } /* 634 */
html[dir="rtl"] .fplans { border-left: 0; border-right: 2px solid var(--gold-dark); border-radius: 10px 0 0 10px; } /* 643 */
html[dir="rtl"] .illus { right: auto; left: 12px; }                                    /* 654 */
html[dir="rtl"] .dash li { padding-left: 0; padding-right: 18px; }                     /* 668 */
html[dir="rtl"] .dash li::before { left: auto; right: 0; }                             /* 669 */
html[dir="rtl"] .quote { padding: 6px 26px 6px 0; border-left: 0; border-right: 2px solid var(--gold-dark); } /* 678 */
html[dir="rtl"] .tl .flag { left: auto; right: 18px; }                                 /* 691 */
html[dir="rtl"] .illus.maker::before { margin-right: 0; margin-left: 7px; }            /* 702 */
/* Daylight hero (853-854): the ivory veil sits on the text side, which is the right side in RTL */
@media (min-width: 900px) { html[dir="rtl"] .hero-light::after { background: linear-gradient(270deg, rgba(247,245,240,.95) 0%, rgba(247,245,240,.9) 40%, rgba(247,245,240,.62) 52%, rgba(247,245,240,0) 68%); } }
/* Translated Arabic form (2026-11-18): the form follows the page direction.
   Email, phone and URL values stay LTR via dir=ltr on those controls. */
html[dir="rtl"] .fld select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 40px;
}
html[dir="rtl"] .formbox .fnote { unicode-bidi: plaintext; text-align: start; }
/* Header with 6 language entries (EN | ES | AR | +): keep inside 320 px */
@media (max-width: 379px) { html[dir="rtl"] .hdr .lang > a, html[dir="rtl"] .hdr .lang > span { min-width: 28px; } }
