/* Dukhoon V97 – compact mobile header: controls FAR RIGHT, logo/name FAR LEFT.
   Loaded after legacy theme and V96 rules; does not change permissions or links. */
@media (max-width: 760px) {
  html body header.top .wrap.nav,
  html body header.top .dk95-header-inner,
  html body header.top .dk96-heading-cluster {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    direction: rtl !important;
    padding: 0 !important;
  }
  html body header.top .wrap.nav { width: calc(100% - 20px) !important; margin-inline: auto !important; padding: 5px 0 !important; }
  html body header.top .dk95-header-inner,
  html body header.top .dk96-heading-cluster {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  /* Although the DOM emits branding first, the controls must appear at right. */
  html body header.top .dk96-action-cluster {
    order: -1 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    direction: rtl !important;
    gap: 5px !important;
  }
  html body header.top .dk96-action-cluster .dk94-nav-area,
  html body header.top .dk96-action-cluster .dk94-menu {
    order: 0 !important;
    flex: 0 0 auto !important;
  }
  html body header.top .dk96-action-cluster .dk95-bell { order: 1 !important; }
  html body header.top .dk96-heading-cluster > .brand {
    order: 1 !important;
    margin: 0 0 0 auto !important;
    flex: 0 1 auto !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    max-width: 52% !important;
  }
  html body header.top .dk96-heading-cluster .brand-logo {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }
  html body header.top .dk96-heading-cluster .brand-text { min-width: 0 !important; }
  html body header.top .dk96-heading-cluster .brand-text strong {
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: right !important;
  }
  html body header.top .dk96-action-cluster .dk94-toggle {
    min-height: 35px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
  html body header.top .dk96-action-cluster .dk95-bell {
    width: 35px !important;
    height: 35px !important;
    flex-basis: 35px !important;
  }
  html body header.top .dk96-action-cluster .dk94-menu > .nav-links {
    position: fixed !important;
    inset: auto 10px auto 10px !important;
    top: 53px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 66px) !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
  }
}
@media(max-width:375px) {
  html body header.top .dk96-heading-cluster > .brand { max-width: 47% !important; }
  html body header.top .dk96-heading-cluster .brand-text strong { font-size: 10px !important; }
  html body header.top .dk96-action-cluster .dk94-toggle { padding: 5px !important; }
  html body header.top .dk96-heading-cluster .brand-logo { width: 30px !important; height: 30px !important; flex-basis: 30px !important; }
}
