/* Team member professional profile — v1.0
   Loaded after public.css so profile-specific presentation can evolve
   without changing the public grid/list directory. */

.team-profile-page {
  --profile-measure: 46rem;
  --profile-side: 19rem;
  padding-top: 1.15rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--team-subtle) 72%, transparent) 0, transparent 31rem),
    var(--bs-body-bg);
}

.team-profile-page .team-profile-crumbs {
  margin: 0 0 .9rem;
}

.team-profile-page .team-profile-crumbs a {
  min-height: 2.25rem;
  padding: .4rem .65rem;
  color: var(--bs-secondary-color);
  border: 1px solid transparent;
  border-radius: .6rem;
}

.team-profile-page .team-profile-crumbs a:hover {
  color: var(--team-primary);
  background: var(--team-surface);
  border-color: var(--team-border);
  text-decoration: none;
}

/* Identity panel ------------------------------------------------------ */

.team-profile-page .team-profile-cover {
  min-height: clamp(11rem, 25vw, 17rem);
  border: 1px solid var(--team-border);
  border-bottom: 0;
  border-radius: var(--team-radius) var(--team-radius) 0 0;
  box-shadow: inset 0 -6rem 7rem rgba(0, 0, 0, .22);
}

.team-profile-page .team-profile-header,
.team-profile-page .team-profile-cover + .team-profile-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background:
    radial-gradient(circle at 88% 5%, rgba(var(--bs-primary-rgb), .13), transparent 20rem),
    var(--team-surface);
  border: 1px solid var(--team-border);
  border-radius: var(--team-radius);
  box-shadow: var(--team-shadow);
}

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

.team-profile-page .team-profile-header .team-profile-photo,
.team-profile-page .team-profile-cover + .team-profile-header .team-profile-photo {
  width: clamp(7.5rem, 12vw, 9.5rem);
  height: clamp(7.5rem, 12vw, 9.5rem);
  margin: 0;
  object-fit: cover;
  background: var(--team-subtle);
  border: 4px solid var(--team-surface);
  border-radius: 50%;
  box-shadow: 0 .75rem 2rem rgba(var(--bs-body-color-rgb), .16);
}

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

.team-profile-page .team-profile-eyebrow {
  margin-bottom: .55rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.team-profile-page .team-profile-header h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -.045em;
}

.team-profile-page .team-profile-title {
  max-width: 42rem;
  margin-top: .45rem;
  color: var(--bs-body-color);
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  font-weight: 550;
  line-height: 1.45;
}

.team-profile-page .team-profile-meta {
  gap: .5rem .75rem;
  margin-top: .8rem;
}

.team-profile-page .team-profile-meta .team-public-chip {
  min-height: 1.9rem;
  padding: .28rem .65rem;
  border-radius: 50rem;
  font-size: .7rem;
}

.team-profile-page .team-profile-years {
  font-size: .74rem;
}

.team-profile-page .team-profile-header .team-public-social {
  gap: .35rem;
  margin-top: .8rem;
}

.team-profile-page .team-profile-header .team-public-social a {
  width: 2rem;
  height: 2rem;
  background: var(--team-subtle);
  border: 1px solid var(--team-border);
  border-radius: .55rem;
}

.team-profile-page .team-profile-header .team-public-social a:hover {
  color: #fff;
  background: var(--team-primary);
  border-color: var(--team-primary);
}

.team-profile-page .team-profile-header-action {
  align-self: end;
  padding-bottom: .1rem;
}

.team-profile-page .team-profile-book {
  min-height: 2.8rem;
  gap: .45rem;
  margin: 0;
  padding: .65rem 1rem;
  border-radius: .7rem;
  box-shadow: 0 .5rem 1rem rgba(var(--bs-primary-rgb), .18);
}

/* Compact in-page navigation ---------------------------------------- */

.team-profile-page .team-profile-local-nav {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 1rem 0 1.25rem;
  padding: .45rem .55rem;
  background: var(--team-surface);
  border: 1px solid var(--team-border);
  border-radius: .85rem;
  box-shadow: 0 .25rem .9rem rgba(var(--bs-body-color-rgb), .035);
}

