/* ==========================================================================
   CV TEMPLATE — cvprojekt.pl
   Two-column: dark sidebar (left ~35%) + white main (right ~65%)
   Inspired by the "Emilia Hamilton" reference template.
   ========================================================================== */

/* ── Preview wrapper ── */
#cvPreview {
  font-family: var(--font-cv);
  background: #fff;
  color: #1a1d2e;
  padding: 0;
  overflow: hidden;
}

/* ── Page container: two-column grid ── */
.cv-page.cv-classic {
  display: grid;
  grid-template-columns: 36% 64%;
  min-height: 100%;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════
   SIDEBAR (left column — dark background)
   ═══════════════════════════════════════════════════════════════════════ */

.cv-sidebar {
  background: #2d2d2d;
  color: #e8e8e8;
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

/* ── Photo ── */
.cv-sidebar .cv-photo {
  margin: 0 -14px;   /* bleed to sidebar edges */
  margin-bottom: 12px;
}
.cv-sidebar .cv-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
}

/* ── Sidebar section (contact, skills, languages, education) ── */
.cv-sidebar-section {
  margin-bottom: 10px;
}

.cv-sidebar-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  padding-bottom: 3px;
  border-bottom: 1.5px solid rgba(255,255,255,.2);
  margin-bottom: 6px;
}

/* ── Contact items ── */
.cv-sidebar-item {
  margin-bottom: 5px;
}
.cv-sidebar-label {
  display: block;
  font-size: 7px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 1px;
}
.cv-sidebar-value {
  display: block;
  font-size: 7.5px;
  color: #e0e0e0;
  word-break: break-all;
  line-height: 1.4;
}

/* ── Skills (plain list) ── */
.cv-sidebar-skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cv-sidebar-skills li {
  font-size: 7.5px;
  color: #d0d0d0;
  padding-left: 0;
  line-height: 1.4;
}

/* ── Languages ── */
.cv-sidebar-lang {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.cv-sidebar-lang-name {
  font-size: 7.5px;
  color: #e0e0e0;
  font-weight: 500;
}
.cv-sidebar-lang-level {
  font-size: 6.5px;
  color: rgba(255,255,255,.5);
  font-style: italic;
}

/* ── Education in sidebar ── */
.cv-sidebar-edu {
  margin-bottom: 6px;
}
.cv-sidebar-edu-title {
  font-size: 7.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.cv-sidebar-edu-school {
  font-size: 7px;
  color: #c0c0c0;
  line-height: 1.3;
}
.cv-sidebar-edu-years {
  font-size: 6.5px;
  color: rgba(255,255,255,.45);
}


/* ═══════════════════════════════════════════════════════════════════════
   MAIN AREA (right column — white background)
   ═══════════════════════════════════════════════════════════════════════ */

.cv-main {
  padding: 20px 22px 14px 22px;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

/* ── Name ── */
.cv-name-block {
  margin-bottom: 2px;
  line-height: 1;
}
.cv-first-name {
  display: block;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2d2d2d;
}
.cv-last-name {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* ── Job title ── */
.cv-job-title {
  font-size: 9px;
  color: #666;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: .5px;
}

/* ── Divider ── */
.cv-divider {
  border: none;
  border-top: 1.5px solid #2d2d2d;
  margin: 0 0 10px 0;
}

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

.cv-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1a1a1a;
  padding-bottom: 3px;
  border-bottom: 1.5px solid #2d2d2d;
  margin-bottom: 6px;
}

/* ── Summary ── */
.cv-summary-text {
  font-size: 7.5px;
  line-height: 1.7;
  color: #444;
}

/* ── Experience entries ── */
.cv-entry {
  margin-bottom: 7px;
}
.cv-entry-position {
  font-size: 9px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1px;
}
.cv-entry-sub {
  font-size: 7px;
  color: #888;
  margin-bottom: 2px;
}

/* ── Bullet list ── */
.cv-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 0 0;
}
.cv-list li {
  font-size: 7px;
  color: #444;
  line-height: 1.6;
  padding-left: 8px;
  position: relative;
  margin-bottom: 1px;
}
.cv-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2d2d2d;
  font-weight: 700;
}

/* ── RODO ── */
.cv-rodo {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #e0e0e0;
}
.cv-rodo p {
  font-size: 5.5px;
  color: #999;
  font-style: italic;
  line-height: 1.5;
}


