/**
 * Citrusbug reusable breadcrumbs
 * Light / dark variants — secondary to eyebrow, H1, CTA
 */

.cb-breadcrumb {
  width: 100%;
  max-width: 100%;
  margin: 0 0 var(--spacing-lg);
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm); /* 0.875rem ≈ 14px */
  line-height: 1.428; /* ~20px */
  overflow: hidden;
}

.cb-breadcrumb__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.cb-breadcrumb__list--desktop {
  display: flex;
}

.cb-breadcrumb__list--mobile {
  display: none;
}

.cb-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.cb-breadcrumb__item--current {
  flex-shrink: 1;
  min-width: 0;
}

.cb-breadcrumb__link,
.cb-breadcrumb__current {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  font-weight: var(--font-weight-normal, 400);
}

.cb-breadcrumb__current {
  font-weight: var(--font-weight-medium, 500);
  pointer-events: none;
}

.cb-breadcrumb__separator {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0 0.4rem;
  line-height: 1;
}

.cb-breadcrumb__link:hover,
.cb-breadcrumb__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cb-breadcrumb__link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Light backgrounds */
.cb-breadcrumb--light .cb-breadcrumb__link {
  color: var(--text-light, #4b5563);
}

.cb-breadcrumb--light .cb-breadcrumb__link:hover,
.cb-breadcrumb--light .cb-breadcrumb__link:focus-visible {
  color: var(--primary-color, #ed5c37);
}

.cb-breadcrumb--light .cb-breadcrumb__link:focus-visible {
  outline-color: var(--primary-color, #ed5c37);
}

.cb-breadcrumb--light .cb-breadcrumb__current {
  color: var(--text-secondary, #0f172a);
}

.cb-breadcrumb--light .cb-breadcrumb__separator {
  color: var(--text-gray, #9ca3af);
}

/* Dark backgrounds */
.cb-breadcrumb--dark .cb-breadcrumb__link {
  color: rgba(255, 255, 255, 0.72);
}

.cb-breadcrumb--dark .cb-breadcrumb__link:hover,
.cb-breadcrumb--dark .cb-breadcrumb__link:focus-visible {
  color: var(--primary-light, #ff8c5a);
}

.cb-breadcrumb--dark .cb-breadcrumb__link:focus-visible {
  outline-color: var(--primary-light, #ff8c5a);
}

.cb-breadcrumb--dark .cb-breadcrumb__current {
  color: var(--text-white, #ffffff);
}

.cb-breadcrumb--dark .cb-breadcrumb__separator {
  color: rgba(255, 255, 255, 0.45);
}

/* Blog / careers / contact hero — breadcrumb full-width top-left, title centered below */
.blog-hero.blog-hero--with-breadcrumb {
  padding: 2rem 0 3rem;
}

.blog-hero-breadcrumb {
  width: 100%;
  max-width: 100%;
  text-align: left;
  padding-bottom: 0;
  padding-top: 0;
}

.blog-hero-breadcrumb .cb-breadcrumb {
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

.blog-hero-breadcrumb + .blog-hero-inner,
.blog-hero-breadcrumb + .common-padding-28 .blog-hero-inner {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .blog-hero.blog-hero--with-breadcrumb {
    padding: 1.25rem 0 3rem;
  }
}

@media (max-width: 1100px) {
  .blog-hero.blog-hero--with-breadcrumb {
    padding: 1rem 0 2rem;
  }
}

@media (max-width: 991px) {
  .blog-hero.blog-hero--with-breadcrumb {
    padding: 1rem 0 3.5rem;
  }

  .blog-hero-breadcrumb .cb-breadcrumb {
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .blog-hero.blog-hero--with-breadcrumb {
    padding: 0.75rem 0 2rem;
  }
}

/* Home / healthcare hub hero — reduce top gap below fixed header */
.hero-home.hero-home--with-breadcrumb .hero-container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero-home.hero-home--with-breadcrumb .hero-content-home > .cb-breadcrumb:first-child {
  margin-bottom: var(--spacing-md);
}

@media (max-width: 991px) {
  .hero-home.hero-home--with-breadcrumb .hero-container {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-home.hero-home--with-breadcrumb .hero-container {
    padding-top: 0.75rem;
    padding-bottom: 2rem;
  }
}

/* Space after global header / into hero text column */
.hero-content-home > .cb-breadcrumb:first-child,
.hero-content-container > .cb-breadcrumb:first-child,
.hero-header-section__content > .cb-breadcrumb:first-child,
.blog-hero-breadcrumb > .cb-breadcrumb:first-child,
.blog-hero-inner > .cb-breadcrumb:first-child,
.hc-services-detail-hero-text > .cb-breadcrumb:first-child,
.hc-solutions-detail-hero-text > .cb-breadcrumb:first-child,
.post-header .cb-breadcrumb {
  margin-top: 0;
  margin-bottom: var(--spacing-lg); /* ~24px before eyebrow / H1 */
}

.post-header .cb-breadcrumb {
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.whitepaper-detail-hero-inner > .cb-breadcrumb:first-child {
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

@media (max-width: 767.98px) {
  .cb-breadcrumb {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
  }

  .cb-breadcrumb__list--desktop {
    display: none;
  }

  .cb-breadcrumb__list--mobile {
    display: flex;
  }

  .cb-breadcrumb__separator {
    margin: 0 0.3rem;
  }
}
