/* Header 2.9.10 — restore teacher name to the top row, beside logo م.
   Keep all 4 mobile action buttons and remove only the old bottom graphic banner. */
@media (max-width:980px) {
  body.public-premium-theme .main-header .nav-wrap > .brand {
    display:inline-flex!important;
    flex-direction:row!important;
    direction:rtl;
    align-items:center!important;
    gap:9px!important;
    flex:1 1 auto;
    width:auto;
    max-width:calc(100% - 62px)!important;
    min-width:0!important;
    overflow:visible;
    text-decoration:none;
  }
  body.public-premium-theme .main-header .nav-wrap > .brand .brand-mark {
    flex:0 0 auto;
  }
  body.public-premium-theme .main-header .nav-wrap > .brand .brand-text {
    display:flex!important;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    min-width:0;
    max-width:100%;
    white-space:normal;
    line-height:1.25;
    text-align:right;
  }
  body.public-premium-theme .main-header .nav-wrap > .brand .brand-text strong {
    display:block;
    color:#fff!important;
    font-size:clamp(13px,3.6vw,18px)!important;
    font-weight:900!important;
    line-height:1.3!important;
    max-width:100%;
  }
  body.public-premium-theme .main-header .nav-wrap > .brand .brand-text small {
    display:block;
    color:#c6d7f2!important;
    font-size:clamp(9px,2.5vw,12px)!important;
    line-height:1.4;
    white-space:normal;
  }
  /* The graphic beneath the four buttons has been retired. */
  body.public-premium-theme .main-header .public-mobile-brand-banner {display:none!important}
}
@media (max-width:360px) {
  body.public-premium-theme .main-header .nav-wrap > .brand {gap:6px!important}
  body.public-premium-theme .main-header .nav-wrap > .brand .brand-text strong {font-size:13px!important}
  body.public-premium-theme .main-header .nav-wrap > .brand .brand-text small {font-size:9px!important}
}
