/* ===========================================================================
   Rozzo — the résumé paper. One renderer, many real structures:
     L-  layout : single | gutter | twocol | side-left | side-right
     H-  header : banner | centered | minimal | split | photo | monogram | band | side
     S-  heading: rule | caps | pill | dot
     E-  entries: classic | timeline
     K-  skills : columns | pills | bars | inline
     T-  sidebar tone: solid | tint
   Vars: --ra accent, --rt tint (very light accent), --rs soft (light accent line)
   Paper is 720px wide (Letter/A4 at ~85 dpi). The PDF export mirrors this.
   =========================================================================== */
/* Résumé fonts: open, metric-compatible stand-ins (Carlito≈Calibri, Arimo≈Arial, Tinos≈Times New Roman,
   Gelasio≈Georgia, Caladea≈Cambria, EB Garamond≈Garamond). The PDF embeds the same files. */
@font-face { font-family: "RZ Carlito"; src: url("../assets/fonts/Carlito-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Carlito"; src: url("../assets/fonts/Carlito-bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Carlito"; src: url("../assets/fonts/Carlito-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Carlito"; src: url("../assets/fonts/Carlito-bolditalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Arimo"; src: url("../assets/fonts/Arimo-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Arimo"; src: url("../assets/fonts/Arimo-bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Arimo"; src: url("../assets/fonts/Arimo-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Arimo"; src: url("../assets/fonts/Arimo-bolditalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Tinos"; src: url("../assets/fonts/Tinos-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Tinos"; src: url("../assets/fonts/Tinos-bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Tinos"; src: url("../assets/fonts/Tinos-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Tinos"; src: url("../assets/fonts/Tinos-bolditalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Gelasio"; src: url("../assets/fonts/Gelasio-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Gelasio"; src: url("../assets/fonts/Gelasio-bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Gelasio"; src: url("../assets/fonts/Gelasio-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Gelasio"; src: url("../assets/fonts/Gelasio-bolditalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Caladea"; src: url("../assets/fonts/Caladea-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Caladea"; src: url("../assets/fonts/Caladea-bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ Caladea"; src: url("../assets/fonts/Caladea-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ Caladea"; src: url("../assets/fonts/Caladea-bolditalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ EBGaramond"; src: url("../assets/fonts/EBGaramond-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ EBGaramond"; src: url("../assets/fonts/EBGaramond-bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RZ EBGaramond"; src: url("../assets/fonts/EBGaramond-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "RZ EBGaramond"; src: url("../assets/fonts/EBGaramond-bolditalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
.rs { --ra: #1f2937; --rt: #f1f2f4; --rs: #d9dce1; --ri: #111827; --rm: #4b5563;
  position: relative; width: 720px; min-height: 1018px; background: #fff; color: var(--ri);
  font-family: Arial, Helvetica, sans-serif; font-size: 12.4px; font-weight: 400; line-height: 1.42; letter-spacing: 0; text-align: left; overflow: hidden; overflow-wrap: anywhere;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rs.letter { min-height: 932px; }
.rs * { box-sizing: border-box; }
.rs .ic { width: 11px; height: 11px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.rs h1, .rs h2, .rs h3 { margin: 0; letter-spacing: 0; text-wrap: initial; font-family: inherit; }
.rs p { margin: 0; }
.rs ul { margin: 0; padding: 0; }
.rs.serif { font-family: Georgia, "Times New Roman", serif; }

/* ---------- common blocks ---------- */
.rs .r-name { font-size: 26px; font-weight: 700; line-height: 1.12; letter-spacing: .4px; text-transform: uppercase; color: var(--ri); }
.rs .r-title { font-size: 13px; font-weight: 400; color: var(--rm); margin-top: 4px; }
.rs .r-contact { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 11.2px; color: var(--rm); margin-top: 7px; }
.rs .r-ci { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.rs .r-ci .ic { color: var(--ra); }
.rs .r-ph { color: #b7bccb; }
.rs .r-body { padding: 18px 42px 36px; }
.rs .r-sec { margin-top: 15px; border-radius: 4px; }
.rs .r-sec:first-child { margin-top: 0; }
.rs .r-sec[data-hl] { background: #fff4d2; box-shadow: 0 0 0 5px #fff4d2; }
.rs .r-summary { color: #222; }
.rs .r-entry { margin-bottom: 10px; break-inside: avoid; }
.rs .r-entry:last-child { margin-bottom: 0; }
.rs .r-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rs .r-role { font-weight: 700; }
.rs .r-org { font-weight: 700; }
.rs .r-when { color: var(--rm); font-size: 11px; white-space: nowrap; }
.rs .r-loc { color: #666; font-size: 11px; font-style: italic; margin: 1px 0 2px; }
.rs .r-bul { margin: 3px 0 0; padding-left: 15px; }
.rs .r-bul li { margin-bottom: 2px; }
.rs .r-bul li::marker { color: var(--ra); }
.rs .r-desc { color: #333; font-size: 12px; }
.rs .r-link { color: var(--rm); font-size: 11px; margin: 1px 0 2px; }
.rs .r-langs { display: flex; flex-wrap: wrap; gap: 2px 18px; list-style: none; }
.rs .r-langs b { font-weight: 700; }
.rs .r-langs span { color: var(--rm); }
.rs .r-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: 1px; flex: 0 0 auto; }
.rs .r-photo { object-fit: cover; flex: 0 0 auto; display: block; }
.rs .r-photo.ph { display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: var(--ra); }

/* ---------- headings ---------- */
.rs .r-h { display: flex; align-items: center; gap: 7px; font-size: 11.6px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 7px; color: var(--ra); }
.rs.serif .r-h { letter-spacing: .7px; }
.rs.S-rule .r-h { padding-bottom: 3px; border-bottom: 1.5px solid var(--ra); }
.rs.S-caps .r-h { color: var(--ri); letter-spacing: 1.8px; padding-bottom: 4px; border-bottom: 1px solid #cfd3da; }
.rs.S-pill .r-h { display: inline-flex; background: var(--ra); color: #fff; padding: 3px 11px; border-radius: 99px; letter-spacing: .9px; margin-bottom: 8px; }
.rs.S-dot .r-h { color: var(--ri); letter-spacing: 1.4px; }
.rs.S-dot .r-h::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ra); flex: 0 0 auto; }

/* ---------- skills ---------- */
.rs .r-skills { list-style: none; }
.rs.K-columns .r-skills { columns: 2; column-gap: 26px; }
.rs.K-columns .r-skills li { position: relative; padding-left: 13px; margin-bottom: 2px; break-inside: avoid; display: flex; justify-content: space-between; gap: 8px; }
.rs.K-columns .r-skills li::before { content: "•"; position: absolute; left: 0; color: var(--ra); }
.rs.K-pills .r-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.rs.K-pills .r-skills li { border: 1px solid var(--rs); background: var(--rt); color: var(--ri); border-radius: 99px; padding: 2px 9px; font-size: 11.3px; }
.rs.K-inline .r-skills { display: block; }
.rs.K-inline .r-skills li { display: inline; }
.rs.K-inline .r-skills li + li::before { content: "\00a0\00b7\0020"; color: var(--ra); font-weight: 700; padding-left: 2px; }
.rs.K-bars .r-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; }
.rs.K-bars .r-skills li { display: grid; grid-template-columns: minmax(0, 1fr) 62px; align-items: center; gap: 8px; }
.rs .r-lvl { display: inline-flex; gap: 2px; }
.rs .r-lvl i { width: 10px; height: 5px; border-radius: 2px; background: var(--rs); }
.rs .r-lvl i.on { background: var(--ra); }
.rs .r-dots { display: inline-flex; gap: 3px; }
.rs .r-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rs); }
.rs .r-dots i.on { background: var(--ra); }

/* ---------- entries: timeline ---------- */
.rs.E-timeline .r-tl .r-entry { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 16px; margin-bottom: 0; }
.rs.E-timeline .r-tl .r-tl-when { font-size: 10.8px; color: var(--rm); padding-top: 1px; text-align: right; font-weight: 700; }
.rs.E-timeline .r-tl .r-tl-body { position: relative; padding: 0 0 11px 16px; border-left: 2px solid var(--rs); }
.rs.E-timeline .r-tl .r-entry:last-child .r-tl-body { padding-bottom: 2px; }
.rs.E-timeline .r-tl .r-tl-body::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--ra); }
.rs.E-timeline .r-tl .r-when { display: none; }

/* ---------- headers ---------- */
.rs .r-head { position: relative; }
.rs .r-head[data-hl] { box-shadow: inset 0 0 0 3px #f5c451; }
.rs.H-banner .r-head { display: flex; align-items: center; gap: 18px; padding: 26px 42px; background: var(--ra); color: #fff; }
.rs.H-banner .r-head .r-name, .rs.H-banner .r-head .r-title, .rs.H-banner .r-head .r-contact { color: #fff; }
.rs.H-banner .r-head .r-title, .rs.H-banner .r-head .r-contact { opacity: .92; }
.rs.H-banner .r-head .r-ci .ic { color: #fff; }
.rs.H-banner .r-head .r-initials { width: 54px; height: 54px; border: 2px solid rgba(255,255,255,.85); border-radius: 9px; font-size: 18px; color: #fff; }
.rs.H-banner .r-head .r-photo { width: 70px; height: 70px; border-radius: 50%; border: 3px solid rgba(255,255,255,.8); }
.rs.H-centered .r-head { text-align: center; padding: 32px 42px 0; }
.rs.H-centered .r-head .r-name { color: var(--ra); }
.rs.H-centered .r-head .r-contact { justify-content: center; }
.rs.H-centered .r-head .r-initials { width: 46px; height: 46px; border: 2px solid var(--ra); border-radius: 50%; color: var(--ra); font-size: 15px; margin-bottom: 9px; }
.rs.H-centered .r-head .r-rule { height: 0; border-bottom: 2px solid var(--ra); margin-top: 13px; }
.rs.H-minimal .r-head, .rs.H-band .r-head { padding: 32px 42px 0; }
.rs.H-minimal .r-head .r-name, .rs.H-band .r-head .r-name { color: var(--ra); }
.rs.H-minimal .r-head .r-rule, .rs.H-band .r-head .r-rule { height: 0; border-bottom: 2px solid var(--ra); margin-top: 12px; }
.rs.H-band .r-head { border-top: 12px solid var(--ra); padding-top: 26px; }
.rs.H-band .r-head .r-rule { border-bottom: 1px solid #cfd3da; }
.rs.H-split .r-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding: 32px 42px 12px; border-bottom: 2px solid var(--ra); margin: 0 42px; padding-left: 0; padding-right: 0; }
.rs.H-split .r-head .r-name { color: var(--ri); font-size: 28px; }
.rs.H-split .r-head .r-title { color: var(--ra); font-size: 13.5px; font-weight: 700; }
.rs.H-split .r-head .r-contact { flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; text-align: right; }
.rs.H-photo .r-head { display: flex; align-items: center; gap: 18px; padding: 24px 42px 0; border-top: 8px solid var(--ra); }
.rs.H-photo .r-head .r-photo { width: 80px; height: 80px; border-radius: 10px; }
.rs.H-photo .r-head .r-name { color: var(--ra); }
.rs.H-monogram .r-head { display: flex; align-items: center; gap: 20px; padding: 30px 42px 14px; margin: 0 42px; padding-left: 0; padding-right: 0; border-bottom: 1px solid #cfd3da; }
.rs.H-monogram .r-head .r-initials { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ra); color: var(--ra); font-size: 22px; font-weight: 400; letter-spacing: 2px; }
.rs.H-monogram .r-head .r-name { font-weight: 400; letter-spacing: 3px; font-size: 27px; }
.rs.H-monogram .r-head .r-title { color: var(--ra); letter-spacing: 1.5px; text-transform: uppercase; font-size: 11.5px; font-weight: 700; }

/* ---------- gutter layout: section labels in a left column ---------- */
.rs.L-gutter .r-sec { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 20px; margin-top: 16px; }
.rs.L-gutter .r-sec > .r-h { border: 0; padding: 1px 0 0; margin: 0; line-height: 1.3; align-items: flex-start; }
.rs.L-gutter.S-pill .r-sec > .r-h { align-self: start; justify-self: start; }
.rs.L-gutter .r-sec-in { min-width: 0; }
.rs.L-gutter .r-body { padding-top: 20px; }
.rs.L-gutter.K-columns .r-skills { columns: 2; }

/* ---------- two column (header full width) ---------- */
.rs.L-twocol .r-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 0 26px; margin-top: 15px; }
.rs.L-twocol .r-grid > div > .r-sec:first-child { margin-top: 0; }
.rs.L-twocol .r-aside.K-columns .r-skills, .rs.L-twocol .r-aside .r-skills { columns: 1; }
.rs.L-twocol .r-aside .r-sec { margin-top: 15px; }
.rs.L-twocol .r-aside .r-sec:first-child { margin-top: 0; }
.rs.L-twocol.K-bars .r-aside .r-skills { grid-template-columns: 1fr; }
.rs.L-twocol .r-aside .r-langs { flex-direction: column; gap: 2px; }

/* ---------- sidebar layouts ---------- */
.rs.L-side-left, .rs.L-side-right { display: grid; }
.rs.L-side-left { grid-template-columns: 33% 67%; }
.rs.L-side-right { grid-template-columns: 65% 35%; }
.rs.L-side-right .r-side { order: 2; }
.rs .r-side { padding: 28px 22px 30px; min-width: 0; }
.rs .r-main { padding: 30px 30px 32px; min-width: 0; }
.rs.L-side-right .r-main { padding: 30px 26px 32px 42px; }
.rs .r-side .r-sec { margin-top: 16px; }
.rs .r-side .r-sec:first-child { margin-top: 0; }
.rs .r-side .r-photo { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 18px; }
.rs .r-side .r-contact { flex-direction: column; gap: 5px; margin-top: 0; font-size: 11px; }
.rs .r-side .r-langs { flex-direction: column; gap: 2px; }
.rs .r-side .r-skills { columns: 1 !important; }
.rs.K-bars .r-side .r-skills { grid-template-columns: 1fr; }
.rs .r-main .r-name { color: var(--ra); font-size: 25px; }
.rs .r-main .r-title { margin-bottom: 4px; }
.rs .r-main .r-head { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--ra); }
.rs.T-solid .r-side { background: var(--ra); color: #fff; }
.rs.T-solid .r-side .r-h { color: #fff; border-color: rgba(255,255,255,.55); }
.rs.T-solid.S-pill .r-side .r-h { background: #fff; color: var(--ra); }
.rs.T-solid.S-dot .r-side .r-h::before { background: #fff; }
.rs.T-solid .r-side .r-contact, .rs.T-solid .r-side .r-ci .ic, .rs.T-solid .r-side .r-langs span { color: #fff; }
.rs.T-solid .r-side .r-contact { opacity: .95; }
.rs.T-solid .r-side .r-photo { border: 3px solid rgba(255,255,255,.7); }
.rs.T-solid .r-side .r-photo.ph { background: rgba(255,255,255,.18); }
.rs.T-solid.K-columns .r-side .r-skills li::before { color: #fff; }
.rs.T-solid.K-pills .r-side .r-skills li { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.rs.T-solid .r-side .r-lvl i, .rs.T-solid .r-side .r-dots i { background: rgba(255,255,255,.3); }
.rs.T-solid .r-side .r-lvl i.on, .rs.T-solid .r-side .r-dots i.on { background: #fff; }
.rs.T-solid .r-side .r-sec[data-hl] { background: rgba(255,255,255,.16); box-shadow: 0 0 0 5px rgba(255,255,255,.16); }
.rs.T-solid.K-inline .r-side .r-skills li + li::before { color: #fff; }
.rs.T-tint .r-side { background: var(--rt); }
.rs.T-tint .r-side .r-photo { border: 3px solid #fff; }

/* ---------- page-break marker (preview only) ---------- */
.rs .r-break { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed #9aa3b8; pointer-events: none; z-index: 5; }
.rs .r-break span { position: absolute; right: 10px; top: -11px; background: #9aa3b8; color: #fff; font: 700 10px/1 Arial, sans-serif; padding: 5px 8px; border-radius: 99px; letter-spacing: .3px; }

@media print {
  .rs { min-height: 100vh; }
  .rs.L-side-left, .rs.L-side-right { min-height: 100vh; }
  .rs .r-entry { break-inside: avoid; page-break-inside: avoid; }
  .rs .r-h { break-after: avoid; page-break-after: avoid; }
  .rs .r-break { display: none; }
  .rs .r-sec[data-hl] { background: none; box-shadow: none; }
}

/* cover letters: the résumé's header, then a calm letter column */
.rs.is-letter .r-letter { padding-top: 22px; font-size: 12.6px; line-height: 1.62; color: #222; }
.rs.is-letter .r-letter p { margin: 0 0 12px; }
.rs.is-letter .r-lt-date { margin-bottom: 14px; color: #555; }
.rs.is-letter .r-lt-to { margin-bottom: 14px; }
.rs.is-letter .r-lt-re { margin-bottom: 14px; font-weight: 700; color: var(--ra); }
.rs.is-letter .r-lt-sign { margin-top: 18px; }
