/* Employee cards — canonical card pattern for people in three variants.
   Used on /about (team grid) and on partner-detail (referenced as part
   of the partner team). Pages link this file; do not re-inline.

   Variants:
   - .ec-compact: row card for big team grids (avatar + name + role + links)
   - .ec-detail:  spotlight card for /about/team (large avatar + bio + apps)
   - .ec-photo:   centered photo card for the team grid on /about
*/

/* Avatar shapes used by every variant. */
.ec-avatar {
  width: 44px; height: 50px;
  clip-path: var(--hex-pointy-top);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  overflow: hidden;
}
.ec-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------- Compact card ------- */
.ec-compact {
  background: white;
  border: 1px solid var(--c-cobalt-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-1);
  transition: all 160ms ease;
  text-decoration: none;
  color: inherit;
}
.ec-compact:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--c-cobalt-200); }

.ec-compact .ec-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ec-compact .ec-name {
  font-size: 15px; font-weight: 600;
  color: var(--c-blue-cobalt);
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-compact .ec-role {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  color: var(--c-cobalt-400);
  letter-spacing: 0.05em;
}
.ec-compact .ec-links {
  display: flex; gap: 8px;
  flex-shrink: 0;
}
.ec-compact .ec-links a {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: var(--c-cobalt-50);
  color: var(--c-cobalt-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 140ms ease;
}
.ec-compact .ec-links a:hover {
  background: var(--c-blue-cobalt);
  color: white;
}
.ec-compact .ec-links svg {
  width: 13px; height: 13px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* ------- Detail card ------- */
.ec-detail {
  background: white;
  border: 1px solid var(--c-cobalt-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.ec-detail::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 160px;
  clip-path: var(--hex-pointy-top);
  background: var(--c-cobalt-50);
  transform: translate(40px, -50px);
  z-index: 0;
}
.ec-detail > * { position: relative; z-index: 1; }

.ec-detail .ec-avatar-large {
  width: 72px; height: 83px;
  clip-path: var(--hex-pointy-top);
  background: var(--c-blue-cobalt);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em;
}

.ec-detail .ec-name {
  font-size: 24px; font-weight: 700;
  color: var(--c-blue-cobalt);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.ec-detail .ec-role {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--c-cobalt-400);
  margin-top: 4px;
}

.ec-detail .ec-bio {
  font-size: 14px;
  color: var(--c-cobalt-700);
  line-height: 1.55;
}

.ec-detail .ec-apps-label {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-cobalt-400);
  margin-bottom: 6px;
}
.ec-detail .ec-apps {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ec-detail .ec-apps .pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--c-cobalt-50);
  color: var(--c-blue-cobalt);
  font-weight: 500;
}

.ec-detail .ec-contacts {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--c-cobalt-50);
  font-size: 13px;
}
.ec-detail .ec-contacts a {
  color: var(--c-blue-cobalt);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 140ms ease;
}
.ec-detail .ec-contacts a:hover { color: var(--c-orange-knvb); }
.ec-detail .ec-contacts svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* ------- Photo card ------- */
.ec-photo {
  background: white;
  border: 1px solid var(--c-cobalt-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.ec-photo .ec-avatar {
  width: 96px; height: 110px;
  background: var(--c-cobalt-50);
  margin: 0 auto 16px;
  font-size: 0; /* hide letter fallback when an img is present */
}
.ec-photo .ec-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.ec-photo .ec-role { font-size: 13px; color: var(--c-orange-knvb); font-weight: 500; margin-bottom: 12px; letter-spacing: 0.01em; }
.ec-photo .ec-bio {
  font-size: 13px; color: var(--c-cobalt-700); line-height: 1.55;
  margin: 0 0 18px;
  text-align: left;
}
.ec-photo .ec-contacts {
  display: flex; gap: 8px; justify-content: center;
  padding-top: 14px;
  border-top: 1px solid var(--c-cobalt-100);
}
.ec-photo .ec-contacts a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-cobalt-50);
  color: var(--c-cobalt-700);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all 120ms ease;
}
.ec-photo .ec-contacts a:hover { background: var(--c-blue-cobalt); color: white; }
.ec-photo .ec-contacts svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
