/* Breadcrumb styling (shared) */
:root {
  --breadcrumb-bg: #fff;
  --breadcrumb-border: #e5e8eb;
  --breadcrumb-shadow: 0 2px 4px rgba(0,0,0,0.06);
  --breadcrumb-shadow-scrolled: 0 3px 8px rgba(0,0,0,0.10);
  --breadcrumb-color: #212529; /* Bootstrap text body default */
}
@media (prefers-color-scheme: dark) {
  :root {
    --breadcrumb-bg: #1e1f22;
    --breadcrumb-border: #3a3d40;
    --breadcrumb-shadow: 0 2px 4px rgba(0,0,0,0.6);
    --breadcrumb-shadow-scrolled: 0 3px 8px rgba(0,0,0,0.7);
    --breadcrumb-color: #e1e3e5;
  }
}
.sticky-breadcrumb {
  position: sticky;
  top: 4.25rem; /* Distance chosen to sit just below the fixed top nav/search bar (nav height ~4rem + 0.25rem visual spacing) */
  z-index: 120; /* Higher than normal content (<100) but below overlays/modals (Bootstrap ~1050+) */
  background: var(--breadcrumb-bg);
  border-bottom: 1px solid var(--breadcrumb-border);
  box-shadow: var(--breadcrumb-shadow);
  margin: 0 0 1.25rem 0;
  padding: .85rem .6rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--breadcrumb-color);
}
@media (max-width: 992px) {
  .sticky-breadcrumb {
    top: 4.75rem; /* Extra offset for stacked mobile nav elements at < 992px */
    font-size: 1.02rem; /* Slightly smaller to prevent wrapping on narrow screens */
    padding: .75rem .55rem; /* Reduced vertical padding for compact mobile view */
  }
}
body.scrolled .sticky-breadcrumb { box-shadow: var(--breadcrumb-shadow-scrolled); }
.tio-breadcrumb-title {
  max-width: 46ch; /* Comfortable reading length; prevents overly long titles from pushing actions */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
.breadcrumb-sep { opacity: .55; }
