/* Team Members public listing — v1.2
   Uses the same visual language as the Booking public team pages. */

.team-public-page {
  --team-primary: var(--bs-primary);
  --team-radius: var(--booking-card-radius, 1.25rem);
  --team-border: var(--bs-border-color);
  --team-surface: var(--bs-body-bg);
  --team-subtle: var(--bs-tertiary-bg);
  --team-shadow: var(--booking-card-shadow, 0 .75rem 2.25rem rgba(var(--bs-body-color-rgb), .08));
  width: 100%;
  min-height: 70vh;
  padding: clamp(2rem, 4vw, 3.25rem) max(1rem, calc((100% - 78rem) / 2)) 3.5rem;
  background: linear-gradient(180deg, var(--team-subtle) 0, var(--bs-body-bg) 24rem);
}

.team-public-header { margin-bottom: 1.5rem; }

.team-public-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .6rem;
  color: var(--team-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.team-public-header h1 {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.team-public-header p {
  max-width: 48rem;
  margin: .4rem 0 0;
  color: var(--bs-secondary-color);
  font-size: .875rem;
  line-height: 1.6;
}

.team-public-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding: .55rem;
  background: var(--team-surface);
  border: 1px solid var(--team-border);
  border-radius: 1rem;
  box-shadow: 0 .4rem 1.5rem rgba(var(--bs-body-color-rgb), .045);
}

.team-public-filters {
  display: flex;
  align-items: center;
  gap: .25rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.team-public-filters::-webkit-scrollbar { display: none; }

.team-public-chip {
  position: relative;
  display: inline-flex;
  min-height: 2.35rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: .45rem .8rem;
  color: var(--bs-secondary-color);
  border: 1px solid transparent;
  border-radius: .7rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.team-public-chip:hover { color: var(--bs-body-color); background: var(--team-subtle); }

.team-public-chip.is-active {
  color: var(--team-primary);
  background: rgba(var(--bs-primary-rgb), .09);
  border-color: rgba(var(--bs-primary-rgb), .2);
  font-weight: 650;
}

.team-public-chip.is-active::after {
  position: absolute;
  right: .7rem;
  bottom: -.57rem;
  left: .7rem;
  height: 2px;
  background: var(--team-primary);
  border-radius: 50rem;
  content: "";
}

.team-public-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: .2rem;
  padding: .2rem;
  background: var(--team-subtle);
  border: 1px solid var(--team-border);
  border-radius: .65rem;
}

.team-public-toggle {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  color: var(--bs-secondary-color);
  border: 1px solid transparent;
  border-radius: .48rem;
  text-decoration: none;
}

.team-public-toggle:hover { color: var(--bs-body-color); background: var(--team-surface); }

.team-public-toggle.is-active {
  color: var(--team-primary);
  background: var(--team-surface);
  border-color: rgba(var(--bs-primary-rgb), .22);
  box-shadow: 0 .2rem .65rem rgba(var(--bs-body-color-rgb), .07);
}

.team-public-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--team-surface);
  border: 1px solid var(--team-border);
  border-radius: var(--team-radius);
  box-shadow: 0 .45rem 1.5rem rgba(var(--bs-body-color-rgb), .055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.team-public-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8.65rem;
  background:
    radial-gradient(circle at 50% 25%, rgba(var(--bs-primary-rgb), .14), transparent 8rem),
    linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08), rgba(var(--bs-primary-rgb), .015));
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), .1);
  content: "";
}

.team-public-card:hover {
  border-color: rgba(var(--bs-primary-rgb), .35);
  box-shadow: var(--team-shadow);
  transform: translateY(-3px);
}

.team-public-photo-link {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  color: inherit;
  text-decoration: none;
}

.team-public-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 7rem;
  height: 7rem;
  flex: 0 0 auto;
  margin: 1.5rem auto -1.15rem;
  object-fit: cover;
  background: var(--team-subtle);
  border: 4px solid var(--team-surface);
  border-radius: 50%;
  box-shadow: 0 .5rem 1.25rem rgba(var(--bs-body-color-rgb), .13);
}

.team-public-photo-link .team-public-photo { margin: 0 0 -1.15rem; }

