/* Public people pages only; shared shell and homepage remain untouched. */
.team-pages {
  --tp-ink: #203d31;
  --tp-muted: #52685b;
  --tp-cream: #f7f3e9;
  --tp-paper: #fbf8ef;
  --tp-sage: #e8e9db;
  --tp-line: #d0d9cc;
  --tp-gold: #a2855d;
  color: var(--tp-ink);
  background: var(--tp-cream);
  font-family: 'DM Sans', sans-serif;
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
}
.team-pages .tp-container { width: min(100%, 1240px); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.team-pages .tp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.team-pages a:focus-visible { outline: 3px solid var(--tp-ink); outline-offset: 5px; border-radius: 1px; }
.team-pages .tp-eyebrow { display: block; margin: 0 0 1.25rem; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tp-muted); }
.team-pages .tp-directory-header { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem 5rem; align-items: end; border-bottom: 1px solid var(--tp-line); margin-bottom: 2.5rem; }
.team-pages h1 { font: 400 clamp(3rem, 6.5vw, 5.5rem)/1.06 'Playfair Display', Georgia, serif; letter-spacing: -.045em; color: var(--tp-ink); margin: 0; overflow-wrap: anywhere; }
.team-pages .tp-directory-intro { max-width: 28rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.8; color: var(--tp-muted); margin: 0 0 .25rem; }
.team-pages .tp-directory-intro::before { content: ''; display: block; height: 2px; width: 3rem; background: var(--tp-gold); margin-bottom: 1.4rem; }
.team-pages .tp-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.75rem 1.5rem; }
.team-pages .tp-people > li { min-width: 0; }
.team-pages .tp-person { display: block; color: var(--tp-ink); text-decoration: none; }
.team-pages .tp-portrait { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: #dddfd0; isolation: isolate; margin: 0; }
.team-pages .tp-initials { font: 400 clamp(3.5rem, 6vw, 5rem)/1 'Playfair Display', Georgia, serif; letter-spacing: -.04em; color: #526650; border-block: 1px solid #a8af97; padding: 1.1rem .7rem 1.3rem; }
.team-pages .tp-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; background: #dddfd0; transition: transform .35s ease; }
.team-pages img[hidden] { display: none !important; }
.team-pages .tp-person:hover img { transform: scale(1.035); }
.team-pages .tp-person-info { position: relative; padding: 1.1rem 1.75rem 1rem 0; border-bottom: 1px solid var(--tp-line); }
.team-pages .tp-person h2 { font: 500 1.12rem/1.35 'DM Sans', sans-serif; letter-spacing: -.02em; margin: 0 0 .35rem; }
.team-pages .tp-person p { color: var(--tp-muted); font-size: .86rem; line-height: 1.55; margin: 0; }
.team-pages .tp-person-arrow { position: absolute; right: .1rem; top: 1.1rem; font-size: 1.2rem; color: var(--tp-gold); transition: transform .2s ease; }
.team-pages .tp-person:hover h2 { text-decoration: underline; text-decoration-color: var(--tp-gold); text-underline-offset: 4px; }
.team-pages .tp-person:hover .tp-person-arrow { transform: translateX(3px); }
.team-pages .tp-breadcrumbs { padding-top: 1rem; }
.team-pages .tp-back { display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; font-size: .82rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--tp-gold); text-underline-offset: 5px; }
.team-pages .tp-profile-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem); padding-block: 2rem clamp(3rem, 6vw, 5rem); }
.team-pages .tp-profile-photo { width: 100%; max-width: 390px; }
.team-pages .tp-profile-photo .tp-initials { font-size: clamp(5rem, 10vw, 8rem); }
.team-pages .tp-profile-header h1 { font-size: clamp(2.8rem, 5.5vw, 4.75rem); }
.team-pages .tp-role { font-size: 1rem; line-height: 1.5; color: var(--tp-muted); margin: 1.1rem 0 0; }
.team-pages .tp-summary { font-size: clamp(1.08rem, 1.7vw, 1.25rem); line-height: 1.8; margin: 1.8rem 0 0; max-width: 38rem; }
.team-pages .tp-socials { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; margin-top: 1.6rem; }
.team-pages .tp-socials a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .8rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--tp-gold); text-underline-offset: 5px; }
.team-pages .tp-socials a:hover, .team-pages .tp-back:hover { color: #795c35; }
.team-pages .tp-bio-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: clamp(2.5rem, 6vw, 6rem); border-top: 1px solid var(--tp-line); padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.team-pages .tp-section-label { font: 400 1.65rem/1.3 'Playfair Display', Georgia, serif; letter-spacing: -.025em; margin: 0; }
.team-pages .tp-bio { min-width: 0; max-width: 66ch; font-size: 1.04rem; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-line; }
.team-pages .tp-bio > :first-child { margin-top: 0; }
.team-pages .tp-bio > :last-child { margin-bottom: 0; }
.team-pages .tp-bio p, .team-pages .tp-bio ul, .team-pages .tp-bio ol, .team-pages .tp-bio blockquote { margin-bottom: 1.3rem; }
.team-pages .tp-bio ul, .team-pages .tp-bio ol { padding-left: 1.4rem; }
.team-pages .tp-bio h2, .team-pages .tp-bio h3, .team-pages .tp-bio h4 { color: var(--tp-ink); margin: 1.8rem 0 .8rem; line-height: 1.3; }
.team-pages .tp-bio h2 { font-size: 1.8rem; }
.team-pages .tp-bio h3 { font-size: 1.45rem; }
.team-pages .tp-bio a { text-decoration: underline; text-decoration-color: var(--tp-gold); text-underline-offset: 4px; }
.team-pages .tp-bio img { max-width: 100%; height: auto; border-radius: 2px; }
.team-pages .tp-bio blockquote { border-left: 2px solid var(--tp-gold); padding-left: 1.3rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; }
.team-pages .tp-articles { border-top: 1px solid var(--tp-line); padding-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 110px; }
.team-pages .tp-articles-header { margin-bottom: 2rem; }
.team-pages .tp-articles-header h2 { font: 400 clamp(2rem, 3.7vw, 3rem)/1.2 'Playfair Display', Georgia, serif; letter-spacing: -.035em; margin: 0; }
.team-pages .tp-article-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.team-pages .tp-article-grid > li { min-width: 0; }
.team-pages .tp-article-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--tp-line); border-radius: 2px; background: var(--tp-paper); text-decoration: none; color: var(--tp-ink); }
.team-pages .tp-article-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tp-sage); }
.team-pages .tp-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.team-pages .tp-article-image[hidden] { display: none; }
.team-pages .tp-article-card:hover img { transform: scale(1.025); }
.team-pages .tp-article-content { padding: clamp(1.25rem, 3vw, 2rem); flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.team-pages .tp-article-content time { color: var(--tp-muted); font-size: .75rem; margin-bottom: .9rem; }
.team-pages .tp-article-content h3 { font: 400 clamp(1.35rem, 2.2vw, 1.8rem)/1.3 'Playfair Display', Georgia, serif; letter-spacing: -.025em; margin: 0 0 1rem; }
.team-pages .tp-article-card:hover h3 { text-decoration: underline; text-decoration-color: var(--tp-gold); text-underline-offset: 4px; }
.team-pages .tp-article-description { font-size: .92rem; line-height: 1.75; color: var(--tp-muted); margin: 0 0 1.5rem; }
.team-pages .tp-read { display: inline-flex; align-items: center; gap: .75rem; font-size: .78rem; font-weight: 700; margin-top: auto; padding-top: .5rem; }
.team-pages .tp-pagination { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.team-pages .tp-pagination-link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--tp-line); font-size: .83rem; }
.team-pages .tp-pagination-link:hover { background: var(--tp-sage); border-color: var(--tp-gold); }
.team-pages .tp-pagination-status { font-size: .82rem; color: var(--tp-muted); margin: 0; }
.team-pages .tp-empty { border: 1px solid var(--tp-line); background: var(--tp-sage); padding: clamp(2rem, 5vw, 4rem); }
.team-pages .tp-empty::before { content: ''; display: block; width: 2.5rem; height: 2px; background: var(--tp-gold); margin-bottom: 1.5rem; }
.team-pages .tp-empty h2, .team-pages .tp-empty h3 { font: 400 1.7rem/1.3 'Playfair Display', Georgia, serif; margin: 0 0 .75rem; }
.team-pages .tp-empty p { color: var(--tp-muted); max-width: 38rem; margin: 0; line-height: 1.75; }
@media (max-width: 1023px) {
  .team-pages .tp-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
}
@media (max-width: 767px) {
  .team-pages .tp-directory-header, .team-pages .tp-profile-hero, .team-pages .tp-bio-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .team-pages .tp-directory-header { margin-bottom: 2rem; }
  .team-pages .tp-people, .team-pages .tp-article-grid { grid-template-columns: minmax(0, 1fr); }
  .team-pages .tp-portrait { aspect-ratio: 4 / 4.5; }
  .team-pages .tp-profile-photo { max-width: 390px; }
  .team-pages .tp-profile-hero { padding-top: 1.5rem; }
  .team-pages .tp-person h2 { font-size: 1.25rem; }
  .team-pages .tp-pagination { justify-content: flex-start; }
  .team-pages .tp-pagination-status { width: 100%; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .team-pages *, .team-pages *::before, .team-pages *::after { transition: none !important; animation: none !important; }
}
