/* Resume templates. One page = 794 x 1123 px (A4 at 96 dpi). Sizes are in em of --fs. */

.rs {
  position: relative; width: 794px; background: #fff; color: var(--t);
  font-family: var(--fb), 'Segoe UI', Arial, sans-serif; font-size: var(--fs); line-height: 1.45;
  overflow: hidden; box-sizing: border-box; text-align: left;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.rs *, .rs *::before, .rs *::after { box-sizing: border-box; }
.rs h1, .rs h2, .rs p, .rs ul { margin: 0; }

.rs-name { font-family: var(--fh), Georgia, serif; font-size: 2.45em; line-height: 1.1; font-weight: 700; color: var(--d); letter-spacing: -.005em; }
.rs-role { color: var(--p); font-weight: 600; font-size: 1.1em; margin-top: .3em; }
.rs-h { font-family: var(--fh), Georgia, serif; font-size: 1em; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--d); margin: 0 0 .6em; line-height: 1.3; }
.rs-sec { margin-top: 1.2em; }
.rs-main > .rs-sec:first-child, .rs-side > .rs-sec:first-child { margin-top: 0; }

.rs-it + .rs-it { margin-top: .75em; }
.rs-ih { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.rs-t1 { font-weight: 700; color: var(--d); }
.rs-score { font-weight: 600; color: var(--p); margin-left: .6em; font-size: .92em; white-space: nowrap; }
.rs-t2 { font-size: .96em; color: color-mix(in srgb, var(--t) 78%, #fff); }
.rs-dt { white-space: nowrap; font-size: .88em; font-weight: 600; color: var(--p); }
.rs-ul { padding-left: 1.15em; margin-top: .3em; }
.rs-ul li { margin: .14em 0; padding-left: .1em; }
.rs-ul li::marker { color: var(--p); }
.rs-p { margin-top: .15em; }
.rs-sb > .rs-p:first-child { margin-top: 0; }

.rs-tags span:not(:last-child)::after { content: ', '; }
.rs-pairs .rs-pr { display: flex; gap: .8em; padding: .08em 0; }
.rs-pairs .rs-pr span { flex: 0 0 9em; color: color-mix(in srgb, var(--t) 78%, #fff); }
.rs-pairs .rs-pr b { font-weight: 600; }
.rs-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1.4em; }
.rs-sign-name { font-weight: 700; color: var(--d); }

.rs-contact { font-size: .93em; }
.rs-ct-text { display: flex; flex-wrap: wrap; gap: .1em .55em; }
.rs-ct-text i { font-style: normal; color: var(--p); }
.rs-ct-icons { display: flex; flex-wrap: wrap; gap: .35em 1.2em; }
.rs-ct-icons > span, .rs-ct-list > span { display: flex; align-items: center; gap: .45em; min-width: 0; }
.rs-ct-icons > span > span, .rs-ct-list > span > span { overflow-wrap: anywhere; }
.rs-ct-list { display: flex; flex-direction: column; gap: .35em; }
.rs-ic { width: 1.1em; height: 1.1em; flex: none; color: var(--p); }

.rs-photo { background-size: cover; background-position: center 30%; background-repeat: no-repeat; flex: none; }
.rs-round { border-radius: 50%; }
.rs-mono { display: grid; place-items: center; border-radius: 50%; font-family: var(--fh), sans-serif; font-weight: 700; flex: none; }
.rs-wm { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

/* chips for skills in the visual layouts */
.rs-sidebar .rs-tags span, .rs-band .rs-tags span, .rs-compact .rs-tags span, .rs-creative .rs-tags span,
.rs-aside .rs-tags span, .rs-modern .rs-tags span {
  display: inline-block; margin: 0 .35em .4em 0; padding: .18em .62em; border-radius: 4px; background: var(--s); font-size: .93em;
}
.rs-sidebar .rs-tags span::after, .rs-band .rs-tags span::after, .rs-compact .rs-tags span::after, .rs-creative .rs-tags span::after,
.rs-aside .rs-tags span::after, .rs-modern .rs-tags span::after { content: none; }

/* ================= classic ================= */
.rs-classic { padding: 50px 60px 48px; }
.rs-classic .rs-head { text-align: center; margin-bottom: 1.3em; }
.rs-classic .rs-name { font-size: 2.35em; letter-spacing: .02em; }
.rs-classic .rs-role { color: var(--t); font-weight: 400; font-style: italic; }
.rs-classic .rs-contact { justify-content: center; margin-top: .6em; }
.rs-classic .rs-h { border-bottom: 1px solid var(--d); padding-bottom: .2em; letter-spacing: .12em; }
.rs-classic .rs-dt { color: var(--t); font-weight: 400; font-style: italic; }
.rs-classic .rs-score { color: var(--t); }
.rs-classic .rs-ul li::marker { color: var(--t); }

/* ================= modern ================= */
.rs-modern { padding: 46px 54px 46px; }
.rs-modern .rs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 16px; border-bottom: 3px solid var(--p); margin-bottom: 1.3em; }
.rs-modern .rs-head .rs-contact { flex-direction: column; align-items: flex-start; max-width: 46%; }
.rs-modern .rs-h span { display: inline-block; border-left: 4px solid var(--p); padding-left: .55em; line-height: 1.1; }

/* ================= minimal ================= */
.rs-minimal { padding: 56px 62px 50px; }
.rs-minimal .rs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 1.7em; }
.rs-minimal .rs-name { font-weight: 700; letter-spacing: -.02em; font-size: 2.6em; }
.rs-minimal .rs-role { color: color-mix(in srgb, var(--t) 72%, #fff); font-weight: 400; }
.rs-minimal .rs-head .rs-contact { text-align: right; align-items: flex-end; }
.rs-minimal .rs-head .rs-ct-list > span { flex-direction: row-reverse; }
.rs-minimal .rs-sec { display: grid; grid-template-columns: 9.6em 1fr; gap: 1.6em; margin-top: 1.35em; }
.rs-minimal .rs-h { font-size: .84em; color: var(--p); letter-spacing: .14em; padding-top: .25em; margin: 0; }

/* ================= timeline ================= */
.rs-timeline { padding: 46px 54px 46px; }
.rs-timeline .rs-head { margin-bottom: 1.4em; }
.rs-timeline .rs-name::after { content: ''; display: block; width: 58px; height: 4px; border-radius: 2px; background: var(--p); margin: .32em 0 .1em; }
.rs-timeline .rs-head .rs-contact { margin-top: .75em; }
.rs-timeline .rs-h { color: var(--p); }
.rs-timeline .rs-it { position: relative; padding-left: 8.6em; }
.rs-timeline .rs-it + .rs-it { margin-top: 0; padding-top: .75em; }
.rs-timeline .rs-dt { position: absolute; left: 0; width: 7.2em; text-align: right; white-space: normal; line-height: 1.35; }
.rs-timeline .rs-it::before { content: ''; position: absolute; left: 7.75em; top: .5em; width: .6em; height: .6em; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 3px var(--s); }
.rs-timeline .rs-it + .rs-it::before { top: 1.25em; }
.rs-timeline .rs-it::after { content: ''; position: absolute; left: 8.02em; top: 1.3em; bottom: -.8em; width: 1.5px; background: var(--s); }
.rs-timeline .rs-it:last-child::after { display: none; }
.rs-timeline .rs-sb > :not(.rs-it) { margin-left: 8.6em; }

/* ================= sidebar ================= */
.rs-sidebar { display: grid; grid-template-columns: 262px 1fr; }
.rs-sidebar .rs-side { background: var(--d); color: rgba(255, 255, 255, .9); padding: 40px 26px 40px; }
.rs-sidebar .rs-side .rs-photo, .rs-sidebar .rs-side .rs-mono { width: 150px; height: 150px; margin: 0 auto 1.6em; border: 4px solid rgba(255, 255, 255, .16); }
.rs-sidebar .rs-mono { background: var(--p); color: #fff; font-size: 3em; }
.rs-sidebar .rs-side .rs-h { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .22); padding-bottom: .35em; font-size: .92em; }
.rs-sidebar .rs-side .rs-sec { margin-top: 1.5em; }
.rs-sidebar .rs-side .rs-ic { color: var(--p); }
.rs-sidebar .rs-side .rs-tags span { background: rgba(255, 255, 255, .1); }
.rs-sidebar .rs-side .rs-t1, .rs-sidebar .rs-side .rs-sign-name { color: #fff; }
.rs-sidebar .rs-side .rs-dt { color: rgba(255, 255, 255, .7); }
.rs-sidebar .rs-side .rs-t2, .rs-sidebar .rs-side .rs-score { color: rgba(255, 255, 255, .78); }
.rs-sidebar .rs-side .rs-ih { display: block; }
.rs-sidebar .rs-side .rs-pairs .rs-pr { display: block; padding: .2em 0; }
.rs-sidebar .rs-side .rs-pairs .rs-pr span { display: block; font-size: .85em; color: rgba(255, 255, 255, .65); }
.rs-sidebar .rs-main { padding: 46px 42px 40px; }
.rs-sidebar .rs-head { margin-bottom: 1.5em; }
.rs-sidebar .rs-main .rs-h { color: var(--d); }
.rs-sidebar .rs-main .rs-h::after { content: ''; display: block; width: 36px; height: 3px; background: var(--p); margin-top: .3em; border-radius: 2px; }

/* ================= aside ================= */
.rs-aside { display: flex; flex-direction: column; }
.rs-aside .rs-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 54px 26px; border-bottom: 1px solid var(--s); }
.rs-aside .rs-photo { width: 108px; height: 108px; border: 4px solid var(--s); }
.rs-aside .rs-cols { flex: 1; display: grid; grid-template-columns: 1fr 250px; }
.rs-aside .rs-main { padding: 26px 32px 40px 54px; }
.rs-aside .rs-side { background: var(--s); padding: 26px 28px 40px 26px; }
.rs-aside .rs-h { color: var(--p); }
.rs-aside .rs-side .rs-tags span { background: #fff; }
.rs-aside .rs-side .rs-ih { display: block; }
.rs-aside .rs-side .rs-pairs .rs-pr { display: block; }
.rs-aside .rs-side .rs-pairs .rs-pr span { display: block; font-size: .85em; }

/* ================= band ================= */
.rs-band { display: flex; flex-direction: column; }
.rs-band .rs-head { display: flex; align-items: center; gap: 26px; background: var(--d); color: rgba(255, 255, 255, .88); padding: 36px 54px 34px; }
.rs-band .rs-photo { width: 112px; height: 112px; border-radius: 10px; border: 3px solid rgba(255, 255, 255, .22); }
.rs-band .rs-name { color: #fff; }
.rs-band .rs-role { color: var(--s); }
.rs-band .rs-head .rs-contact { margin-top: .9em; }
.rs-band .rs-head .rs-ic { color: var(--s); }
.rs-band .rs-cols { flex: 1; display: grid; grid-template-columns: 1fr 236px; gap: 32px; padding: 30px 54px 40px; }
.rs-band .rs-side { border-left: 1px solid #e6e8ee; padding-left: 26px; }
.rs-band .rs-h { color: var(--p); border-bottom: 2px solid var(--s); padding-bottom: .3em; }
.rs-band .rs-side .rs-ih { display: block; }
.rs-band .rs-side .rs-pairs .rs-pr { display: block; }
.rs-band .rs-side .rs-pairs .rs-pr span { display: block; font-size: .85em; }

/* ================= executive ================= */
.rs-executive .rs-head { background: var(--d); color: rgba(255, 255, 255, .86); text-align: center; padding: 38px 60px 28px; }
.rs-executive .rs-photo { width: 94px; height: 94px; margin: 0 auto 14px; border: 3px solid var(--p); }
.rs-executive .rs-name { color: #fff; letter-spacing: .04em; font-weight: 700; }
.rs-executive .rs-role { color: var(--p); text-transform: uppercase; letter-spacing: .24em; font-size: .86em; margin-top: .55em; }
.rs-executive .rs-rule { width: 70px; height: 2px; background: var(--p); margin: 14px auto 12px; }
.rs-executive .rs-contact { justify-content: center; }
.rs-executive .rs-main { padding: 30px 60px 44px; }
.rs-executive .rs-h { display: flex; align-items: center; gap: .9em; letter-spacing: .16em; color: var(--d); }
.rs-executive .rs-h::before, .rs-executive .rs-h::after { content: ''; flex: 1; height: 1px; background: var(--p); }
.rs-executive .rs-dt { color: color-mix(in srgb, var(--d) 75%, #fff); }
.rs-executive .rs-score { color: var(--d); }

/* ================= compact ================= */
.rs-compact { display: flex; flex-direction: column; padding: 40px 46px 40px; }
.rs-compact .rs-head { display: flex; justify-content: space-between; align-items: center; gap: 22px; border-left: 6px solid var(--p); padding: 4px 0 4px 16px; margin-bottom: 1.2em; }
.rs-compact .rs-head .rs-contact { display: grid; grid-template-columns: auto auto; gap: .3em 1.2em; font-size: .88em; }
.rs-compact > .rs-sec { margin-top: 0; margin-bottom: 1em; }
.rs-compact .rs-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.rs-compact .rs-h { background: var(--s); color: var(--d); padding: .32em .65em; border-radius: 3px; font-size: .9em; }
.rs-compact .rs-side .rs-ih { display: block; }

/* ================= creative ================= */
.rs-creative { display: flex; flex-direction: column; }
.rs-creative .rs-blob { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: var(--s); top: -190px; right: -120px; }
.rs-creative .rs-blob::after { content: ''; position: absolute; width: 62px; height: 62px; border-radius: 50%; background: var(--p); opacity: .85; left: 64px; top: 182px; }
.rs-creative .rs-head { position: relative; display: flex; align-items: center; gap: 24px; padding: 46px 150px 26px 54px; }
.rs-creative .rs-photo, .rs-creative .rs-mono { width: 104px; height: 104px; border: 4px solid var(--p); }
.rs-creative .rs-mono { background: var(--d); color: #fff; font-size: 2.3em; }
.rs-creative .rs-name { font-size: 2.6em; }
.rs-creative .rs-role { text-transform: uppercase; letter-spacing: .14em; font-size: .92em; }
.rs-creative .rs-head .rs-contact { margin-top: .8em; }
.rs-creative .rs-cols { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 232px; gap: 30px; padding: 0 54px 40px; }
.rs-creative .rs-h { color: var(--d); display: flex; align-items: center; gap: .5em; }
.rs-creative .rs-h::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: var(--p); }
.rs-creative .rs-side .rs-sec { background: var(--s); border-radius: 10px; padding: 14px 16px; margin-top: 1em; }
.rs-creative .rs-side .rs-sec:first-child { margin-top: 0; }
.rs-creative .rs-side .rs-tags span { background: #fff; }
.rs-creative .rs-side .rs-ih { display: block; }
.rs-creative .rs-side .rs-pairs .rs-pr { display: block; }
.rs-creative .rs-side .rs-pairs .rs-pr span { display: block; font-size: .85em; }

/* two-column designs whose side column is empty */
.rs-noside .rs-cols { grid-template-columns: 1fr !important; }
.rs-noside .rs-cols > .rs-side { display: none; }
.rs-noside.rs-aside .rs-main { padding-right: 54px; }

/* ================= print (Save as PDF) ================= */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  body.printing #print-root .rs { box-shadow: none; }
}
