/* The modern CV (cv/templates/cv/cv_modern.html): a sidebar and the main column, Inter (OFL, fonts/OFL.txt).
   For ATS parsers the text must be stored in the PDF in reading order, which WeasyPrint takes from the painting order:
   so every text box is in normal flow and the two columns are table cells (no float, absolute position, flex or grid;
   WeasyPrint 70 lays grids out badly). Bullets are text in the line. Test: cv/test_ats.py. */
@font-face { font-family: Inter; font-weight: 400; src: url("fonts/Inter-Regular.4145168e5230.ttf"); }
@font-face { font-family: Inter; font-weight: 400; font-style: italic; src: url("fonts/Inter-Italic.2247b87d078d.ttf"); }
@font-face { font-family: Inter; font-weight: 600; src: url("fonts/Inter-SemiBold.a757947dee36.ttf"); }
@font-face { font-family: Inter; font-weight: 700; src: url("fonts/Inter-Bold.c7b5fabc34e7.ttf"); }

:root { --ink: #1f2937; --muted: #6b7280; --rule: #d1d5db; --side: #eef2f7; --side-w: 64mm; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 10pt/1.5 Inter, "DejaVu Sans", sans-serif; color: var(--ink); background: #e5e7eb; font-kerning: none; }
a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }

/* the sheet: a header row and a row of two columns, as table rows */
.cvm-sheet { width: 210mm; margin: 24px auto; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.cvm-row { display: table; width: 100%; table-layout: fixed; }
.cvm-side { display: table-cell; width: var(--side-w); padding: 0 7mm 8mm 9mm; background: var(--side); vertical-align: top; font-size: 9pt; }
.cvm-main { display: table-cell; padding: 0 12mm 8mm 9mm; vertical-align: top; }

.cvm-head .cvm-side, .cvm-head .cvm-main { padding-top: 12mm; padding-bottom: 6mm; vertical-align: middle; }
.cvm-head__photo { text-align: center; }
.cvm-head__photo img { width: 36mm; height: 36mm; border-radius: 50%; border: 3px solid #fff; }
h1 { font-size: 26pt; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.cvm-title { margin-top: 2mm; font-size: 12.5pt; font-weight: 600; color: var(--accent); }

h2 { margin: 7mm 0 3mm; padding-bottom: 1.2mm; border-bottom: 1px solid var(--rule); font-size: 8.5pt; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.cvm-side h2 { border-bottom-color: #cbd5e1; }
h3 { font-size: 11pt; font-weight: 600; line-height: 1.35; }
.cvm-side h3 { margin-top: 2.5mm; font-size: 9pt; }
p { margin-bottom: 2mm; }
.cvm-contact { line-height: 1.7; overflow-wrap: anywhere; }
.cvm-summary { color: #374151; }
.cvm-note { font-size: 9pt; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 4px 8px; }

.cvm-item { margin-bottom: 5mm; }
/* role and company (or project) are one heading, on two lines; parsers read them as two lines too */
.cvm-item__role { display: block; font-size: 10pt; font-weight: 700; }
.cvm-item__name { display: block; }
.cvm-when { margin-bottom: 1.5mm; font-size: 9pt; color: var(--muted); }
.cvm-tech { font-size: 8.5pt; color: var(--muted); }
.cvm-tech span { font-weight: 600; color: var(--ink); }
ul { margin: 0 0 2mm; list-style: none; }
li { padding-left: 3.5mm; text-indent: -3.5mm; margin-bottom: .8mm; }
li::before { content: "• "; color: var(--accent); }  /* the bullet as text in the line, not a separate marker */
.cvm-compact li { padding-left: 0; text-indent: 0; margin-bottom: 2.5mm; }
.cvm-compact li::before { content: none; }
/* the consent is not about the person: set apart from the last entry by space and a rule */
.cvm-consents { margin-top: 12mm; padding-top: 3mm; border-top: 1px solid var(--rule); font-size: 7.5pt; color: var(--muted); }
.reveal-hint { font-size: .85em; color: var(--muted); }
.contact-reveal { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h2, h3 { break-after: avoid; }
.cvm-side section { break-inside: avoid; }  /* a sidebar section (e.g. languages) moves to the next page whole */

/* Print and PDF: the page is the sheet; the sidebar's color is the page background, so it runs down every page. */
@page { size: A4; margin: 12mm 0 14mm; background: linear-gradient(to right, #eef2f7 0, #eef2f7 64mm, #fff 64mm); }
@media print {
    body { background: none; }
    .cvm-sheet { width: auto; margin: 0; box-shadow: none; background: none; }
    .cvm-side { background: none; }
    .cvm-head .cvm-side, .cvm-head .cvm-main { padding-top: 0; }
    .reveal-hint, .cvm-note { display: none; }
}

/* Phones: one column, the sidebar above the main column. */
@media screen and (max-width: 820px) {
    .cvm-sheet { width: auto; margin: 0; box-shadow: none; }
    .cvm-row, .cvm-side, .cvm-main { display: block; width: auto; }
    .cvm-side, .cvm-main { padding: 1px 16px 16px; }  /* 1px: the first heading's margin stays inside the colored box */
    .cvm-head .cvm-side { padding-top: 24px; }
    .cvm-head .cvm-main { text-align: center; background: var(--side); padding-top: 8px; }
}
