*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
  color: #111;
  background: #d8d8d8;
  line-height: 1.45;
}

/* ── Page ── */
.page {
  width: 210mm;
  margin: 20px auto;
  background: #fff;
  padding: 10mm 15mm 10mm;
  box-shadow: 0 4px 30px rgba(0,0,0,.18);
}

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

.cv-name {
  font-size: 13pt;
  font-weight: 700;
  margin-bottom: 3px;
}
.cv-title {
  font-size: 9pt;
  font-weight: 700;
  margin-bottom: 3px;
}
.cv-contact-row {
  font-size: 9pt;
  margin-bottom: 2px;
}
.cv-contact-row a, .cv-links-row a {
  color: #1155CC;
  text-decoration: underline;
}
.cv-links-row {
  font-size: 9pt;
  margin-bottom: 6px;
}
.cv-objective {
  font-size: 9pt;
  text-align: justify;
  line-height: 1.45;
}

/* ── Section title ── */
.section-title {
  font-size: 9.5pt;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a1a1a;
  border-bottom: 1.5px solid #42b983;
  padding-bottom: 2px;
  margin: 11px 0 6px;
  break-after: avoid;
}

/* ── Generic ── */
p { font-size: 9pt; line-height: 1.45; text-align: justify; }

ul { margin-left: 14px; margin-bottom: 4px; }
ul li { font-size: 9pt; line-height: 1.45; margin-bottom: 2px; }

/* ── Education ── */
.edu-item { margin-bottom: 5px; break-inside: avoid; }
.edu-item > p { text-align: left; }

.edu-sub {
  font-size: 9pt;
  font-style: italic;
  font-weight: normal;
  color: #444;
  margin-left: 10px;
  line-height: 1.45;
  text-align: left;
}

/* ── Experience ── */
.exp-item { margin-bottom: 9px; break-inside: avoid; }
.exp-head   { font-size: 9pt; font-weight: 700; }
.exp-period { font-size: 9pt; font-style: italic; color: #444; margin-bottom: 2px; }
.exp-text   { font-size: 9pt; text-align: justify; line-height: 1.45; }
.exp-sub    { margin-top: 4px; }
.exp-sub-title { font-size: 9pt; font-weight: 700; font-style: italic; margin: 3px 0 2px; }

/* ── Skills — inline por categoria ── */
.skills-cat { margin-bottom: 4px; break-inside: avoid; }
.skills-cat .cat-title {
  font-size: 9pt;
  font-weight: 700;
  display: inline;
}
.skills-cat p { display: inline; text-align: left; }

/* ── Certs — 2 colunas ── */
.cert-list {
  columns: 2;
  column-gap: 8mm;
}
.cert-list li { font-size: 9pt; line-height: 1.45; margin-bottom: 3px; break-inside: avoid; }

.cv-footer-keywords {
  display: none;
}

/* ── Print ── */
@media print {
  body { background: #fff; }
  .print-bar { display: none; }
  
  .cv-footer-keywords {
    display: block;
    position: fixed;
    bottom: 0;
    left: 15mm;
    right: 15mm;
    font-size: 7pt;
    color: #bbb;
    text-align: center;
    line-height: 1.8;
    border-top: 1px solid #e8e8e8;
    padding-top: 3px;
  }

  .page {
    margin: 0;
    box-shadow: none;
    width: 100%;
    padding: 0 0 14mm;
  }

  @page {
    size: A4;
    margin: 10mm 15mm;
  }

  @page :first {
    @bottom-center {
      content: none;
    }
  }

  .exp-item      { break-inside: avoid; }
  .edu-item      { break-inside: avoid; }
  .skills-cat    { break-inside: avoid; }
  .section-title { break-after: avoid; }
  .page-break    { break-before: page; }
}
