/*
 * Resume builder templates. The PDF is drawn from these boxes, so templates only use what the
 * PDF writer understands: solid colours, borders, rounded corners, text, images and inline SVG
 * paths. No gradients, shadows, transforms or ::before/::after content.
 */

@font-face { font-family: 'RV Inter'; src: url('../fonts/resume/inter-400-normal.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Inter'; src: url('../fonts/resume/inter-700-normal.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Inter'; src: url('../fonts/resume/inter-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: 'RV Roboto'; src: url('../fonts/resume/roboto-400-normal.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Roboto'; src: url('../fonts/resume/roboto-700-normal.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Roboto'; src: url('../fonts/resume/roboto-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: 'RV Lato'; src: url('../fonts/resume/lato-400-normal.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Lato'; src: url('../fonts/resume/lato-700-normal.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Lato'; src: url('../fonts/resume/lato-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: 'RV Open Sans'; src: url('../fonts/resume/open-sans-400-normal.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Open Sans'; src: url('../fonts/resume/open-sans-700-normal.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Open Sans'; src: url('../fonts/resume/open-sans-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: 'RV Source Serif'; src: url('../fonts/resume/source-serif-4-400-normal.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Source Serif'; src: url('../fonts/resume/source-serif-4-700-normal.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Source Serif'; src: url('../fonts/resume/source-serif-4-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: 'RV Lora'; src: url('../fonts/resume/lora-400-normal.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Lora'; src: url('../fonts/resume/lora-700-normal.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Lora'; src: url('../fonts/resume/lora-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: 'RV Merriweather'; src: url('../fonts/resume/merriweather-400-normal.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Merriweather'; src: url('../fonts/resume/merriweather-700-normal.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'RV Merriweather'; src: url('../fonts/resume/merriweather-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: block; }

/* ------------------------------------------------------------------ page */

.rv-page { position: relative; overflow: hidden; background: #ffffff; color-scheme: light; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rv-page > .rv { position: absolute; inset: 0; }
.rv-box, .rv-clip, .rv-band { position: absolute; }
.rv-clip { overflow: hidden; }
.rv-flow { position: absolute; left: 0; top: 0; }
.rv-flow, .rv-box { display: flow-root; }

/* ------------------------------------------------------------------ base */

.rv { font-family: var(--rv-font); font-size: var(--rv-fs); line-height: 1.42; color: #1f2937; text-align: left; font-synthesis: none; font-kerning: none; font-variant-ligatures: common-ligatures; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; word-break: normal; letter-spacing: 0; text-transform: none; }
.rv *, .rv *::before, .rv *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid transparent; }
.rv a { color: inherit; text-decoration: none; }
.rv strong { font-weight: 700; }
.rv em { font-style: italic; }
.rv ul { list-style: none; }
.rv :where(h1, h2) { font-size: inherit; font-weight: 700; }
.rv img { display: block; }

.rv-name { font-size: 2.3em; line-height: 1.12; color: #111827; letter-spacing: -0.01em; }
.rv-headline { margin-top: 0.25em; font-size: 1.12em; color: var(--rv-accent-text); }
.rv-head { display: flex; align-items: center; gap: 20px; }
.rv-head-text { flex: 1 1 auto; min-width: 0; }

.rv-contacts { margin-top: 0.7em; display: flex; flex-wrap: wrap; gap: 0.25em 1.15em; font-size: 0.9em; color: #4b5563; }
.rv-contact { display: inline-flex; align-items: center; gap: 0.4em; min-width: 0; }
.rv-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: var(--rv-accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rv-contacts-inline { gap: 0.2em 0.55em; }
.rv-contacts-inline .rv-sep { color: #9ca3af; }
.rv-contacts-lines { flex-direction: column; align-items: flex-start; gap: 0.3em; }

.rv-photo { flex: none; overflow: hidden; background: #e5e7eb; }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; }
.rv-photo-circle { width: 86px; height: 86px; border-radius: 50%; }
.rv-photo-rounded { width: 92px; height: 92px; border-radius: 12px; }
.rv-photo-passport { width: 92px; height: 114px; border: 1px solid #9ca3af; }

.rv-sec { margin-top: calc(18px * var(--rv-sp)); }
.rv-flow > .rv-sec:first-child, .rv-flow > .rv-head + .rv-sec { margin-top: 0; }
.rv-flow > .rv-head + .rv-sec { margin-top: calc(22px * var(--rv-sp)); }
.rv-h { margin-bottom: calc(8px * var(--rv-sp)); font-size: 0.98em; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rv-accent-text); }

.rv-entry { position: relative; }
.rv-entry + .rv-entry { margin-top: calc(11px * var(--rv-sp)); }
.rv-ehead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
.rv-dot { display: none; }
.rv-title { font-weight: 700; color: #111827; }
.rv-sub { color: #374151; }
.rv-sub .rv-sep { margin: 0 0.4em; color: #9ca3af; }
.rv-grade { color: #4b5563; }
.rv-link { color: var(--rv-accent-text); }
.rv-when { text-align: right; font-size: 0.9em; color: #6b7280; white-space: nowrap; padding-top: 0.08em; }
.rv-date, .rv-loc { display: block; }
.rv-desc { margin-top: calc(4px * var(--rv-sp)); color: #374151; }
.rv-desc p + p, .rv-desc p + ul, .rv-desc ul + p, .rv-text p + p, .rv-text p + ul, .rv-text ul + p { margin-top: 0.35em; }
.rv-bullets li { position: relative; padding-left: 1.05em; }
.rv-bullets li + li { margin-top: calc(2px * var(--rv-sp)); }
.rv-bul { position: absolute; left: 0.1em; top: 0; color: var(--rv-accent-text); }
.rv-text { color: #374151; }

.rv-list-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-list-tags .rv-item { padding: 2px 9px; border-radius: 4px; background: var(--rv-accent-tint); color: #1f2937; font-size: 0.93em; }
.rv-list-tags .rv-detail { margin-left: 0.35em; color: #6b7280; }
.rv-list-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(6px * var(--rv-sp)) 28px; }
.rv-list-rows .rv-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
.rv-iname { font-weight: 700; color: #111827; }
.rv-list-rows .rv-detail { grid-column: 1 / -1; grid-row: 2; font-size: 0.9em; color: #6b7280; }
.rv-level { font-size: 0.9em; color: #6b7280; }
.rv-meter { grid-column: 1 / -1; display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: var(--rv-accent-tint); overflow: hidden; }
.rv-meter > span { display: block; height: 100%; border-radius: 3px; background: var(--rv-accent); }
.rv-dots { display: flex; gap: 3px; }
.rv-dots > span { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--rv-accent-soft); }
.rv-dots > span.rv-on { background: var(--rv-accent); }

.rv-pairs { display: grid; gap: calc(3px * var(--rv-sp)) 0; }
.rv-pair { display: grid; grid-template-columns: 34% 0 minmax(0, 1fr); column-gap: 10px; }
.rv-pk { font-weight: 700; color: #111827; }
.rv-colon { display: none; }
.rv-pv { color: #374151; }

.rv-sign { display: flex; justify-content: flex-end; margin-top: calc(44px * var(--rv-sp)); }
.rv-sign-box { width: 200px; text-align: center; font-size: 0.92em; color: #374151; }
.rv-sign-line { display: block; height: 0; margin-bottom: 4px; border-top: 1px solid #374151; }

.rv-table { width: 100%; border-collapse: collapse; font-size: 0.94em; }
.rv-table th, .rv-table td { padding: 5px 8px; border: 1px solid #cbd5e1; text-align: left; vertical-align: top; }
.rv-table th { background: #f1f5f9; color: #111827; font-weight: 700; }
.rv-td-title { font-weight: 700; color: #111827; }
.rv-td-note { margin-top: 2px; font-weight: 400; font-size: 0.92em; color: #6b7280; }

/* Sidebar columns: one item per row. */
.rv-flow-side .rv-list-rows { grid-template-columns: minmax(0, 1fr); }
.rv-flow-side .rv-ehead { grid-template-columns: minmax(0, 1fr); }
.rv-flow-side .rv-when { text-align: left; white-space: normal; }
.rv-flow-side .rv-pair { grid-template-columns: minmax(0, 1fr); }
.rv-flow-side .rv-pk { font-size: 0.88em; }

/* ------------------------------------------------------------------ Modern */

.rv-t-modern .rv-h { padding-bottom: 4px; border-bottom: 1.5px solid var(--rv-accent-soft); }
.rv-t-modern .rv-photo-circle { width: 90px; height: 90px; }

/* ------------------------------------------------------------------ Classic */

.rv-t-classic { line-height: 1.38; }
.rv-t-classic .rv-head { flex-direction: column; text-align: center; gap: 0; }
.rv-t-classic .rv-name { font-size: 2.2em; letter-spacing: 0.03em; color: #111827; }
.rv-t-classic .rv-headline { color: #374151; font-style: italic; }
.rv-t-classic .rv-contacts { justify-content: center; color: #374151; }
.rv-t-classic .rv-h { padding-bottom: 3px; border-bottom: 1px solid #111827; letter-spacing: 0.14em; color: var(--rv-accent-text); }
.rv-t-classic .rv-sub { font-style: italic; }
.rv-t-classic .rv-bul { color: #111827; }
.rv-t-classic .rv-list-tags .rv-item, .rv-t-cv .rv-list-tags .rv-item, .rv-t-minimal .rv-list-tags .rv-item { padding: 0; background: transparent; border-radius: 0; font-size: 1em; }
.rv-t-classic .rv-list-tags, .rv-t-cv .rv-list-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 20px; }
.rv-t-classic .rv-colon { display: block; }
.rv-t-classic .rv-pair { grid-template-columns: 30% 8px minmax(0, 1fr); }

/* ------------------------------------------------------------------ Sidebar */

.rv-t-sidebar .rv-band-side { background: var(--rv-accent); }
.rv-t-sidebar .rv-flow-side { color: var(--rv-on-accent); }
.rv-t-sidebar .rv-head-in-side { flex-direction: column; align-items: flex-start; gap: 14px; }
.rv-t-sidebar .rv-head-in-side .rv-photo-circle { width: 132px; height: 132px; align-self: center; border: 3px solid var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-side .rv-name { font-size: 1.95em; color: var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-side .rv-headline { color: var(--rv-on-accent); opacity: 0.85; }
.rv-t-sidebar .rv-flow-side .rv-contacts { color: var(--rv-on-accent); flex-direction: column; gap: 0.45em; margin-top: 1em; }
.rv-t-sidebar .rv-flow-side .rv-contact { align-items: flex-start; }
.rv-t-sidebar .rv-flow-side .rv-ico { stroke: var(--rv-on-accent); margin-top: 0.1em; }
.rv-t-sidebar .rv-flow-side .rv-h { color: var(--rv-on-accent); padding-bottom: 4px; border-bottom: 1px solid var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-side .rv-iname, .rv-t-sidebar .rv-flow-side .rv-title, .rv-t-sidebar .rv-flow-side .rv-pk { color: var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-side .rv-sub, .rv-t-sidebar .rv-flow-side .rv-pv, .rv-t-sidebar .rv-flow-side .rv-text, .rv-t-sidebar .rv-flow-side .rv-desc, .rv-t-sidebar .rv-flow-side .rv-when, .rv-t-sidebar .rv-flow-side .rv-detail, .rv-t-sidebar .rv-flow-side .rv-level, .rv-t-sidebar .rv-flow-side .rv-grade, .rv-t-sidebar .rv-flow-side .rv-link { color: var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-side .rv-meter { background: var(--rv-side-track); }
.rv-t-sidebar .rv-flow-side .rv-meter > span { background: var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-side .rv-dots > span { background: var(--rv-side-track); }
.rv-t-sidebar .rv-flow-side .rv-dots > span.rv-on { background: var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-side .rv-list-tags .rv-item { background: var(--rv-side-track); color: var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-side .rv-bul { color: var(--rv-on-accent); }
.rv-t-sidebar .rv-flow-main .rv-h { font-size: 1.1em; padding-bottom: 4px; border-bottom: 2px solid var(--rv-accent); }

/* ------------------------------------------------------------------ Executive */

.rv-t-executive .rv-head-banner { padding: 34px 48px 30px; background: var(--rv-accent); color: var(--rv-on-accent); gap: 24px; }
.rv-t-executive .rv-head-banner .rv-name { color: var(--rv-on-accent); font-size: 2.4em; }
.rv-t-executive .rv-head-banner .rv-headline { color: var(--rv-on-accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.98em; margin-top: 0.45em; }
.rv-t-executive .rv-head-banner .rv-contacts { color: var(--rv-on-accent); }
.rv-t-executive .rv-head-banner .rv-ico { stroke: var(--rv-on-accent); }
.rv-t-executive .rv-head-banner .rv-photo { border: 3px solid var(--rv-on-accent); }
.rv-t-executive .rv-band-tint { background: var(--rv-accent-tint); }
.rv-t-executive .rv-h > span { display: inline-block; padding-bottom: 3px; border-bottom: 2px solid var(--rv-accent); }
.rv-t-executive .rv-flow-side .rv-list-tags .rv-item { background: #ffffff; }

/* ------------------------------------------------------------------ Minimal */

.rv-t-minimal { color: #27272a; }
.rv-t-minimal .rv-name { font-size: 2.5em; letter-spacing: -0.02em; }
.rv-t-minimal .rv-headline { color: #52525b; }
.rv-t-minimal .rv-ico { stroke: #71717a; }
.rv-t-minimal .rv-contacts { color: #52525b; }
.rv-t-minimal .rv-sec { display: grid; grid-template-columns: 24% minmax(0, 1fr); column-gap: 22px; margin-top: calc(22px * var(--rv-sp)); }
.rv-t-minimal .rv-h { margin: 0; padding-top: 0.15em; font-size: 0.82em; letter-spacing: 0.16em; color: var(--rv-accent-text); }
.rv-t-minimal .rv-bul { color: #a1a1aa; }
.rv-t-minimal .rv-list-tags { gap: 4px 16px; }
.rv-t-minimal .rv-h + .rv-body { min-width: 0; }

/* ------------------------------------------------------------------ Compact */

.rv-t-compact { line-height: 1.34; font-size: calc(var(--rv-fs) * 0.94); }
.rv-t-compact .rv-name { font-size: 2.05em; }
.rv-t-compact .rv-contacts { margin-top: 0.5em; }
.rv-t-compact .rv-sec { margin-top: calc(13px * var(--rv-sp)); }
.rv-t-compact .rv-h { margin-bottom: calc(6px * var(--rv-sp)); padding: 1px 0 1px 8px; border-left: 3px solid var(--rv-accent); letter-spacing: 0.08em; }
.rv-t-compact .rv-entry + .rv-entry { margin-top: calc(8px * var(--rv-sp)); }
.rv-t-compact .rv-list-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 22px; }

/* ------------------------------------------------------------------ Creative */

.rv-t-creative .rv-head-banner { padding: 36px 52px 32px; background: var(--rv-accent); color: var(--rv-on-accent); gap: 26px; }
.rv-t-creative .rv-head-banner .rv-name { color: var(--rv-on-accent); font-size: 2.45em; }
.rv-t-creative .rv-head-banner .rv-headline { color: var(--rv-on-accent); font-style: italic; }
.rv-t-creative .rv-head-banner .rv-contacts { color: var(--rv-on-accent); }
.rv-t-creative .rv-head-banner .rv-ico { stroke: var(--rv-on-accent); }
.rv-t-creative .rv-head-banner .rv-photo-circle { width: 104px; height: 104px; border: 3px solid var(--rv-on-accent); }
.rv-t-creative .rv-h { font-size: 1.12em; text-transform: none; letter-spacing: 0; }
.rv-t-creative .rv-sec-experience .rv-entry, .rv-t-creative .rv-sec-education .rv-entry, .rv-t-creative .rv-sec-projects .rv-entry, .rv-t-creative .rv-sec-volunteering .rv-entry, .rv-t-creative .rv-sec-training .rv-entry { margin-left: 7px; padding-left: 18px; border-left: 2px solid var(--rv-accent-soft); }
.rv-t-creative .rv-sec-experience .rv-dot, .rv-t-creative .rv-sec-education .rv-dot, .rv-t-creative .rv-sec-projects .rv-dot, .rv-t-creative .rv-sec-volunteering .rv-dot, .rv-t-creative .rv-sec-training .rv-dot { display: block; position: absolute; left: -7px; top: 0.3em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #ffffff; background: var(--rv-accent); }
.rv-t-creative .rv-entry + .rv-entry { margin-top: 0; padding-top: calc(11px * var(--rv-sp)); }
.rv-t-creative .rv-entry + .rv-entry .rv-dot { top: calc(11px * var(--rv-sp) + 0.3em); }
.rv-t-creative .rv-date { color: var(--rv-accent-text); font-weight: 700; }

/* ------------------------------------------------------------------ Traditional CV */

.rv-t-cv .rv-cv-title { margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--rv-accent); text-align: center; font-size: 1.25em; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rv-accent-text); }
.rv-t-cv .rv-head-cv { display: block; }
.rv-t-cv .rv-head-row { display: flex; align-items: flex-start; gap: 24px; }
.rv-t-cv .rv-name { font-size: 1.9em; }
.rv-t-cv .rv-headline { color: #374151; }
.rv-t-cv .rv-contacts { color: #374151; }
.rv-t-cv .rv-ico { stroke: #374151; }
.rv-t-cv .rv-h { padding: 4px 8px; background: var(--rv-accent-tint); color: #111827; letter-spacing: 0.06em; font-size: 0.95em; border-left: 3px solid var(--rv-accent); }
.rv-t-cv .rv-body { padding: 0 2px; }
.rv-t-cv .rv-colon { display: block; }
.rv-t-cv .rv-pair { grid-template-columns: 30% 8px minmax(0, 1fr); }
.rv-t-cv .rv-pk { font-weight: 400; color: #374151; }
.rv-t-cv .rv-pv { color: #111827; }
.rv-t-cv .rv-bul { color: #111827; }

/* ------------------------------------------------------------------ editor previews */

.rv-preview-page { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08); }
.rv-measure { position: absolute; left: -100000px; top: 0; visibility: hidden; pointer-events: none; contain: layout style; }
.rv-measure .rv { position: relative; }
.rv-measure .rv-flow, .rv-measure .rv-box { position: relative; }
