/* PrivMatrix i18n: language switcher + right-to-left + per-script fonts.
   Loaded on every localized page. Safe to include even when only English is shown. */

/* --- language switcher (compact dropdown) --- */
.pm-lang{display:inline-flex;vertical-align:middle}
.pm-lang-select{
  font:600 13px/1 'Sora',system-ui,sans-serif;color:var(--ink,#16324e);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234a5a66' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border:1.5px solid var(--line,#e5e9ee);border-radius:9px;padding:8px 28px 8px 12px;cursor:pointer;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1;min-height:38px;
}
.pm-lang-select:hover{border-color:var(--brand,#2e8257)}
.pm-lang-select:focus{outline:2px solid var(--brand-soft,#e7f2ec);outline-offset:1px}
/* Dark-header variant (if a page keeps a dark bar) */
.pm-lang.on-dark .pm-lang-select{background-color:rgba(255,255,255,.08);color:#eef4f0;border-color:rgba(255,255,255,.24)}

/* --- Arabic (Devanagari for Hindi) faces --- */
:root[lang="ar"] body, :root[lang="ar"] .hero-h, :root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3,
:root[lang="ar"] .big, :root[lang="ar"] .lead, :root[lang="ar"] .btn, :root[lang="ar"] .wm{
  font-family:'Noto Kufi Arabic','Cairo','Segoe UI',Tahoma,sans-serif !important;
}
:root[lang="hi"] body, :root[lang="hi"] .hero-h, :root[lang="hi"] h1, :root[lang="hi"] h2, :root[lang="hi"] h3,
:root[lang="hi"] .big, :root[lang="hi"] .lead, :root[lang="hi"] .btn{
  font-family:'Noto Sans Devanagari','Nirmala UI','Segoe UI',sans-serif !important;
}

/* --- right-to-left --- */
.pm-rtl body{direction:rtl;text-align:right}
.pm-rtl .hero-cta,.pm-rtl .hero-note,.pm-rtl .cta,.pm-rtl .picker-chips,.pm-rtl .picker-out{flex-direction:row-reverse}
.pm-rtl .btn .shine{transform:scaleX(-1)}
/* Keep inherently-LTR bits upright: the logo lockup, code chips, scores, monospace refs */
.pm-rtl .logo,.pm-rtl .wm,.pm-rtl .code,.pm-rtl .jchip,.pm-rtl .ring,.pm-rtl [data-scorecard],
.pm-rtl .amt,.pm-rtl .pm-lang{direction:ltr}
.pm-rtl .crumb{direction:rtl}
/* Arrow glyphs in CTAs point the other way in RTL; callers can use logical text instead */
.pm-rtl .arrow-flip{display:inline-block;transform:scaleX(-1)}
