/* CV page templates. One markup (js/render.js), six looks. The page is A4 at 96dpi: 794 x 1123 px. */

.cv-page {
  --accent: #1f4e79;
  --ink: #1d232b;
  --muted: #5b6573;
  --rule: #d9dee5;
  --pad: 52px;
  width: 794px;
  min-height: 1123px;
  box-sizing: border-box;
  background: #fff;
  color: var(--ink);
  font: 400 10.5pt/1.45 "Inter", system-ui, sans-serif;
  padding: var(--pad);
  text-align: left;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.cv-page * { box-sizing: border-box; }
.cv-page h1, .cv-page h2, .cv-page h3, .cv-page p, .cv-page ul { margin: 0; padding: 0; }
.cv-page ul { list-style: none; }
.cv-page h1 { font-size: 26pt; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.cv-title { font-size: 12pt; color: var(--accent); font-weight: 500; margin-top: 4px !important; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 9pt; color: var(--muted); margin-top: 10px !important; }
.cv-contact li { display: flex; align-items: center; gap: 5px; }
.cv-contact svg { width: 12px; height: 12px; flex: none; color: var(--accent); }

.cv-body { display: flex; flex-direction: column; }
.cv-main, .cv-side { display: contents; }
.cv-sec { margin-top: 18px; break-inside: auto; }
.cv-sec h2 { font-size: 10pt; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
/* single-column order */
.sec-summary { order: 1; } .sec-skills { order: 2; } .sec-experience { order: 3; } .sec-projects { order: 4; }
.sec-education { order: 5; } .sec-certifications { order: 6; } .sec-languages { order: 7; }

.cv-item { margin-bottom: 11px; break-inside: avoid; }
.cv-item:last-child { margin-bottom: 0; }
.cv-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cv-item h3 { font-size: 10.5pt; font-weight: 600; }
.cv-item .org { font-weight: 500; }
.cv-item .at { color: var(--muted); font-weight: 400; }
.cv-when { font-size: 9pt; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv-where { font-size: 9pt; color: var(--muted); }
.cv-details, .cv-project p { font-size: 9.5pt; color: var(--ink); margin-top: 2px !important; }
.cv-bullets { margin-top: 4px !important; }
.cv-bullets li { position: relative; padding-left: 14px; margin-bottom: 2px; }
.cv-bullets li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cv-skills { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.cv-skills li::after { content: ","; }
.cv-skills li:last-child::after { content: ""; }
.cv-plain li { margin-bottom: 2px; }
.sec-languages .cv-plain { display: flex; flex-wrap: wrap; gap: 0 6px; }
.sec-languages .cv-plain li:not(:last-child)::after { content: ","; }
.tpl-modern .sec-languages .cv-plain, .tpl-executive .sec-languages .cv-plain { display: block; }
.tpl-modern .sec-languages .cv-plain li::after, .tpl-executive .sec-languages .cv-plain li::after { content: none; }

/* ---------- Classic ---------- */
.tpl-classic .cv-header { text-align: center; padding-bottom: 14px; border-bottom: 2px solid var(--accent); }
.tpl-classic h1 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 28pt; }
.tpl-classic .cv-contact { justify-content: center; }
.tpl-classic .cv-sec h2 { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 4px; }

/* ---------- Modern: sidebar ---------- */
.tpl-modern { --side: 252px; padding: 0; display: grid; grid-template-columns: var(--side) 1fr; grid-template-rows: auto auto 1fr;
  background: linear-gradient(90deg, #1e2733 var(--side), #fff var(--side)); }
.tpl-modern .cv-header, .tpl-modern .cv-body { display: contents; }
.tpl-modern .cv-id { grid-column: 2; grid-row: 1; padding: 46px 40px 0 36px; }
.tpl-modern .cv-contact { grid-column: 1; grid-row: 1 / 3; flex-direction: column; gap: 9px; padding: 46px 22px 4px 28px; margin: 0 !important; color: #d5dce5; font-size: 8.5pt; overflow-wrap: anywhere; }
.tpl-modern .cv-contact svg { color: #fff; opacity: 0.8; }
.tpl-modern .cv-main, .tpl-modern .cv-side { display: block; }
.tpl-modern .cv-side { grid-column: 1; grid-row: 3; padding: 4px 22px 40px 28px; color: #e8edf3; }
.tpl-modern .cv-main { grid-column: 2; grid-row: 2 / 4; padding: 4px 40px 40px 36px; }
.tpl-modern .cv-side h2 { color: #fff; border-bottom: 2px solid var(--accent); padding-bottom: 5px; display: inline-block; }
.tpl-modern .cv-side .cv-when, .tpl-modern .cv-side .cv-where { color: #aab5c3; }
.tpl-modern .cv-side .cv-item-head { flex-direction: column; gap: 0; }
.tpl-modern .cv-side .cv-details { color: #d5dce5; }
.tpl-modern .cv-skills { gap: 6px; }
.tpl-modern .cv-skills li { background: rgba(255,255,255,0.09); padding: 2px 8px; border-radius: 3px; font-size: 9pt; }
.tpl-modern .cv-skills li::after { content: none; }
.tpl-modern .cv-main .cv-sec h2 { display: flex; align-items: center; gap: 10px; }
.tpl-modern .cv-main .cv-sec h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------- Minimal: margin labels ---------- */
.tpl-minimal { --pad: 64px; font-size: 10pt; }
.tpl-minimal h1 { font-weight: 300; font-size: 30pt; letter-spacing: -0.02em; }
.tpl-minimal .cv-title { color: var(--muted); font-weight: 400; }
.tpl-minimal .cv-header { padding-bottom: 22px; }
.tpl-minimal .cv-sec { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eceff3; }
.tpl-minimal .cv-sec h2 { color: var(--ink); font-weight: 500; font-size: 8.5pt; letter-spacing: 0.16em; }
.tpl-minimal .cv-bullets li::before { background: var(--muted); width: 3px; height: 3px; }
.tpl-minimal .cv-contact svg { display: none; }
.tpl-minimal .cv-contact li:not(:last-child)::after { content: "/"; color: #c3c9d1; margin-left: 11px; }
.tpl-minimal .cv-contact { gap: 4px 11px; }

/* ---------- Executive: serif, colour band, right panel ---------- */
.tpl-executive { padding: 0; font-family: "Source Serif 4", Georgia, serif; font-size: 10.5pt; display: grid; grid-template-rows: auto 1fr; }
.tpl-executive .cv-header { background: var(--accent); color: #fff; padding: 40px 52px 30px; }
.tpl-executive h1 { font-weight: 600; font-size: 30pt; letter-spacing: 0; }
.tpl-executive .cv-title { color: rgba(255,255,255,0.85); font-style: italic; font-weight: 400; font-size: 13pt; }
.tpl-executive .cv-contact { color: rgba(255,255,255,0.9); font-family: "Inter", sans-serif; margin-top: 16px !important; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.3); }
.tpl-executive .cv-contact svg { color: #fff; }
.tpl-executive .cv-body { display: grid; grid-template-columns: 1fr 210px; }
.tpl-executive .cv-main, .tpl-executive .cv-side { display: block; }
.tpl-executive .cv-main { padding: 8px 32px 40px 52px; }
.tpl-executive .cv-side { padding: 8px 36px 40px 24px; background: #f4f5f7; border-left: 1px solid var(--rule); }
.tpl-executive .cv-sec h2 { font-family: "Inter", sans-serif; font-size: 9pt; letter-spacing: 0.18em; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.tpl-executive .cv-side .cv-item-head { flex-direction: column; gap: 0; }
.tpl-executive .cv-skills { flex-direction: column; gap: 3px; }
.tpl-executive .cv-skills li::after { content: none; }
.tpl-executive .cv-item h3 { font-size: 11pt; }
.tpl-executive .cv-when, .tpl-executive .cv-where { font-family: "Inter", sans-serif; }
.tpl-executive .cv-bullets li::before { border-radius: 0; width: 5px; height: 1.5px; top: 0.75em; }

/* ---------- Creative: header block, chips, timeline ---------- */
.tpl-creative { padding: 0; font-family: "Space Grotesk", "Inter", sans-serif; }
.tpl-creative .cv-header { padding: 44px 52px 30px; background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.tpl-creative .cv-header::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.tpl-creative .cv-header::before { content: ""; position: absolute; right: 70px; bottom: -90px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.tpl-creative h1 { font-size: 32pt; font-weight: 700; letter-spacing: -0.02em; }
.tpl-creative .cv-title { color: #fff; opacity: 0.9; font-size: 13pt; }
.tpl-creative .cv-contact { color: #fff; }
.tpl-creative .cv-contact svg { color: #fff; }
.tpl-creative .cv-body { padding: 4px 52px 44px; }
.tpl-creative .cv-sec h2 { color: var(--ink); font-size: 13pt; text-transform: none; letter-spacing: -0.01em; }
.tpl-creative .cv-sec h2::before { content: ""; display: inline-block; width: 18px; height: 4px; background: var(--accent); margin-right: 8px; vertical-align: middle; border-radius: 2px; }
.tpl-creative .cv-skills { gap: 6px; }
.tpl-creative .cv-skills li { border: 1.5px solid var(--accent); color: var(--accent); padding: 2px 10px; border-radius: 99px; font-size: 9pt; font-weight: 500; }
.tpl-creative .cv-skills li::after { content: none; }
.tpl-creative .sec-experience .cv-item { position: relative; padding-left: 20px; border-left: 2px solid #e6e9ee; padding-bottom: 4px; margin-bottom: 8px; }
.tpl-creative .sec-experience .cv-item::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tpl-creative .cv-when { color: var(--accent); font-weight: 600; }
.tpl-creative .sec-education .cv-sec-body, .tpl-creative .sec-projects .cv-sec-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.tpl-creative .sec-education .cv-item-head { flex-direction: column; gap: 0; }

/* ---------- ATS plain ---------- */
.tpl-ats { --accent: #111 !important; font-family: Arial, Helvetica, sans-serif; font-size: 10.5pt; color: #000; }
.tpl-ats h1 { font-size: 20pt; }
.tpl-ats .cv-title { color: #000; }
.tpl-ats .cv-contact { color: #000; }
.tpl-ats .cv-contact svg { display: none; }
.tpl-ats .cv-contact li:not(:last-child)::after { content: "|"; margin-left: 12px; }
.tpl-ats .cv-contact { gap: 2px 12px; }
.tpl-ats .cv-sec { margin-top: 14px; }
.tpl-ats .cv-sec h2 { color: #000; border-bottom: 1px solid #000; padding-bottom: 2px; letter-spacing: 0.04em; font-size: 11pt; }
.tpl-ats .cv-bullets li::before { content: "•"; background: none; width: auto; height: auto; top: 0; left: 0; }
.tpl-ats .cv-when, .tpl-ats .cv-where { color: #000; }

/* ---------- options for your own templates (Settings > CV templates) ---------- */
.cv-page[data-font="inter"], .cv-page[data-font="inter"] h1, .cv-page[data-font="inter"] .cv-sec h2 { font-family: "Inter", system-ui, sans-serif; }
.cv-page[data-font="serif"], .cv-page[data-font="serif"] h1, .cv-page[data-font="serif"] .cv-sec h2 { font-family: "Source Serif 4", Georgia, serif; }
.cv-page[data-font="grotesk"], .cv-page[data-font="grotesk"] h1, .cv-page[data-font="grotesk"] .cv-sec h2 { font-family: "Space Grotesk", "Inter", sans-serif; }
.cv-page[data-font="arial"], .cv-page[data-font="arial"] h1, .cv-page[data-font="arial"] .cv-sec h2 { font-family: Arial, Helvetica, sans-serif; }
.cv-page[data-heads="title"] .cv-sec h2 { text-transform: none; letter-spacing: 0; font-size: 12.5pt; }
.cv-page[data-heads="small"] .cv-sec h2 { font-size: 8.5pt; letter-spacing: 0.2em; }
.cv-page[data-density="compact"] { font-size: 9.5pt; line-height: 1.35; }
.cv-page[data-density="compact"] .cv-sec { margin-top: 12px; }
.cv-page[data-density="compact"] .cv-item { margin-bottom: 7px; }
.cv-page[data-density="airy"] { font-size: 11pt; line-height: 1.6; }
.cv-page[data-density="airy"] .cv-sec { margin-top: 26px; }
.cv-page[data-density="airy"] .cv-item { margin-bottom: 15px; }
