:root {
  --confidence-pink: #c6005d;
}

/* Hello bar pinned above logo: first row at top */
body.page-confidence #confidence-hello-bar {
  position: fixed;
  left: 0;
  right: 0;
  width: auto;
  top: 0 !important;
  background: var(--confidence-pink);
  color: #ffffff;
  font-family: inherit;
  box-sizing: border-box;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Brand strip sits below hello bar (--confidence-hello-bar-offset set after mount via JS, measured height) */
body.page-confidence:not(.hello-open) #confidence-site-header.fixed-top,
body.page-confidence:not(.hello-open) #site-header.fixed-top,
body.parentpage-confidence:not(.hello-open) #site-header.fixed-top {
  top: 0;
}

/* Push the full header stack (main nav + confidence toolbar) below the hello bar */
body.page-confidence.hello-open #site-header.fixed-top,
body.parentpage-confidence.hello-open #site-header.fixed-top,
body.page-confidence.hello-open #confidence-site-header.fixed-top {
  top: var(--confidence-hello-bar-offset, 0);
}

body.page-confidence #confidence-site-header.fixed-top,
body.page-confidence #site-header.fixed-top,
body.parentpage-confidence #site-header.fixed-top {
  z-index: 1059;
}

#confidence-hello-bar *,
#confidence-hello-bar *::before,
#confidence-hello-bar *::after {
  box-sizing: border-box;
}

#confidence-hello-bar .confidence-inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

#confidence-hello-bar .confidence-copy {
  padding-right: 42px;
  overflow-wrap: break-word;
}

#confidence-hello-bar .confidence-journal-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 44px;
  font-family: FuturaStd-Book, sans-serif;
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  line-height: 1.35;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#confidence-hello-bar .confidence-journal-link:hover {
  color: #ffffff;
}

#confidence-hello-bar .confidence-external-icon {
  flex-shrink: 0;
  color: #ffffff;
  vertical-align: middle;
}

#confidence-hello-bar .confidence-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#confidence-hello-bar .confidence-journal-link:focus {
  outline: none;
}

#confidence-hello-bar .confidence-journal-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

#confidence-hello-bar .confidence-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#confidence-hello-bar .confidence-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  #confidence-hello-bar .confidence-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 52px;
  }

  #confidence-hello-bar .confidence-copy {
    width: 100%;
    padding-right: 0;
  }

  #confidence-hello-bar .confidence-journal-link {
    width: 100%;
    white-space: normal;
    text-align: left;
  }

}
@media (max-width: 991.98px) {
  .offcanvas-collapse.open {
    z-index: 101;
  }
}

@media print {
  #confidence-hello-bar {
    display: none !important;
  }

  body.page-confidence,
  body.parentpage-confidence {
    padding-top: 0 !important;
  }
}
