/* Kompaktná tímová karta na titulnej stránke. */
.home-portrait-card.team-card-v3 {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  text-align: left !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(40, 120, 95, .13), transparent 37%),
    linear-gradient(145deg, #ffffff 0%, #f1f8f7 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow) !important;
}

.team-card-v3::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #16849a 52%, var(--secondary) 100%);
}

.team-card-v3-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(188, 213, 215, .6);
}

.team-card-v3-header .team-card-v3-eyebrow {
  margin-bottom: 0;
}

.team-card-v3-symbol {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--primary) 0%, #16849a 100%);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
  box-shadow: 0 6px 16px rgba(11, 93, 112, .18);
}

.team-card-v3-eyebrow {
  margin-bottom: 1px;
  color: var(--primary);
  font-size: .68rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.team-card-v3-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 800;
}

.team-card-v3-email {
  margin-top: 6px;
  font-size: .82rem;
  line-height: 1.35;
}

.team-card-v3-email a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.team-card-v3-email a:hover {
  text-decoration: underline;
}

.team-card-v3-members {
  display: grid;
  gap: 8px;
  padding: 12px 14px 10px;
}

.team-card-v3-member {
  position: relative;
  padding: 11px 12px 11px 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
}

.team-card-v3-member::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}

.team-card-v3-doctor::before {
  background: linear-gradient(180deg, var(--primary), #16849a);
}

.team-card-v3-nurse::before {
  background: linear-gradient(180deg, var(--secondary), #65ad93);
}

.team-card-v3-role {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.team-card-v3-name {
  color: var(--text);
  font-size: .96rem;
  line-height: 1.3;
  font-weight: 800;
}

.team-card-v3-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.team-card-v3-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 14px 8px;
  padding: 8px 12px;
  border: 1px solid rgba(72, 163, 126, .25);
  border-radius: 12px;
  background: var(--success);
  color: var(--secondary-dark);
  font-size: .8rem;
  line-height: 1.35;
  text-align: center;
}

a.team-card-v3-status {
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

a.team-card-v3-status:hover,
a.team-card-v3-status:focus-visible {
  filter: brightness(0.97);
  box-shadow: 0 8px 18px rgba(40, 120, 95, .16);
}

.team-card-v3-status--closed {
  border-color: rgba(234, 120, 40, .35);
  background: linear-gradient(135deg, #fff4eb 0%, #ffe8d6 100%);
  color: #c45a12;
}

.team-card-v3-status--closed .team-card-v3-dot {
  background: #f07820;
  box-shadow: 0 0 0 4px rgba(240, 120, 32, .16);
}

.team-card-v3-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 14px 14px;
  font-size: .88rem;
}

.team-card-v3-links a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.team-card-v3-links a:hover {
  text-decoration: underline;
}

.team-card-v3-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #43a77d;
  box-shadow: 0 0 0 4px rgba(67, 167, 125, .12);
}

@media (max-width: 640px) {
  .team-card-v3-header {
    padding: 14px 16px 10px;
  }

  .team-card-v3-members {
    padding: 10px 12px 8px;
  }

  .team-card-v3-status {
    margin: 0 12px 8px;
  }

  .team-card-v3-links {
    margin: 0 12px 12px;
  }
}
