/* Directional corrections for static Arabic and Persian pages; no content translation. */
@font-face{font-family:MRGTPersian;src:url('/assets/fonts/vazirmatn.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:MRGTArabic;src:url('/assets/fonts/notosansarabic.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:MRGTTurkish;src:url('/assets/fonts/manrope.ttf') format('truetype');font-style:normal;font-weight:200 800;font-display:swap}
html[lang="fa"]{--locale-font:MRGTPersian,Tahoma,sans-serif}
html[lang="ar"]{--locale-font:MRGTArabic,Tahoma,sans-serif}
html[lang="tr"]{--locale-font:MRGTTurkish,Arial,sans-serif}
/* The recovered theme contains unlayered !important font shorthands with two
   IDs (for example body#collection-... #page h1). Important declarations in
   this explicit layer outrank those rules without escalating selector IDs.
   Apply to every text-bearing element and pseudo-element, including content
   outside #siteWrapper, forms, dynamically mounted navigation, and badges. */
@layer mrgtLocaleTypography {
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) :where(body,body *),
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) body *::before,
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) body *::after,
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) :is(input,textarea)::placeholder {
    font-family:var(--locale-font)!important;
  }
}
html[dir="rtl"] body { direction:rtl; }
html[dir="rtl"] .copy-article-body,
html[dir="rtl"] .copy-page-body,
html[dir="rtl"] .copy-contact,
html[dir="rtl"] .copy-footer { text-align:start; }
html[dir="rtl"] :is(p,li,dd,figcaption,label,input,textarea,select,button) { letter-spacing:normal; }
html[dir="rtl"] :is(h1,h2,h3,h4,.copy-eyebrow,.eyebrow) { letter-spacing:normal; line-height:1.45; }
html[dir="rtl"] :is(ul,ol) { padding-inline-start:1.5em; padding-inline-end:0; }
html[dir="rtl"] .copy-navigation,
html[dir="rtl"] .copy-footer-nav,
html[dir="rtl"] .mrgt-lang-list { padding-inline-start:0; }
html[dir="rtl"] .mrgt-lang-list { left:0;right:auto; text-align:start; }
html[dir="rtl"] .copy-nav-links { direction:rtl; }
html[dir="rtl"] :is(input[type="email"],input[type="tel"],a[href^="mailto:"],a[href^="tel:"]) { direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] .copy-article-body :is(ul,ol) { margin-inline:0; }
html[dir="rtl"] .copy-article-body blockquote { border-left:0; border-inline-start:3px solid currentColor; padding-inline-start:1.25rem; }
html[dir="rtl"] .mrgt-editorial-v2 .copy-article-header h1 { line-height:1.4; }
html[dir="rtl"] #siteWrapper .mrgt-editorial-v2 .mrgt-ed-header h1 { line-height:1.5!important; letter-spacing:0!important; }
#siteWrapper .copy-article-body>figure:first-child figcaption::before,
#siteWrapper .copy-article-body>figure.copy-article-hero figcaption::before{content:var(--mrgt-journal-note,"MRGT JOURNAL · MARKET NOTE")}
#siteWrapper .copy-article-header h1::before{content:var(--mrgt-market-note,"MRGT MARKET NOTE")}
#siteWrapper .copy-article-hero-media figure figcaption::before,
#siteWrapper .copy-article-modern .copy-article-hero-media figure figcaption::before{content:var(--mrgt-field-note,"FIELD NOTE · MRGT JOURNAL")}
html[dir="rtl"] :is(.mrgt-lang-btn,.mrgt-lang-list small,.copy-logo,.copy-brand) { unicode-bidi:isolate; }
html[dir="rtl"] .copy-enquiry-draft { text-align:start; }
html[lang="tr"] :is(.copy-nav-links a,.copy-header a,.copy-header button) { overflow-wrap:normal; }
@media(max-width:900px) {
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) #siteWrapper #header.copy-header{direction:ltr!important;flex-wrap:nowrap!important;gap:8px!important;padding-inline:12px!important;min-height:66px!important}
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) #siteWrapper #header .copy-brand{width:min(155px,38vw)!important;min-width:0!important;flex:0 1 auto!important;margin:0!important;align-items:flex-start!important}
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) #siteWrapper #header .copy-brand img{width:100%!important;max-width:100%!important;height:auto!important;max-height:54px!important}
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) #siteWrapper #header .mrgt-lang{margin:0 0 0 auto!important;flex:none!important}
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) #siteWrapper #header .copy-menu-toggle{flex:none!important;white-space:nowrap!important;padding:8px!important;min-width:0!important;font-size:13px!important;min-height:42px!important}
  html:is([lang="fa"],[lang="ar"],[lang="tr"]) #siteWrapper #header .mrgt-lang-btn{padding:6px 8px!important;gap:5px!important}
  html[dir="rtl"] #siteWrapper #header :is(.copy-menu-toggle,#copy-navigation){direction:rtl}
  html[dir="rtl"] .copy-article-header h1 { font-size:clamp(1.8rem,7vw,3.2rem); }
  html[dir="rtl"] .mrgt-lang-list { max-width:calc(100vw - 32px); }
}
