/* CP-HEADER-MODERN-v1 — Calibration-only navigation and title polish. */
.cp-modern.cp-header-modern #masthead {
  background: rgba(255, 255, 255, .97) !important;
  border-bottom: 1px solid #d9e5ef !important;
  box-shadow: 0 5px 22px rgba(16, 44, 70, .055) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* Header visibility follows Astra's own JS state (body.ast-header-break-point /
   body.ast-desktop), so the visible header and Astra's menu behavior can never
   disagree at any scrollbar width or window size. The plain media query only
   covers the no-JavaScript fallback and loses to the body-class rules. */
.cp-modern.cp-header-modern #masthead #ast-desktop-header { display: block !important; }
.cp-modern.cp-header-modern #masthead #ast-mobile-header { display: none !important; }
@media (max-width: 1101.99px) {
  .cp-modern.cp-header-modern #masthead #ast-desktop-header { display: none !important; }
  .cp-modern.cp-header-modern #masthead #ast-mobile-header { display: block !important; }
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-desktop-header { display: none !important; }
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header { display: block !important; }
body.ast-desktop.cp-modern.cp-header-modern #masthead #ast-desktop-header { display: block !important; }
body.ast-desktop.cp-modern.cp-header-modern #masthead #ast-mobile-header { display: none !important; }
.cp-modern.cp-header-modern #masthead .site-primary-header-wrap {
  max-width: 1440px;
  padding-left: 28px;
  padding-right: 28px;
}
.cp-modern.cp-header-modern #masthead .ast-primary-header-bar {
  padding-top: 9px;
  padding-bottom: 9px;
  min-height: 100px;
}
.cp-modern.cp-header-modern #masthead .site-logo-img { padding-right: 0; }
.cp-modern.cp-header-modern #masthead .custom-logo-link { display: inline-flex; align-items: center; }
.cp-modern.cp-header-modern #masthead .site-logo-img img.custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: 290px !important;
  max-height: 82px !important;
  display: block;
}
.cp-modern.cp-header-modern #masthead .ast-builder-grid-row { column-gap: 26px; }
.cp-modern.cp-header-modern #masthead .site-header-section { min-width: 0; }
.cp-modern.cp-header-modern #masthead .main-header-menu {
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 0;
}
.cp-modern.cp-header-modern #masthead .main-header-menu .menu-link,
.cp-modern.cp-header-modern #masthead .main-navigation .cp-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'CP Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -.025em;
  min-height: 46px;
  padding: 10px 10px !important;
  white-space: nowrap;
  text-decoration: none;
  color: #102c46 !important;
  transition: color .16s ease, background-color .16s ease;
}
.cp-modern.cp-header-modern #masthead .main-header-menu .menu-link:hover,
.cp-modern.cp-header-modern #masthead .main-navigation .cp-signin-btn:hover,
.cp-modern.cp-header-modern #masthead .main-header-menu .current-menu-item .menu-link {
  color: #1469ad !important;
}
.cp-modern.cp-header-modern #masthead .main-header-menu .menu-item-126 { display: none !important; }
.cp-modern.cp-header-modern #masthead .cp-cart-menu-item {
  border-left: 1px solid #d9e3ec;
  padding-left: 8px;
  margin-left: 8px;
}
.cp-modern.cp-header-modern #masthead .main-header-menu .cp-cart-link,
.cp-modern.cp-header-modern #masthead .main-navigation .cp-signin-btn {
  font-size: 17px !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.cp-modern.cp-header-modern #masthead .main-header-menu .cp-cart-count { font: inherit; }
.cp-modern.cp-header-modern #masthead .cpm-search-menu-item { margin-left: 5px !important; }
.cp-modern.cp-header-modern #masthead .main-header-menu .cpm-search-launcher {
  width: auto;
  height: auto;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}
.cp-modern.cp-header-modern .cpm-announcement {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  min-height: 34px;
  padding: 7px 20px;
}

