/* CV document. One source for the web page and the A4 PDF (printed with print media). */
.cv-wrap{max-width:calc(900px + 2*var(--gutter));margin:0 auto;padding:110px var(--gutter) 0}
.cv-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 20px;margin-bottom:22px}
.cv-toolbar h1{font-family:var(--serif);font-weight:600;font-size:clamp(1.5rem,3vw,2rem);line-height:1.1}
.cv-toolbar p{color:var(--ink-soft);font-size:.95rem}
.cv-toolbar .btn-ghost{border-color:var(--line);color:var(--ink)}
.cv-toolbar .btn-ghost:hover{border-color:var(--moss);color:var(--moss-ink)}

.cv{--v:#6d4aff;--v-ink:#4b2fd1;--v-tint:#f3f0ff;--v-line:#e3ddff;--k:#0e0e12;--k2:#3d3d4a;--k3:#6b6b78;--rule:#e9e9ef;
  font-family:var(--sans);font-size:15px;line-height:1.45;color:var(--k);background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,.36fr) minmax(0,1fr);box-shadow:0 30px 60px -40px rgb(14 14 18 / .35)}
.cv a{color:inherit;text-decoration:none}
.cv a:hover{color:var(--v-ink)}
.cv-side{background:var(--v-tint);padding:2em 1.5em 1.6em;display:flex;flex-direction:column;gap:1.25em;min-width:0}
.cv-main{padding:2em 2.1em 1.6em;min-width:0}
.cv-photo{width:7.2em;height:7.2em;border-radius:50%;padding:.28em;background:linear-gradient(140deg,var(--v),#b9a8ff);margin:0 auto .2em}
.cv-photo img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:.2em solid #fff;display:block}
.cv h2{font-family:var(--serif);font-weight:600;color:var(--k);font-size:1.12em;letter-spacing:.01em;padding-bottom:.35em;margin-bottom:.6em;border-bottom:1.5px solid var(--v-line)}
.cv-side h2{font-size:1.02em}
.cv-edu p{font-weight:700;font-size:.92em;line-height:1.3}
.cv-edu span{display:block;font-weight:400;color:var(--k3);font-size:.9em;margin-top:.15em}
.cv-edu p+p{margin-top:.6em}
.cv-lang div{display:flex;justify-content:space-between;align-items:baseline;gap:.6em;padding:.32em 0;border-bottom:1px solid var(--v-line);font-size:.9em}
.cv-lang b{font-weight:700}
.cv-lang span{color:var(--k3);font-size:.92em}
.cv-skills li{position:relative;padding:.26em 0 .26em 1em;font-size:.9em;border-bottom:1px solid var(--v-line)}
.cv-skills li::before{content:"";position:absolute;left:.1em;top:.78em;width:.42em;height:.42em;border-radius:50%;background:var(--v)}
.cv-chips{display:flex;flex-wrap:wrap;gap:.32em}
.cv-chips li{font-size:.8em;font-weight:600;color:var(--v-ink);background:#fff;border:1px solid var(--v-line);border-radius:999px;padding:.18em .7em;white-space:nowrap}

.cv-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1em;align-items:start}
.cv-name{font-family:var(--serif);font-weight:600;font-size:2.7em;line-height:1.02;letter-spacing:-.015em}
.cv-sub{color:var(--v-ink);font-weight:600;font-size:1em;margin-top:.35em}
.cv-qr{width:5.2em;text-align:center}
.cv-qr svg{width:4.4em;height:4.4em;color:var(--k);display:block;margin:0 auto;padding:.3em;border:1px solid var(--rule);border-radius:.4em;background:#fff;box-sizing:content-box}
.cv-qr span{display:block;font-size:.62em;color:var(--k3);margin-top:.35em;line-height:1.2}
.cv-contact{display:grid;grid-template-columns:repeat(2,minmax(0,auto));justify-content:start;gap:.3em 1.8em;margin:.9em 0 1.1em;font-size:.88em;color:var(--k2)}
.cv-contact li{display:flex;align-items:center;gap:.5em;min-width:0;overflow-wrap:anywhere}
.cv-contact svg{width:1em;height:1em;flex:none;color:var(--v)}
.cv-profile{font-size:.95em;color:var(--k2);line-height:1.5}
.cv-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5em;margin:.85em 0 1.1em}
.cv-stats div{background:var(--v-tint);border-radius:.6em;padding:.55em .7em}
.cv-stats b{display:block;font-family:var(--serif);font-weight:600;font-size:1.55em;line-height:1.05;color:var(--v-ink);font-variant-numeric:tabular-nums}
.cv-stats span{display:block;font-size:.72em;color:var(--k2);margin-top:.2em;line-height:1.25}
.cv-co{display:flex;justify-content:space-between;align-items:baseline;gap:1em;margin:.2em 0 .35em}
.cv-co h3{font-size:1.04em;font-weight:800;letter-spacing:.01em}
.cv-co span{font-size:.82em;color:var(--k3);text-align:right}
.cv-roles{border-left:2px solid var(--v-line);margin-left:.35em;padding-left:1em;margin-bottom:.8em}
.cv-roles.flat{border-left:none;margin-left:0;padding-left:0}
.cv-role{position:relative}
.cv-role+.cv-role{margin-top:.45em}
.cv-roles:not(.flat) .cv-role::before{content:"";position:absolute;left:-1.42em;top:.3em;width:.62em;height:.62em;border-radius:50%;background:#fff;border:2px solid var(--v)}
.cv-roles:not(.flat) .cv-role.now::before{background:var(--v)}
.cv-rt{display:flex;justify-content:space-between;align-items:baseline;gap:1em}
.cv-rt h4{font-size:.95em;font-weight:700}
.cv-rt time{font-size:.82em;font-weight:700;color:var(--v-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.cv-role ul{margin-top:.15em}
.cv-role li{position:relative;padding-left:.95em;font-size:.88em;line-height:1.42;color:var(--k2)}
.cv-role li+li{margin-top:.12em}
.cv-role li::before{content:"";position:absolute;left:.1em;top:.6em;width:.36em;height:.36em;border-radius:50%;background:var(--v)}
.cv-role li strong{color:var(--k);font-weight:700}
.cv-early div{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto;gap:.8em;padding:.32em 0;border-bottom:1px solid var(--rule);font-size:.86em}
.cv-early b{font-weight:700}
.cv-early span{color:var(--k2)}
.cv-early time{color:var(--k3)}

@media (max-width:780px){
  .cv{grid-template-columns:1fr;font-size:14.5px}
  .cv-side{order:2}
  .cv-main{padding:1.6em 1.3em}
  .cv-contact{grid-template-columns:1fr}
  .cv-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cv-name{font-size:2.2em}
  .cv-early div{grid-template-columns:1fr auto}
  .cv-early span{grid-column:1/-1;grid-row:2}
}

/* ---------- A4 print / PDF ---------- */
@page{size:A4;margin:0}
@media print{
  html,body{background:#fff !important}
  .site-header,.site-footer,.cv-toolbar,.skip-link{display:none !important}
  .cv-wrap{max-width:none;padding:0;margin:0}
  .cv{width:210mm;height:297mm;border:none;border-radius:0;box-shadow:none;font-size:9.2pt;grid-template-columns:61mm minmax(0,1fr);overflow:hidden}
  .cv-side{padding:9mm 5.5mm 6mm;gap:3.6mm}
  .cv-main{padding:9mm 8mm 6mm 7.5mm}
  .reveal{opacity:1 !important;transform:none !important}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.cv-contact a{display:inline-flex;align-items:center;gap:.5em;min-width:0}
.cv-photo a{display:block;width:100%;height:100%;border-radius:50%}
