/* Resume templates: single column, real text, standard headings. Paper is always white with dark ink so print is predictable.
   Screen paper uses 0.5in padding to match the 0.5in print margins, so the page-break guides line up with the PDF. */
.paper { position: relative; background: #fff; color: #111; border-radius: 4px; box-shadow: 0 10px 34px rgba(0, 0, 0, .35); width: 8.5in; max-width: none; min-height: 11in; padding: .5in; margin: 0; }
.resume { font: 10.5pt/1.4 Arial, Helvetica, sans-serif; color: #111; background: #fff; text-align: left; }
.resume h1 { font-size: 22pt; margin: 0; line-height: 1.1; }
.resume h2 { font-size: 11pt; margin: 14pt 0 5pt; text-transform: uppercase; letter-spacing: .06em; break-after: avoid; }
.resume h3 { font-size: 10.5pt; margin: 0; }
.resume p { margin: 0 0 3pt; }
.resume ul { margin: 3pt 0 4pt; padding-left: 16pt; } .resume li { margin: 1pt 0; }
.resume .r-title { font-size: 12pt; margin-top: 2pt; } .resume .r-contact { font-size: 9.5pt; margin-top: 3pt; }
.resume .job { margin: 0 0 8pt; break-inside: avoid; }
.resume .job-head { display: flex; justify-content: space-between; gap: 12pt; align-items: baseline; }
.resume .dates { font-size: 9.5pt; white-space: nowrap; } .resume .job-sub { font-style: italic; }

.tpl-classic { font-family: Georgia, "Times New Roman", serif; }
.tpl-classic header { text-align: center; border-bottom: 1.5pt solid #111; padding-bottom: 6pt; }
.tpl-classic h2 { border-bottom: .75pt solid #555; padding-bottom: 2pt; }

.tpl-modern h1 { color: #0b5d54; } .tpl-modern header { border-left: 5pt solid #14b8a6; padding-left: 10pt; }
.tpl-modern h2 { color: #0b5d54; font-size: 11.5pt; } .tpl-modern .r-title { color: #333; }

.tpl-compact { font-size: 9.5pt; line-height: 1.3; } .tpl-compact h1 { font-size: 18pt; } .tpl-compact h2 { margin: 8pt 0 3pt; border-bottom: .5pt solid #888; font-size: 10pt; }
.tpl-compact .job { margin-bottom: 5pt; } .tpl-compact ul { margin: 1pt 0 2pt; }

.tpl-executive { font-family: Georgia, "Times New Roman", serif; color: #1c2a44; }
.tpl-executive h1 { font-size: 27pt; letter-spacing: .04em; font-weight: 400; } .tpl-executive header { border-bottom: 2.5pt double #1c2a44; padding-bottom: 8pt; }
.tpl-executive h2 { letter-spacing: .22em; font-size: 10pt; color: #1c2a44; } .tpl-executive .r-title { letter-spacing: .1em; text-transform: uppercase; font-size: 10pt; }

.tpl-minimal { font-family: "Segoe UI", Helvetica, Arial, sans-serif; color: #222; font-weight: 300; line-height: 1.5; }
.tpl-minimal h1 { font-weight: 300; font-size: 24pt; } .tpl-minimal h2 { font-weight: 600; font-size: 9.5pt; letter-spacing: .18em; color: #666; }
.tpl-minimal h3 { font-weight: 600; }

.tpl-bold h1 { font-size: 26pt; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.tpl-bold h2 { background: #1a1a1a; color: #fff; padding: 3pt 7pt; font-size: 10.5pt; }
.tpl-bold h3 { font-weight: 800; }

/* New in 2.0: six modern designs, still one column with standard headings. */
.tpl-slate { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #1e293b; }
.tpl-slate h1 { font-size: 24pt; font-weight: 700; letter-spacing: -.01em; color: #0f172a; } .tpl-slate .r-title { color: #475569; font-weight: 600; }
.tpl-slate h2 { color: #334155; font-size: 10pt; letter-spacing: .14em; margin-top: 16pt; }
.tpl-slate h2::after { content: ""; display: block; width: 28pt; height: 2.5pt; background: #0d9488; margin-top: 3pt; border-radius: 2pt; }
.tpl-slate .job-sub { font-style: normal; color: #475569; } .tpl-slate .dates { color: #64748b; }

.tpl-harbor { font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: 10.8pt; color: #1f2937; }
.tpl-harbor header { border-top: 6pt solid #1e3a8a; padding-top: 10pt; }
.tpl-harbor h1 { color: #1e3a8a; font-size: 25pt; } .tpl-harbor .r-title { color: #1e40af; font-weight: 600; }
.tpl-harbor h2 { color: #1e3a8a; font-size: 11pt; border-bottom: 1pt solid #c7d2fe; padding-bottom: 2pt; }
.tpl-harbor .dates { font-weight: 700; color: #1e3a8a; font-variant-numeric: tabular-nums; } .tpl-harbor .job-sub { font-style: normal; color: #4b5563; }

.tpl-ledger { font-family: Georgia, "Times New Roman", serif; font-size: 10.6pt; line-height: 1.45; }
.tpl-ledger h1 { font-family: "Segoe UI", Arial, sans-serif; font-size: 23pt; font-weight: 800; letter-spacing: -.01em; }
.tpl-ledger h2 { font-family: "Segoe UI", Arial, sans-serif; font-variant: small-caps; text-transform: lowercase; font-size: 13pt; letter-spacing: .08em; color: #3f3f46; border-bottom: .5pt solid #a1a1aa; }
.tpl-ledger h3 { font-family: "Segoe UI", Arial, sans-serif; } .tpl-ledger .dates { font-family: "Segoe UI", Arial, sans-serif; color: #52525b; }

.tpl-atlas { font-family: "Segoe UI", Helvetica, Arial, sans-serif; color: #18181b; }
.tpl-atlas header { text-align: center; padding-bottom: 8pt; border-bottom: .5pt solid #a1a1aa; }
.tpl-atlas h1 { font-size: 26pt; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; } .tpl-atlas .r-title { letter-spacing: .2em; text-transform: uppercase; font-size: 9pt; color: #52525b; }
.tpl-atlas h2 { text-align: center; font-size: 9.5pt; letter-spacing: .3em; font-weight: 600; color: #3f3f46; margin-top: 16pt; }
.tpl-atlas h2::after { content: ""; display: block; width: 18pt; height: .75pt; background: #71717a; margin: 4pt auto 0; }

.tpl-nordic { font-family: "Segoe UI", Helvetica, Arial, sans-serif; color: #27272a; line-height: 1.55; }
.tpl-nordic h1 { font-size: 23pt; font-weight: 600; } .tpl-nordic .r-title { color: #71717a; }
.tpl-nordic h2 { font-size: 9pt; letter-spacing: .2em; color: #8a8a93; font-weight: 600; margin-top: 18pt; }
.tpl-nordic .job { margin-bottom: 11pt; } .tpl-nordic .job-sub { font-style: normal; color: #71717a; } .tpl-nordic li { margin: 2pt 0; }

.tpl-signal { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #111827; }
.tpl-signal h1 { font-size: 27pt; font-weight: 800; color: #7c2d12; letter-spacing: -.02em; } .tpl-signal .r-title { font-weight: 700; color: #9a3412; }
.tpl-signal h2 { border-left: 4pt solid #ea580c; padding-left: 6pt; font-size: 11pt; letter-spacing: .08em; color: #111827; }
.tpl-signal h3 { font-weight: 800; } .tpl-signal .job-sub { font-style: normal; color: #4b5563; }

/* Design mode (not for ATS uploads): a two-column layout with a monogram and skill tags. */
.design-paper { padding: 0; overflow: hidden; }
.design { --dz: #0f766e; display: grid; grid-template-columns: 2.55in 1fr; min-height: 11in; font: 10pt/1.45 "Segoe UI", Helvetica, Arial, sans-serif; color: #1f2937; }
.dz-side { background: color-mix(in srgb, var(--dz) 9%, #fff); border-right: 1pt solid color-mix(in srgb, var(--dz) 20%, #fff); padding: .5in .3in; }
.dz-mono { width: 62pt; height: 62pt; border-radius: 50%; background: var(--dz); color: #fff; display: grid; place-items: center; font-size: 22pt; font-weight: 700; letter-spacing: .04em; margin-bottom: 16pt; }
.design h2 { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .2em; color: var(--dz); margin: 14pt 0 5pt; }
.dz-side p { margin: 0 0 4pt; font-size: 9pt; word-break: break-word; }
.dz-tags span { display: inline-block; margin: 0 3pt 4pt 0; padding: 1.5pt 6pt; border-radius: 8pt; background: #fff; border: .75pt solid color-mix(in srgb, var(--dz) 35%, #fff); font-size: 8.5pt; }
.dz-main { padding: .5in .45in; }
.dz-main h1 { font-size: 28pt; line-height: 1.05; margin: 0; color: #0b1220; letter-spacing: -.02em; }
.dz-title { font-size: 12pt; color: var(--dz); font-weight: 600; margin: 4pt 0 0; }
.dz-sum { margin: 12pt 0 4pt; font-size: 10.3pt; color: #374151; }
.dz-job { position: relative; padding: 0 0 9pt 12pt; border-left: 1.5pt solid color-mix(in srgb, var(--dz) 25%, #fff); break-inside: avoid; }
.dz-job::before { content: ""; position: absolute; left: -4.5pt; top: 3pt; width: 7.5pt; height: 7.5pt; border-radius: 50%; background: var(--dz); }
.dz-job h3 { font-size: 10.5pt; margin: 0; } .dz-when { font-size: 8.5pt; color: #6b7280; margin: 0; letter-spacing: .04em; } .dz-co { margin: 0 0 2pt; color: #4b5563; font-size: 9.5pt; }
.dz-job ul { margin: 2pt 0 0; padding-left: 13pt; } .dz-job li { margin: 1pt 0; }

/* 2.4 country formats: A4 by default (named page), left-to-right inside, entries kept whole across page breaks. */
@page a4cv { size: A4; margin: 15mm 18mm; }
.fmt { page: a4cv; direction: ltr; text-align: start; font: 10pt/1.4 Arial, Helvetica, sans-serif; color: #111; }
.paper.a4 { width: 210mm; min-height: 297mm; padding: 15mm 18mm; }
.fmt p, .fmt li, .fmt td, .fmt th, .fmt h3, .fmt .fx-r { unicode-bidi: plaintext; overflow-wrap: anywhere; }
.fmt ul { margin: 2pt 0 3pt; padding-left: 14pt; } .fmt li { margin: 1pt 0; break-inside: avoid; }
.fmt h1 { font-size: 22pt; margin: 0; line-height: 1.1; } .fmt section { margin: 0; }
.fmt .fx-org { margin: 0 0 2pt; font-style: italic; }

.fmt-eu { --fx: #1f3a5f; }
.fmt-eu h1 { color: var(--fx); } .fmt-eu .fx-sub { margin: 3pt 0 0; font-size: 11.5pt; }
.fmt-eu .fx-h { font-size: 10.5pt; color: var(--fx); text-transform: uppercase; letter-spacing: .06em; margin: 14pt 0 6pt; padding-bottom: 2pt; border-bottom: 1pt solid var(--fx); break-after: avoid; }
.fmt-eu .fx-row { display: grid; grid-template-columns: 38mm minmax(0, 1fr); column-gap: 6mm; margin: 0 0 7pt; break-inside: avoid; }
.fmt-eu .fx-l { font-weight: 700; font-size: 9.5pt; color: var(--fx); } .fmt-eu .fx-r h3 { font-size: 10.5pt; margin: 0; } .fmt-eu .fx-r p { margin: 0 0 2pt; }

.fmt-de h1 { font-size: 24pt; margin: 0 0 6pt; }
.fmt-de h2 { font-size: 12pt; text-transform: none; letter-spacing: 0; margin: 14pt 0 5pt; padding-bottom: 2pt; border-bottom: 1pt solid #333; break-after: avoid; }
.fmt-de .de-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8mm; }
.fmt-de .de-top-main { flex: 1 1 auto; min-width: 0; } .fmt-de .de-top h2 { margin-top: 8pt; }
.fmt-de .de-photo { flex: none; width: 35mm; height: 45mm; border: .75pt solid #555; box-sizing: border-box; }
.fmt-de .de-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fmt-de .de-tbl th, .fmt-de .de-tbl td { vertical-align: top; text-align: start; padding: 0 0 6pt; }
.fmt-de .de-tbl th { padding-right: 6mm; font-weight: 700; box-sizing: border-box; } .fmt-de .de-pd th { width: 28mm; } .fmt-de .de-pd tr { break-inside: avoid; }
.fmt-de .de-row { display: grid; grid-template-columns: 38mm minmax(0, 1fr); column-gap: 6mm; margin: 0 0 7pt; break-inside: avoid; }
.fmt-de .de-l { font-weight: 700; } .fmt-de .de-r p { margin: 0 0 2pt; }
.fmt-de .de-sign { display: flex; gap: 14mm; margin-top: 22mm; break-inside: avoid; }
.fmt-de .de-sig { flex: 1 1 0; } .fmt-de .de-fill { min-height: 10mm; display: flex; align-items: flex-end; padding-bottom: 1mm; }
.fmt-de .de-gap { display: inline-block; min-width: 38mm; } .fmt-de .de-line { border-top: .75pt solid #111; font-size: 8.5pt; padding-top: 2pt; }

.fmt-uk h2 { font-size: 11pt; text-transform: uppercase; letter-spacing: .05em; margin: 12pt 0 4pt; padding-bottom: 2pt; border-bottom: 1pt solid #222; break-after: avoid; }
.fmt-uk .r-title { font-size: 12pt; margin: 2pt 0 0; } .fmt-uk .r-contact { font-size: 9.5pt; margin-top: 3pt; display: flex; flex-wrap: wrap; gap: 0 14pt; }
.fmt-uk .job { margin: 0 0 7pt; break-inside: avoid; } .fmt-uk .job-head:not(:last-child), .fmt-uk .job-sub:not(:last-child) { break-after: avoid; }
.fmt-eu .fx-row.fx-long, .fmt-uk .job.fx-long, .fmt-de .de-row.fx-long { break-inside: auto; }
.fmt .nb { white-space: nowrap; } .fmt ul { orphans: 2; widows: 2; } .fmt-eu .fx-r h3:not(:last-child), .fmt-de .de-r b:not(:last-child), .fmt .fx-org:not(:last-child) { break-after: avoid; } .fmt-de .de-r b { display: block; }
.fmt-uk .uk-skills { columns: 3; column-gap: 8mm; } .fmt-uk .uk-refs { margin: 12pt 0 0; font-style: italic; break-inside: avoid; }

@media print {
  #print-sheet .paper { box-shadow: none; padding: 0; width: auto; min-height: 0; border-radius: 0; }
  #print-sheet .resume, #print-sheet .design { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-sheet .design { min-height: 10in; }
  #print-sheet pre.letter { white-space: pre-wrap; font: 11pt/1.5 Georgia, serif; color: #111; background: #fff; border: 0; padding: 0; }
}
