/* ============================================================
   HopeBridge Careers — CV document stylesheet (schema 3)
   Loaded ONLY by the PDF renderer and the live preview.
   Never include site chrome, chat UI, or app layout here.
   ============================================================ */

/* Poppins for PDF renderer (browser preview already loads it via moshe.html) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------- Base sheet ---------- */
.cv-sheet {
  --cv-navy: #002744;
  --cv-navy-deep: #001a2e;
  --cv-blue-rule: #99C9EC;
  --cv-blue-muted: #D5DCE5;
  --cv-grey-side: #F2EFEC;
  --cv-grey-accent: #DD8047;
  --cv-grey-text: #775F55;
  --cv-grey-rule: #E0D8D2;
  --cv-grey-muted: #B9AEA6;
  --cv-purple: #77448B;
  --cv-purple-deep: #322A60;
  --cv-purple-soft: #DCCDE4;
  --cv-purple-pill: #F3EAF7;
  --cv-text: #1a1a1a;
  --cv-muted: #4a5568;
  --cv-line: #e2e8f0;

  box-sizing: border-box;
  width: 100%;
  max-width: 210mm;
  margin: 0 auto;
  background: #fff;
  color: var(--cv-text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10.5pt;
  line-height: 1.45;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.cv-sheet *,
.cv-sheet *::before,
.cv-sheet *::after {
  box-sizing: border-box;
}

.cv-sheet h1,
.cv-sheet h2,
.cv-sheet h3,
.cv-sheet p,
.cv-sheet ul,
.cv-sheet li {
  margin: 0;
  padding: 0;
}

.cv-sheet h1 {
  font-size: 22pt;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cv-sheet h2 {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.1em 0 0.45em;
  color: var(--cv-navy);
}

.cv-sheet p {
  margin: 0 0 0.5em;
}

.cv-sheet .cv-title {
  font-size: 11pt;
  font-weight: 600;
  color: var(--cv-muted);
  margin: 0.15em 0 0.4em;
}

.cv-sheet .cv-contact {
  font-size: 9pt;
  color: var(--cv-muted);
  margin-top: 0.35em;
}

/* ---------- Shared item blocks ---------- */
.cv-item {
  margin-bottom: 0.75em;
  page-break-inside: avoid;
}

.cv-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cv-item-head strong {
  font-weight: 650;
  color: var(--cv-text);
}

.cv-item-head span {
  font-size: 9pt;
  color: var(--cv-muted);
  white-space: nowrap;
}

.cv-sub {
  font-size: 9.5pt;
  color: var(--cv-muted);
  margin-top: 0.1em;
}

.cv-notes {
  font-size: 9pt;
  color: var(--cv-muted);
  margin-top: 0.2em;
}

.cv-list {
  margin: 0.3em 0 0 1.1em;
  padding: 0;
  list-style: disc;
}

.cv-list li {
  margin-bottom: 0.2em;
  padding-left: 0.15em;
}

.cv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin-top: 0.25em;
}

.cv-pill {
  display: inline-block;
  padding: 0.2em 0.65em;
  font-size: 8.5pt;
  font-weight: 550;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--cv-navy);
  border: 1px solid #e2e8f0;
}

/* ============================================================
   BLUE — Executive (centred header, navy bands)
   ============================================================ */
.cv-blue .cv-head.blue {
  background: var(--cv-navy);
  color: #fff;
  text-align: center;
  padding: 1.35rem 1.5rem 1.1rem;
  margin: 0;
}

.cv-blue .cv-head.blue h1 {
  color: #fff;
  font-size: 20pt;
}

.cv-blue .cv-head.blue .cv-contact {
  color: rgba(255, 255, 255, 0.88);
  font-size: 9pt;
  margin-top: 0.45em;
}

.cv-blue .cv-body {
  padding: 1.1rem 1.5rem 1.4rem;
}

.cv-blue .cv-body h2 {
  color: var(--cv-navy);
  border-bottom: 1.5px solid var(--cv-blue-rule);
  padding-bottom: 0.25em;
  margin-top: 1.15em;
}

.cv-blue .cv-body h2:first-child {
  margin-top: 0;
}

.cv-blue .cv-pill {
  background: #e8f4fc;
  border-color: var(--cv-blue-rule);
  color: var(--cv-navy);
}

/* ============================================================
   GREY — Spotlight (two-column, skills-first sidebar)
   ============================================================ */
.cv-grey {
  padding: 0;
}

.cv-grey-wrap {
  display: flex;
  min-height: 100%;
}

.cv-grey-side {
  width: 34%;
  flex-shrink: 0;
  background: var(--cv-grey-side);
  border-right: 3px solid var(--cv-grey-accent);
  padding: 1.35rem 1rem 1.5rem;
  color: var(--cv-grey-text);
}

.cv-grey-main {
  width: 66%;
  padding: 1.35rem 1.35rem 1.5rem 1.25rem;
}

.cv-grey-initials {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--cv-grey-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}

.cv-grey-side h2 {
  color: var(--cv-grey-text);
  font-size: 9.5pt;
  margin-top: 1.1em;
  margin-bottom: 0.35em;
  border-bottom: 1px solid #CFC4BC;
  padding-bottom: 0.2em;
}

.cv-grey-side h2:first-of-type {
  margin-top: 0;
}

.cv-side-line {
  font-size: 9pt;
  line-height: 1.55;
  color: var(--cv-grey-text);
  word-break: break-word;
}

.cv-grey-main h1 {
  color: var(--cv-grey-text);
  font-size: 18pt;
}

.cv-grey-main .cv-title {
  color: var(--cv-grey-accent);
  font-weight: 650;
}

.cv-grey-main h2 {
  color: var(--cv-grey-text);
  border-bottom: 1px solid var(--cv-grey-rule);
  padding-bottom: 0.25em;
}

.cv-grey .cv-pill {
  background: #fff;
  border: 1.5px solid #CFC4BC;
  color: var(--cv-grey-text);
  border-radius: 4px;
  font-size: 8pt;
}

/* ============================================================
   PURPLE — Launchpad (graduate / first-job friendly)
   ============================================================ */
.cv-purple .cv-head.purple {
  background: transparent;
  padding: 1.25rem 1.5rem 0.85rem;
  border-bottom: none;
}

.cv-purple .cv-head.purple h1 {
  color: var(--cv-purple-deep);
  font-size: 20pt;
}

.cv-purple .cv-head.purple .cv-title {
  color: var(--cv-purple);
  font-weight: 650;
  margin-top: 0.2em;
}

.cv-purple .cv-head.purple .cv-contact {
  color: #6b7280;
  font-size: 9pt;
  margin-top: 0.45em;
  border-top: 1.5px solid var(--cv-purple);
  padding-top: 0.45em;
}

.cv-purple .cv-body {
  padding: 0.6rem 1.5rem 1.4rem;
}

.cv-purple .cv-body h2 {
  color: var(--cv-purple);
  border-bottom: 1px solid var(--cv-purple-soft);
  padding-bottom: 0.25em;
}

.cv-purple .cv-pill {
  background: var(--cv-purple-pill);
  border: none;
  color: var(--cv-purple-deep);
  border-radius: 9px;
  font-size: 8.5pt;
}

/* ---------- Print / PDF safety ---------- */
@media print {
  .cv-sheet {
    max-width: none;
    box-shadow: none;
  }
  .cv-item {
    page-break-inside: avoid;
  }
  .cv-grey-wrap {
    break-inside: avoid;
  }
}