.team-public-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  font-size: 2.2rem;
}

.team-public-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.35rem 1.35rem;
  text-align: center;
}

.team-public-body h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.team-public-body h2 a { color: inherit; text-decoration: none; }
.team-public-body h2 a:hover { color: var(--team-primary); }

.team-public-title {
  margin: .3rem 0 0;
  color: var(--team-primary);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.45;
}

.team-public-dept {
  display: inline-flex;
  margin: .55rem 0 0;
  padding: .16rem .48rem;
  color: var(--bs-secondary-color);
  background: var(--team-subtle);
  border: 1px solid var(--team-border);
  border-radius: 50rem;
  font-size: .63rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.team-public-bio {
  display: -webkit-box;
  margin: 1rem 0 0;
  overflow: hidden;
  color: var(--bs-secondary-color);
  font-size: .825rem;
  line-height: 1.65;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.team-public-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
}

.team-public-social a {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--bs-secondary-color);
  background: var(--team-subtle);
  border: 1px solid var(--team-border);
  border-radius: .55rem;
  font-size: .8rem;
  text-decoration: none;
}

.team-public-social a:hover {
  color: var(--team-primary);
  background: rgba(var(--bs-primary-rgb), .08);
  border-color: rgba(var(--bs-primary-rgb), .3);
}

.team-public-more {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  margin-top: 1rem;
  color: var(--team-primary);
  background: transparent;
  border: 1px solid rgba(var(--bs-primary-rgb), .35);
  border-radius: .75rem;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
}

.team-public-more:hover { color: #fff; background: var(--team-primary); border-color: var(--team-primary); }
.team-public-more i { transition: transform 160ms ease; }
.team-public-more:hover i { transform: translateX(2px); }

.team-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
}

.team-public-list { display: grid; gap: .75rem; }

.team-public-list .team-public-card {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  min-height: 10rem;
}

.team-public-list .team-public-card::before {
  inset: 0 auto 0 0;
  width: 8.5rem;
  height: auto;
  border-right: 1px solid rgba(var(--bs-primary-rgb), .1);
  border-bottom: 0;
}

.team-public-list .team-public-photo-link { align-items: center; padding: 0; }

.team-public-list .team-public-photo {
  width: 6rem;
  height: 6rem;
  align-self: center;
  margin: 0 auto;
}

.team-public-list .team-public-photo-link .team-public-photo { margin: 0; }

.team-public-list .team-public-body {
  grid-column: 2;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  text-align: left;
}

.team-public-list .team-public-bio {
  max-width: 60rem;
  margin-top: .7rem;
  -webkit-line-clamp: 2;
}

.team-public-list .team-public-social { justify-content: flex-start; margin-top: .6rem; padding-top: 0; }

.team-public-list .team-public-more {
  width: auto;
  min-height: auto;
  margin-top: .65rem;
  padding: 0;
  border: 0;
}

.team-public-list .team-public-more:hover { color: var(--team-primary); background: transparent; }

.team-public-empty {
  display: flex;
  min-height: 14rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .65rem;
  margin: 0;
  color: var(--bs-secondary-color);
  background: var(--team-surface);
  border: 1px dashed var(--team-border);
  border-radius: var(--team-radius);
  font-size: .875rem;
}

.team-public-empty i { color: var(--team-primary); font-size: 1.8rem; }

@media (max-width: 767.98px) {
  .team-public-page { padding-top: 2rem; }
  .team-public-photo { width: 6.5rem; height: 6.5rem; }
}

