/* Fix Mineriahoy sticky header: keep logo/menu readable over article heroes. */
header.page_header.sticky .header_bottom,
header.page_header.sticky.scrolled_not_transparent .header_bottom,
header.page_header.sticky.sticky_animate .header_bottom {
  background-color: #001696 !important;
  background: #001696 !important;
  opacity: 1 !important;
}

header.page_header.sticky .header_inner,
header.page_header.sticky .header_top_bottom_holder {
  background: #001696 !important;
}

/* Use the normal logo in sticky mode and center the sticky header elements. */
header.page_header.sticky .q_logo img.sticky,
header.page_header.sticky .q_logo img.light,
header.page_header.sticky .q_logo img.dark,
header.page_header.sticky .q_logo img.mobile {
  opacity: 0 !important;
}

header.page_header.sticky .q_logo img.normal {
  opacity: 1 !important;
  top: 8px !important;
  transform: scale(0.55) !important;
  transform-origin: left center !important;
}

/* Full-width style distribution for the main navigation. */
header.page_header:not(.sticky) nav.main_menu {
  width: min(calc(100% - 360px), 1080px) !important;
}

header.page_header:not(.sticky) nav.main_menu > ul,
header.page_header.sticky nav.main_menu > ul {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

header.page_header:not(.sticky) nav.main_menu > ul > li,
header.page_header.sticky nav.main_menu > ul > li {
  float: none !important;
}

header.page_header:not(.sticky) nav.main_menu > ul > li > a {
  padding-left: 5px !important;
  padding-right: 5px !important;
  white-space: nowrap !important;
}

header.page_header.sticky nav.main_menu > ul > li > a {
  padding-left: 5px !important;
  padding-right: 5px !important;
  white-space: nowrap !important;
}

header.page_header.sticky .main_menu_header_inner_right_holder {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
}

header.page_header.sticky nav.main_menu {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-left: 16px !important;
}

header.page_header.sticky nav.main_menu,
header.page_header.sticky nav.main_menu > ul > li,
header.page_header.sticky nav.main_menu > ul > li > a {
  height: 62px !important;
  line-height: 62px !important;
}

header.page_header.sticky .header_inner_right {
  flex: 0 0 347px !important;
  top: 11px !important;
}

/* Sticky header full-window layout. */
header.page_header.sticky .header_bottom .container,
header.page_header.sticky .header_bottom .container_inner,
header.page_header.sticky .header_menu_bottom,
header.page_header.sticky .header_menu_bottom_inner,
header.page_header.sticky .main_menu_header_inner_right_holder {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  position: static !important;
}

header.page_header.sticky .logo_wrapper {
  position: absolute !important;
  left: 48px !important;
  top: 20px !important;
  width: 190px !important;
  height: 62px !important;
}

header.page_header.sticky .q_logo {
  width: 190px !important;
  height: 62px !important;
  top: 0 !important;
}

header.page_header.sticky nav.main_menu {
  position: absolute !important;
  left: 282px !important;
  right: 430px !important;
  top: 20px !important;
  width: auto !important;
  margin: 0 !important;
}

header.page_header.sticky .header_inner_right {
  position: absolute !important;
  right: 48px !important;
  top: 31px !important;
  width: 347px !important;
  height: 41px !important;
  margin: 0 !important;
}

/* Compact and vertically centered sticky header. */
header.page_header.sticky,
header.page_header.sticky .header_top_bottom_holder,
header.page_header.sticky .header_bottom {
  height: 68px !important;
  min-height: 68px !important;
}

header.page_header.sticky .header_bottom .container,
header.page_header.sticky .header_bottom .container_inner,
header.page_header.sticky .header_menu_bottom,
header.page_header.sticky .header_menu_bottom_inner,
header.page_header.sticky .main_menu_header_inner_right_holder {
  height: 68px !important;
  min-height: 68px !important;
}

header.page_header.sticky .logo_wrapper {
  top: 0 !important;
  height: 68px !important;
}

header.page_header.sticky .q_logo {
  height: 68px !important;
}

header.page_header.sticky .q_logo img.normal {
  top: 0 !important;
  transform: translateY(24px) scale(0.55) !important;
  transform-origin: left top !important;
}

header.page_header.sticky nav.main_menu {
  top: 7px !important;
  height: 62px !important;
}

header.page_header.sticky .header_inner_right {
  top: 14px !important;
  height: 41px !important;
}

/* Final sticky menu text vertical alignment. */
header.page_header.sticky nav.main_menu,
header.page_header.sticky nav.main_menu > ul,
header.page_header.sticky nav.main_menu > ul > li,
header.page_header.sticky nav.main_menu > ul > li > a {
  height: 41px !important;
  line-height: 41px !important;
}

header.page_header.sticky nav.main_menu {
  top: 14px !important;
}

/* Final desktop entry and tight sticky header adjustments. */
header.page_header:not(.sticky) .q_logo img.normal,
header.page_header:not(.sticky) .q_logo img.light,
header.page_header:not(.sticky) .q_logo img.dark {
  top: -12px !important;
}

header.page_header.sticky,
header.page_header.sticky .header_top_bottom_holder,
header.page_header.sticky .header_bottom {
  height: 60px !important;
  min-height: 60px !important;
}

header.page_header.sticky .header_bottom .container,
header.page_header.sticky .header_bottom .container_inner,
header.page_header.sticky .header_menu_bottom,
header.page_header.sticky .header_menu_bottom_inner,
header.page_header.sticky .main_menu_header_inner_right_holder {
  height: 60px !important;
  min-height: 60px !important;
}

header.page_header.sticky .logo_wrapper,
header.page_header.sticky .q_logo {
  height: 60px !important;
}

header.page_header.sticky .q_logo img.normal {
  top: 0 !important;
  transform: translateY(28px) scale(0.55) !important;
  transform-origin: left top !important;
}

header.page_header.sticky nav.main_menu,
header.page_header.sticky nav.main_menu > ul,
header.page_header.sticky nav.main_menu > ul > li,
header.page_header.sticky nav.main_menu > ul > li > a {
  height: 41px !important;
  line-height: 41px !important;
}

header.page_header.sticky nav.main_menu,
header.page_header.sticky .header_inner_right {
  top: 9px !important;
}


/* Remove extra top padding from sticky menu bar. */
html body header.page_header.sticky .header_bottom {
  padding-top: 0 !important;
}

/* Codex final large desktop logo/menu alignment 2026-06-30 */
@media only screen and (min-width: 1001px) {
  html body header.page_header:not(.sticky) .q_logo img.normal,
  html body header.page_header:not(.sticky) .q_logo img.light,
  html body header.page_header:not(.sticky) .q_logo img.dark {
    top: -28px !important;
  }

  html body header.page_header:not(.sticky) nav.main_menu,
  html body header.page_header:not(.sticky) nav.main_menu > ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-content: flex-start !important;
  }

  html body header.page_header:not(.sticky) nav.main_menu > ul {
    gap: 20px !important;
  }
}