/* ================================================================
   GROUP BAYPORT — TEAM MEMBER DETAIL PAGE (WordPress)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* Hide theme titlebar on team member single pages */
body.single-pbmit-team-member .pbmit-title-bar-wrapper {
  display: none !important;
}

/* ── VARIABLES ────────────────────────────────────────────── */
.tm-wrap {
  --indigo:    #4f46e5;
  --indigo-lt: #eef2ff;
  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-900:  #111827;
  --linkedin:  #0a66c2;
  --font-d:    'Playfair Display', Georgia, serif;
  --font-b:    'DM Sans', system-ui, sans-serif;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);

  font-family: var(--font-b);
  color: var(--gray-900);
  line-height: 1.65;
}

.tm-wrap *, .tm-wrap *::before, .tm-wrap *::after { box-sizing: border-box; }
.tm-wrap img { display: block; max-width: 100%; }
.tm-wrap a   { text-decoration: none; color: inherit; }

/* Kill theme icon-font pseudo-elements on our links */
.tm-linkedin-btn::before, .tm-linkedin-btn::after { display: none !important; content: none !important; }
.tm-wrap a::before, .tm-wrap a::after { display: none !important; content: none !important; }
.tm-wrap a { box-shadow: none !important; }

/* ── SIMPLE LAYOUT ────────────────────────────────────────── */
.tm-simple-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 5rem 6rem;   /* generous left/right padding */
}

@media (max-width: 1024px) {
  .tm-simple-wrap { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 2.5rem 5rem; }
}
@media (max-width: 640px) {
  .tm-simple-wrap { padding: 2rem 1.5rem 4rem; }
}

/* ── LEFT COLUMN ──────────────────────────────────────────── */
.tm-simple-left { position: sticky; top: 100px; }
@media (max-width: 1024px) { .tm-simple-left { position: static; } }

/* Photo */
.tm-photo-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.tm-photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.42) 0%, transparent 55%);
  pointer-events: none;
}
.tm-photo-frame img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease);
}
.tm-photo-frame:hover img { transform: scale(1.04); }

.tm-photo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem; z-index: 2;
}
.tm-photo-name {
  font-family: var(--font-d);
  font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.15;
  margin-bottom: 0.2rem;
}
.tm-photo-role { font-size: 0.75rem; color: rgba(255,255,255,0.75); font-weight: 500; }

/* LinkedIn button */
.tm-linkedin-btn {
  margin-top: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--linkedin);
  color: #fff !important;
  border-radius: 0.75rem;
  font-family: var(--font-b);
  font-size: 0.875rem; font-weight: 700;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 16px rgba(10,102,194,0.28);
  border: none;
}
.tm-linkedin-btn:hover {
  background: #004182 !important;
  box-shadow: 0 8px 24px rgba(10,102,194,0.4);
  transform: translateY(-2px);
  color: #fff !important;
}
/* Hard-force SVG white — overrides any theme CSS */
.tm-linkedin-btn svg,
.tm-linkedin-btn svg * { fill: #ffffff !important; stroke: none !important; }

/* ── RIGHT COLUMN ─────────────────────────────────────────── */
.tm-simple-right { min-width: 0; }

/* Section label */
.tm-section-label {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 1.1rem;
  font-family: var(--font-b);
}
.tm-section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

/* About card */
.tm-about-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem; padding: 2rem;
}
.tm-about-card p,
.tm-about-text {
  font-size: 1rem; color: var(--gray-600); line-height: 1.85;
  margin-bottom: 1.1rem; font-family: var(--font-b);
}
.tm-about-card p:last-child,
.tm-about-text:last-child { margin-bottom: 0; }

/*
 * ── COMMENTED OUT SECTIONS ─────────────────────────────────
 * Credential pills, stats bar, quote block, career timeline,
 * education grid, expertise tags, interests, connect CTA,
 * hero banner — all available to re-enable if needed.
 *
 * Search for their CSS classes:
 *   .tm-cred-pill / .tm-cred-row
 *   .tm-stat-bar / .tm-stat-item
 *   .tm-quote-block
 *   .tm-timeline / .tm-tl-item
 *   .tm-edu-grid / .tm-edu-card
 *   .tm-tag-grid / .tm-exp-tag
 *   .tm-interests-row / .tm-interest-chip
 *   .tm-connect-cta / .tm-connect-li-btn
 *   .tm-hero-banner
 */
