/* OUR TEAM — responsive profile cards and the full-profile dialog. */
.team-section {
  padding-top: 68px;
}
.team-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 35px;
}
.team-section__heading h2 {
  max-width: 760px;
  font-size: clamp(35px, 4vw, 48px);
}
.team-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  padding-bottom: 5px;
  color: var(--navy);
}
.team-count span {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 42px;
  line-height: 1;
}
.team-count small {
  color: var(--wine);
  font: 11px 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  align-items: stretch;
  gap: 25px;
}
.team-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.team-card:hover,
.team-card:focus-within {
  transform: translateY(-4px);
  border-color: #c2b4b4;
  box-shadow: 0 16px 34px rgb(17 45 67 / 9%);
}
.team-card__photo-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.35;
  padding: 0;
  border: 0;
  overflow: hidden;
  text-align: left;
  background: #e9e5de;
  color: white;
  isolation: isolate;
}
.team-card__photo-button:focus-visible {
  outline: 3px solid #27749a;
  outline-offset: -4px;
}
.team-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.team-card:hover .team-card__photo,
.team-card__photo-button:focus-visible .team-card__photo {
  transform: scale(1.045);
  filter: saturate(.9);
}
.team-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 15%, rgb(191 165 123 / 42%), transparent 34%),
    linear-gradient(145deg, #e8e2d7, #d7e0e3 54%, #b8cbd3);
  color: var(--navy);
}
.team-card__placeholder > span {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid rgb(17 45 67 / 25%);
  border-radius: 50%;
  font: 44px 'Newsreader', Georgia, serif;
  letter-spacing: -.04em;
}
.team-card__hover-panel {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(18px, 2vw, 25px);
  background: linear-gradient(180deg, rgb(10 27 40 / 0%) 12%, rgb(10 27 40 / 85%) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.team-card:hover .team-card__hover-panel,
.team-card__photo-button:focus-visible .team-card__hover-panel {
  opacity: 1;
  transform: translateY(0);
}
.team-card__hover-label {
  color: #e6d5b9;
  font: 11px 'IBM Plex Mono', monospace;
  letter-spacing: .13em;
}
.team-card__hover-name {
  font: 500 27px/1.05 'Newsreader', Georgia, serif;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.team-card__hover-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #f0f1f0;
  font-size: 14px;
  line-height: 1.5;
}
.team-card__hover-expertise {
  color: #e6d5b9;
  font-size: 12px;
  line-height: 1.5;
}
.team-card__hover-action,
.team-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.team-card__hover-action {
  margin-top: 3px;
  color: white;
}
.team-card__body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: 21px 22px 22px;
}
.team-card__name {
  display: inline;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
  font: 500 clamp(22px, 1.85vw, 27px)/1.12 'Newsreader', Georgia, serif;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.team-card__name:hover {
  color: var(--wine);
}
.team-card__role {
  margin-top: 11px;
  color: var(--wine) !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.45 !important;
}
.team-card__department {
  margin-top: 4px;
  color: #65717a !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
.team-card__read-more {
  margin-top: auto;
  padding: 21px 0 0;
  border: 0;
  background: transparent;
  color: var(--wine);
}
.team-card__read-more:hover {
  color: var(--navy);
}
.team-empty-state {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 880px;
  padding: 38px;
  border: 1px solid var(--line);
  background: #fff;
}
.team-empty-state__mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid #d9c9b1;
  border-radius: 50%;
  color: var(--wine);
  font: 48px 'Newsreader', Georgia, serif;
}
.team-empty-state h3 {
  margin-bottom: 13px;
  font-size: clamp(25px, 2.6vw, 32px);
}
.team-empty-state p {
  max-width: 650px;
  font-size: 16px;
}
.team-profile-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(9 22 31 / 72%);
  backdrop-filter: blur(5px);
  animation: teamBackdropIn .18s ease-out both;
}
.team-profile-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr);
  width: min(100%, 950px);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 28px 90px rgb(0 0 0 / 28%);
  animation: teamDialogIn .22s ease-out both;
}
.team-profile-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(17 45 67 / 18%);
  border-radius: 50%;
  background: rgb(250 249 246 / 92%);
  color: var(--navy);
}
.team-profile-close:hover {
  background: white;
  border-color: var(--wine);
}
.team-profile__media {
  position: relative;
  min-height: 420px;
  background: #e5e0d6;
}
.team-profile__media > img,
.team-profile__media > .team-card__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-card__placeholder--dialog > span {
  width: 124px;
  height: 124px;
  font-size: 55px;
}
.team-profile__media-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 54px 24px 22px;
  color: white;
  background: linear-gradient(180deg, transparent, rgb(10 27 40 / 78%));
  font-size: 14px;
}
.team-profile__media-caption .eyebrow {
  margin: 0;
  color: #e6d5b9;
  font-size: 11px;
}
.team-profile__content {
  min-width: 0;
  padding: clamp(28px, 4vw, 50px);
  overflow-wrap: anywhere;
}
.team-profile__content > .eyebrow {
  margin-bottom: 16px;
}
.team-profile__content > h2 {
  padding-right: 20px;
  color: var(--navy);
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1.08;
}
.team-profile__role {
  margin-top: 14px;
  color: var(--wine) !important;
  font-size: 16px !important;
  font-weight: 700;
}
.team-profile__department {
  margin-top: 4px;
  color: #65717a !important;
  font-size: 14px !important;
}
.team-profile__summary {
  margin-top: 23px;
  color: var(--navy) !important;
  font-size: 17px !important;
  font-weight: 500;
  line-height: 1.65 !important;
}
.team-profile__expertise,
.team-profile__biography {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.team-profile__expertise h3,
.team-profile__biography h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 22px;
}
.team-profile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-profile__chips span {
  padding: 6px 10px;
  border: 1px solid #d7dfe1;
  background: #edf1f2;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.4;
}
.team-profile__biography p {
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.75;
}
.team-profile__done {
  margin-top: 30px;
}
@keyframes teamBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes teamDialogIn {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 780px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 18px;
  }
  .team-card__body {
    padding: 19px 18px 20px;
  }
  .team-card__hover-panel {
    padding: 18px;
  }
  .team-profile-backdrop {
    padding: 14px;
  }
  .team-profile-dialog {
    grid-template-columns: minmax(0, 1fr);
    max-height: 92vh;
  }
  .team-profile__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .team-profile__content {
    padding: 28px;
  }
  .team-profile-close {
    position: fixed;
    top: 22px;
    right: 22px;
  }
}
@media (max-width: 540px) {
  .team-section {
    padding-top: 48px;
  }
  .team-section__heading {
    display: block;
    margin-bottom: 26px;
  }
  .team-section__heading h2 {
    font-size: 35px;
  }
  .team-count {
    margin-top: 20px;
  }
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .team-card__photo-button {
    aspect-ratio: 4 / 3.7;
  }
  .team-card__name {
    font-size: 27px;
  }
  .team-empty-state {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px;
  }
  .team-profile-backdrop {
    padding: 8px;
  }
  .team-profile-dialog {
    max-height: 95vh;
  }
  .team-profile__content {
    padding: 23px;
  }
  .team-profile__content > h2 {
    padding-right: 12px;
    font-size: 32px;
  }
  .team-profile-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card__photo,
  .team-card__hover-panel,
  .team-profile-backdrop,
  .team-profile-dialog {
    transition: none;
    animation: none;
  }
}