@media (max-width: 575.98px) {
  .team-public-toolbar { align-items: stretch; flex-direction: column; }
  .team-public-view-toggle { align-self: flex-end; }
  .team-public-list .team-public-card { grid-template-columns: 6.75rem minmax(0, 1fr); }
  .team-public-list .team-public-card::before { width: 6.75rem; }
  .team-public-list .team-public-photo { width: 5rem; height: 5rem; }
  .team-public-list .team-public-body { padding: .9rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .team-public-card,
  .team-public-more i { transition: none; }
  .team-public-card:hover { transform: none; }
}

/* ======================================================================
   Public member profile
   ====================================================================== */

.team-profile-page {
  --team-primary: var(--bs-primary);
  --team-radius: var(--booking-card-radius, 1.25rem);
  --team-border: var(--bs-border-color);
  --team-surface: var(--bs-body-bg);
  --team-subtle: var(--bs-tertiary-bg);
  --team-shadow: var(--booking-card-shadow, 0 .75rem 2.25rem rgba(var(--bs-body-color-rgb), .08));
  width: 100%;
  min-height: 70vh;
  padding: 1.4rem max(1rem, calc((100% - 78rem) / 2)) 3.5rem;
  background: linear-gradient(180deg, var(--team-subtle) 0, var(--bs-body-bg) 25rem);
}

.team-profile-crumbs {
  margin-bottom: 1rem;
}

.team-profile-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--team-primary);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}

.team-profile-crumbs a:hover { text-decoration: underline; }

.team-profile-cover {
  min-height: clamp(9rem, 22vw, 15rem);
  background-color: var(--team-subtle);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--team-border);
  border-bottom: 0;
  border-radius: var(--team-radius) var(--team-radius) 0 0;
}

.team-profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 82% 20%, rgba(var(--bs-primary-rgb), .15), transparent 21rem),
    linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08), rgba(var(--bs-primary-rgb), .015)),
    var(--team-surface);
  border: 1px solid var(--team-border);
  border-radius: var(--team-radius);
  box-shadow: var(--team-shadow);
}

.team-profile-cover + .team-profile-header {
  border-radius: 0 0 var(--team-radius) var(--team-radius);
}

.team-profile-header .team-profile-photo {
  width: clamp(7rem, 12vw, 9rem);
  height: clamp(7rem, 12vw, 9rem);
  margin: 0;
  border: 4px solid var(--team-surface);
  border-radius: 50%;
  box-shadow: 0 .75rem 2rem rgba(var(--bs-body-color-rgb), .15);
}

.team-profile-cover + .team-profile-header .team-profile-photo {
  margin-top: clamp(-5.5rem, -7vw, -3.5rem);
}

.team-profile-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.team-profile-title {
  margin: .35rem 0 0;
  color: var(--bs-secondary-color);
  font-size: clamp(.95rem, 2vw, 1.1rem);
}

.team-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .8rem 0 0;
}

.team-profile-meta .team-public-chip {
  min-height: auto;
  padding: .28rem .65rem;
  color: var(--team-primary);
  background: var(--bs-primary-bg-subtle);
  border-color: var(--bs-primary-border-subtle);
}

.team-profile-years {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--bs-secondary-color);
  font-size: .75rem;
  font-weight: 600;
}

.team-profile-years i { color: var(--team-primary); }

.team-profile-header .team-public-social {
  justify-content: flex-start;
  margin-top: .8rem;
  padding-top: 0;
}

.team-profile-book {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding-inline: 1.1rem;
  border-radius: .75rem;
  font-size: .8rem;
  font-weight: 650;
}

.team-profile-quote {
  position: relative;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem 1rem 3.35rem;
  color: var(--bs-body-color);
  background: var(--team-surface);
  border: 1px solid var(--team-border);
  border-left: 3px solid var(--team-primary);
  border-radius: .9rem;
  box-shadow: 0 .3rem 1rem rgba(var(--bs-body-color-rgb), .035);
  font-size: .9rem;
  font-style: italic;
  line-height: 1.65;
}

.team-profile-quote::before {
  position: absolute;
  top: .8rem;
  left: 1rem;
  color: rgba(var(--bs-primary-rgb), .35);
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-style: normal;
  line-height: 1;
  content: "“";
}

.team-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  align-items: start;
  gap: 1rem;
}

.team-profile-main,
.team-profile-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.team-profile-side {
  position: sticky;
  top: 1rem;
}

.team-profile-section {
  min-width: 0;
  padding: 1.2rem 1.3rem;
  background: var(--team-surface);
  border: 1px solid var(--team-border);
  border-radius: var(--team-radius);
  box-shadow: 0 .45rem 1.5rem rgba(var(--bs-body-color-rgb), .045);
}

.team-profile-section > h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .9rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--team-border);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

