/* Team member business card page (/personal/name/). Mobile-first. */

.teamCard,
.teamCard *,
.teamCard *::before,
.teamCard *::after {
  box-sizing: border-box;
}

.teamCard {
  background: linear-gradient(180deg, #eef2f7 0%, #f6f8fb 60%);
  display: flex;
  justify-content: center;
  min-height: 60vh;
  padding: 20px 16px 64px;
}

.teamCard__container {
  max-width: 480px;
  width: 100%;
}

.teamCard__card {
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 20px 48px -12px rgba(16, 24, 40, 0.18);
  overflow: hidden;
}

/* --- Photo with overlaid identity --- */

.teamCard__media {
  background: #101828;
  position: relative;
  width: 100%;
}

.teamCard__photo {
  aspect-ratio: 4 / 5;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.teamCard__photoPlaceholder {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(90, 112, 150, 0.55) 0%, rgba(90, 112, 150, 0) 60%),
    linear-gradient(160deg, #2a3446 0%, #101828 100%);
  width: 100%;
}

.teamCard__mediaScrim {
  background: linear-gradient(
    180deg,
    rgba(16, 24, 40, 0) 42%,
    rgba(16, 24, 40, 0.38) 68%,
    rgba(16, 24, 40, 0.82) 100%
  );
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.teamCard__identity {
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  left: 0;
  padding: 24px;
  position: absolute;
  right: 0;
}

.teamCard__name {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 1px 12px rgba(16, 24, 40, 0.35);
}

.teamCard__role {
  color: rgba(255, 255, 255, 0.85);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 8px rgba(16, 24, 40, 0.35);
}

/* --- Card body --- */

.teamCard__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 20px 24px;
}

.teamCard__locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.teamCard__locationChip {
  align-items: center;
  background: #f2f5f9;
  border-radius: 8px;
  color: #364152;
  display: inline-flex;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  gap: 6px;
  line-height: 1.3;
  padding: 7px 12px;
}

.teamCard__locationIcon {
  color: #6a7282;
  display: inline-flex;
  flex: 0 0 auto;
}

.teamCard__locationIcon svg {
  display: block;
  height: 15px;
  width: 15px;
}

/* --- Contact tiles --- */

.teamCard__contactList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teamCard__contactItem {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 14px;
  color: #101828;
  display: flex;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.teamCard__contactItem:hover,
.teamCard__contactItem:focus-visible {
  background: #eef2f7;
  border-color: rgba(16, 24, 40, 0.12);
}

.teamCard__contactItem:active {
  transform: scale(0.985);
}

.teamCard__contactIcon {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
  color: #101828;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.teamCard__contactIcon svg {
  display: block;
  height: 19px;
  width: 19px;
}

.teamCard__contactText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.teamCard__contactLabel {
  color: #6a7282;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.teamCard__contactValue {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* --- Save contact --- */

.teamCard__saveButton {
  align-items: center;
  background: linear-gradient(180deg, #1c2740 0%, #101828 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 24px -8px rgba(16, 24, 40, 0.45);
  color: #fff;
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 56px;
  padding: 16px 20px;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.teamCard__saveButton:hover {
  color: #fff;
  filter: brightness(1.15);
}

.teamCard__saveButton:active {
  transform: scale(0.985);
}

.teamCard__saveButton:focus-visible {
  color: #fff;
  outline: 2px solid rgba(16, 24, 40, 0.4);
  outline-offset: 3px;
}

.teamCard__saveIcon {
  display: inline-flex;
  flex: 0 0 auto;
}

.teamCard__saveIcon svg {
  display: block;
  height: 20px;
  width: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .teamCard__contactItem,
  .teamCard__saveButton {
    transition: none;
  }

  .teamCard__contactItem:active,
  .teamCard__saveButton:active {
    transform: none;
  }
}

@media (min-width: 768px) {
  .teamCard {
    padding: 48px 24px 88px;
  }

  .teamCard__identity {
    padding: 28px;
  }

  .teamCard__body {
    gap: 22px;
    padding: 24px 24px 28px;
  }
}
