/* ============================================================
   Team Member profile page styles
   Source: _design-reference/redesign/author-dr-gregory-jantz.html
   ============================================================ */

/* ── Hero ── */
.tm-hero {
  background: linear-gradient(180deg, #FAFAF9 0%, #fff 100%);
  border-bottom: 1px solid var(--border-hairline);
  padding: 56px 32px;
}

.tm-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.tm-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--profile-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-hero__initials {
  font-family: var(--font-slab);
  font-size: 40px;
  font-weight: 900;
  color: #fff;
}

.tm-hero__role {
  font-size: 12px;
  font-weight: 700;
  color: var(--profile-color);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.tm-hero__name {
  font-size: 36px;
  font-weight: 900;
  color: #1F2A3D;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1.15;
}

.tm-hero__title {
  font-size: 16px;
  color: #585961;
  margin-bottom: 12px;
}

.tm-hero__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tm-hero__tag {
  padding: 4px 10px;
  background: color-mix(in srgb, var(--profile-color) 10%, transparent);
  color: var(--profile-color);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .tm-hero__inner { flex-direction: column; text-align: center; }
  .tm-hero__tags { justify-content: center; }
  .tm-hero__name { font-size: 28px; }
}

/* ── Two-column content ── */
.tm-content {
  padding: 48px 32px;
}

.tm-content__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.tm-content__bio-title {
  font-size: 26px;
  font-weight: 900;
  color: #1F2A3D;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.tm-content__bio-body {
  font-size: 16px;
  line-height: 1.75;
  color: #3D3F47;
}

.tm-content__bio-body p { margin: 0 0 18px; }
.tm-content__bio-body strong { color: var(--fg-emphasis); }

/* ── Credentials sidebar ── */
.tm-credentials {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 130px;
}

.tm-credentials__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--apoh-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.tm-credentials__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-credentials__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #3D3F47;
}

.tm-credentials__item svg { flex: 0 0 auto; margin-top: 2px; }

@media (max-width: 768px) {
  .tm-content__grid { grid-template-columns: 1fr; }
  .tm-credentials { position: static; }
}

/* ── Articles ── */
.tm-articles__title {
  font-size: 28px;
  font-weight: 900;
  color: #1F2A3D;
  margin: 0 0 24px;
  text-align: center;
}

.tm-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.tm-articles__card {
  display: block;
  padding: 20px 22px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-base);
}

.tm-articles__card:hover {
  border-color: var(--apoh-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.tm-articles__card-title {
  font-size: 16px;
  font-weight: 800;
  color: #1F2A3D;
  margin: 0 0 6px;
  line-height: 1.35;
}

.tm-articles__card-date {
  font-size: 12px;
  color: #9A9CA3;
}
