/* Persian layout. Do not mirror maps, media, or numbers such as phone/PIN. */
html:lang(fa) { font-family: Tahoma, Arial, sans-serif; }
html:lang(fa) body, html:lang(fa) button, html:lang(fa) input,
html:lang(fa) textarea, html:lang(fa) select, html:lang(fa) h1,
html:lang(fa) h2, html:lang(fa) h3, html:lang(fa) h4 {
  font-family: Tahoma, Arial, sans-serif; letter-spacing: normal;
}
html:lang(fa) p, html:lang(fa) li { line-height: 1.85; }
html:lang(fa) input[type=email], html:lang(fa) input[type=tel],
html:lang(fa) input[type=url], html:lang(fa) input[type=password],
html:lang(fa) input[type=number], html:lang(fa) input[inputmode=numeric],
html:lang(fa) code, html:lang(fa) .leaflet-container {
  direction: ltr; unicode-bidi: isolate;
}
html:lang(fa) .leaflet-popup-content { direction: rtl; text-align: start; }
html:lang(fa) .ui-settings, html:lang(fa) .ui-settings input:not([type=email]):not([type=tel]):not([inputmode=numeric]) { text-align: start; }
html:lang(fa) .legal-lang { margin-left: 0; margin-inline-start: auto; }
html:lang(fa) .evo-stage, html:lang(fa) .evo-description { line-height: 1.8; }
html:lang(fa) .nav-lang { max-width: 8rem; }
/* The original artwork embeds an English label. Keep a native text button in Persian. */
html[lang="fa"] #mshell .btn-protection-img {min-height:66px;border:2px solid #5ee7e7;border-radius:999px;background:linear-gradient(135deg,#168f9d,#03687c);box-shadow:inset 0 2px 6px #a5ffff66,0 6px 20px #008a9026;color:white;}
html[lang="fa"] #mshell .btn-protection-img img {display:none;}
html[lang="fa"] #mshell .btn-protection-img::after {content:attr(data-fa-protection);font:700 23px/1.6 Tahoma,Arial,sans-serif;}
html[lang="fa"].look-sakura #mshell .btn-protection-img {background:linear-gradient(135deg,#7335a5,#41205e);border-color:#ce9af6;}
/* Keep the keyboard skip link accessible without creating a huge RTL scroll area. */
html[lang="fa"] .skip:not(:focus) {left:0;right:auto;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
