.cb-team__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cb-team__filter.btn {
  border-radius: 999px;
}

.cb-team__filter.btn.active {
  color: #fff;
}

/* Sticky wrapper docks under existing sticky navbar/topbar via CSS var set by JS */
.cb-team__filters-sticky.is-sticky{
  position: sticky;
  top: var(--cb-team-sticky-top, 0px);
  z-index: 1000;
  margin-bottom: .5rem;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: .5rem 0;
  background: transparent !important;
  backdrop-filter: none !important;
}

.cb-team__section {
  padding: 2.75rem 0;
  scroll-margin-top: var(--cb-team-scroll-margin, 110px);
}

.cb-team__section + .cb-team__section {
  border-top: 1px solid rgba(0,0,0,.08);
}

.team-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .15s ease;
}

.team-card:hover {
  transform: translateY(-2px);
}

.team-card__media {
  background: rgba(0,0,0,.04);
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__role {
  letter-spacing: .04em;
}

.team-card__desc p:last-child {
  margin-bottom: 0;
}


/* ---------- Filter (no Bootstrap .btn to avoid global .btn::after arrows) ---------- */
.cb-team__filters--segmented{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  padding:.35rem;
  border-radius: 999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* ensure global theme arrows don't show up */
.cb-team__filter::after{ content: none !important; }
.cb-action::after{ content: none !important; }

.cb-team__filter{
  appearance:none;
  border:0;
  background: transparent;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  color: rgba(11,15,20,.88);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
  cursor: pointer;
}

.cb-team__filter:hover{
  background: rgba(0,0,0,.06);
}

.cb-team__filter.active{
  background: var(--bs-primary);
  transform: translateY(-1px);
  color: var(--bs-primary-color);
}

/* ---------- Contact actions: icon chips ---------- */
.cb-team__actions{
  margin-top: .25rem;
}

.cb-action{
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.10);
  color: rgba(11,15,20,.92);
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.cb-action:hover{
  background: rgba(0,0,0,.07);
  border-color: rgba(0,0,0,.16);
  transform: translateY(-1px);
}

.cb-action svg{
  width: 1.1rem;
  height: 1.1rem;
}


/* ---------- Responsive tweaks ---------- */
.cb-team__filters--segmented{
  max-width: 100%;
  overflow: hidden; /* prevent pill from visually spilling */
}

.cb-team__filters--segmented .cb-team__filter{
  white-space: nowrap;
}

/* On very small screens: disable sticky (takes too much vertical space) */
@media (max-width: 768.98px){
  .cb-team__filters-sticky.is-sticky{
    position: static !important;
    top: auto !important;
  }

  .cb-team__filters--segmented{
    border-radius: 1.25rem; /* slightly less extreme so it fits nicer */
    padding: .4rem;
    gap: .4rem;
  }

  .cb-team__filter{
    padding: .55rem .85rem;
    font-size: .92rem;
  }
}