/*
 * BinikStock V602 — canonical compact header geometry.
 * Contributor Dashboard is the visual reference. These variables and exact
 * selectors form one sizing chain for public, legal, contributor and customer
 * account headers without changing their navigation or authentication markup.
 */
:root {
  --bs-site-header-height: 68px;
  --bs-site-header-height-mobile: 64px;
  --bs-site-logo-width: 180px;
  --bs-site-logo-max-height: 32px;
  --bs-site-logo-width-mobile: 156px;
  --bs-site-logo-max-height-mobile: 28px;
  --bs-site-avatar-size: 38px;
}

html body :is(
  .binikstock-v170-global-header,
  .iconsol-v90-account-site-header,
  .bs-legal-site-header,
  .bs-cdash-header
) {
  height: var(--bs-site-header-height) !important;
  min-height: var(--bs-site-header-height) !important;
}

html body .binikstock-v170-global-header > .iconsol-container.iconsol-nav,
html body .iconsol-v90-account-site-header > .iconsol-container.iconsol-nav,
html body.page-template-template-policy .binikstock-v170-global-header.bs-legal-site-header > .iconsol-container.iconsol-nav,
html body.home .bs-home-v156 > .binikstock-v170-global-header > .iconsol-container.iconsol-nav,
html body.front-page .bs-home-v156 > .binikstock-v170-global-header > .iconsol-container.iconsol-nav {
  height: var(--bs-site-header-height) !important;
  min-height: var(--bs-site-header-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html body .binikstock-v170-global-header .iconsol-logo,
html body .iconsol-v90-account-site-header .iconsol-logo,
html body.page-template-template-policy .binikstock-v170-global-header.bs-legal-site-header .iconsol-logo,
html body.home .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo,
html body.front-page .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo,
html body .bs-cdash-header .bs-cdash-logo,
html body .bs-v388-account > .bs-cdash-header .bs-cdash-logo {
  width: var(--bs-site-logo-width) !important;
  min-width: 0 !important;
  max-width: var(--bs-site-logo-width) !important;
  flex: 0 0 var(--bs-site-logo-width) !important;
}

html body .binikstock-v170-global-header .iconsol-logo img,
html body .binikstock-v170-global-header .iconsol-logo .binikstock-logo-img,
html body .iconsol-v90-account-site-header .iconsol-logo img,
html body .iconsol-v90-account-site-header .iconsol-logo .binikstock-logo-img,
html body.page-template-template-policy .binikstock-v170-global-header.bs-legal-site-header .iconsol-logo img,
html body.page-template-template-policy .binikstock-v170-global-header.bs-legal-site-header .iconsol-logo .binikstock-logo-img,
html body.home .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo img,
html body.home .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo .binikstock-logo-img,
html body.front-page .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo img,
html body.front-page .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo .binikstock-logo-img,
html body .bs-cdash-header .bs-cdash-logo img,
html body .bs-cdash-header .bs-cdash-logo .binikstock-logo-img,
html body .bs-v388-account > .bs-cdash-header .bs-cdash-logo img,
html body .bs-v388-account > .bs-cdash-header .bs-cdash-logo .binikstock-logo-img {
  display: block !important;
  width: var(--bs-site-logo-width) !important;
  min-width: 0 !important;
  max-width: var(--bs-site-logo-width) !important;
  height: auto !important;
  max-height: var(--bs-site-logo-max-height) !important;
  object-fit: contain !important;
}

html body :is(
  .binikstock-v170-global-header,
  .iconsol-v90-account-site-header,
  .bs-legal-site-header
) .iconsol-v88-avatar-btn,
html body .bs-cdash-header .bs-cdash-avatar,
html body .bs-v388-account > .bs-cdash-header .bs-cdash-avatar {
  width: var(--bs-site-avatar-size) !important;
  height: var(--bs-site-avatar-size) !important;
  min-width: var(--bs-site-avatar-size) !important;
  min-height: var(--bs-site-avatar-size) !important;
  flex: 0 0 var(--bs-site-avatar-size) !important;
}

html body :is(
  .binikstock-v170-global-header,
  .iconsol-v90-account-site-header,
  .bs-legal-site-header
) :is(
  .iconsol-v88-avatar,
  .iconsol-header-avatar,
  .iconsol-v88-avatar-btn img,
  .iconsol-v88-avatar-img,
  .iconsol-v88-avatar-fallback
),
html body .bs-cdash-header .bs-cdash-avatar :is(img,.avatar,.iconsol-v88-avatar-img,.iconsol-v88-avatar-fallback),
html body .bs-v388-account > .bs-cdash-header .bs-cdash-avatar :is(img,.avatar,.iconsol-v88-avatar-img,.iconsol-v88-avatar-fallback) {
  width: var(--bs-site-avatar-size) !important;
  height: var(--bs-site-avatar-size) !important;
  min-width: var(--bs-site-avatar-size) !important;
  min-height: var(--bs-site-avatar-size) !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  filter: none !important;
}

@media (max-width: 760px) {
  :root {
    --bs-site-avatar-size: 36px;
  }

  html body :is(
    .binikstock-v170-global-header,
    .iconsol-v90-account-site-header,
    .bs-legal-site-header,
    .bs-cdash-header
  ) {
    height: var(--bs-site-header-height-mobile) !important;
    min-height: var(--bs-site-header-height-mobile) !important;
  }

  html body .binikstock-v170-global-header .iconsol-logo,
  html body .iconsol-v90-account-site-header .iconsol-logo,
  html body.page-template-template-policy .binikstock-v170-global-header.bs-legal-site-header .iconsol-logo,
  html body.home .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo,
  html body.front-page .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo,
  html body .bs-cdash-header .bs-cdash-logo,
  html body .bs-v388-account > .bs-cdash-header .bs-cdash-logo {
    width: var(--bs-site-logo-width-mobile) !important;
    max-width: var(--bs-site-logo-width-mobile) !important;
    flex-basis: var(--bs-site-logo-width-mobile) !important;
  }

  html body .binikstock-v170-global-header .iconsol-logo img,
  html body .binikstock-v170-global-header .iconsol-logo .binikstock-logo-img,
  html body .iconsol-v90-account-site-header .iconsol-logo img,
  html body .iconsol-v90-account-site-header .iconsol-logo .binikstock-logo-img,
  html body.page-template-template-policy .binikstock-v170-global-header.bs-legal-site-header .iconsol-logo img,
  html body.page-template-template-policy .binikstock-v170-global-header.bs-legal-site-header .iconsol-logo .binikstock-logo-img,
  html body.home .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo img,
  html body.home .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo .binikstock-logo-img,
  html body.front-page .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo img,
  html body.front-page .bs-home-v156 > .binikstock-v170-global-header .iconsol-logo .binikstock-logo-img,
  html body .bs-cdash-header .bs-cdash-logo img,
  html body .bs-cdash-header .bs-cdash-logo .binikstock-logo-img,
  html body .bs-v388-account > .bs-cdash-header .bs-cdash-logo img,
  html body .bs-v388-account > .bs-cdash-header .bs-cdash-logo .binikstock-logo-img {
    width: var(--bs-site-logo-width-mobile) !important;
    max-width: var(--bs-site-logo-width-mobile) !important;
    max-height: var(--bs-site-logo-max-height-mobile) !important;
  }
}
