
/* Version 4.7 bilingual layer — English unchanged, Persian under /fa/ */
.azr-language-switcher{display:inline-flex;align-items:center;gap:8px;direction:ltr;font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.azr-language-switcher a{color:#777!important;text-decoration:none!important;transition:color .2s ease}
.azr-language-switcher a:hover,.azr-language-switcher a:focus-visible,.azr-language-switcher a.is-active{color:#fff!important}
.azr-language-switcher>span{color:#414246}
.azr-language-menu-item{margin-top:18px!important;padding-top:18px!important;border-top:1px solid rgba(255,255,255,.09)}
.azr-language-menu-item>.azr-language-switcher{padding:0 2px}
.azr-floating-language{position:fixed;z-index:99999;top:22px;right:26px;padding:9px 12px;border:1px solid rgba(255,255,255,.14);background:rgba(15,16,18,.82);backdrop-filter:blur(10px)}
body.azr-has-menu-language-switch .azr-floating-language{display:none}
body.azr-lang-fa .azr-floating-language{right:auto;left:26px}

body.azr-lang-fa,
body.azr-lang-fa button,
body.azr-lang-fa input,
body.azr-lang-fa textarea,
body.azr-lang-fa select{font-family:"Vazirmatn","IRANSansX","IRANSans",Tahoma,Arial,sans-serif!important}
body.azr-lang-fa{direction:rtl;text-align:right}
body.azr-lang-fa .azr-editorial-page,
body.azr-lang-fa .azr-contact-page,
body.azr-lang-fa .azr-home-main,
body.azr-lang-fa .azr-single{direction:rtl;text-align:right}
body.azr-lang-fa .azr-page-shell>:where(*):not(.alignwide):not(.alignfull){margin-left:auto;margin-right:auto}
body.azr-lang-fa .azr-page-shell h1,
body.azr-lang-fa .azr-page-shell h2,
body.azr-lang-fa .azr-page-shell h3,
body.azr-lang-fa .azr-page-shell h4,
body.azr-lang-fa .azr-page-shell p,
body.azr-lang-fa .azr-page-shell li{text-align:right;letter-spacing:0}
body.azr-lang-fa .azr-page-shell ul,
body.azr-lang-fa .azr-page-shell ol{padding-left:0;padding-right:1.4em}
body.azr-lang-fa .azr-page-shell blockquote{border-left:0;border-right:2px solid #c2a36b}
body.azr-lang-fa .azr-page-shell th,
body.azr-lang-fa .azr-page-shell td{text-align:right}
body.azr-lang-fa .azr-page-kicker,
body.azr-lang-fa .azr-card-number,
body.azr-lang-fa .azr-journal-meta,
body.azr-lang-fa .azr-exhibition-year{letter-spacing:.03em;text-transform:none}
body.azr-lang-fa .azr-page-hero h1{letter-spacing:-.01em}
body.azr-lang-fa .azr-facts-grid,
body.azr-lang-fa .azr-journal-grid,
body.azr-lang-fa .azr-exhibition-row,
body.azr-lang-fa .azr-about-columns,
body.azr-lang-fa .azr-contact-columns{direction:rtl}
body.azr-lang-fa .azr-contact-hero.wp-block-cover::after{background:linear-gradient(270deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.22) 46%,rgba(0,0,0,.80) 100%)}
body.azr-lang-fa .azr-contact-hero__content{right:auto!important;left:clamp(28px,7vw,102px)!important;text-align:right}
body.azr-lang-fa .azr-contact-content,
body.azr-lang-fa .azr-contact-intro,
body.azr-lang-fa .azr-contact-details,
body.azr-lang-fa .azr-contact-detail{text-align:right}
body.azr-lang-fa .azr-contact-detail{grid-template-columns:1fr 110px}
body.azr-lang-fa .azr-contact-detail__label{grid-column:2;grid-row:1}
body.azr-lang-fa .azr-contact-detail__value{grid-column:1;grid-row:1}
body.azr-lang-fa .azr-gallery{direction:rtl}
body.azr-lang-fa .azr-filters{direction:rtl}
body.azr-lang-fa .azr-filters button{letter-spacing:0;text-transform:none;font-weight:500;font-size:12px}
body.azr-lang-fa .azr-filters button span{margin-left:0;margin-right:4px}
body.azr-lang-fa .azr-grid{direction:rtl}
body.azr-lang-fa .azr-overlay{text-align:right;align-items:flex-start}
body.azr-lang-fa .azr-category{letter-spacing:.03em;text-transform:none}
body.azr-lang-fa .azr-title{font-weight:500}
body.azr-lang-fa .azr-single-top,
body.azr-lang-fa .azr-single-copy{text-align:right}
body.azr-lang-fa .azr-single-top{direction:rtl;letter-spacing:0;text-transform:none}
body.azr-lang-fa .azr-single-category{letter-spacing:.03em;text-transform:none}
body.azr-lang-fa .azr-single-copy h1{letter-spacing:0}
body.azr-lang-fa .azr-side{letter-spacing:0;text-transform:none}
body.azr-lang-fa .azr-side--prev{left:auto;right:18px}
body.azr-lang-fa .azr-side--next{right:auto;left:18px}
body.azr-lang-fa .azr-mobile-nav{direction:rtl}

/* Mirror the established fixed sidebar without replacing the theme. */
@media(min-width:960px){
  body.azr-lang-fa.azr-rtl-has-sidebar #masthead,
  body.azr-lang-fa.azr-rtl-has-sidebar .site-header,
  body.azr-lang-fa.azr-rtl-has-sidebar .site-sidebar,
  body.azr-lang-fa.azr-rtl-has-sidebar #sidebar,
  body.azr-lang-fa.azr-rtl-has-sidebar .sidebar-area,
  body.azr-lang-fa.azr-rtl-has-sidebar .left-sidebar,
  body.azr-lang-fa .azr-detected-sidebar{left:auto!important;right:0!important}
  body.azr-lang-fa.azr-rtl-has-sidebar #content,
  body.azr-lang-fa.azr-rtl-has-sidebar .site-content,
  body.azr-lang-fa.azr-rtl-has-sidebar .content-area,
  body.azr-lang-fa.azr-rtl-has-sidebar .main-content{margin-left:0!important;margin-right:var(--azr-detected-sidebar-width,264px)!important}
}
body.azr-lang-fa .main-navigation,
body.azr-lang-fa .main-navigation ul,
body.azr-lang-fa .main-navigation li,
body.azr-lang-fa .main-navigation a,
body.azr-lang-fa #site-navigation,
body.azr-lang-fa #site-navigation a{text-align:right}
body.azr-lang-fa .main-navigation ul ul{left:auto;right:0}
body.azr-lang-fa .menu-item-has-children>a{direction:rtl}

@media(max-width:780px){
  .azr-floating-language{top:12px;right:12px}.azr-lang-fa .azr-floating-language{right:auto;left:12px}
  body.azr-lang-fa .azr-contact-hero__content{left:22px!important;right:22px!important}
  body.azr-lang-fa .azr-contact-detail{grid-template-columns:1fr}
  body.azr-lang-fa .azr-contact-detail__label,body.azr-lang-fa .azr-contact-detail__value{grid-column:1;grid-row:auto}
}

/* 4.7 stability fixes: preserve the AZMOON wordmark, keep navigation above
   content, and prevent RTL submenus/hover states from being clipped. */
.azr-brand-wordmark,
.site-title,
.site-title a,
.site-branding .site-title,
.site-branding .site-title a{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  writing-mode:horizontal-tb!important;
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
}
.azr-brand-wordmark--decorative{pointer-events:none!important}

#masthead,.site-header,.site-sidebar,#sidebar,.sidebar-area,.left-sidebar,.azr-detected-sidebar{
  z-index:10020!important;
  overflow:visible!important;
  isolation:isolate;
}
#masthead nav,#masthead ul,#masthead li,
.site-header nav,.site-header ul,.site-header li,
.site-sidebar nav,.site-sidebar ul,.site-sidebar li,
#sidebar nav,#sidebar ul,#sidebar li,
.sidebar-area nav,.sidebar-area ul,.sidebar-area li,
.left-sidebar nav,.left-sidebar ul,.left-sidebar li,
.azr-detected-sidebar nav,.azr-detected-sidebar ul,.azr-detected-sidebar li{
  overflow:visible!important;
}
.main-navigation a,#site-navigation a,.azr-detected-sidebar a{
  position:relative!important;
  z-index:2!important;
}
.main-navigation ul ul,#site-navigation ul ul,.azr-detected-sidebar ul ul{
  z-index:10030!important;
}
@media(min-width:960px){
  body.azr-lang-fa .main-navigation ul ul,
  body.azr-lang-fa #site-navigation ul ul,
  body.azr-lang-fa .azr-detected-sidebar ul ul{
    right:100%!important;
    left:auto!important;
  }
}

/* 4.8 Persian navigation hover repair. The theme's LTR text-wipe animation
   clipped the first Persian glyph on hover; keep the RTL label static. */
body.azr-lang-fa .main-navigation li,
body.azr-lang-fa #site-navigation li,
body.azr-lang-fa .azr-detected-sidebar li{
  overflow:visible!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
}
body.azr-lang-fa .main-navigation li>a,
body.azr-lang-fa #site-navigation li>a,
body.azr-lang-fa .azr-detected-sidebar li>a{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  min-width:max-content!important;
  max-width:none!important;
  overflow:visible!important;
  white-space:nowrap!important;
  text-indent:0!important;
  clip:auto!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
  transform:none!important;
  translate:none!important;
  animation:none!important;
}
body.azr-lang-fa .main-navigation li>a:hover,
body.azr-lang-fa .main-navigation li>a:focus-visible,
body.azr-lang-fa #site-navigation li>a:hover,
body.azr-lang-fa #site-navigation li>a:focus-visible,
body.azr-lang-fa .azr-detected-sidebar li>a:hover,
body.azr-lang-fa .azr-detected-sidebar li>a:focus-visible{
  transform:none!important;
  translate:none!important;
  text-indent:0!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
}
body.azr-lang-fa .main-navigation li>a>*,
body.azr-lang-fa #site-navigation li>a>*,
body.azr-lang-fa .azr-detected-sidebar li>a>*{
  transform:none!important;
  translate:none!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
  opacity:1!important;
  overflow:visible!important;
}
body.azr-lang-fa .main-navigation li:not(.menu-item-has-children)>a::before,
body.azr-lang-fa .main-navigation li:not(.menu-item-has-children)>a::after,
body.azr-lang-fa #site-navigation li:not(.menu-item-has-children)>a::before,
body.azr-lang-fa #site-navigation li:not(.menu-item-has-children)>a::after,
body.azr-lang-fa .azr-detected-sidebar li:not(.menu-item-has-children)>a::before,
body.azr-lang-fa .azr-detected-sidebar li:not(.menu-item-has-children)>a::after{
  content:none!important;
  display:none!important;
}

/* Sidebar copyright and compact linear footer. */
.azr-sidebar-copyright-host{overflow:visible!important}
.azr-sidebar-copyright{
  display:block;
  color:#777b84;
  font-size:9px;
  font-weight:500;
  line-height:1.75;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:normal;
  user-select:none;
}
.azr-brand-inline{direction:ltr!important;unicode-bidi:isolate!important;white-space:nowrap}
body.azr-lang-fa .azr-sidebar-copyright{
  font-family:"Vazirmatn","IRANSansX",Tahoma,sans-serif!important;
  letter-spacing:0;
  text-transform:none;
  line-height:1.9;
}
.azr-footer-host{width:100%!important}
.azr-minimal-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 14px;
  width:100%;
  color:#7b7f88;
  font-size:10px;
  font-weight:500;
  line-height:1.6;
  letter-spacing:.12em;
  text-transform:uppercase;
  direction:ltr;
}
.azr-minimal-footer a,
.azr-minimal-footer a:visited{
  color:inherit!important;
  text-decoration:none!important;
  border:0!important;
}
.azr-minimal-footer a:hover,
.azr-minimal-footer a:focus-visible{color:#fff!important}
.azr-footer-separator{color:#3f4248;user-select:none}
body.azr-lang-fa .azr-minimal-footer{
  direction:rtl;
  font-family:"Vazirmatn","IRANSansX",Tahoma,sans-serif!important;
  letter-spacing:0;
  text-transform:none;
}
body.azr-lang-fa .azr-footer-email,
body.azr-lang-fa .azr-footer-phone{direction:ltr!important;unicode-bidi:isolate!important}
@media(max-width:640px){
  .azr-minimal-footer{gap:5px 10px;font-size:9px}
  .azr-footer-separator{display:none}
  .azr-footer-item{flex-basis:100%;text-align:center}
}