.team-profile-section > h2::before {
  width: .22rem;
  height: 1.05rem;
  background: var(--team-primary);
  border-radius: 50rem;
  content: "";
}

.team-profile-rich {
  color: var(--bs-secondary-color);
  font-size: .85rem;
  line-height: 1.72;
}

.team-profile-rich > :last-child { margin-bottom: 0; }
.team-profile-rich h2 { margin: 1.35rem 0 .6rem; color: var(--bs-body-color); font-size: 1.1rem; }
.team-profile-rich h3 { margin: 1.2rem 0 .5rem; color: var(--bs-body-color); font-size: .95rem; }
.team-profile-rich ul,
.team-profile-rich ol { padding-left: 1.2rem; }
.team-profile-rich li { margin-bottom: .3rem; }
.team-profile-rich a { color: var(--team-primary); }
.team-profile-rich code { padding: .12rem .35rem; background: var(--team-subtle); border-radius: .35rem; }
.team-profile-rich blockquote {
  margin: 1rem 0;
  padding: .7rem .9rem;
  color: var(--bs-body-color);
  background: var(--team-subtle);
  border-left: 3px solid var(--team-primary);
}

.team-profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .7rem;
}

.team-profile-card {
  padding: .85rem;
  background: var(--team-subtle);
  border: 1px solid var(--team-border);
  border-radius: .8rem;
}

.team-profile-card h3 { margin: 0; font-size: .85rem; font-weight: 700; }
.team-profile-card p { margin: .35rem 0 0; color: var(--bs-secondary-color); font-size: .77rem; line-height: 1.55; }

.team-profile-list,
.team-profile-contact,
.team-profile-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-profile-list { display: grid; gap: .65rem; }

.team-profile-list li {
  color: var(--bs-secondary-color);
  font-size: .78rem;
  line-height: 1.55;
}

.team-profile-list strong { color: var(--bs-body-color); font-weight: 650; }

.team-profile-dates {
  color: var(--bs-secondary-color);
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
}

.team-profile-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-left: .35rem;
  border-left: 1px solid var(--team-border);
}

.team-profile-timeline li {
  position: relative;
  padding: 0 0 1rem 1.2rem;
  font-size: .8rem;
}

.team-profile-timeline li:last-child { padding-bottom: 0; }

.team-profile-timeline li::before {
  position: absolute;
  top: .25rem;
  left: -.36rem;
  width: .68rem;
  height: .68rem;
  background: var(--team-surface);
  border: 2px solid var(--team-primary);
  border-radius: 50%;
  content: "";
}

.team-profile-timeline strong { display: block; font-weight: 650; }
.team-profile-timeline .team-profile-dates { display: block; margin-top: .15rem; }
.team-profile-timeline p { margin: .3rem 0 0; color: var(--bs-secondary-color); line-height: 1.55; }

.team-profile-section .ratio {
  overflow: hidden;
  border: 1px solid var(--team-border);
  border-radius: .8rem;
}

.team-profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: .55rem;
}

.team-profile-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--team-subtle);
  border: 1px solid var(--team-border);
  border-radius: .7rem;
}

.team-profile-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.team-profile-gallery a:hover img { transform: scale(1.035); }

.team-profile-contact { display: grid; gap: .7rem; }

.team-profile-contact li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  align-items: start;
  gap: .5rem;
  color: var(--bs-secondary-color);
  font-size: .78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.team-profile-contact i {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: var(--team-primary);
  background: rgba(var(--bs-primary-rgb), .09);
  border-radius: .5rem;
}

.team-profile-contact a,
.team-profile-docs a { color: inherit; text-decoration: none; }
.team-profile-contact a:hover,
.team-profile-docs a:hover { color: var(--team-primary); }

.team-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
}

.team-profile-chips .team-public-chip {
  min-height: auto;
  padding: .25rem .55rem;
  background: var(--team-subtle);
  border-color: var(--team-border);
  font-size: .68rem;
}

.team-profile-docs i { margin-right: .25rem; color: var(--team-primary); }

