﻿.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.member {
  position: relative;
  background: #fff;
  border: 1px solid var(--pu-line);
  border-radius: var(--r-lg);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-height: 230px;
}

.member::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pu-blue-800);
}

.member:nth-child(6n+2)::before, .member:nth-child(6n+5)::before { background: var(--pu-sea-500); }
.member:nth-child(6n+3)::before, .member:nth-child(6n+6)::before { background: var(--pu-sand-500); }

.member > * { position: relative; z-index: 1; }

.member .glyph {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(110px, 12vw, 168px);
  line-height: 0.85;
  color: var(--pu-blue-50);
  letter-spacing: -0.06em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.member:nth-child(6n+2) .glyph, .member:nth-child(6n+5) .glyph { color: var(--pu-sea-100); }
.member:nth-child(6n+3) .glyph, .member:nth-child(6n+6) .glyph { color: var(--pu-sand-100); }

.member:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--pu-blue-200); }
.member:hover .glyph { color: var(--pu-blue-100); }

.member .dept {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 10.5px var(--f-mono);
  color: var(--pu-blue-700);
  background: var(--pu-blue-50);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 24px;
}

.member .dept::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.member .role {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pu-blue-900);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.member h4 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--pu-ink-2);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.member .contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px dashed var(--pu-line);
  font-size: 12.5px;
  color: var(--pu-blue-800);
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}

.member .contact svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.member .contact .line {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Keep the .contact mono type: beats the theme.json link font (Roboto) and the
   page-content link underline (.pk-page-content-wrap … a). */
.team-grid .member a.line {
  color: inherit;
  font: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.team-grid .member a.line:hover { color: var(--pu-sea-600); }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}
