/* V25 RESPONSIVE NAVIGATION / VIEWPORT SAFE LANGUAGE SELECTOR */
html,body{max-width:100%;overflow-x:clip}img{max-width:100%;height:auto}
header.top,header.i18n-head,header.site-header,header.contact-header{position:relative;z-index:1500;overflow:visible;isolation:isolate}
header.top nav,header.i18n-head nav,header.site-header nav,header.contact-header nav{min-width:0}
header.top nav a,header.i18n-head nav a{overflow-wrap:normal;word-break:normal}
.yfi-universal-toggle{display:none;appearance:none;color:#fff;background:transparent;border:1px solid #9daec2;border-radius:12px;min-width:48px;height:48px;font-size:26px;line-height:1;cursor:pointer;align-items:center;justify-content:center;margin-inline-start:auto;flex:0 0 auto}
.lang .choices,.i18n-lang .i18n-lang-items,.language-menu .language-options{position:fixed!important;z-index:9999!important;min-width:0!important;max-width:calc(100vw - 20px);overscroll-behavior:contain;box-shadow:0 18px 60px #071b3370;border-radius:15px;border:1px solid #e0e6ee;background:#fff;color:#071b33;overflow-y:auto}
.lang .choices a,.i18n-lang .i18n-lang-items a,.language-menu .language-options a{min-height:40px;display:flex;align-items:center;padding:9px 16px;line-height:1.3;font-weight:650;white-space:nowrap}
.lang .choices a:focus-visible,.i18n-lang .i18n-lang-items a:focus-visible,.language-menu .language-options a:focus-visible{outline:3px solid #e21f3d;outline-offset:-3px}
[dir=rtl] .lang .choices a,[dir=rtl] .i18n-lang .i18n-lang-items a{text-align:right}
.i18n-head .i18n-brand strong{font-weight:900}
/* Image subject preservation: group portraits and podium shots should never crop heads. */
.card img,.i18n-latest-card img,.latest img{object-fit:contain!important;object-position:center top!important;background:#e9edf2!important}
.card img{height:220px!important}.i18n-latest-card img{min-height:0!important;max-height:400px!important;height:100%!important}
.cover{object-fit:contain!important;object-position:center top!important;background:#edf0f4!important;max-height:none!important;max-width:100%;height:auto!important}
.i18n-about img,.i18n-feature img,.i18n-global img{object-position:center top!important}
/* Correct RTL text formatting: real paragraphs, not one PDF visual line per paragraph. */
html[lang=fa] .prose,html[lang=ar] .prose,body[lang=fa] .prose,body[lang=ar] .prose{direction:rtl;text-align:start;line-height:2.05;word-break:normal;overflow-wrap:break-word}
.prose p{margin:0 0 .75em!important}
.prose h2{margin:1.55em 0 .65em!important;font-size:clamp(22px,3.2vw,31px)!important}
.prose h2:first-child{margin-top:0!important}
/* The static articles all have a consistent top nav even on iPhone. */
@media(max-width:950px){
 .yfi-universal-toggle{display:inline-flex!important;order:2}
 header.top,header.i18n-head,header.contact-header{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;padding:14px max(15px,env(safe-area-inset-left))!important;min-height:77px}
 header.top>.brand,header.i18n-head>.i18n-brand,header.contact-header>.contact-brand{min-width:0;max-width:calc(100% - 65px);order:1}
 header.top nav,header.i18n-head nav,header.contact-header nav,header.top nav:not(.yfi-added-nav){display:none!important;position:static!important;order:3!important;width:100%!important;flex-basis:100%!important;background:#071b33!important;padding:18px 5px 14px!important;box-shadow:none!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important}
 header.top.yfi-nav-open nav,header.i18n-head.yfi-nav-open nav,header.contact-header.yfi-nav-open nav{display:flex!important}
 header.top nav>a,header.i18n-head nav>a,header.contact-header nav>a{display:block!important;padding:9px 14px!important;color:#fff!important;font-size:17px!important;line-height:1.4!important;font-weight:750!important}
 header.top nav details,header.i18n-head nav details{align-self:stretch!important;max-width:100%!important;margin:6px 12px!important;color:#fff!important}
 header.top nav details summary,header.i18n-head nav details summary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:110px;padding:8px 14px}
 header.site-header .yfi-universal-toggle{display:inline-flex!important}
 header.site-header nav{display:none!important}
 header.site-header.yfi-nav-open nav{display:flex!important}
 .top .brand{font-size:clamp(15px,4.6vw,21px)!important;line-height:1.3}
}
@media(min-width:951px){header.i18n-head .i18n-menu-button{display:none!important}}
@media(max-width:640px){
 .card img{height:auto!important;aspect-ratio:16/10!important}
 .i18n-latest-card img{height:auto!important;max-height:none!important;aspect-ratio:16/10;object-fit:contain}
 .top .brand{overflow-wrap:anywhere}
 .prose{padding:clamp(17px,4vw,30px)!important;font-size:clamp(17px,4.3vw,19px)!important;line-height:1.95!important}
 .wrap{padding-inline:clamp(14px,4vw,26px)!important}
}
@media(prefers-reduced-motion:reduce){.yfi-universal-toggle{transition:none}}
