/* CV page: results strip and in-browser one-page CV viewer */
.cv__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cv-impact { padding-top: 0; }
.cv-impact__title { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin: 16px 0 36px; }
.cv-impact__title em { font-style: italic; color: var(--purple-light); }
[data-theme="light"] .cv-impact__title em { color: var(--purple-deep); }
.kpis { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.kpi { border: 1px solid var(--border); border-radius: 18px; background: var(--elev-1); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi__n { font-family: 'DM Serif Display', serif; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi__l { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--t-primary); }
.kpi__d { font-size: 13px; line-height: 1.55; color: var(--t-secondary); margin-top: 4px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .kpis { grid-template-columns: 1fr; } }

.cv-skillgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.cv-skillgrid dt { font-size: 13px; font-weight: 600; color: var(--purple-light); margin-bottom: 6px; }
[data-theme="light"] .cv-skillgrid dt { color: var(--purple-deep); }
.cv-skillgrid dd { font-size: 14px; line-height: 1.6; color: var(--t-secondary); }
@media (max-width: 720px) { .cv-skillgrid { grid-template-columns: 1fr; } }
.cv__role li b { color: var(--t-primary); font-weight: 600; }

/* ── Viewer ── */
.cvdoc { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9,9,9,.82); backdrop-filter: blur(8px); color: #1A1714; }
.cvdoc:not([open]) { display: none; }
.cvdoc[open] { display: flex; flex-direction: column; }
.cvdoc::backdrop { background: transparent; }
.cvdoc__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 32px); color: #fff; }
.cvdoc__label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--purple-light); }
.cvdoc__tools { display: flex; gap: 10px; }
.cvdoc__btn { padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; border: 1px solid rgba(196,155,244,.4); background: rgba(255,255,255,.04); }
.cvdoc__btn:hover { border-color: var(--purple-light); }
.cvdoc__btn:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.cvdoc__btn--close { background: var(--gradient); border-color: transparent; }
.cvdoc__scroll { flex: 1; overflow: auto; padding: 8px clamp(12px, 3vw, 32px) 48px; }
.paper { width: min(210mm, 100%); margin: 0 auto; background: #fff; color: #1A1714; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); padding: clamp(22px, 4vw, 15mm) clamp(20px, 4vw, 16mm); font-size: 10.5pt; line-height: 1.45; }
.paper a { color: #4A10F0; }
.paper__head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding-bottom: 12px; border-bottom: 2px solid; border-image: linear-gradient(90deg, #9747EF, #FA5F09) 1; }
.paper__name { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 30pt; line-height: 1; letter-spacing: -.02em; color: #090909; }
.paper__tag { margin-top: 6px; font-size: 10pt; color: #4A10F0; font-weight: 600; }
.paper__contact { text-align: right; font-size: 9pt; line-height: 1.5; color: #3D3D3D; }
.paper__h { font-family: 'Inter', sans-serif; font-size: 8.5pt; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #4A10F0; margin: 14px 0 6px; }
.paper__p { margin-bottom: 5px; color: #2a2724; }
.paper ul { list-style: none; display: grid; gap: 3px; }
.paper li { position: relative; padding-left: 12px; color: #2a2724; }
.paper li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 1px; background: #9747EF; }
.paper b { color: #090909; font-weight: 600; }
.paper__role + .paper__role { margin-top: 8px; }
.paper__rt { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; }
.paper__rt span { flex: none; font-size: 9pt; color: #3D3D3D; }
.paper__ro { font-size: 9pt; color: #6a6560; margin-bottom: 3px; }
@media (max-width: 600px) {
  .paper__head { flex-direction: column; align-items: flex-start; }
  .paper__contact { text-align: left; }
  .paper__rt { flex-direction: column; gap: 0; }
  .paper__name { font-size: 24pt; }
  .cvdoc__label { display: none; }
}

/* Print: only the paper */
@media print {
  @page { size: A4; margin: 12mm; }
  body > *:not(main), main > *:not(.cvdoc), #bg-shader, .nav, .footer { display: none !important; }
  body::before, body::after { display: none !important; }
  body { background: #fff !important; }
  html, body { overflow: visible !important; height: auto !important; }
  .cvdoc { display: block !important; position: static !important; width: auto !important; height: auto !important; max-height: none !important; overflow: visible !important; background: #fff; backdrop-filter: none; }
  .cvdoc__bar { display: none !important; }
  .cvdoc__scroll { overflow: visible; padding: 0; }
  .paper { width: auto; box-shadow: none; border-radius: 0; padding: 0; font-size: 9.5pt; }
  .paper__role, .paper li { break-inside: avoid; }
}
