/* ManiHub: bilingual editorial typography and aligned header controls. */
:root{--mh-font-en:'Manrope',Arial,sans-serif;--mh-font-fa:'Vazirmatn',Tahoma,sans-serif;--mh-font-editorial:'Cormorant Garamond',Georgia,serif}
html[lang=en] body{font-family:var(--mh-font-en)!important;font-weight:400;line-height:1.8;letter-spacing:0}
html[lang=fa] body{font-family:var(--mh-font-fa)!important;font-weight:400;line-height:1.95;letter-spacing:0}
button,input,select,textarea{font-family:inherit!important}
html[lang=en] :is(h1,h2,h3,h4,h5,h6){font-family:var(--mh-font-en)!important;font-weight:600!important;letter-spacing:-.025em!important;text-wrap:balance}
html[lang=fa] :is(h1,h2,h3,h4,h5,h6){font-family:var(--mh-font-fa)!important;font-weight:600!important;letter-spacing:0!important;line-height:1.65!important;text-wrap:balance}
html[lang=en] :is(.hero,.page-hero) h1{font-weight:500!important;letter-spacing:-.04em!important;line-height:1.16!important}
html[lang=en] .hero h1 .accent{font-family:var(--mh-font-editorial)!important;font-style:italic!important;font-weight:500!important;letter-spacing:-.02em!important;line-height:1.15!important}
html[lang=fa] .hero h1 .accent{font-family:var(--mh-font-fa)!important;font-style:normal!important;font-weight:500!important;letter-spacing:0!important}
html[lang=fa] .hero h1{line-height:1.65!important;font-weight:650!important}
:is(.lead,.section-lead){font-weight:400!important}
html[lang=en] :is(.lead,.section-lead){line-height:1.9!important}
html[lang=fa] :is(.lead,.section-lead){line-height:2!important}
html[lang=fa] :is(.eyebrow,.hero-note,.brand-tag){letter-spacing:0!important}
:is(.btn,.division-inquiry-btn,.faq-question){font-weight:600!important}
:is(.main-nav a,.site-nav a){font-weight:500!important}
html[lang=en] .brand-wordmark{font-family:var(--mh-font-en)!important;font-weight:800!important;letter-spacing:-.035em!important}
html[lang=fa] .brand-wordmark{font-family:var(--mh-font-fa)!important;font-weight:700!important;letter-spacing:0!important}
/* Equal control boxes remove inline SVG/text baseline differences. */
header .nav-wrap{align-items:center!important;flex-wrap:nowrap!important;column-gap:20px!important}
header .nav-wrap>.brand{align-items:center!important;gap:10px!important}
header .nav-actions{display:flex!important;align-items:center!important;justify-content:center;flex-wrap:nowrap!important;gap:6px!important;flex:0 0 auto!important}
header .nav-actions :is(.icon-btn,.lang-toggle){align-items:center!important;justify-content:center!important;vertical-align:middle!important;min-height:44px!important;height:44px!important;line-height:1!important;padding:0!important;margin:0!important;flex-shrink:0!important}
header .nav-actions .icon-btn{width:44px!important;min-width:44px!important}
header .nav-actions .lang-toggle{display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:7px!important;min-width:62px!important;direction:ltr!important;white-space:nowrap!important;border-radius:10px}
header .nav-actions .lang-toggle svg{display:block!important;width:19px!important;height:19px!important;flex:0 0 19px!important;margin:0!important;transform:none!important}
header .nav-actions .icon-btn svg{display:block!important;width:22px!important;height:22px!important;flex-shrink:0!important;margin:0!important;transform:none!important}
header #langLabel{display:block!important;font-family:var(--mh-font-en)!important;font-size:14px!important;font-weight:600!important;line-height:1!important;letter-spacing:0!important;margin:0!important;padding:0!important}
header .brand-text{justify-content:center!important;line-height:1.25!important}
header .brand-wordmark{display:block;line-height:1.25!important}
header .nav-utilities{display:flex;align-items:center;gap:8px}
header .lang-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;direction:ltr;min-height:44px;min-width:62px;line-height:1!important;white-space:nowrap;font-family:var(--mh-font-en)!important;font-size:14px!important;font-weight:600!important}
header .lang-pill svg{width:19px;height:19px;display:block;flex-shrink:0}
@media(min-width:901px){header .nav-wrap{gap:16px!important}.main-nav{gap:clamp(10px,1.35vw,19px)!important}.main-nav a{font-size:12px!important}.nav-actions .nav-start{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}}
@media(max-width:900px){header .nav-wrap{min-height:78px!important;padding-block:12px!important}.nav-wrap .brand-tag{display:none!important}.nav-actions .nav-start{display:none!important}.nav-wrap .brand-wordmark{font-size:20px!important}}
@media(max-width:420px){header .nav-wrap{width:calc(100% - 32px)!important;column-gap:8px!important}.nav-wrap .brand-wordmark{font-size:18px!important}.nav-wrap .brand{gap:7px!important}header .nav-wrap a.brand img.brand-mark{width:48px!important;min-width:48px!important;max-width:48px!important;height:32px!important}.nav-actions{gap:2px!important}header .nav-actions{gap:2px!important}header .nav-actions .icon-btn{width:40px!important;min-width:40px!important}header .nav-actions .lang-toggle{min-width:56px!important}.hero h1{font-size:clamp(30px,8.7vw,38px)!important}.hero .lead{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Keep the message-field focus indicator inside the clipped chat panel. */
#chatbot #chatbotInput:focus,
#chatbot #chatbotInput:focus-visible{
 outline:none!important;
 outline-offset:0!important;
 box-shadow:inset 0 0 0 1px #DDCE8D!important;
 border-radius:6px;
}

/* Use Persian glyphs even when the surrounding page is English. */
header #langLabel[lang="fa"],header .lang-pill [lang="fa"]{font-family:var(--mh-font-fa)!important;font-weight:500!important;font-size:15px!important;line-height:1.4!important;letter-spacing:0!important}
header #langLabel[lang="en"],header .lang-pill [lang="en"]{font-family:var(--mh-font-en)!important}
header .brand,header .brand-text{overflow:visible!important}
