/*
 * profile-career.css — Toro Legal Marketing
 *
 * People CPT single (single-people.php). "Career history" row beneath
 * the About section. Same 1/3 : 2/3 grid as profile-about, but cream
 * surface. Left: section heading. Right: a lead paragraph followed by
 * numbered role steps using the service-page "process" treatment
 * (serif number + role title + body), no visuals.
 *
 * Built from spec (no Figma frame); copy is canonical and hardcoded
 * in template-parts/people/career.php.
 */

.tlm-profile-career {
  background: var(--color-cream);
  padding-block: var(--space-3xl);
}

.tlm-profile-career__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tlm-profile-career__heading {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-h2-mobile);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
  text-wrap: balance;
}

/* --- Right column: lead + numbered roles --- */

.tlm-profile-career__lead {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-navy);
}

.tlm-profile-career__roles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.tlm-profile-career__role {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-border-card);
}

.tlm-profile-career__role:last-child {
  border-bottom: 1px solid var(--color-border-card);
}

.tlm-profile-career__role-number {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-h2-mobile);
  font-weight: var(--weight-regular);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
}

.tlm-profile-career__role-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-h3-mobile);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
}

.tlm-profile-career__role-body {
  color: var(--color-navy);
  font-size: var(--text-base);
}

.tlm-profile-career__role-body p {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-sans);
  line-height: var(--leading-normal);
}

.tlm-profile-career__role-body p:last-child {
  margin-bottom: 0;
}

/* --- Tablet: body type bumps to 18/1.6 --- */

@media (min-width: 768px) {
  .tlm-profile-career__lead,
  .tlm-profile-career__role-body p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-tight);
  }
}

/* --- Desktop: heading left (1/3), roles right (2/3) --- */

@media (min-width: 1024px) {
  .tlm-profile-career {
    padding-block: var(--space-4xl);
  }

  .tlm-profile-career__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: var(--space-3xl);
  }

  .tlm-profile-career__heading {
    font-size: var(--text-h2);
  }

  .tlm-profile-career__role {
    flex-direction: row;
    align-items: start;
    gap: var(--space-xl);
    padding-block: var(--space-xl);
  }

  .tlm-profile-career__role-number {
    flex-shrink: 0;
    min-width: 3ch;
    font-size: var(--text-h2);
  }

  .tlm-profile-career__role-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
  }

  .tlm-profile-career__role-title {
    font-size: var(--text-h3);
  }
}
