/* Persian (right-to-left) adjustments. Loaded automatically when the site language is RTL. */
.site,.field input,.field select,.field textarea,.dl-search input,button{font-family:'Vazirmatn','Jost',Tahoma,sans-serif}
/* Persian has no capitals: drop the wide letter-spacing used for English labels. */
.kicker,.label,.nl,.cta,.tlink,.sbtn span,.fact span,.ihead,.ploc,.pcred,.mhead span,.mcap,.gtab,.cmeta>span,.cact a,.crow span,.field label,.foot h4,.dl-finfo i,.dl-btn,.dl-name span,.plead,.intro-fig figcaption b,.intro-fig figcaption span,.brand b,.pword b,.pword i,.pj-meta span,.logo b{letter-spacing:0}
.big,.h2,.statement,.fact b{letter-spacing:0}
.big{line-height:1.2}

.nav{margin-left:0;margin-right:auto}
.hig{margin-left:0;margin-right:20px;border-left:0;padding-left:0;border-right:1px solid rgba(127,127,127,.35);padding-right:20px}
@media (max-width:960px){.hig{margin-right:auto;margin-left:4px;border-right:0;padding-right:0}}
.lang{margin-left:0;margin-right:20px}
@media (max-width:960px){.lang{margin-right:auto;margin-left:0}.lang+.hig{margin-right:4px}}
.nl::after{left:100%;right:0;transition:left .3s}
.nl:hover::after,.nl.is-active::after{left:0;right:0}

.mhead,.mlink,.ilink,.cbtn,.sbtn,.fl a,.mob-l,.coll{text-align:right}
.mcap{left:auto;right:14px}
.ilink:hover{padding-left:0;padding-right:8px}
.cbtn.is-active span::before{margin-right:0;margin-left:10px}

/* Arrows point the other way. */
.ic-arrow,.ic-back,.ic-ext,.allp svg{transform:scaleX(-1)}
.allp:hover svg{transform:scaleX(-1) translateX(4px)}

/* Projects */
.pbadge{left:auto;right:14px}
.pplus{right:auto;left:14px}
.phover .pwm{right:auto;left:12px}
.wm{right:auto;left:16px}
.pm-x{right:auto;left:16px}
@media (max-width:560px){.pbadge{right:8px;left:auto}.pplus{left:7px;right:auto}}
.pcard,.pinfo{text-align:right}

/* Downloads */
.dl-btn{justify-self:start}
.dl-finfo i{align-self:flex-start}

/* Contact */
.crow{text-align:right}
.field input[dir=ltr]{text-align:right}
.nl,.mob-l,.fl a{font-size:14px}
.cbox .field select{padding-right:0;padding-left:28px;background-position:left 2px center}

/* Persian type scale: Vazirmatn is optically larger than Jost, so sizes come down. */
.big{font-size:clamp(42px,6.4vw,92px);line-height:1.3}
.phead .big{font-size:clamp(36px,5vw,68px)}
.pb-txt .big{font-size:clamp(36px,5vw,68px)}
.h2{font-size:clamp(24px,2.6vw,36px);line-height:1.5}
.statement{font-size:clamp(19px,2vw,27px);line-height:1.9}
.intro-st{font-size:clamp(19px,1.9vw,26px);line-height:1.95}
.talk h2{font-size:clamp(28px,3.6vw,50px);line-height:1.5}
.sub{font-size:15px;line-height:2}
.kicker{font-size:12px}
.label,.ihead,.crow span,.field label,.foot h4,.plead,.fact span{font-size:12px}
.nl{font-size:13.5px}
.mhead b{font-size:18px}
.mlink{font-size:14px}
.mob-l{font-size:20px}
.mob-chip{font-size:13px}
.ilink{font-size:15.5px}
.cbtn{font-size:14.5px}
.gtab{font-size:13px}
.chead h2{font-size:clamp(22px,2.2vw,30px);line-height:1.6}
.chead p{font-size:15px;line-height:2}
.hint{font-size:12.5px;line-height:1.9}
.pintro,.body-text p,.entry{font-size:15.5px;line-height:2.05}
.pinfo b{font-size:17px}
.peq{font-size:12.5px;line-height:1.9}
.pword b{font-size:clamp(15px,1.4vw,20px)}
.pm-cap b{font-size:19px}
.coll-txt b{font-size:18px}
.dl-name b{font-size:15px}
.dl-finfo b{font-size:16px}
.clead{font-size:15.5px;line-height:2}
.cbox-t{font-size:20px}
.cbox .field input,.cbox .field select,.cbox .field textarea{font-size:15px}
.cbox .done .statement{font-size:21px}
.crow,.cwrap .crow{font-size:14.5px}
.foot-tag,.fl a,.fl button,.foot-addr{font-size:14px}
.talk-c a{font-size:18px}
.cta{font-size:13px}
.tlink{font-size:13px}
.fact b{font-size:clamp(40px,4.4vw,64px)}
@media (max-width:600px){
	.big{font-size:40px}
	.phead .big,.pb-txt .big{font-size:34px}
	.h2{font-size:24px}
	.statement,.intro-st{font-size:18px}
	.talk h2{font-size:28px}
}
.fna-edit{left:auto;right:8px}
.pcard .fna-edit{right:auto;left:52px}
@media (max-width:480px){.lang{margin-left:0;margin-right:auto}.lang+.hig{margin-left:0;margin-right:2px}.hdr .logo b{letter-spacing:0;font-size:13px}}
@media (max-width:960px){.burger{margin-right:0}}
