/* Kyrosphere Africa · team directory and individual profiles (2026-11-02).
   Inherit the existing corporate colours, navigation and footer. */
.team-directory .team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}
.team-directory .team-member {
  display: block;
  min-width: 0;
  height: 100%;
}
.team-directory .team-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e3e6e2;
  border-radius: 6px;
  background: #fff;
  color: #262C30;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.team-directory .team-card-link:hover,
.team-directory .team-card-link:focus-visible {
  transform: translateY(-4px);
  border-color: #B68B4C;
  box-shadow: 0 18px 38px rgba(18,63,67,.11);
}
.team-directory .team-card-link:focus-visible {
  outline: 3px solid #B68B4C;
  outline-offset: 4px;
}
.team-directory .team-avatar {
  width: 100%;
  aspect-ratio: 5 / 4;
  border: 0;
  border-bottom: 1px solid #e3e6e2;
  border-radius: 0;
  overflow: hidden;
  background: #F5F2EA;
  transition: none;
}
.team-directory .team-member:hover .team-avatar { transform: none; border-color: #e3e6e2; }
.team-directory .team-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 27%;
  transition: transform .3s ease;
}
.team-directory .team-card-link:hover img { transform: scale(1.025); }
.team-directory .team-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  min-width: 0;
  padding: 24px 24px 25px;
}
.team-directory .team-info h2,
.team-directory .team-info h2.name-with-cred {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.035em;
  white-space: normal;
  overflow-wrap: break-word;
  min-height: 2.5em;
  margin: 0;
}
.team-directory .team-role {
  color: #123F43;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .075em;
  min-height: 3em;
}
.team-directory .team-bio {
  color: #566171;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 5.25em;
}
.team-directory .team-profile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #e3e6e2;
  color: #123F43;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.team-directory .team-profile-cta span { font-size: 20px; font-weight: 400; line-height: 1; color: #B68B4C; }
