/* Keep the site identity in the global header and the course controls below it.
   Leave the secondary brand node in place for existing language-switch scripts.
   A standalone course header remains branded when no global header is present. */
header.izp-global-header ~ header.topbar > .brand,
header.izp-global-header ~ header.language-suite-nav > .suite-brand {
  display: none !important;
}

/* The existing mobile shell hides the wordmark. Keep one readable name beside
   the logo on learning pages, without taking space from the menu controls. */
@media (max-width: 520px) {
  /* Older cached course menus may be the sole header. Keep their wordmark;
     when a global header exists, the hidden parent still stays hidden. */
  header.language-suite-nav > .suite-brand > strong {
    display: inline !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }
  header.izp-global-header > .izp-global-brand > span {
    display: block !important;
  }
  header.izp-global-header > .izp-global-brand b {
    font-size: 14px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }
  header.izp-global-header > .izp-global-brand small {
    display: none !important;
  }
}