.team-profile-page .team-profile-local-label {
  flex: 0 0 auto;
  padding-left: .35rem;
  color: var(--bs-secondary-color);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-profile-page .team-profile-local-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.team-profile-page .team-profile-local-links::-webkit-scrollbar { display: none; }

.team-profile-page .team-profile-local-links a {
  flex: 0 0 auto;
  padding: .42rem .65rem;
  color: var(--bs-secondary-color);
  border-radius: .5rem;
  font-size: .74rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.team-profile-page .team-profile-local-links a:hover {
  color: var(--team-primary);
  background: rgba(var(--bs-primary-rgb), .08);
}

.team-profile-page .team-profile-quote {
  max-width: 58rem;
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.3rem 1.15rem 3.6rem;
  background: color-mix(in srgb, var(--team-primary) 5%, var(--team-surface));
  border-color: color-mix(in srgb, var(--team-primary) 24%, var(--team-border));
  border-left-width: 4px;
  border-radius: .8rem;
  box-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

/* Editorial biography layout ---------------------------------------- */

.team-profile-page .team-profile-layout {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, var(--profile-side));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.team-profile-page .team-profile-main {
  display: block;
  overflow: hidden;
  min-width: 0;
  background: var(--team-surface);
  border: 1px solid var(--team-border);
  border-radius: var(--team-radius);
  box-shadow: 0 .55rem 1.8rem rgba(var(--bs-body-color-rgb), .045);
}

.team-profile-page .team-profile-main > .team-profile-section {
  scroll-margin-top: 1rem;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--team-border);
  border-radius: 0;
  box-shadow: none;
}

.team-profile-page .team-profile-main > .team-profile-section:last-child {
  border-bottom: 0;
}

.team-profile-page .team-profile-main > .team-profile-section:hover {
  border-color: var(--team-border);
}

.team-profile-page .team-profile-section > h2 {
  gap: .6rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 720;
  letter-spacing: -.025em;
}

.team-profile-page .team-profile-section > h2::before {
  width: .23rem;
  height: 1.15rem;
}

.team-profile-page .team-profile-rich {
  max-width: var(--profile-measure);
  color: color-mix(in srgb, var(--bs-body-color) 78%, var(--bs-secondary-color));
  font-size: .9rem;
  line-height: 1.78;
}

.team-profile-page .team-profile-section-lead .team-profile-rich {
  font-size: .94rem;
}

.team-profile-page .team-profile-section-lead .team-profile-rich > p:first-child {
  color: var(--bs-body-color);
  font-size: 1.02rem;
  line-height: 1.75;
}

.team-profile-page .team-profile-rich p { margin: 0 0 1rem; }

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

.team-profile-page .team-profile-card {
  min-height: 100%;
  padding: 1rem 1rem 1rem 1.1rem;
  background: var(--team-subtle);
  border-color: var(--team-border);
  border-radius: .7rem;
}

.team-profile-page .team-profile-card h3 {
  font-size: .86rem;
}

.team-profile-page .team-profile-card p {
  font-size: .78rem;
  line-height: 1.6;
}

.team-profile-page .team-profile-main .team-profile-list {
  gap: .8rem;
}

.team-profile-page .team-profile-main .team-profile-list li {
  padding: .75rem .8rem .75rem 2.25rem;
  color: var(--bs-secondary-color);
  background: var(--team-subtle);
  border: 1px solid var(--team-border);
  border-radius: .65rem;
  font-size: .8rem;
}

.team-profile-page .team-profile-main .team-profile-list li::before {
  top: .75rem;
  left: .85rem;
}

.team-profile-page .team-profile-timeline {
  margin-left: .45rem;
}

.team-profile-page .team-profile-timeline li {
  padding: 0 0 1.35rem 1.4rem;
  font-size: .84rem;
}

.team-profile-page .team-profile-timeline strong {
  font-size: .87rem;
}

.team-profile-page .team-profile-timeline p {
  max-width: var(--profile-measure);
  margin-top: .4rem;
  line-height: 1.65;
}

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

/* Supporting facts sidebar ------------------------------------------ */

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

.team-profile-page .team-profile-side .team-profile-section {
  padding: 1rem 1.05rem;
  background: var(--team-surface);
  border: 1px solid var(--team-border);
  border-radius: .8rem;
  box-shadow: 0 .3rem 1rem rgba(var(--bs-body-color-rgb), .035);
}

.team-profile-page .team-profile-side .team-profile-section > h2 {
  margin-bottom: .75rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--team-border);
  font-size: .88rem;
}

.team-profile-page .team-profile-side .team-profile-section > h2::before {
  height: .9rem;
}

.team-profile-page .team-profile-side .team-profile-list {
  gap: .7rem;
}

.team-profile-page .team-profile-side .team-profile-list li,
.team-profile-page .team-profile-side .team-profile-contact li {
  font-size: .76rem;
}

.team-profile-page .team-profile-side .team-profile-list li + li {
  padding-top: .7rem;
  border-top: 1px solid color-mix(in srgb, var(--team-border) 72%, transparent);
}

.team-profile-page .team-profile-contact i {
  border: 1px solid rgba(var(--bs-primary-rgb), .12);
}

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

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

@media (max-width: 767.98px) {
  .team-profile-page .team-profile-header,
  .team-profile-page .team-profile-cover + .team-profile-header {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    align-items: start;
    padding: 1.2rem;
  }

  .team-profile-page .team-profile-header .team-profile-photo,
  .team-profile-page .team-profile-cover + .team-profile-header .team-profile-photo {
    width: 6.75rem;
    height: 6.75rem;
  }

  .team-profile-page .team-profile-header-action {
    grid-column: 2;
    justify-self: start;
  }

  .team-profile-page .team-profile-local-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .team-profile-page .team-profile-local-links {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .team-profile-page {
    padding-inline: .75rem;
  }

  .team-profile-page .team-profile-cover {
    min-height: 9rem;
  }

  .team-profile-page .team-profile-header,
  .team-profile-page .team-profile-cover + .team-profile-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-profile-page .team-profile-header .team-profile-photo,
  .team-profile-page .team-profile-cover + .team-profile-header .team-profile-photo {
    margin-inline: auto;
  }

  .team-profile-page .team-profile-header h1 {
    max-width: none;
  }

  .team-profile-page .team-profile-header-action {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }

  .team-profile-page .team-profile-book {
    width: 100%;
  }

  .team-profile-page .team-profile-cards,
  .team-profile-page .team-profile-gallery,
  .team-profile-page .team-profile-side {
    grid-template-columns: 1fr;
  }

  .team-profile-page .team-profile-main > .team-profile-section {
    padding: 1.1rem;
  }

  .team-profile-page .team-profile-quote {
    padding-left: 3rem;
  }
}

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