
  :root{
    --ink:#18211f;
    --text:#2f3534;
    --muted:#727a78;
    --soft:#f5f7f6;
    --line:#dfe5e2;
    --accent:#149984;
    --accent-dark:#0c7465;
    --page:#ffffff;
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0;background:#e9eceb;color:var(--text);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
  body{padding:24px 0 44px}
  .page{
    width:210mm;
    height:297mm;
    margin:0 auto 22px;
    background:var(--page);
    padding:10.5mm 10.5mm 9.5mm;
    position:relative;
    overflow:hidden;
    box-shadow:0 10px 32px rgba(0,0,0,.10);
  }
  .page + .page{page-break-before:always}

  /* Header */
  .header{
    display:grid;
    grid-template-columns:minmax(0,1fr) 64mm;
    gap:10mm;
    align-items:end;
    padding-bottom:4.8mm;
    border-bottom:1.25mm solid var(--accent);
    margin-bottom:5.4mm;
  }
  .name{font-size:29px;line-height:.98;font-weight:780;letter-spacing:-.9px;color:var(--ink);margin:0 0 2.2mm}
  .role{font-size:14.2px;line-height:1.15;font-weight:700;color:var(--accent-dark);margin:0 0 1.6mm}
  .tagline{font-size:10.5px;line-height:1.25;color:#5e6765;margin:0}
  .contact{text-align:right;font-size:9.4px;line-height:1.52;color:#303735}
  .contact a{color:inherit;text-decoration:none}
  .contact .location{font-weight:700;color:var(--accent-dark)}

  .layout{display:grid;grid-template-columns:minmax(0,1fr) 61mm;gap:8.5mm;align-items:start}
  .main{min-width:0}
  .side{min-width:0}

  /* Sections */
  .section{margin-bottom:5.1mm}
  .section-title{font-size:11.2px;line-height:1;font-weight:800;color:var(--ink);margin:0 0 3.1mm;letter-spacing:.1px}
  .section-title::after{content:"";display:block;width:9mm;height:.8mm;border-radius:2mm;background:var(--accent);margin-top:1.8mm}
  .profile{font-size:10.7px;line-height:1.46;margin:0;color:#313836}
  .profile + .profile{margin-top:2.2mm}

  /* Sidebar cards */
  .card{background:var(--soft);border:1px solid #d9dfdd;border-radius:4mm;padding:4.2mm 4.3mm;margin-bottom:5.2mm}
  .card .section-title{margin-bottom:3.2mm}
  .qualifier{font-size:8.95px;line-height:1.3;font-weight:800;color:var(--accent-dark);padding-bottom:2.7mm;margin-bottom:3.0mm;border-bottom:1px solid #d9dfdd;letter-spacing:.02px}
  .profile-section{margin-top:.2mm;margin-bottom:5.6mm}
  .skill-group{margin-bottom:3.2mm}
  .skill-group:last-child{margin-bottom:0}
  .skill-label{font-size:9.7px;font-weight:800;color:var(--accent-dark);margin-bottom:.8mm}
  .skill-text{font-size:9.2px;line-height:1.44;color:#333a38}
  .side-block{margin-bottom:5.2mm}
  .side-text{font-size:9.15px;line-height:1.45;margin:0;color:#343b39}
  .side-text strong{color:var(--ink)}
  .mini-list{margin:0;padding:0;list-style:none}
  .mini-list li{font-size:9.25px;line-height:1.42;margin:0 0 2.1mm;padding-left:3.4mm;position:relative}
  .mini-list li:before{content:"";position:absolute;left:0;top:4.7px;width:1.35mm;height:1.35mm;border-radius:50%;background:var(--accent)}

  /* Experience */
  .timeline{position:relative;margin-left:0}
  .job{position:relative;padding-left:0;margin-bottom:4.6mm}
  .job:last-child{margin-bottom:0}
  .job-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5mm;align-items:baseline;margin-bottom:.6mm}
  .company{font-size:12.5px;font-weight:800;color:var(--ink);letter-spacing:-.12px}
  .date{font-size:8.9px;color:#7b8381;white-space:nowrap}
  .job-role{font-size:9.65px;font-weight:700;color:var(--accent-dark);margin-bottom:1.5mm}
  .meta{font-size:8.45px;line-height:1.34;color:#89908e;margin-bottom:1.6mm;letter-spacing:.05px}
  .bullets{margin:0;padding:0;list-style:none}
  .bullets li{position:relative;font-size:9.45px;line-height:1.39;margin:0 0 1.35mm;padding-left:4mm}
  .bullets li:last-child{margin-bottom:0}
  .bullets li:before{content:"";position:absolute;left:.35mm;top:4.4px;width:1.45mm;height:1.45mm;border-radius:.4mm;background:var(--accent)}
  .bullets strong{color:var(--ink)}

  /* Compact jobs page 2 */
  .compact .job{margin-bottom:4mm}
  .compact .company{font-size:11.6px}
  .compact .job-role{font-size:9.25px;margin-bottom:1.1mm}
  .compact .bullets li{font-size:9.15px;line-height:1.38;margin-bottom:1.05mm}
  .compact .meta{font-size:8.2px;margin-bottom:1.2mm}
  .page2-jobs .job{margin-bottom:5mm}
  .page2-jobs .bullets li{font-size:9.25px;line-height:1.4}
  .page2-jobs .job-role{font-size:9.4px}
  .page-two{padding-top:11.5mm}
  .independent-job{margin-top:.2mm}
  .independent-list{margin-top:1.5mm;border-top:1px solid var(--line)}
  .independent-row{display:grid;grid-template-columns:31mm 1fr;gap:2.5mm;padding:1.15mm 0;border-bottom:1px solid #edf0ef;font-size:8.45px;line-height:1.25}
  .independent-name{font-weight:800;color:var(--ink)}
  .independent-detail{color:#545d5a}
  .independent-detail strong{font-weight:700;color:var(--accent-dark)}

  .build{margin-bottom:3.4mm}
  .build:last-child{margin-bottom:0}
  .build-title{font-size:9.7px;font-weight:800;color:var(--ink);margin-bottom:.6mm}
  .build-date{float:right;font-size:7.7px;font-weight:500;color:#8b9390;margin-left:2mm}
  .build-subtitle{font-size:8.55px;line-height:1.3;font-weight:700;color:#2f3634;margin:0 0 .75mm}
  .build-text{font-size:9.05px;line-height:1.43;margin:0;color:#353c3a}

  .footer-note{position:absolute;right:10.5mm;bottom:5.5mm;font-size:7.4px;color:#a0a7a4}

  .toolbar{position:fixed;top:16px;right:16px;z-index:100;display:flex;gap:8px}
  .toolbar a{
    font-family:Arial,Helvetica,sans-serif;font-size:13px;font-weight:700;color:#fff;
    background:var(--accent);border-radius:999px;padding:10px 20px;
    box-shadow:0 6px 18px rgba(20,153,132,.35);text-decoration:none
  }
  .toolbar a.secondary{background:#fff;color:var(--ink);box-shadow:0 6px 18px rgba(0,0,0,.12)}
  .toolbar a:hover{background:var(--accent-dark)}
  .toolbar a.secondary:hover{background:#f5f7f6}

  @page{size:A4;margin:0}
  @media print{
    html,body{background:#fff}
    body{padding:0}
    .toolbar{display:none}
    .page{margin:0;box-shadow:none;page-break-after:always}
    .page:last-child{page-break-after:auto}
    a{color:inherit!important;text-decoration:none!important}
  }
  @media screen and (max-width:900px){
    body{padding:0;background:#fff}
    .page{width:100%;height:auto;min-height:297mm;margin:0;box-shadow:none}
  }

  .page1-profile{margin-bottom:4.6mm;padding-right:2mm}
  .page1-profile .profile{font-size:10.15px;line-height:1.42}
  .page1-profile .profile + .profile{margin-top:1.7mm}
  .page-two .layout{height:100%;align-items:stretch}
  .page-two .side{display:flex;flex-direction:column;align-self:stretch}
  .page-two .column-end{margin-top:auto;margin-bottom:0;padding-top:4mm;border-top:1px solid var(--line)}

body{font-family:"DM Sans",Arial,sans-serif}
.toolbar{position:static;width:min(210mm,100%);margin:0 auto 18px;padding:0 0 4px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.toolbar a,.toolbar button{font-family:inherit;font-size:13px;line-height:1.3;font-weight:600;border:1px solid var(--line);border-radius:7px;padding:10px 16px;box-shadow:none;text-decoration:none;cursor:pointer;background:var(--accent-dark);color:white}
.toolbar a.secondary{background:white;color:var(--ink);box-shadow:none}
.toolbar button:hover{background:var(--accent)}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.job p{font-size:9.45px;line-height:1.45;margin:0 0 1.5mm}
.company,.skill-label{margin-top:0}.skill-text{margin-top:0;margin-bottom:0}
.chips{display:flex;flex-wrap:wrap;gap:4px}.chip{font-size:9px;line-height:1.4;background:#e4f0ec;color:var(--accent-dark);border-radius:4px;padding:3px 6px}
.contact a{overflow-wrap:anywhere}.place{color:var(--muted);font-weight:400}
@media screen and (max-width:900px){.toolbar{padding:16px;margin-bottom:0}}
@media screen and (max-width:600px){
.page{padding:24px 20px;min-height:0;overflow:visible}.header{grid-template-columns:1fr;gap:18px}.contact{text-align:left;font-size:12px}.name{font-size:32px}.role{font-size:17px}.tagline{font-size:13px}.layout{grid-template-columns:1fr;gap:24px}.section-title{font-size:16px}.profile,.page1-profile .profile,.job p,.bullets li,.compact .bullets li,.page2-jobs .bullets li,.skill-text,.side-text,.mini-list li,.build-text{font-size:13px;line-height:1.55}.company,.compact .company{font-size:17px}.job-role,.compact .job-role,.page2-jobs .job-role,.skill-label,.build-title{font-size:13px}.date,.meta,.compact .meta,.qualifier,.build-subtitle{font-size:11px}.job-head{gap:10px}.job{margin-bottom:22px}.chip{font-size:12px}.page-two .layout{height:auto}.independent-row{grid-template-columns:100px 1fr;font-size:11px}.footer-note{position:static;text-align:right;margin-top:20px}.toolbar a,.toolbar button{font-size:12px;padding:9px 11px}.page-two .column-end{margin-top:20px}
}
@media print{body{-webkit-print-color-adjust:exact;print-color-adjust:exact}.toolbar{display:none}}

/* Shared CV reader: controls stay outside the document and never print. */
.toolbar{width:min(210mm,calc(100% - 32px));justify-content:space-between;gap:12px;margin-bottom:14px;padding:0}
.toolbar-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cv-zoom-controls{display:flex;align-items:center;gap:0;margin-left:auto;border:1px solid var(--line);border-radius:8px;background:white;overflow:hidden}
.cv-zoom-controls button{display:grid;place-items:center;min-width:40px;height:40px;padding:0 10px;border:0;border-radius:0;background:transparent;color:var(--ink);font-variant-numeric:tabular-nums}
.cv-zoom-controls button[data-zoom=reset]{min-width:58px;font-size:12px;border-inline:1px solid var(--line)}
.cv-zoom-controls button:hover{background:var(--soft)}.cv-zoom-controls button:disabled{opacity:.3;cursor:default}.cv-zoom-controls svg{width:18px;height:18px}.cv-zoom-controls button:focus-visible{outline-offset:-3px}
.cv-reader{width:100%;overflow:auto;padding:4px 0 24px}.cv-document{width:210mm;max-width:100%;margin-inline:auto;zoom:var(--cv-zoom,1)}.cv-document .page{width:100%}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media screen and (max-width:900px){.toolbar{padding-top:16px}.cv-reader{padding-top:0}}
@media print{.toolbar{display:none!important}.cv-reader{overflow:visible;padding:0}.cv-document{width:210mm;max-width:none;zoom:1!important}.cv-document .page{width:210mm}}
