/* v4.17.02 – canonical BeliTech global header.
 * Applies to both the React marketplace and standalone WordPress screens.
 * Desktop: icon + Explore / Operators left, marketplace artwork centered, account right.
 * Tablet/phone: icon/artwork/account first row, 2-link navigation second row.
 * All portal tools remain in the account menu; no functionality removed.
 */

/* The extra specificity intentionally supersedes historical :is() and ID-boosted
   header CSS. Other components aren't touched. */
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace){
  background:#fff!important;
  border-bottom:1px solid #edeff1!important;
  box-shadow:0 2px 11px rgba(13,43,72,.035)!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner){
  width:calc(100% - 32px)!important;
  max-width:1520px!important;
  min-height:76px!important;
  height:auto!important;
  margin-inline:auto!important;
  padding:0!important;
  box-sizing:border-box!important;
  position:relative!important;
  display:grid!important;
  grid-template-columns:54px max-content minmax(0,1fr) max-content!important;
  grid-template-rows:76px!important;
  grid-template-areas:"brand links title actions"!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:0 22px!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > .bst-brand-link{
  grid-area:brand!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:start!important;
  align-self:center!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
  width:54px!important;
  height:56px!important;
  flex:0 0 auto!important;
  position:relative!important;
  z-index:3!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-brand-link .bst-brand-icon{
  display:block!important;
  width:54px!important;
  height:54px!important;
  max-width:54px!important;
  max-height:54px!important;
  flex:0 0 54px!important;
  object-fit:contain!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-brand-link .bst-belitec-wordmark,
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-brand-link .bst-master-wordmark{
  display:none!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > .bst-role-nav{
  grid-area:links!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  justify-self:start!important;
  align-self:stretch!important;
  gap:24px!important;
  flex:0 0 auto!important;
  min-width:0!important;
  width:max-content!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
  position:relative!important;
  z-index:3!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-role-nav > .bst-role-nav__link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:stretch!important;
  height:100%!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:none!important;
  border-bottom:3px solid transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:#081a2b!important;
  font-family:"Manrope",system-ui,sans-serif!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.3!important;
  text-decoration:none!important;
  text-transform:none!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-role-nav > .bst-role-nav__link:is(.is-active,[aria-current="page"]){
  color:#2a445e!important;
  border-bottom-color:#2a445e!important;
  box-shadow:none!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-role-nav > .bst-role-nav__link:hover{
  color:#2a445e!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > .bst-marketplace-header-title{
  grid-area:title!important;
  grid-column:auto!important;
  grid-row:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:center!important;
  align-self:center!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:clamp(190px,22vw,305px)!important;
  max-width:305px!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:none!important;
  z-index:1!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-marketplace-header-title > img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  max-height:69px!important;
  height:auto!important;
  object-fit:contain!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > :is(.bst-php-header__right,.bst-app-header__right){
  grid-area:actions!important;
  grid-column:auto!important;
  grid-row:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  justify-self:end!important;
  align-self:center!important;
  flex:0 0 auto!important;
  width:max-content!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  gap:12px!important;
  position:relative!important;
  z-index:4!important;
}

@media(max-width:1199px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner){
    grid-template-columns:52px minmax(0,1fr) auto!important;
    grid-template-rows:62px 42px!important;
    grid-template-areas:"brand title actions" "links links links"!important;
    width:100%!important;
    max-width:100%!important;
    min-height:104px!important;
    padding:0 16px!important;
    gap:0 12px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > .bst-marketplace-header-title{
    position:static!important;
    grid-area:title!important;
    grid-column:2!important;
    grid-row:1!important;
    left:auto!important;top:auto!important;transform:none!important;
    width:min(100%,270px)!important;max-width:270px!important;
    z-index:1!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > .bst-role-nav{
    grid-area:links!important;grid-column:1/-1!important;grid-row:2!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;height:42px!important;min-height:42px!important;
    justify-self:stretch!important;gap:0!important;align-items:stretch!important;
    background:#fff!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-role-nav > .bst-role-nav__link{
    min-width:0!important;max-width:none!important;width:100%!important;
    height:42px!important;min-height:42px!important;
    padding:0 8px!important;
    font-size:13px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > :is(.bst-php-header__right,.bst-app-header__right){
    grid-area:actions!important;grid-column:3!important;grid-row:1!important;
    gap:7px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-brand-link .bst-brand-icon{
    width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;flex-basis:44px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > .bst-brand-link{
    width:52px!important;height:52px!important;
  }
}
@media(max-width:599px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner){
    grid-template-columns:40px minmax(0,1fr) auto!important;
    grid-template-rows:56px 42px!important;
    min-height:98px!important;
    padding:0 9px!important;
    gap:0 5px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > .bst-brand-link{
    width:40px!important;height:48px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-brand-link .bst-brand-icon{
    width:37px!important;height:37px!important;max-width:37px!important;max-height:37px!important;flex-basis:37px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > .bst-marketplace-header-title{
    width:min(100%,215px)!important;max-width:215px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-marketplace-header-title > img{
    max-height:43px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner) > :is(.bst-php-header__right,.bst-app-header__right){
    gap:4px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bt-header-notifications :is(button,.bt-notification-bell){
    width:42px!important;min-width:42px!important;height:42px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bt-header-account--identity > summary{
    width:72px!important;min-width:72px!important;max-width:72px!important;height:44px!important;min-height:44px!important;
  }
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bt-account-identity__details{
    display:none!important;
  }
}
/* Account and bell retain the previously approved minimal white controls. */
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bt-header-account > summary{
  box-sizing:border-box!important;
  border:1px solid #dde1e5!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:0 2px 11px rgba(13,43,72,0.065)!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bt-header-notifications :is(button,.bt-notification-bell){
  box-sizing:border-box!important;
  border:1px solid #dde1e5!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 11px rgba(13,43,72,0.065)!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-role-nav__link::before,
body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) .bst-role-nav__link::after{
  display:none!important;
  content:none!important;
}
/* Match the original centered desktop content width. */
@media(min-width:1200px){
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header .bst-php-header__inner,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace .bst-app-header__inner){
    width:80%!important;
    max-width:1520px!important;
  }
}