/* Admin controls for the team CMS fallback bundle */
.team-admin-panel[hidden]{display:none!important}
.team-admin-panel{margin-top:8px}
.team-admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px;padding:22px;background:#fff;border:1px solid var(--line,#d8dfe2)}
.team-admin-toolbar h3{font-size:24px;margin:0 0 5px;color:var(--navy,#112d43)}
.team-admin-toolbar p{margin:0;color:#66717a;font-size:14px}
.team-admin-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid var(--navy,#112d43);border-radius:3px;background:var(--navy,#112d43);color:#fff;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.team-admin-action.secondary{background:#fff;color:var(--navy,#112d43)}
.team-admin-action.danger{background:#fff;color:#8a2a32;border-color:#d7b9bc}
.team-admin-notice{margin:0 0 18px;padding:13px 16px;background:#eef3f4;border:1px solid #d5e0e3;color:#183849;font-size:14px}
.team-admin-notice.error{background:#fff2f1;border-color:#edc6c1;color:#8a2020}
.team-admin-notice:empty{display:none}
.team-admin-search{width:100%;max-width:380px;padding:12px 14px;border:1px solid #cbd4d9;background:#fff;font:inherit}
.team-admin-members{display:grid;gap:12px}
.team-admin-member{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:18px;align-items:center;padding:16px 18px;border:1px solid var(--line,#d8dfe2);background:#fff}
.team-admin-member img,.team-admin-avatar{display:block;width:80px;height:88px;object-fit:cover;background:#e8e6df}
.team-admin-avatar{display:grid;place-items:center;color:var(--navy,#112d43);font:28px Georgia,serif}
.team-admin-member h4{margin:0 0 5px;font-size:19px;color:var(--navy,#112d43)}
.team-admin-member p{margin:3px 0;font-size:14px;color:#626f78}
.team-admin-status{display:inline-block;margin-top:6px;padding:3px 7px;background:#edf1f2;color:#41505a;font:11px monospace;text-transform:uppercase;letter-spacing:.06em}
.team-admin-member-actions{display:flex;flex-wrap:wrap;gap:8px}
.team-admin-member-actions button{padding:8px 11px;border:1px solid #cbd4d9;background:#fff;color:#112d43;cursor:pointer}
.team-admin-editor{padding:25px;background:#fff;border:1px solid var(--line,#d8dfe2);margin-top:24px}
.team-admin-editor h3{margin:0 0 20px;font-size:25px}
.team-admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.team-admin-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.team-admin-field.span2{grid-column:1/-1}
.team-admin-field label{font-size:13px;font-weight:650;color:#344957}
.team-admin-field input,.team-admin-field textarea,.team-admin-field select{width:100%;padding:11px 12px;border:1px solid #cbd4d9;border-radius:0;background:#fff;color:#172f40;font-family:inherit;font-size:14px;line-height:1.5;min-height:42px;box-sizing:border-box}
.team-admin-field textarea{min-height:100px;resize:vertical}
.team-admin-field small{font-size:12px;color:#6c777f;line-height:1.5}
.team-admin-upload-row{display:flex;flex-wrap:wrap;align-items:center;gap:15px}
.team-admin-preview{width:95px;height:105px;object-fit:cover;border:1px solid #d8dfe2;background:#eee}
.team-admin-editor-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.team-admin-empty{padding:35px 25px;background:#fff;border:1px dashed #cbd4d9;color:#586a75}
.team-admin-empty h3{margin:0 0 8px;font-size:23px;color:var(--navy,#112d43)}
.team-loading{padding:32px 0;color:#66717a}
@media(max-width:800px){.team-admin-toolbar{align-items:stretch;flex-direction:column}.team-admin-member{grid-template-columns:64px minmax(0,1fr)}.team-admin-member img,.team-admin-avatar{width:64px;height:74px}.team-admin-member-actions{grid-column:1/-1}.team-admin-form-grid{grid-template-columns:1fr}.team-admin-field.span2{grid-column:auto}.admin-main{padding:24px 16px}.admin-shell{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:560px){.team-admin-member{padding:12px;gap:12px}.team-admin-member-actions button{flex:1}.admin-shell{grid-template-columns:1fr}.admin-menu{display:flex;flex-wrap:wrap;gap:5px;padding:10px}.admin-menu button{width:auto;margin:0}.team-admin-toolbar{padding:16px}.team-admin-editor{padding:17px}}
