/* V508.21: public shell direction contract. Arabic keeps its existing presentation. */
html[dir="ltr"] body.studio-theme,
html[dir="ltr"] body.studio-theme .studio-site-header,
html[dir="ltr"] body.studio-theme .studio-exact-footer,
html[dir="ltr"] body.studio-theme .studio-search-overlay{
  direction:ltr;
}

html[dir="ltr"] body.studio-theme .studio-header-nav-group,
html[dir="ltr"] body.studio-theme .studio-header-nav-group nav,
html[dir="ltr"] body.studio-theme .studio-exact-actions{
  direction:ltr;
}

html[dir="ltr"] body.studio-theme .studio-nav-dropdown{
  right:auto;
  left:-10px;
  max-width:calc(100vw - 24px);
  direction:ltr;
  text-align:left;
}

html[dir="ltr"] body.studio-theme .studio-nav-dropdown:after{
  right:auto;
  left:24px;
  border-right:0;
  border-left:1px solid #254665;
  transform:rotate(45deg);
}

html[dir="ltr"] body.studio-theme .studio-header-nav-group nav .studio-nav-dropdown a:hover{
  padding-right:9px!important;
  padding-left:11px!important;
}

html[dir="ltr"] body.studio-theme .studio-nav-dropdown>a:hover>b{
  transform:translateX(2px);
}

html[dir="ltr"] body.studio-theme .studio-tools-popover,
html[dir="ltr"] body.studio-theme .studio-notification-popover,
html[dir="ltr"] body.studio-theme .studio-membership-popover,
html[dir="ltr"] body.studio-theme .studio-account-popover{
  direction:ltr;
  text-align:left;
}

html[dir="ltr"] body.studio-theme .studio-tools-grid span,
html[dir="ltr"] body.studio-theme .studio-language-choice,
html[dir="ltr"] body.studio-theme .studio-membership-copy,
html[dir="ltr"] body.studio-theme .studio-membership-popover dl>div,
html[dir="ltr"] body.studio-theme .studio-preview-item>button,
html[dir="ltr"] body.studio-theme .studio-member-head>div,
html[dir="ltr"] body.studio-theme .studio-member-stats>span,
html[dir="ltr"] body.studio-theme .studio-member-links>a>span,
html[dir="ltr"] body.studio-theme .studio-member-logout button,
html[dir="ltr"] body.studio-theme .studio-search-results button{
  text-align:left;
}

html[dir="ltr"] body.studio-theme .studio-notification-trigger>b,
html[dir="ltr"] body.studio-theme .studio-preview-item>button>b{
  right:-6px;
  left:auto;
}

html[dir="ltr"] body.studio-theme .studio-preview-item>button>b{
  top:18px;
  right:13px;
}

html[dir="ltr"] body.studio-theme .studio-account-button>b{
  text-align:left;
}

html[dir="ltr"] body.studio-theme .studio-search-overlay.is-member-search .studio-search-results button:hover,
html[dir="ltr"] body.studio-theme .studio-search-overlay.is-member-search .studio-search-results button:focus-visible{
  transform:translateX(3px);
}

@media(min-width:821px){
  html[dir="ltr"] body.studio-theme .studio-tools-popover,
  html[dir="ltr"] body.studio-theme .studio-notification-popover,
  html[dir="ltr"] body.studio-theme .studio-membership-popover{
    right:0!important;
    left:auto!important;
    width:min(390px,calc(100vw - 24px));
    max-height:calc(100dvh - var(--studio-shell-clearance,118px) - 12px);
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  html[dir="ltr"] body.studio-theme .studio-notification-popover{
    width:min(440px,calc(100vw - 24px));
  }

  html[dir="ltr"] body.studio-theme .studio-membership-popover{
    width:min(360px,calc(100vw - 24px));
  }
}

@media(max-width:1120px){
  html[dir="ltr"] body.studio-theme .studio-header-nav-group nav,
  html[dir="ltr"] body.studio-theme .studio-nav-parent>button,
  html[dir="ltr"] body.studio-theme .studio-nav-dropdown{
    text-align:left;
  }

  html[dir="ltr"] body.studio-theme .studio-nav-dropdown{
    right:auto;
    left:auto;
  }
}

@media(max-width:720px){
  html[dir="ltr"] body.studio-theme .studio-footer-menu-v341 .studio-compact-brand,
  html[dir="ltr"] body.studio-theme .studio-footer-menu-v341 .studio-compact-bottom{
    text-align:center;
  }
}
