/* RODNUK — CV Templates · ATS-friendly print stylesheet
 * Plain fonts, single column, standard headings, no graphics.
 * Optimised for: Workday, Greenhouse, Lever, Taleo, iCIMS, BambooHR. */

@page { size: A4; margin: 18mm 16mm; }

* { box-sizing: border-box; }

body.cv {
  font-family: 'Calibri', 'Arial', 'Helvetica', sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  color: #1a1a1a;
  background: #f5f5f7;
  margin: 0;
  padding: 0;
}

/* On-screen container mimics A4 page */
.cv-page {
  max-width: 210mm;
  min-height: 297mm;
  margin: 24px auto;
  padding: 24mm 22mm;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: relative;
}

@media print {
  body.cv { background: #fff; }
  .cv-page { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .no-print { display: none !important; }
}

/* Print controls (hidden on print) */
.cv-toolbar {
  max-width: 210mm;
  margin: 16px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  font-family: 'Calibri', sans-serif;
  font-size: 11pt;
}
.cv-toolbar a, .cv-toolbar button {
  padding: 8px 14px;
  border: 1px solid #012169;
  background: #fff;
  color: #012169;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 11pt;
}
.cv-toolbar button.primary {
  background: #012169;
  color: #fff;
}
.cv-toolbar button:hover, .cv-toolbar a:hover { opacity: .88; }

/* Header — name + contact */
.cv-header {
  border-bottom: 2pt solid #1a1a1a;
  padding-bottom: 6mm;
  margin-bottom: 6mm;
}
.cv-name {
  font-size: 22pt;
  font-weight: 700;
  margin: 0 0 2mm;
  letter-spacing: 0.5pt;
}
.cv-title {
  font-size: 13pt;
  font-weight: 400;
  margin: 0 0 4mm;
  color: #444;
}
.cv-contact {
  font-size: 10pt;
  line-height: 1.5;
  color: #444;
}
.cv-contact a { color: inherit; text-decoration: none; }
.cv-contact span { margin-right: 12px; }

/* Section headings */
.cv-section { margin-bottom: 6mm; }
.cv-section h2 {
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1pt;
  border-bottom: 0.5pt solid #888;
  padding-bottom: 1mm;
  margin: 0 0 3mm;
  color: #1a1a1a;
}

/* Job / Education entries */
.cv-entry { margin-bottom: 4mm; page-break-inside: avoid; }
.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1mm;
}
.cv-entry-role {
  font-weight: 700;
  font-size: 11pt;
}
.cv-entry-dates {
  font-size: 10pt;
  color: #555;
  white-space: nowrap;
  margin-left: 8mm;
}
.cv-entry-company {
  font-style: italic;
  font-size: 10.5pt;
  margin: 0 0 1.5mm;
  color: #333;
}
.cv-entry ul {
  margin: 0;
  padding-left: 5mm;
  list-style: disc;
}
.cv-entry li {
  margin: 0.5mm 0;
}

/* Summary paragraph */
.cv-summary {
  font-size: 11pt;
  margin: 0;
  line-height: 1.5;
}

/* Skills list (single-column for ATS parsing) */
.cv-skills {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 8mm;
}
.cv-skills li {
  padding: 0.5mm 0;
  break-inside: avoid;
}
.cv-skills li::before {
  content: "•  ";
  color: #555;
}

/* Certifications / Licences */
.cv-certs {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cv-certs li {
  padding: 0.5mm 0;
}
.cv-certs li::before {
  content: "•  ";
  color: #555;
}

/* Placeholder hint (visible on screen, hidden on print) */
.cv-hint {
  background: #fff8dc;
  border-left: 3px solid #d4a300;
  padding: 8px 12px;
  margin: 16px 0;
  font-size: 10pt;
  color: #6b5300;
  font-family: 'Calibri', sans-serif;
}
@media print { .cv-hint { display: none !important; } }

/* Editable mode — contenteditable feedback */
[contenteditable="true"]:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  background: #fffbeb;
}
@media print {
  [contenteditable="true"] { outline: none !important; background: none !important; }
}
