/* ==========================================================================
   pages/cv.css — CV only   (Figma frames: "CV" 1440 and "CV (v1) — 390")
   ========================================================================== */

/* ---- Header ------------------------------------------------------------ */
.cv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl) var(--space-2xl);
  padding-top: clamp(4.5rem, 3.3857rem + 4.5714vw, 7.5rem);  /* 72 → 120 */
  padding-bottom: clamp(2.375rem, 1.7714rem + 2.4762vw, 4rem); /* 38 → 64 */
}

@media (max-width: 47.99rem) { /* bp: mobile (< 768px) */
  .cv-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cv-header__title {
  font-size: var(--type-title);
}

.cv-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-2xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 47.99rem) { /* bp: mobile (< 768px) */
  .cv-header__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Entries (one per job, degree, language…) ---------------------------- */
.cv-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-block: var(--space-xl);
}

.cv-entry + .cv-entry {
  border-top: 1px solid var(--color-border);
}

/* The section's own padding handles the space after the last entry */
.cv-entry:last-child {
  padding-bottom: 0;
}

/* Stacked layout: the first entry sits right under the section title,
   so the title reads as part of its section (16px), not floating between two. */
@media (max-width: 63.99rem) { /* bp: below desktop (< 1024px) */
  .cv-entry:first-child {
    padding-top: 0;
  }
}

/* Title + dates: side by side, dates wrap below when there isn't room */
.cv-entry__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-xl);
}

.cv-entry__title {
  font-size: var(--type-link);  /* 18 */
  font-weight: 600;
}

.cv-entry__dates {
  font-size: var(--type-body-sm);
  line-height: var(--leading-small);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.cv-entry__org,
.cv-entry__lines {
  font-size: 0.9375rem; /* 15 */
  line-height: var(--leading-small);
  color: var(--color-text-body);
}

.cv-entry__desc {
  max-width: 37.5rem; /* 600 */
  color: var(--color-text-muted);
}

/* ---- Client engagements (nested under a consultancy role) -------------- */
.cv-engagements {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin: var(--space-2xs) 0 0;
  padding: 0;
  list-style: none;
}

.cv-engagement {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-2xs) 0 var(--space-2xs) var(--space-md);
  border-left: 2px solid var(--color-border);
}

.cv-engagement__title {
  font-family: var(--font-body);
  font-size: 0.9375rem; /* 15 */
  font-weight: 400;
  line-height: var(--leading-small);
  color: var(--color-text-body);
}

.cv-engagement__desc {
  max-width: 36.25rem; /* 580 */
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
