/* CV as a printed or downloaded A4 document: white page, brand mark, one red accent. Loaded with media="print". */
@page {
  size: A4;
  margin: 13mm 14mm 15mm;
  @bottom-left { content: "Jorge Daniel Salgado Pons, CV"; font: 7.5pt "Instrument Sans", Arial, sans-serif; color: #7a6a70; }
  @bottom-right { content: counter(page) " / " counter(pages); font: 7.5pt "Instrument Sans", Arial, sans-serif; color: #7a6a70; }
}

:root, :root[data-theme] {
  --ink-0: #fff; --ink-1: #fff; --ink-2: #f6f2f0; --ink-3: #ece6e3; --line: #ddd3cf;
  --text: #1d1417; --muted: #5c4d52; --human: #b5162b; --human-text: #b5162b; --verify: #3d5a8c;
}
html, body { background: #fff !important; color-scheme: light; }
:root { color-scheme: light !important; }
body { font-size: 9.1pt; line-height: 1.38; color: var(--text); }
p, li { max-width: none !important; }
body::before, body::after, .site-header, .site-footer, .skip, .no-print, .cv-screen-head, .cv-contact-section, .contact-copy { display: none !important; }
.wrap { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.section { padding: 0; margin: 0 0 3.6mm; break-inside: auto; }
a { color: inherit; text-decoration: none; }

/* Header band: mark, name and role on the left, contact channels on the right */
.cv-print-head { display: grid !important; grid-template-columns: minmax(0, 1fr) max-content; gap: 6mm; align-items: center; padding-bottom: 3.4mm; margin-bottom: 4mm; border-bottom: 2.2pt solid var(--human); }
.cv-brand { display: flex; align-items: center; gap: 4mm; }
.cv-brand .mark { flex: none; width: 13mm; height: 14mm; stroke: var(--text); }
.cv-name { margin: 0; font: 700 21pt / 1.05 var(--font-display); letter-spacing: -0.01em; }
.cv-role { margin: 1.2mm 0 0; color: var(--muted); font-size: 9.5pt; }
.cv-print-head .contact-list { display: grid; gap: 0.6mm; margin: 0; font-size: 8.2pt; justify-self: end; }
.cv-print-head .contact-row { grid-template-columns: 5mm auto; gap: 2mm; padding: 0; border: 0; }
.cv-print-head .contact-icon { width: 5mm; height: 5mm; border: 0; color: var(--human); }
.cv-print-head .contact-icon svg { width: 3.6mm; height: 3.6mm; }
.cv-print-head .contact-label { display: none; }
.cv-print-head .contact-text a { white-space: nowrap; overflow-wrap: normal; font: 500 8.2pt var(--font-body); border: 0; box-shadow: none; background: none; }

/* Section titles: small, with a red rule */
h2 { break-after: avoid; font: 700 11pt / 1.2 var(--font-display); margin: 0 0 2.4mm; padding-bottom: 1mm; border-bottom: 0.6pt solid var(--line); }
h2::after { display: none !important; }
.section-head { margin: 0; }
.section-head .lede { display: none; }
h3 { font-size: 10pt; margin: 0; }
.split { display: block; break-inside: avoid; }
.split > h2 { margin-bottom: 2.4mm; }
p { margin: 0 0 1.6mm; }

/* Experience: date column and compact entries, no cards */
.timeline { gap: 2.2mm; }
.timeline > li { grid-template-columns: 22mm minmax(0, 1fr); gap: 4mm; break-inside: avoid; }
.timeline .when { padding-top: 0; font-size: 8.8pt; color: var(--human); }
.timeline > li:not(.is-now) .when { color: var(--muted); }
.timeline .what { background: none !important; border: 0; border-radius: 0; padding: 0; backdrop-filter: none !important; }
.timeline .where { margin: 0.3mm 0 1.2mm; font-size: 8.8pt; }
.timeline .what ul { gap: 0.3mm; }
.timeline .what li { padding-left: 3.2mm; }
.timeline .what li::before { top: 0.72em; width: 1.6mm; background: var(--human); }

/* Skills in three columns, education and training as compact lists */
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 4mm; }
.cards > * { background: none !important; border: 0; border-left: 1.4pt solid var(--human); border-radius: 0; padding: 0 0 0 3mm; backdrop-filter: none !important; break-inside: avoid; }
.cards h3 { margin-bottom: 1.2mm; }
.cards ul:not(.bullets) { gap: 0.5mm; margin: 0; }
.facts { background: none !important; border: 0; padding: 0; columns: 2; column-gap: 8mm; backdrop-filter: none !important; }
.facts li { padding: 0 0 1.4mm; border: 0; break-inside: avoid; }
.bullets { gap: 1.4mm; }
.bullets li { padding-left: 4mm; break-inside: avoid; }
.bullets li::before { top: 0.5em; width: 1.6mm; height: 1.6mm; }