/* Section titles get a modest size/weight lift; hero and product artwork stay untouched. */
.cp-modern.cp-header-modern .entry-content .cpm-home .cpm-section-heading h2 {
  font-size: clamp(30px, 2.95vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.18;
  margin-left: auto !important;
  margin-right: auto !important;
}
.cp-modern.cp-header-modern .entry-content .cpm-home .cpm-proof-copy h2,
.cp-modern.cp-header-modern .entry-content .cpm-home .cpm-research-copy h2 {
  font-size: clamp(32px, 3.1vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.16;
}
.cp-modern.cp-header-modern .entry-content .cpm-home .cpm-support-band h2 {
  font-size: clamp(27px, 2.35vw, 36px) !important;
  font-weight: 700 !important;
}
.cp-modern.cp-header-modern .entry-content .cp-page-hero h1 {
  font-size: clamp(38px, 4.05vw, 60px) !important;
  font-weight: 700 !important;
  line-height: 1.15;
}
.cp-modern.cp-header-modern .entry-content .cp-section .cp-section-head h2 {
  font-size: clamp(27px, 2.45vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

/* Compact desktop pass while the bold row still fits; applies above the mobile
   switch and below the wide layout, independent of JS state. */
@media (max-width: 1279px) {
  .cp-modern.cp-header-modern #masthead .site-primary-header-wrap { padding-left: 22px; padding-right: 22px; }
  .cp-modern.cp-header-modern #masthead .ast-builder-grid-row { column-gap: 20px; }
  .cp-modern.cp-header-modern #masthead .site-logo-img img.custom-logo { max-height: 72px !important; max-width: 238px !important; }
  .cp-modern.cp-header-modern #masthead .main-header-menu .menu-link,
  .cp-modern.cp-header-modern #masthead .main-navigation .cp-signin-btn { font-size: 16px !important; padding-left: 8px !important; padding-right: 8px !important; }
  .cp-modern.cp-header-modern #masthead .main-header-menu .cp-cart-link,
  .cp-modern.cp-header-modern #masthead .main-navigation .cp-signin-btn { font-size: 15px !important; }
  .cp-modern.cp-header-modern #masthead .cp-cart-menu-item { margin-left: 6px; padding-left: 6px; }
}

/* Mobile header layout applies exactly when Astra's JS switches to mobile.
   The theme's own responsive CSS already covers the no-JavaScript fallback. */
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .ast-primary-header-bar {
  min-height: 86px;
  padding: 10px 22px;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .ast-builder-grid-row {
  padding-left: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead .site-logo-img img.custom-logo {
  max-height: 66px !important;
  max-width: 250px !important;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead .menu-toggle {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 9px !important;
  border: 1px solid #cbd9e4 !important;
  border-radius: 10px !important;
  background: #f4f8fb !important;
  color: #102c46 !important;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead .menu-toggle svg { width: 24px; height: 24px; }
body.ast-header-break-point.cp-modern.cp-header-modern #masthead .ast-mobile-header-content {
  background: #fff !important;
  border-top: 1px solid #e4ecf2;
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-hf-mobile-menu,
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-hf-mobile-menu .main-navigation { width: 100%; }
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .main-header-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap !important;
  padding: 10px 22px 16px;
  margin: 0;
  background: #fff !important;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .main-header-menu li {
  width: 100%;
  margin: 0 !important;
  padding: 0;
  text-align: left;
  border: 0;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .main-header-menu .menu-link,
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .main-navigation .cp-signin-btn {
  display: flex;
  width: 100%;
  min-height: 49px;
  height: auto;
  justify-content: flex-start;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  padding: 11px 12px !important;
  background: transparent !important;
  white-space: normal;
  border: 0 !important;
  border-radius: 8px !important;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .main-header-menu .current-menu-item .menu-link,
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .main-header-menu .menu-link:hover {
  background: #edf4fa !important;
  color: #1469ad !important;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .cp-cart-menu-item {
  border-top: 1px solid #e3ebf1;
  margin-top: 5px !important;
  padding-top: 5px;
}
body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .cpm-search-menu-item {
  display: block;
  margin: 0 !important;
}
@media (max-width: 600px) {
  .cp-modern.cp-header-modern .cpm-announcement { font-size: 10px; gap: 4px 14px; padding: 7px 12px; }
  body.ast-header-break-point.cp-modern.cp-header-modern #masthead .ast-primary-header-bar { min-height: 80px; padding: 10px 18px; }
  body.ast-header-break-point.cp-modern.cp-header-modern #masthead .site-logo-img img.custom-logo { max-height: 58px !important; max-width: min(218px, calc(100vw - 106px)) !important; }
  body.ast-header-break-point.cp-modern.cp-header-modern #masthead #ast-mobile-header .main-header-menu { padding: 8px 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-modern.cp-header-modern #masthead .menu-link,
  .cp-modern.cp-header-modern #masthead .cp-signin-btn { transition: none; }
}
