/* M1 styles are limited to the local pilot pages. No brand or media mirroring. */
html[data-m1-locale-pilot] { --m1-ink:#0B0B0C; --m1-paper:#F7F7F5; --m1-graphite:#57595C; --m1-champagne:#FBE8BD; }
[data-m1-locale-pilot] .m1-language { display:flex; align-items:center; justify-content:flex-end; gap:.7rem; flex-wrap:wrap; padding:12px 24px; color:var(--m1-graphite); background:var(--m1-paper); font-size:14px; }
[data-m1-locale-pilot] .m1-language select { min-height:44px; max-width:100%; border:1px solid #D9D1C3; border-radius:12px; padding:8px 14px; color:var(--m1-ink); background:var(--m1-paper); font:inherit; }
[data-m1-locale-pilot] .m1-language select:focus-visible { outline:2px solid var(--m1-ink); outline-offset:3px; }
[data-m1-locale-pilot] [data-m1-ltr], [data-m1-locale-pilot] input[type=email], [data-m1-locale-pilot] input[type=tel], [data-m1-locale-pilot] input[type=password] { direction:ltr; unicode-bidi:isolate; text-align:left; }
[data-m1-locale-pilot] bdi { unicode-bidi:isolate; }
[data-m1-locale-pilot][dir=rtl] body { font-family:system-ui,"Segoe UI",Tahoma,Arial,sans-serif; }
[data-m1-locale-pilot][dir=rtl] :is(.ns-hero-title,.uag-title,.ap-label,.fixeo-gh-gateway-title,.m1-language,[data-m1-i18n]) { letter-spacing:normal; }
[data-m1-locale-pilot][dir=rtl] :is(.ns-hero-title,.uag-title) { line-height:1.4; }
[data-m1-locale-pilot][dir=rtl] :is(.ap-group,.ap-label,.uag-context,.fixeo-gh-gateway-card-copy) { text-align:start; }
[data-m1-locale-pilot][dir=rtl] .ap-input:not([data-m1-ltr]):not([type=password]):not([type=tel]):not([type=email]) { text-align:start; }
[data-m1-locale-pilot][dir=rtl] .ap-pw-toggle { right:auto; left:8px; }
[data-m1-locale-pilot][dir=rtl] .ap-input.has-toggle { padding-left:48px; padding-right:14px; }
[data-m1-locale-pilot][dir=rtl] [data-m1-directional] { transform:scaleX(-1); }
[data-m1-locale-pilot] [data-m1-legal-preserved][lang=fr] { direction:ltr; text-align:left; }
[data-m1-locale-pilot] [data-m1-legal-preserved][lang=ar] { direction:rtl; text-align:right; }
[data-m1-locale-pilot] [data-m1-legal-notice] { color:var(--m1-graphite); line-height:1.7; }
/* M0: the back glyph follows reading direction, while identifiers stay LTR. */
[data-m1-locale-pilot][dir=rtl] .auth-back-link::before { content:'→'; }

/* E1: scoped logical layout, no media mirroring. */
.e1-language-control { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; padding:12px 24px; font:inherit; color:inherit; }
.e1-language-control select { min-height:44px; background:#fffdf8; color:#1f201e; border:1px solid #bbaa8e; border-radius:12px; padding:8px 12px; font:inherit; }
[data-m1-locale-pilot][dir="rtl"] {font-family: 'Cairo','Tajawal','Noto Sans Arabic',Tahoma,Arial,sans-serif;}
[data-m1-locale-pilot][dir="rtl"] :is(h1,h2,h3,p,label,button,a,select) { letter-spacing:normal; }
[data-m1-locale-pilot][dir="rtl"] .fxd-choice-arrow {transform:scaleX(-1);}
[data-m1-locale-pilot] :is(input[type="email"],input[type="tel"],input[type="password"],input[inputmode="numeric"],input[inputmode="decimal"],[data-m1-ltr]) {direction:ltr; text-align:left; unicode-bidi:isolate;}
[data-m1-locale-pilot] :is(button,a,label,input,select,textarea) {overflow-wrap:anywhere;}
[data-m1-locale-pilot][dir="rtl"] :is(.fxd-dialog,.fxd-body,.fxd-selection) {text-align:start;}
[data-m1-locale-pilot] img, [data-m1-locale-pilot] video, [data-m1-locale-pilot] canvas { /* Visual identity retains its native orientation. */ }

[data-m1-locale-pilot][dir=rtl] :is(.fxd-header,.fxd-card,.fxs-text,.fxs-faq summary,.fxs-faq details p) { text-align:start; }
[data-m1-locale-pilot][dir=rtl] .fxd-header { margin-inline-start:0; margin-inline-end:auto; }
[data-m1-locale-pilot][dir=rtl] .fxd-number { right:auto; left:20px; }
[data-m1-locale-pilot][dir=rtl] .fxs-faq summary::after { right:auto; left:4px; }
[data-m1-locale-pilot][dir=rtl] :is(.fxs-faq summary,.fxs-faq details p) { padding-inline-start:0; padding-inline-end:36px; }
[data-m1-locale-pilot][dir=rtl] :is(.fxd-arrow,.fxs-arrow:not(.fxs-arrow-down)) { transform:scaleX(-1); }

[data-m1-locale-pilot] .fxd-language { min-width:92px; max-width:128px; min-height:44px; border:1px solid #bbaa8e; border-radius:12px; background:#fffdf8; color:#1f201e; font:inherit; padding:6px; }
