/* Scoped locale controls; preserves pre-existing page layouts and animations */
/* Language footer links inherit exactly the same styles as neighboring footer links. */
html[dir="rtl"] .brand,html[dir="rtl"] .brand-name,html[dir="rtl"] .product-footer-brand,html[dir="rtl"] .locale-brand{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] a.tizrosoft-link{unicode-bidi:isolate}
html[dir="rtl"] :is(input,textarea){text-align:right}
html[dir="rtl"] :is(.footer-grid,.product-footer-main){direction:rtl}
html[dir="rtl"] :is(.nexus-shell,.nexus-body,.nexus-grid,.logo-track,.logo-sequence,.orbit,.core-orbit-wrap){direction:ltr}
.locale-picker-page{min-height:100vh;color:#edf2fb;background:radial-gradient(circle at 85% 7%,rgba(70,87,160,.15),transparent 43%),#0b0f16;font-family:inherit;overflow-x:hidden}
.locale-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px clamp(20px,6vw,80px);border-bottom:1px solid rgba(160,180,210,.12)}
.locale-brand{font-size:24px;font-weight:800;letter-spacing:-.9px;text-decoration:none;color:#f4f7fc}.locale-brand span{color:#87adff}.locale-back{font-size:14px;color:#b9c6dd;text-decoration:none}.locale-back:hover{color:#fff}
.locale-container{max-width:1060px;margin:0 auto;padding:clamp(35px,7vw,80px) 24px 90px}
.locale-head{margin-bottom:40px}.locale-eyebrow{display:block;letter-spacing:.11em;font-size:12px;color:#8ea7d7;text-transform:uppercase;margin-bottom:15px}.locale-head h1{font-size:clamp(30px,5vw,50px);line-height:1.15;color:#fff;letter-spacing:-.04em;margin:0 0 16px}.locale-head p{color:#a6b2c8;font-size:16px;line-height:1.7;max-width:720px}
.locale-form fieldset{border:0;padding:0;margin:0}.locale-form legend{font-size:17px;font-weight:700;margin-bottom:20px;color:#e9f1ff}
.locale-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.locale-grid label{display:block;position:relative;cursor:pointer}.locale-grid input{position:absolute;opacity:0;width:1px;height:1px}.locale-grid label>span{display:flex;flex-direction:column;gap:5px;padding:20px 24px;border:1px solid #313c50;border-radius:15px;background:rgba(20,30,45,.6);transition:background .16s,border-color .16s,box-shadow .16s}.locale-grid b{color:#f7faff;font-size:18px;font-weight:650}.locale-grid small{font-size:13px;color:#9fb0c6}.locale-grid label:hover>span{border-color:#718bc3;background:rgba(40,61,91,.5)}.locale-grid input:checked+span{border-color:#6a9aff;background:rgba(52,100,190,.19);box-shadow:inset 0 0 0 1px rgba(106,154,255,.33)}.locale-grid input:focus-visible+span{outline:2px solid #8cabf9;outline-offset:3px}
.locale-actions{display:flex;align-items:center;gap:20px;margin-top:34px}.locale-confirm{border:1px solid #94b6ff;background:#ebf1ff;color:#182c52;border-radius:11px;padding:13px 25px;font:inherit;font-weight:700;cursor:pointer}.locale-confirm:hover{background:#fff}.locale-cancel{color:#a9b9d2;text-decoration:none}.locale-cancel:hover{color:white}
@media(max-width:620px){.locale-grid{grid-template-columns:1fr}.locale-header{padding:22px}.locale-actions{flex-direction:column;align-items:stretch}.locale-confirm{text-align:center}.locale-cancel{text-align:center}}
html[dir="rtl"] .locale-header,html[dir="rtl"] .locale-head,html[dir="rtl"] .locale-form{direction:rtl}html[dir="rtl"] .locale-brand{order:0}


/* Locale typefaces are limited to the script they support. The Latin font remains
   the exact system UI stack used by the original website in EVERY locale. */
:root{--tz-latin-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif}
/* The script-only fonts are declared below. Never alter headings' original
   font-weight, tracking or element dimensions based on the selected language. */
html:lang(es) body,html:lang(fr) body{font-family:var(--tz-latin-font)}
/* Non-Latin fallback styles are declared with unicode-range below. */
/* On-page language modal, inheriting the site's original palette and font. */
.language-modal-backdrop[hidden]{display:none!important}
.language-modal-backdrop{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;overflow:auto;padding:20px;background:rgba(2,6,12,.78);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.language-modal-panel{width:min(650px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;background:#10151d;border:1px solid rgba(172,194,222,.15);border-radius:18px;box-shadow:0 32px 110px rgba(0,0,0,.64);padding:clamp(22px,4vw,34px);color:#edf2f9;font-family:inherit;outline:none;direction:inherit}
.language-modal-header{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:22px}
.language-modal-header h2{font-size:clamp(23px,3.6vw,31px);line-height:1.25;letter-spacing:-.03em;margin:0 0 9px;color:#fff}
.language-modal-header p{font-size:13px;line-height:1.7;margin:0;color:#929eae;max-width:490px}
.language-modal-close{width:32px;height:32px;flex:none;background:transparent;color:#99a6b8;border:1px solid rgba(255,255,255,.12);border-radius:8px;font-size:23px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.language-modal-close:hover{color:#fff;border-color:rgba(255,255,255,.3)}
.language-modal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 22px;padding:0;border:0}
.language-modal-list label{display:block;cursor:pointer;position:relative;min-width:0}
.language-modal-list input{position:absolute;width:1px;height:1px;opacity:0}
.language-modal-option{display:flex;align-items:center;justify-content:space-between;min-height:58px;gap:12px;padding:11px 14px;border:1px solid #2d3745;border-radius:10px;background:#141c25;transition:background .15s,border-color .15s}
.language-modal-option b{display:block;font-weight:500;font-size:15px;color:#e7edf5;line-height:1.45}
.language-modal-option small{display:block;color:#7e8a9a;font-size:11px;line-height:1.3;margin-top:3px}
.language-modal-option:after{content:"";width:14px;height:14px;flex:none;border:1px solid #5d697a;border-radius:50%}
.language-modal-list label:hover .language-modal-option{background:#192330;border-color:#5f738d}
.language-modal-list input:checked + .language-modal-option{background:#17263b;border-color:#709dce}
.language-modal-list input:checked + .language-modal-option:after{border:4px solid #9ac7ff;background:#192840}
.language-modal-list input:focus-visible + .language-modal-option{outline:2px solid #a2c7fb;outline-offset:2px}
.language-modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px}
.language-modal-cancel{border:none;background:transparent;color:#a8b3c0;font:inherit;font-size:13px;cursor:pointer;padding:11px}
.language-modal-cancel:hover{color:#fff}
.language-modal-confirm{background:#eef4fd;color:#141f30;border:1px solid #eef4fd;border-radius:9px;padding:11px 18px;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.language-modal-confirm:hover{background:#fff}
/* Keep document's original scroll container unchanged while a dialog is open.
   Changing body overflow to hidden broke sticky Contact section positioning. */
body.language-modal-open{overflow-x:clip!important;overflow-y:visible!important}
html[dir=rtl] .language-modal-panel{text-align:start}
html[dir=rtl] .language-modal-option{direction:ltr}
html[dir=rtl] .language-modal-actions{justify-content:flex-start}
@media(max-width:580px){.language-modal-list{grid-template-columns:1fr}.language-modal-backdrop{padding:12px}.language-modal-panel{max-height:calc(100dvh - 24px);padding:20px}.language-modal-header{margin-bottom:16px}.language-modal-option{min-height:50px}}
@media(prefers-reduced-motion:reduce){.language-modal-option{transition:none}}

/* Marquee must remain left-origin regardless of the visitor's text direction. */
.logo-marquee{direction:ltr!important;text-align:left!important;unicode-bidi:isolate}
.logo-marquee .logo-track{direction:ltr!important;margin-inline:0!important}

/* v1.3: Keep ALL structural geometry in LTR. Arabic and Persian only change glyph direction. */
html .site-header .nav-shell,
html .site-header .desktop-nav,
html .site-header .nav-actions,
html .product-header .product-nav,
html .product-header .product-nav-links,
html .mobile-drawer,
html .product-drawer,
html .footer-grid,
html .product-footer-main {direction:ltr!important}
html .site-header .desktop-nav,html .product-header .product-nav-links {flex-direction:row!important}
/* Fixed navigation slots stop localized strings moving subsequent links. */
@media(min-width:981px){
  html .site-header .desktop-nav>.nav-link {box-sizing:border-box;flex:0 0 118px;width:118px;min-width:0;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html .site-header .nav-actions>.outline-action {box-sizing:border-box;width:135px;min-width:135px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(min-width:761px){
  html .product-header .product-nav-links {gap:10px}
  html .product-header .product-nav-links>.nav-link {box-sizing:border-box;width:115px;min-width:115px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
html[data-text-direction="rtl"] :is(.site-header .nav-link,.site-header .outline-action,.product-header .nav-link,.mobile-drawer a,.product-drawer a){unicode-bidi:plaintext;direction:rtl}
html[data-text-direction="rtl"] :is(.site-header .nav-link,.site-header .outline-action,.product-header .nav-link){text-align:center}
/* Flip sentence flow without mirroring grids, cards, navigation, buttons or icon locations. */
html[data-text-direction="rtl"] :is(.hero-copy h1,.hero-copy p,.section-copy h2,.section-copy p,.directory-intro h2,.directory-intro p,.product-card p,.product-hero h1,.product-hero p,.article-intro p,.article-intro h2,.capability p,.story p,.contact-copy p,.footer-grid p,.product-footer-brandblock p){direction:rtl;unicode-bidi:plaintext}
html[data-text-direction="rtl"] .language-modal-panel {direction:rtl}
html .logo-marquee,html .logo-track,html .logo-sequence {direction:ltr!important}
/* Keep the Tizro.ORG wordmark identical across locales, including its intrinsic width. */
html :is(.site-header .brand-name,.product-header .brand,.footer-brand .brand-name,.product-footer-brand){font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif!important}
@media(min-width:761px){
  html .product-header .product-nav-links>a{box-sizing:border-box;flex:0 0 120px;width:120px;min-width:120px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}


/* v1.4: modal close is a geometric icon, never a font glyph. */
html .language-modal-close{
 position:relative;display:grid;place-items:center;flex:0 0 32px;
 width:32px;height:32px;box-sizing:border-box;line-height:0;font-size:0;
 padding:0;appearance:none;-webkit-appearance:none;
}
html .language-modal-close::before,
html .language-modal-close::after{
 content:"";display:block;position:absolute;top:50%;left:50%;
 width:13px;height:1.6px;background:currentColor;border-radius:999px;
 transform-origin:center center;pointer-events:none;
}
html .language-modal-close::before{transform:translate(-50%,-50%) rotate(45deg)}
html .language-modal-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
/* Backdrop and panel animate independently and reverse on close. */
.language-modal-backdrop:not([hidden]){opacity:0;transition:opacity .26s ease;will-change:opacity}
.language-modal-backdrop.is-open{opacity:1}
.language-modal-panel{
 opacity:0;transform:translate3d(0,17px,0) scale(.966);
 transform-origin:50% 45%;
 transition:transform .34s cubic-bezier(.2,.8,.2,1),opacity .24s ease;
 will-change:transform,opacity;
}
.language-modal-backdrop.is-open .language-modal-panel{opacity:1;transform:translate3d(0,0,0) scale(1)}
@media (prefers-reduced-motion:reduce){
 .language-modal-backdrop:not([hidden]),.language-modal-panel{transition:none!important}
 .language-modal-backdrop.is-open .language-modal-panel{transform:none;opacity:1}
}

/* v1.4: Language changes alter text direction, never the modal control positions. */
html .language-modal-panel,
html[data-text-direction="rtl"] .language-modal-panel{
 direction:ltr!important;text-align:left;
}
html[data-text-direction="rtl"] .language-modal-header :is(h2,p){
 direction:rtl;text-align:right;unicode-bidi:plaintext;
}
html .language-modal-header{direction:ltr!important;flex-direction:row!important}
html .language-modal-list{direction:ltr!important}
html .language-modal-actions{direction:ltr!important;justify-content:flex-end!important}
/* Radio cards follow their existing order, but glyphs follow each native language. */
.language-modal-option [lang="fa"],.language-modal-option [lang="ar"]{direction:rtl;unicode-bidi:isolate}


/* v1.4.1: Script-only font matching. Latin glyphs always fall through to the
   website's ORIGINAL English UI font, even in multilingual sentences. */
@font-face{
 font-family:"Tizro Persian Script";
 src:local("Kook"),url("https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/misc/Non-Latin/fonts/webfonts/Vazirmatn-NL%5Bwght%5D.woff2") format("woff2");
 font-style:normal;font-weight:100 900;font-display:swap;
 unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200D,U+FB50-FDFF,U+FE70-FEFF;
}
/* Other scripts are prioritized only for their own characters. Local fonts are
   chosen if available; otherwise the original system's language fallback is used. */
@font-face{
 font-family:"Tizro Cyrillic Script";
 src:local("Golos Text"),local("Segoe UI"),local("Arial");
 font-style:normal;font-weight:100 900;
 unicode-range:U+0400-052F,U+1C80-1C8F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face{
 font-family:"Tizro Chinese Script";
 src:local("Noto Sans SC"),local("Microsoft YaHei"),local("PingFang SC");
 font-style:normal;font-weight:100 900;
 unicode-range:U+2E80-2EFF,U+3000-303F,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+20000-2FA1F;
}
@font-face{
 font-family:"Tizro Japanese Script";
 src:local("Noto Sans JP"),local("Yu Gothic"),local("Meiryo");
 font-style:normal;font-weight:100 900;
 unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF;
}
@font-face{
 font-family:"Tizro Devanagari Script";
 src:local("Noto Sans Devanagari"),local("Nirmala UI"),local("Mangal");
 font-style:normal;font-weight:100 900;
 unicode-range:U+0900-097F,U+A8E0-A8FF;
}
html:lang(fa) body,html:lang(ar) body{font-family:"Tizro Persian Script",var(--tz-latin-font)!important}
html:lang(ru) body,html:lang(uk) body{font-family:"Tizro Cyrillic Script",var(--tz-latin-font)!important}
html:lang(zh-CN) body{font-family:"Tizro Chinese Script",var(--tz-latin-font)!important}
html:lang(ja) body{font-family:"Tizro Japanese Script",var(--tz-latin-font)!important}
html:lang(hi) body{font-family:"Tizro Devanagari Script",var(--tz-latin-font)!important}
/* Native font for form controls and modal body; never change font weight/tracking. */
html:lang(fa) :is(button,input,textarea,select),html:lang(ar) :is(button,input,textarea,select){font-family:"Tizro Persian Script",var(--tz-latin-font)}
html:lang(ru) :is(button,input,textarea,select),html:lang(uk) :is(button,input,textarea,select){font-family:"Tizro Cyrillic Script",var(--tz-latin-font)}
html:lang(zh-CN) :is(button,input,textarea,select){font-family:"Tizro Chinese Script",var(--tz-latin-font)}
html:lang(ja) :is(button,input,textarea,select){font-family:"Tizro Japanese Script",var(--tz-latin-font)}
html:lang(hi) :is(button,input,textarea,select){font-family:"Tizro Devanagari Script",var(--tz-latin-font)}
/* When a heading is entirely in Arabic script, remove English negative tracking
   without touching titles/brands such as Proxify, Nexload and Tizrosoft. */
html:lang(fa) :is(h1,h2,h3,h4,h5,h6)[data-tz-arabic-only],
html:lang(ar) :is(h1,h2,h3,h4,h5,h6)[data-tz-arabic-only]{letter-spacing:normal}
