/* ===== CV PAGE – SCREEN STYLES ===== */
.cv-page {
  background: var(--color-bg-alt);
}

.cv-screen-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
}

.cv-screen-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cv {
  max-width: 210mm;
  margin: 2rem auto;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: 0;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

/* CV Header */
.cv-header {
  background: var(--color-primary);
  color: #fff;
  padding: 1.1rem 1.5rem 0.9rem;
  text-align: center;
}

.cv-header h1 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.3;
  font-family: Arial, Helvetica, sans-serif;
}

.cv-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  margin: 0.15rem 0 0.5rem;
  font-weight: 500;
}

.cv-header-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
}

.cv-header-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

/* CV Body – Single Column */
.cv-body {
  padding: 1.2rem 2rem;
}

/* Sections */
.cv-section {
  margin-bottom: 1.2rem;
  margin-top: 0;
  padding: 0;
}

.cv-section:last-child {
  margin-bottom: 0;
}

.cv-section h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 0.2rem 0;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid var(--color-secondary);
}

/* CV Entries */
.cv-entry {
  margin-bottom: 0.4rem;
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry-header {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.cv-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
  min-width: 130px;
  flex-shrink: 0;
}

.cv-entry-header strong {
  font-size: 0.75rem;
  color: var(--color-text);
  display: block;
  line-height: 1.5;
}

.cv-label {
  font-size: 0.65rem;
  color: var(--color-primary);
  font-weight: 600;
  display: block;
}

.cv-entry p {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0.05rem 0 0 calc(130px + 0.6rem);
}

.cv-entry ul {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0.05rem 0 0 calc(130px + 0.6rem);
  padding-left: 1rem;
  list-style: disc;
}

.cv-entry ul li {
  margin-bottom: 0.1rem;
}

.cv-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  font-size: 0.68rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0.2rem 0 0 0;
}

.cv-skills-grid span {
  white-space: nowrap;
}

.cv-body p {
  margin-bottom: 0;
}

/* Inline lists (Languages, Interests) */
.cv-inline-list {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* ===== CV PRINT STYLES ===== */
@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html, body {
    width: 210mm;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .cv-page {
    background: #fff;
  }

  .cv-screen-header,
  .no-print {
    display: none !important;
  }

  .cv {
    max-width: none;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .cv-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cv-entry {
    break-inside: avoid;
  }

  .cv-section {
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

/* ===== CV RESPONSIVE ===== */
@media screen and (max-width: 600px) {
  .cv {
    margin: 1rem;
    border-radius: var(--radius-sm);
  }

  .cv-header {
    padding: 1rem;
  }

  .cv-header-contact {
    gap: 0.2rem;
    font-size: 0.65rem;
  }

  .cv-body {
    padding: 0.75rem 1rem;
  }
}