@media (max-width: 991.98px) {
  .team-profile-layout { grid-template-columns: 1fr; }
  .team-profile-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .team-profile-header { align-items: start; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem; }
  .team-profile-header .team-profile-photo { width: 6.5rem; height: 6.5rem; }
  .team-profile-header h1 { font-size: clamp(1.45rem, 6vw, 2rem); }
}

@media (max-width: 575.98px) {
  .team-profile-page { padding-inline: .75rem; }
  .team-profile-cover { min-height: 8rem; }
  .team-profile-header { grid-template-columns: 1fr; text-align: center; }
  .team-profile-header .team-profile-photo { margin-inline: auto; }
  .team-profile-cover + .team-profile-header .team-profile-photo { margin-top: -4.25rem; }
  .team-profile-meta,
  .team-profile-header .team-public-social { justify-content: center; }
  .team-profile-book { width: 100%; }
  .team-profile-layout,
  .team-profile-main,
  .team-profile-side { display: grid; grid-template-columns: 1fr; }
  .team-profile-section { padding: 1rem; }
  .team-profile-quote { padding-left: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .team-profile-gallery img { transition: none; }
}

/* Profile refinement pass — v1.4 ------------------------------------- */
.team-profile-cover {
  position: relative;
  box-shadow: inset 0 -4rem 5rem rgba(0, 0, 0, .16);
}

.team-profile-cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 4rem;
  background: linear-gradient(180deg, transparent, rgba(var(--bs-body-bg-rgb), .16));
  content: "";
  pointer-events: none;
}

.team-profile-header > div {
  min-width: 0;
}

.team-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: .9rem;
}

.team-profile-actions .team-public-social,
.team-profile-actions .team-profile-book {
  margin-top: 0;
}

.team-profile-actions .team-profile-book {
  flex: 0 0 auto;
}

.team-profile-main > .team-profile-section {
  scroll-margin-top: 1rem;
}

.team-profile-main > .team-profile-section:hover {
  border-color: color-mix(in srgb, var(--team-primary) 22%, var(--team-border));
}

.team-profile-side .team-profile-section {
  padding: 1rem 1.05rem;
  box-shadow: 0 .3rem 1rem rgba(var(--bs-body-color-rgb), .035);
}

.team-profile-side .team-profile-section > h2 {
  margin-bottom: .75rem;
  padding-bottom: .6rem;
  font-size: .95rem;
}

.team-profile-rich > h2:first-child,
.team-profile-rich > h3:first-child {
  margin-top: 0;
}

.team-profile-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-profile-card {
  position: relative;
  overflow: hidden;
  padding: .9rem .95rem .9rem 1rem;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.team-profile-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(var(--bs-primary-rgb), .55);
  content: "";
}

.team-profile-card:hover {
  background: color-mix(in srgb, var(--team-primary) 4%, var(--team-subtle));
  border-color: rgba(var(--bs-primary-rgb), .28);
  transform: translateY(-1px);
}

.team-profile-main .team-profile-list li {
  position: relative;
  padding-left: 1.35rem;
}

.team-profile-main .team-profile-list li::before {
  position: absolute;
  top: .15rem;
  left: 0;
  color: var(--team-primary);
  font-family: "bootstrap-icons";
  font-size: .78rem;
  content: "\f26e";
}

.team-profile-timeline strong {
  color: var(--bs-body-color);
}

.team-profile-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-profile-gallery a {
  box-shadow: 0 .2rem .65rem rgba(var(--bs-body-color-rgb), .045);
}

.team-profile-docs li {
  padding: 0 !important;
}

.team-profile-docs li::before {
  display: none;
}

.team-profile-docs a {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .65rem;
  background: var(--team-subtle);
  border: 1px solid var(--team-border);
  border-radius: .6rem;
}

.team-profile-docs a:hover {
  background: rgba(var(--bs-primary-rgb), .06);
  border-color: rgba(var(--bs-primary-rgb), .28);
}

@media (max-width: 767.98px) {
  .team-profile-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-profile-cards,
  .team-profile-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .team-profile-actions {
    align-items: stretch;
  }

  .team-profile-actions .team-public-social {
    justify-content: center;
  }

  .team-profile-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-profile-card { transition: none; }
  .team-profile-card:hover { transform: none; }
}