.lead-card .lead-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #123F43;
  font-size: 12px;
  font-weight: 700;
  margin-top: 14px;
  text-decoration: none;
  border-bottom: 1px solid #B68B4C;
  width: max-content;
  padding-bottom: 3px;
}
.lead-card .lead-profile-link:hover,
.lead-card .lead-profile-link:focus-visible { color: #0C3033; border-bottom-width: 2px; }
.lead-card h3.name-with-cred { white-space: normal; overflow-wrap: anywhere; }

/* Individual team member pages */
.profile-page {
  margin: 0;
  color: #262C30;
  background: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.7;
  font-weight: 400;
}
.profile-page *, .profile-page *::before, .profile-page *::after { box-sizing: border-box; }
.profile-page a { color: inherit; }
.profile-page img { display: block; max-width: 100%; }
.profile-page .profile-main { padding-top: var(--nav-height,96px); }
.profile-page .profile-container { width: min(100% - 80px, 1250px); margin-inline: auto; }
.profile-page .profile-breadcrumb { background:#fff; border-bottom: 1px solid #e3e6e2; padding: 17px 0; font-size: 12px; color: #61696e; }
.profile-page .profile-breadcrumb a { text-decoration:none; color: #123F43; }
.profile-page .profile-breadcrumb span[aria-hidden] { padding-inline: 11px; color: #B68B4C; }
.profile-page .profile-hero { background: #F5F2EA; padding: clamp(40px,6vw,84px) 0; }
.profile-page .profile-hero-inner { display: grid; grid-template-columns: minmax(240px,.85fr) minmax(0,1.15fr); gap: clamp(35px,6vw,96px); align-items:center; }
.profile-page .profile-visual { width:100%; aspect-ratio: 4 / 5; background: #e3e6e2; overflow:hidden; border-radius: 4px; border: 1px solid #e3e6e2; }
.profile-page .profile-visual img { width:100%; height:100%; object-fit:cover; object-position:center 25%; }
.profile-page .profile-eyebrow { color:#123F43; letter-spacing:.15em; text-transform:uppercase; font-size:11px; font-weight:700; margin:0 0 18px; }
.profile-page .profile-hero h1 { font-size:clamp(35px,4.5vw,65px); letter-spacing:-.045em; line-height:1.12; max-width:14ch; margin:0 0 22px; color:#123F43; font-weight:600; }
.profile-page .profile-role { color:#262C30; text-transform:uppercase; font-size:12px; letter-spacing:.13em; font-weight:700; margin:0; max-width:40ch; }
.profile-page .profile-accent { background:#B68B4C; width:80px; height:3px; margin:27px 0 25px; }
.profile-page .profile-lede { font-size:clamp(17px,1.6vw,21px); line-height:1.7; color:#4b5657; max-width:37rem; margin:0 0 32px; }
.profile-page .profile-back { display:inline-flex; align-items:center; gap:10px; text-decoration:none; font-size:13px; color:#123F43; font-weight:700; }
.profile-page .profile-back:hover { text-decoration:underline; }
.profile-page .profile-body-section { padding: clamp(64px,8vw,104px) 0; }
.profile-page .profile-content-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(230px,.75fr); gap:clamp(45px,8vw,115px); align-items:start; }
.profile-page .profile-copy h2 { color:#123F43; font-size:clamp(26px,3vw,36px); letter-spacing:-.04em; margin:0 0 26px; }
.profile-page .profile-copy p { color:#465052; font-size:16px; line-height:1.95; margin:0 0 24px; max-width:66ch; }
.profile-page .profile-copy p:last-child { margin-bottom:0; }
.profile-page .profile-sidebar { border-top:3px solid #B68B4C; background:#F5F2EA; padding:30px 28px; }
.profile-page .profile-sidebar h2 { color:#123F43; font-size:17px; letter-spacing:-.02em; margin:0 0 18px; }
.profile-page .profile-focus { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 28px; padding:0; list-style:none; }
.profile-page .profile-focus li { background:#fff; border:1px solid #e0ded6; border-radius:2px; font-size:12px; line-height:1.5; padding:8px 11px; color:#3b4546; }
.profile-page .profile-sidebar p { margin:0 0 15px; color:#566171; font-size:14px; }
.profile-page .profile-sidebar a { display:inline-block; padding:11px 16px; text-decoration:none; background:#123F43; color:#fff; font-size:12px; font-weight:700; border-radius:2px; }
.profile-page .profile-sidebar a:hover { background:#0C3033; }
.profile-page .profile-navigation { border-top:1px solid #e3e6e2; padding:38px 0 65px; }
.profile-page .profile-navigation-inner { display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.profile-page .profile-navigation a { display:flex; flex-direction:column; gap:6px; font-size:15px; text-decoration:none; font-weight:700; color:#123F43; }
.profile-page .profile-navigation a span { color:#747d7c; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.14em; }
.profile-page .profile-navigation a:hover { color:#0C3033; text-decoration:underline; }
.profile-page a:focus-visible { outline: 3px solid #B68B4C; outline-offset:4px; }
@media (max-width:1024px) {
  .team-directory .team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-page .profile-content-grid { grid-template-columns:minmax(0,1.4fr) minmax(205px,.7fr); gap:34px; }
}
@media (max-width:700px) {
  .team-directory .team-grid { grid-template-columns: 1fr; max-width:480px; margin-inline:auto; }
  .team-directory .team-info h2, .team-directory .team-info h2.name-with-cred { min-height:unset; }
  .team-directory .team-role { min-height: unset; }
  .team-directory .team-bio { min-height:unset; }
  .profile-page .profile-container { width:calc(100% - 36px); }
  .profile-page .profile-hero-inner, .profile-page .profile-content-grid { grid-template-columns:1fr; gap:32px; }
  .profile-page .profile-hero { padding:35px 0 45px; }
  .profile-page .profile-visual { max-width:480px; aspect-ratio: 4 / 3; }
  .profile-page .profile-hero h1 { font-size:clamp(32px,10vw,46px); }
  .profile-page .profile-sidebar { padding:24px; }
  .profile-page .profile-navigation-inner { flex-direction:column; gap:24px; }
}
