/* Team member profile page — styles scoped with a `tm-` prefix so nothing collides with
   home.css (not loaded on this page) or the purged style.css utilities. Mirrors the
   "profile" layout style (hero + stats, leadership bio, skills grid, experience timeline,
   recognition photos) using Legal71's own brand tokens (#F05A2B / #202050 / #14171A). */

.tm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #6b7280; margin-bottom: 1.75rem; }
.tm-crumbs a { color: #6b7280; text-decoration: none; transition: color .15s ease; }
.tm-crumbs a:hover { color: #F05A2B; text-decoration: underline; }
.tm-crumbs .current { color: #202050; font-weight: 600; }
.tm-crumbs .sep { color: #d1d5db; }

/* ---------- Hero ---------- */
.tm-hero { background: linear-gradient(180deg, #FBF4FF 0%, #ffffff 62%); }

.tm-hero-head { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; max-width: 760px; margin: 0 auto 2.75rem; }

.tm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ECE9FF, #F5F3FF);
    border: 1px solid #DEDAFB;
    color: #6E6BDC;
    font-family: Inter, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
}
.tm-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.tm-name { color: #202050; }

.tm-tagline { font-family: Inter, sans-serif; font-size: 0.95rem; line-height: 1.65; color: #5B607A; }
@media (min-width: 768px) { .tm-tagline { font-size: 1.05rem; } }

.tm-hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
/* Narrower stat column + a capped, centred row (instead of stretching edge-to-edge
   across the container) so the stat card reads as a slim companion to the photo. */
@media (min-width: 900px) {
    .tm-hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; max-width: 760px; margin: 0 auto; }
}

/* No stats for this member — photo stands alone, centred and capped so it doesn't
   stretch full-width on wide screens. */
.tm-hero-grid--photo-only { max-width: 480px; margin: 0 auto; }
@media (min-width: 900px) { .tm-hero-grid--photo-only { grid-template-columns: 1fr; } }

.tm-photo-frame {
    padding: 6px;
    border-radius: 28px;
    background: linear-gradient(120deg, #4242FF 0%, #B225FF 100%);
}
.tm-photo-frame img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}
@media (min-width: 640px) { .tm-photo-frame img { height: 420px; } }
@media (min-width: 900px) { .tm-photo-frame img { height: 100%; min-height: 380px; } }

.tm-stats-card {
    background: #14171A;
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.35rem;
}

.tm-stat + .tm-stat { padding-top: 1.35rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.tm-stat-value {
    display: block;
    font-family: Inter, sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.2vw, 2rem);
    line-height: 1;
    background-image: linear-gradient(112deg, #FA991B 0%, #F05A2B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tm-stat-label { display: block; margin-top: 0.4rem; font-family: Inter, sans-serif; font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.75); }

/* Contact chips + socials row, below the hero grid */
.tm-contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2rem; }

.tm-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    background: #ECECFF;
    border-radius: 12px;
    color: #202050;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity .15s ease;
}
.tm-contact-chip:hover { opacity: 0.85; }
.tm-contact-chip svg { width: 20px; height: 20px; flex-shrink: 0; }

.tm-socials { display: flex; gap: 0.75rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.tm-socials a { display: inline-flex; width: 34px; height: 34px; transition: transform .15s ease, opacity .15s ease; }
.tm-socials a:hover { transform: translateY(-2px); opacity: 0.9; }
.tm-socials a svg, .tm-socials a img { width: 100%; height: 100%; display: block; }

/* ---------- Leadership / profile bio ---------- */
.tm-profile-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; align-items: center; }
@media (min-width: 1024px) { .tm-profile-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; } }

.tm-profile-title { color: #202050; margin-bottom: 1rem; }

.tm-profile-body { font-family: Inter, sans-serif; }
.tm-profile-body p { font-size: 0.95rem; line-height: 1.75; color: #4b5165; margin-bottom: 0.85rem; }
.tm-profile-body p:last-child { margin-bottom: 0; }

.tm-checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.75rem 1.5rem; }
@media (min-width: 560px) { .tm-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tm-checklist li { position: relative; padding-left: 1.9rem; font-family: Inter, sans-serif; font-size: 0.92rem; font-weight: 600; color: #202050; }
.tm-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4242FF, #B225FF);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tm-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.85rem;
    padding: 0.85rem 1.6rem;
    background: #14171A;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}
.tm-btn-dark:hover { transform: translateY(-2px); background: #F05A2B; }
.tm-btn-dark svg { width: 16px; height: 16px; flex-shrink: 0; }

.tm-profile-media { border-radius: 24px; overflow: hidden; }
.tm-profile-media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }

/* ---------- Expertise / skills grid ---------- */
.tm-expertise { background: #14171A; }

.tm-section-head { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.tm-section-head.is-dark .tm-badge { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.tm-section-head.is-dark .tm-section-title { color: #fff; }
.tm-section-head .tm-section-lead { font-family: Inter, sans-serif; font-size: 0.92rem; color: #5B607A; }
.tm-section-head.is-dark .tm-section-lead { color: rgba(255, 255, 255, 0.65); }

.tm-section-title { color: #202050; }

.tm-skills-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .tm-skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tm-skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.tm-skill-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tm-skill-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.35); }

/* Icons here come from the shared App\Support\SimpleIcons library — bare single-color
   stroke <svg> (no wrapping colored-circle badge like the category icons), so the tint
   circle + color are applied here instead of being baked into the icon markup. */
.tm-skill-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDEDE7, #FFF4EE);
    color: #F05A2B;
}
.tm-skill-icon svg { width: 24px; height: 24px; display: block; }

.tm-skill-title { font-family: Inter, sans-serif; font-size: 1.05rem; font-weight: 700; color: #202050; }
.tm-skill-desc { font-family: Inter, sans-serif; font-size: 0.88rem; line-height: 1.6; color: #6b7280; }

/* ---------- Work experience timeline ---------- */
.tm-experience { background: #fff; }

.tm-exp-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; align-items: start; }
@media (min-width: 1024px) { .tm-exp-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem; } }

.tm-exp-media { position: sticky; top: 1.5rem; border-radius: 24px; overflow: hidden; }
.tm-exp-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }

.tm-exp-intro { font-family: Inter, sans-serif; font-size: 0.95rem; line-height: 1.75; color: #4b5165; margin-bottom: 2rem; }

.tm-timeline-item { padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid #eef0f4; }
.tm-timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.tm-timeline-year {
    display: inline-block;
    background: #F5F4FF;
    color: #6E6BDC;
    font-family: Inter, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.tm-timeline-role { font-family: Inter, sans-serif; font-size: 1.1rem; font-weight: 700; color: #202050; margin-bottom: 0.5rem; }
.tm-timeline-desc { font-family: Inter, sans-serif; font-size: 0.9rem; line-height: 1.65; color: #6b7280; }
