/* CV Tayyar resume templates: preview sheet, three templates, and the A4 print layout.
   Sizes are in pt/mm so the screen preview and the printed page match. */

.sheet {
  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  padding: 14mm 15mm;
  background: #fff;
  color: #111;
  position: relative;
}
.sheet--fluid { width: auto; max-width: 210mm; min-height: 0; padding: clamp(16px, 5vw, 15mm); }

.cv { --cv-accent: #111111; color: #111; font-size: 10.5pt; line-height: 1.38; text-align: left; overflow-wrap: anywhere; }
.cv--accent-ink { --cv-accent: #111111; }
.cv--accent-indigo { --cv-accent: #24407f; }
.cv--accent-teal { --cv-accent: #0d5c57; }
.cv--accent-maroon { --cv-accent: #7a1f2b; }
.cv--accent-forest { --cv-accent: #2d5a1e; }

.cv p, .cv ul, .cv h2, .cv h3 { margin: 0; padding: 0; }
.cv a { color: inherit; text-decoration: none; }
.cv-head { margin-bottom: 9pt; }
.cv-name { font-size: 20pt; line-height: 1.15; font-weight: 700; color: #111; letter-spacing: 0; }
.cv--unnamed .cv-name { color: #8a8a8a; }
.cv-headline { font-size: 11pt; margin-top: 2pt; }
.cv-contact { font-size: 10pt; margin-top: 4pt; }
.cv-sep { white-space: pre; }
.cv-sec { margin-top: 10pt; }
.cv-h { font-size: 11pt; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cv-accent); margin-bottom: 4pt; break-after: avoid; page-break-after: avoid; }
.cv-item { margin-top: 7pt; break-inside: avoid; page-break-inside: avoid; }
.cv-h + .cv-item { margin-top: 0; }
.cv-title { font-size: 10.5pt; }
.cv-when, .cv-where { font-size: 10pt; }
.cv-points { margin-top: 2pt; padding-left: 13pt; }
.cv-points li { margin-top: 1.5pt; }
.cv-skills, .cv-list { list-style: none; padding: 0; }
.cv-skills li + li, .cv-list li + li { margin-top: 2pt; }
.cv-summary + .cv-summary { margin-top: 4pt; }

/* Classic: serif, black, no rules. */
.cv--classic { font-family: Georgia, "Times New Roman", Times, serif; }
.cv--classic .cv-name { font-size: 21pt; }
.cv--classic .cv-h { letter-spacing: .08em; }
.cv--classic .cv-when { font-style: italic; }

/* Modern: sans-serif, coloured name, thin rule under headings, dates on the right. */
.cv--modern { font-family: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif; }
.cv--modern .cv-name { color: var(--cv-accent); }
.cv--modern .cv-h { text-transform: none; letter-spacing: .01em; font-size: 12pt; border-bottom: .75pt solid var(--cv-accent); padding-bottom: 2pt; margin-bottom: 5pt; }
.cv--modern .cv-row, .cv--compact .cv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10pt; }
.cv--modern .cv-when, .cv--compact .cv-when { white-space: nowrap; flex-shrink: 0; }

/* Compact: tighter spacing to fit more on a page. */
.cv--compact { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 10pt; line-height: 1.28; }
.cv--compact .cv-name { font-size: 17pt; }
.cv--compact .cv-headline { font-size: 10.5pt; }
.cv--compact .cv-head { margin-bottom: 6pt; padding-bottom: 5pt; border-bottom: 1pt solid var(--cv-accent); }
.cv--compact .cv-sec { margin-top: 7pt; }
.cv--compact .cv-h { font-size: 10pt; letter-spacing: .09em; margin-bottom: 2pt; }
.cv--compact .cv-item { margin-top: 4pt; }
.cv--compact .cv-title, .cv--compact .cv-when, .cv--compact .cv-where { font-size: 10pt; }
.cv--compact .cv-points { padding-left: 12pt; }
.cv--compact .cv-points li { margin-top: .5pt; }

/* Approximate page-end marks drawn by the builder (screen only). */
.page-mark { position: absolute; left: 0; right: 0; border-top: 1px dashed #b35c00; pointer-events: none; }
.page-mark span { position: absolute; right: 6px; top: -1.4em; font: 12px/1.2 system-ui, sans-serif; color: #8a4700; background: #fff; padding: 0 4px; }

@page { size: A4; margin: 14mm 15mm; }

@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .no-print, .page-mark { display: none !important; }
  .builder, .panes, .pane-preview, .preview-frame, .preview-scaler, main { display: block !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; transform: none !important; overflow: visible !important; background: #fff !important; position: static !important; }
  .builder[hidden] { display: none !important; }
  .page-builder .sheet { width: auto; min-height: 0; padding: 0; box-shadow: none; margin: 0; }
  .cv { orphans: 3; widows: 3; }
}
