/* ── CV Styles — Augusto Bastos ── */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Roboto:wght@400;700&display=swap');
@import 'tokens.css';

body {
  font-family: 'Roboto', var(--font);
  background: #fff;
  color: #1a1a2e;
  font-size: 11pt;
  line-height: 1.4;
}

.cv-wrap {
  max-width: 210mm;
  margin: 0 auto;
  padding: 16mm 18mm 12mm;
}

/* ── Header ── */
.cv-header { margin-bottom: 12px; }

.cv-header h1 {
  font-family: 'Lato', var(--font);
  font-size: 26pt;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.5px;
  line-height: 1;
}

.cv-title {
  font-size: 10pt;
  color: var(--green-dark);
  font-weight: 600;
  margin-top: 3px;
  margin-bottom: 8px;
}

.cv-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  font-size: 9pt;
  color: #4a5568;
}

.cv-contacts a { color: var(--green-dark); text-decoration: none; }

/* ── Divider ── */
.cv-rule {
  border: none;
  border-top: 2.5px solid var(--green);
  margin: 10px 0 8px;
}

/* ── Section ── */
.cv-section { margin-bottom: 10px; }

.cv-section h2 {
  font-family: 'Lato', var(--font);
  font-size: 9.5pt;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

/* ── Summary ── */
.cv-summary {
  font-size: 9.5pt;
  color: #2d3748;
  line-height: 1.55;
}

/* ── Projects ── */
.cv-project { margin-bottom: 7px; }

.cv-project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.cv-project-name {
  font-size: 10pt;
  font-weight: 700;
  color: #1a1a2e;
}

.cv-project-date {
  font-size: 8.5pt;
  color: #718096;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-project-role {
  font-size: 9pt;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.cv-project ul {
  padding-left: 14px;
  margin-top: 2px;
}

.cv-project ul li {
  font-size: 9pt;
  color: #4a5568;
  margin-bottom: 1px;
  line-height: 1.45;
}

/* ── Skills pills ── */
.cv-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 4px;
}

.cv-skill-pill {
  background: #e8f5f0;
  border: 1px solid #c8e6dc;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 8.5pt;
  color: var(--green-dark);
  font-weight: 600;
}

/* ── Experience ── */
.cv-exp-item { margin-bottom: 5px; }

.cv-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.cv-exp-title {
  font-size: 9.5pt;
  font-weight: 700;
  color: #1a1a2e;
}

.cv-exp-date {
  font-size: 8.5pt;
  color: #718096;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-exp-company {
  font-size: 9pt;
  color: #4a5568;
}

/* ── Two-column bottom ── */
.cv-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Certs ── */
.cv-cert { margin-bottom: 4px; }

.cv-cert-name {
  font-size: 9pt;
  font-weight: 700;
  color: #1a1a2e;
}

.cv-cert-issuer {
  font-size: 8.5pt;
  color: #718096;
}

.cv-cert-wip {
  font-style: italic;
  color: var(--green-dark) !important;
}

/* ── Print ── */
@media print {
  body { background: white; }
  .cv-wrap { padding: 10mm 14mm; }
  .cv-skill-pill { background: #f0faf6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: var(--green-dark) !important; text-decoration: none !important; }
}

@page {
  size: A4;
  margin: 0;
}
