/* CV / résumé — screen + print (chromium “Save as PDF” & Playwright page.pdf) */
.cv-page .cv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cv-page .cv-toolbar .cv-toolbar__spacer {
  flex: 1 1 6rem;
  min-width: 0;
}
.cv-doc {
  max-width: 52rem;
  margin: 0 auto 3rem;
}
.cv-sheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.65rem 1.75rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink, #0f172a);
}
@media (min-width: 720px) {
  .cv-sheet {
    padding: 1.75rem 2rem 2rem;
  }
}
.cv-intro {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) {
  .cv-intro {
    grid-template-columns: minmax(0, 1fr) 9.5rem;
  }
}
.cv-title-block h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 2.2vw, 1.95rem);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cv-role-line {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1.35;
}
.cv-contact-line {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.cv-contact-line a {
  color: var(--teal-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 118, 110, 0.2);
}
.cv-contact-line a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.cv-figure {
  margin: 0;
  justify-self: end;
}
@media (min-width: 700px) {
  .cv-figure {
    position: relative;
  }
}
.cv-figure img {
  display: block;
  width: 9.5rem;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cv-section {
  margin: 0 0 1.4rem;
}
.cv-section h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cv-section h2::before {
  content: "";
  display: block;
  width: 2.1rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-700));
}
.cv-section p {
  margin: 0 0 0.7rem;
  color: var(--slate);
  line-height: 1.6;
  font-size: 0.96rem;
}
.cv-section p:last-child {
  margin-bottom: 0;
}
.cv-prose p + p {
  margin-top: 0.55rem;
}
.cv-competency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.45;
}
@media (min-width: 640px) {
  .cv-competency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cv-competency-grid li {
  position: relative;
  padding-left: 0.9rem;
}
.cv-competency-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-600);
  opacity: 0.9;
}
.cv-skills-cols {
  display: grid;
  gap: 0.9rem 1.25rem;
}
@media (min-width: 600px) {
  .cv-skills-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cv-skills-cols h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 800;
}
.cv-skills-cols p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}
.cv-job {
  margin: 0 0 1.1rem;
  break-inside: avoid;
  page-break-inside: avoid;
}
.cv-job:last-of-type {
  margin-bottom: 0;
}
.cv-job__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.2rem;
}
.cv-job h3 {
  margin: 0;
  font-size: 1.04rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.cv-job__dates {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.cv-job__org {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--teal-700);
  font-weight: 600;
}
.cv-list {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cv-list li + li {
  margin-top: 0.35rem;
}
.cv-refs {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
  font-style: italic;
}
/* Print: match on-screen structure; tight margins for A4 */
@media print {
  @page {
    size: A4;
    margin: 12mm 11mm 14mm;
  }
  body.cv-page {
    background: #fff;
    color: #111;
    font-size: 9.5pt;
    line-height: 1.42;
  }
  body.cv-page a {
    color: #111;
    text-decoration: none;
    border-bottom: 0;
  }
  .cv-sheet {
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .cv-intro {
    border-bottom: 1px solid #d1d5db;
  }
  .cv-section h2 {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cv-figure img {
    max-width: 8rem;
  }
  .cv-section,
  .cv-job,
  .cv-list li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
