/* ===========================================================================
   CV DOCUMENT STYLES — shared by app.html (live editor) and dashboard.html
   (card thumbnails). This is the ONLY copy: edit here so the dashboard
   preview always matches the real editor/PDF output exactly.
   =========================================================================== */
.cv-page{
  width:100%;max-width:794px;min-height:640px;background:#fff;color:#1b1b1b;
  box-shadow:0 10px 24px -12px rgba(0,0,0,.22),0 1px 4px rgba(0,0,0,.08);
  border-radius:2px;overflow:hidden;position:relative;flex:none;
  zoom:1;
  transform:scale(var(--zoom,1));
  transform-origin:top left;
  transition:transform .15s var(--ease);
  font-family:var(--font-doc);
}
/* Without this, browsers strip background colors and text/element
   colors when the page is sent to a printer or "Save as PDF" via the
   OS print dialog (the "Volledige preview" tab uses window.print()'s
   underlying render path) — the colored sidebar, accent pills, dots
   and bars would all render as plain white/gray even though the
   on-screen editor and the html2canvas-based PDF export show them
   correctly. Force every element on the CV page to keep its
   background/colors when printed. */
.cv-page,.cv-page *{
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
  color-adjust:exact;
}
@media print{
  .cv-page,.cv-page *{
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
    color-adjust:exact;
  }
}
/* marks where one printed A4 page ends and the next begins, matching
   exactly where the PDF download slices the page */
.cv-page-divider{
  position:absolute;left:0;right:0;height:0;
  border-top:1.5px dashed rgba(19,20,22,.28);pointer-events:none;z-index:3;
}
.cv-page-divider-label{
  position:absolute;top:6px;right:10px;font-family:var(--font-mono);font-size:calc(9.5px * var(--font-zoom,1));
  color:rgba(19,20,22,.4);background:rgba(255,255,255,.9);padding:1px 6px;border-radius:999px;
  letter-spacing:.02em;
}

/* --- Modern template: colored sidebar ---
   The sidebar's color is painted with a ::before behind the content,
   sized to the sidebar's width and spanning .cv-page's full height, NOT
   as the .cv-sidebar flex item's own background. A block box's
   background always fills its full height and fragments cleanly across
   printed pages; a flex item's background only fills the height
   align-items:stretch gives it, and browsers don't reliably keep
   stretching that across a print page break the way they do for
   on-screen layout — that mismatch is what left a white gap under the
   sidebar (with the next page's content bleeding into it) on multi-page
   CVs in "Volledige preview"/"Opslaan als PDF" even though the editor's
   own on-screen preview looked correct.
   A ::before (not .cv-page's own `background`) on purpose: the PDF/
   preview snapshot clone gets `clone.style.background = "#ffffff"` set
   inline by app.js, and an inline style always wins over any stylesheet
   rule for that same `background` property — a gradient on .cv-page
   itself would just get overwritten back to white there. A pseudo-
   element's background is a separate box the inline style can't touch. */
.cv-template-modern{display:flex;align-items:stretch;position:relative;}
/* top/bottom bleed 2px past the box edge: print engines can round a
   fragmented abspos box's edge to the sub-pixel, off-by-a-hair from the
   in-flow content next to it, leaving a hairline white sliver right at
   a page break — the 2px overlap is invisible (still clipped by
   .cv-page's overflow:hidden / page edge) but swallows that rounding
   error instead of showing it. */
.cv-template-modern::before{content:"";position:absolute;top:-6px;bottom:-6px;left:0;width:34%;background:var(--accent);z-index:0;}
.cv-template-modern .cv-sidebar{position:relative;z-index:1;flex:none;width:34%;background:transparent;color:#fff;padding:30px 22px;box-sizing:border-box;}
.cv-template-modern .cv-main{position:relative;z-index:1;flex:1;min-width:0;width:66%;padding:34px 26px;box-sizing:border-box;}
.cv-template-modern .cv-photo{
  width:76px;height:76px;border-radius:50%;background:rgba(255,255,255,.16);
  margin-bottom:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.cv-template-modern .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-modern .cv-name{font-family:var(--font-doc);font-size:calc(19px * var(--font-zoom,1));font-weight:600;line-height:1.25;margin-bottom:4px;}
.cv-template-modern .cv-role{font-size:calc(12px * var(--font-zoom,1));opacity:.85;margin-bottom:22px;}
.cv-template-modern .cv-side-block{margin-bottom:20px;}
.cv-template-modern .cv-side-title{font-family:var(--font-mono);font-size:calc(10px * var(--font-zoom,1));letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin-bottom:8px;}
.cv-template-modern .cv-side-line{font-size:calc(11.5px * var(--font-zoom,1));line-height:1.7;opacity:.92;word-break:break-word;}
/* sidebar background IS var(--accent) here, so accent-colored dots would
   vanish against it — use white instead, same idea (dim/full) on the
   dark background. */
.cv-template-modern .cv-skill-level-dots span{background:rgba(255,255,255,.3);}
.cv-template-modern .cv-skill-level-dots span.is-on{background:#fff;}
.cv-template-modern .cv-skill-level-bar{background:rgba(255,255,255,.25);}
.cv-template-modern .cv-skill-level-bar-fill{background:#fff;}
.cv-template-modern .cv-skill-level-stars{color:rgba(255,255,255,.3);}
.cv-template-modern .cv-skill-level-stars span.is-on{color:#fff;}
.cv-template-modern .cv-skill-level-text{background:rgba(255,255,255,.16);color:#fff;}

/* --- Zakelijk template: navy sidebar, square photo, professional --- */
/* see the .cv-template-modern comment above: the sidebar color lives on
   .cv-page (a block box, fragments cleanly across print pages) instead
   of on the flex item, so it can never leave a gap on multi-page CVs. */
/* see the .cv-template-modern comment above for why this is a ::before
   and not .cv-page's own `background`. */
.cv-template-zakelijk{display:flex;align-items:stretch;position:relative;}
.cv-template-zakelijk::before{content:"";position:absolute;top:-6px;bottom:-6px;left:0;width:34%;background:#16233d;z-index:0;}
.cv-template-zakelijk .cv-sidebar{position:relative;z-index:1;flex:none;width:34%;background:transparent;color:#fff;padding:30px 22px;box-sizing:border-box;}
.cv-template-zakelijk .cv-main{position:relative;z-index:1;flex:1;min-width:0;width:66%;padding:34px 26px;box-sizing:border-box;}
.cv-template-zakelijk .cv-photo{
  width:76px;height:76px;border-radius:8px;background:rgba(255,255,255,.12);
  margin-bottom:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.cv-template-zakelijk .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-zakelijk .cv-name{font-family:var(--font-doc);font-size:calc(18px * var(--font-zoom,1));font-weight:600;line-height:1.25;margin-bottom:4px;}
.cv-template-zakelijk .cv-role{font-size:calc(11.5px * var(--font-zoom,1));opacity:.7;margin-bottom:22px;text-transform:uppercase;letter-spacing:.04em;}
.cv-template-zakelijk .cv-side-block{margin-bottom:20px;}
.cv-template-zakelijk .cv-side-title{font-family:var(--font-mono);font-size:calc(10px * var(--font-zoom,1));letter-spacing:.08em;text-transform:uppercase;opacity:.55;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.15);padding-bottom:6px;}
.cv-template-zakelijk .cv-side-line{font-size:calc(11.5px * var(--font-zoom,1));line-height:1.7;opacity:.9;word-break:break-word;}
.cv-template-zakelijk .cv-main .cv-section-title{color:#16233d;border-bottom:1.5px solid #16233d;padding-bottom:5px;margin-bottom:10px;}

/* --- Duo template: mirrored sidebar, teal, photo right --- */
/* see the .cv-template-modern comment above for why this is a ::before;
   sidebar sits on the right here, so the block is anchored right too. */
.cv-template-duo{display:flex;align-items:stretch;position:relative;}
.cv-template-duo::before{content:"";position:absolute;top:-6px;bottom:-6px;left:66%;right:0;background:#0f766e;z-index:0;}
.cv-template-duo .cv-sidebar{position:relative;z-index:1;flex:none;order:2;width:34%;background:transparent;color:#fff;padding:30px 22px;text-align:right;box-sizing:border-box;}
.cv-template-duo .cv-main{position:relative;z-index:1;flex:1;min-width:0;width:66%;padding:34px 26px;box-sizing:border-box;}
.cv-template-duo .cv-photo{
  width:76px;height:76px;border-radius:50%;background:rgba(255,255,255,.16);
  margin-bottom:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;margin-left:auto;
}
.cv-template-duo .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-duo .cv-name{font-family:var(--font-doc);font-size:calc(19px * var(--font-zoom,1));font-weight:600;line-height:1.25;margin-bottom:4px;}
.cv-template-duo .cv-role{font-size:calc(12px * var(--font-zoom,1));opacity:.85;margin-bottom:22px;}
.cv-template-duo .cv-side-block{margin-bottom:20px;}
.cv-template-duo .cv-side-title{font-family:var(--font-mono);font-size:calc(10px * var(--font-zoom,1));letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin-bottom:8px;}
.cv-template-duo .cv-side-line{font-size:calc(11.5px * var(--font-zoom,1));line-height:1.7;opacity:.92;word-break:break-word;}
.cv-template-duo .cv-main .cv-section-title{color:#0f766e;}
.cv-template-duo .cv-entry-head{flex-direction:row;}

/* --- Minimal template: single column, generous whitespace --- */
.cv-template-minimal{padding:44px 46px;}
.cv-template-minimal .cv-head{margin-bottom:28px;}
.cv-template-minimal .cv-name{font-family:var(--font-doc);font-size:calc(23px * var(--font-zoom,1));font-weight:600;letter-spacing:-.01em;margin-bottom:4px;}
.cv-template-minimal .cv-role{font-size:calc(12px * var(--font-zoom,1));letter-spacing:.03em;color:#6b6b6b;margin-bottom:10px;}
.cv-template-minimal .cv-contact-line{font-size:calc(10.5px * var(--font-zoom,1));color:#8a8a8a;}
.cv-template-minimal .cv-photo{display:none;}
.cv-template-minimal .cv-section{margin-bottom:20px;}
.cv-template-minimal .cv-section-title{font-family:var(--font-mono);font-size:calc(10px * var(--font-zoom,1));letter-spacing:.1em;text-transform:uppercase;color:#8a8a8a;margin-bottom:10px;}

/* --- Tijdlijn template: klassiek header + vertical timeline entries --- */
.cv-template-tijdlijn{padding:40px 42px;}
.cv-template-tijdlijn .cv-head{text-align:center;border-bottom:1.5px solid #1b1b1b;padding-bottom:16px;margin-bottom:22px;}
.cv-template-tijdlijn .cv-name{font-family:var(--font-doc);font-size:calc(24px * var(--font-zoom,1));font-weight:600;letter-spacing:-.01em;margin-bottom:4px;}
.cv-template-tijdlijn .cv-role{font-size:calc(12.5px * var(--font-zoom,1));letter-spacing:.04em;text-transform:uppercase;color:#555;margin-bottom:10px;}
.cv-template-tijdlijn .cv-contact-line{font-size:calc(11px * var(--font-zoom,1));color:#555;}
.cv-template-tijdlijn .cv-photo{display:none;}
.cv-template-tijdlijn .cv-section-title{color:var(--font-color, var(--accent));}
.cv-template-tijdlijn .cv-entry{position:relative;padding-left:18px;margin-bottom:16px;}
/* tick sits flush with the vertical line below it (same left edge) instead
   of poking out further left than the line — that leftward overhang read
   as a stray protrusion. The line then starts right where the tick ends
   (top:7px = tick's top:5.5px + its own 1.5px height) instead of at
   top:13px, closing the visible gap between the tick and the line. */
.cv-template-tijdlijn .cv-entry::before{content:"";position:absolute;left:0;top:5.5px;width:8px;height:1.5px;background:var(--accent);}
.cv-template-tijdlijn .cv-entry::after{content:"";position:absolute;left:0;top:7px;bottom:-16px;width:1.5px;background:var(--accent);opacity:.55;}
.cv-template-tijdlijn .cv-entry:last-child::after{display:none;}

/* --- Klassiek template: centered, minimal --- */
.cv-template-klassiek{padding:40px 42px;}
.cv-template-klassiek .cv-head{text-align:center;border-bottom:1.5px solid #1b1b1b;padding-bottom:16px;margin-bottom:22px;}
.cv-template-klassiek .cv-name{font-family:var(--font-doc);font-size:calc(24px * var(--font-zoom,1));font-weight:600;letter-spacing:-.01em;margin-bottom:4px;}
.cv-template-klassiek .cv-role{font-size:calc(12.5px * var(--font-zoom,1));letter-spacing:.04em;text-transform:uppercase;color:#555;margin-bottom:10px;}
.cv-template-klassiek .cv-contact-line{font-size:calc(11px * var(--font-zoom,1));color:#555;}
.cv-template-klassiek .cv-photo{display:none;}

/* --- Compact template: color banner + two-column body --- */
.cv-template-compact{padding:0;position:relative;}
.cv-template-compact .cv-band{background:var(--accent);height:74px;}
.cv-template-compact .cv-photo{
  width:64px;height:64px;border-radius:50%;background:#e9e6de;border:3px solid #fff;
  position:absolute;left:26px;top:42px;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.15);
  display:flex;align-items:center;justify-content:center;
}
.cv-template-compact .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-compact .cv-head-block{padding:40px 26px 18px 106px;border-bottom:1px solid #eee;margin-bottom:20px;}
.cv-template-compact .cv-name{font-family:var(--font-doc);font-size:calc(19px * var(--font-zoom,1));font-weight:600;color:#1b1b1b;}
.cv-template-compact .cv-role{font-size:calc(11.5px * var(--font-zoom,1));color:var(--accent);font-weight:600;margin-top:2px;}
.cv-template-compact .cv-body{display:flex;padding:0 26px 30px;gap:24px;}
.cv-template-compact .cv-col-side{width:34%;flex:none;}
.cv-template-compact .cv-col-main{flex:1;min-width:0;}
.cv-template-compact .cv-side-title{font-family:var(--font-mono);font-size:calc(9.5px * var(--font-zoom,1));letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:7px;font-weight:600;}
.cv-template-compact .cv-side-block{margin-bottom:18px;}
.cv-template-compact .cv-side-line{font-size:calc(11px * var(--font-zoom,1));line-height:1.7;color:#444;word-break:break-word;}

/* --- Creatief template: bold header block + timeline body --- */
.cv-template-creatief{padding:0;}
.cv-template-creatief .cv-hero{
  background:var(--accent);color:#fff;padding:34px 30px;
  display:flex;align-items:center;gap:18px;
}
.cv-template-creatief .cv-photo{
  width:66px;height:66px;border-radius:14px;background:rgba(255,255,255,.18);flex:none;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.cv-template-creatief .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-creatief .cv-name{font-family:var(--font-doc);font-size:calc(22px * var(--font-zoom,1));font-weight:600;}
.cv-template-creatief .cv-role{font-size:calc(12px * var(--font-zoom,1));opacity:.85;margin-top:2px;}
.cv-template-creatief .cv-contact-line{font-size:calc(10.5px * var(--font-zoom,1));opacity:.8;margin-top:9px;}
.cv-template-creatief .cv-body{padding:26px 30px 30px;}
.cv-template-creatief .cv-section-title{color:var(--font-color, var(--accent));}
.cv-template-creatief .cv-entry{
  padding-left:16px;border-left:2px solid var(--accent-soft);position:relative;margin-bottom:15px;
}
.cv-template-creatief .cv-entry::before{
  content:"";position:absolute;left:-4px;top:4px;width:5px;height:5px;border-radius:50%;background:#fff;border:1.3px solid var(--accent);box-sizing:border-box;
}

/* --- Lijnen template: single column, thin rule under header, no photo --- */
.cv-template-lijnen{padding:42px 44px;}
.cv-template-lijnen .cv-head{padding-bottom:16px;border-bottom:1px solid #e4e4e1;margin-bottom:24px;}
.cv-template-lijnen .cv-name{font-family:var(--font-doc);font-size:calc(23px * var(--font-zoom,1));font-weight:600;letter-spacing:-.01em;margin-bottom:4px;}
.cv-template-lijnen .cv-role{font-size:calc(12px * var(--font-zoom,1));letter-spacing:.03em;color:var(--accent);font-weight:600;margin-bottom:10px;}
.cv-template-lijnen .cv-contact-line{font-size:calc(10.5px * var(--font-zoom,1));color:#8a8a8a;}
.cv-template-lijnen .cv-photo{display:none;}
.cv-template-lijnen .cv-section{margin-bottom:20px;}
.cv-template-lijnen .cv-section-title{font-family:var(--font-mono);font-size:calc(10px * var(--font-zoom,1));letter-spacing:.1em;text-transform:uppercase;color:#1b1b1b;padding-bottom:6px;border-bottom:1px solid #e4e4e1;margin-bottom:12px;}

/* --- Hoek template: sidebar layout with a diagonal color corner behind the photo --- */
/* see the .cv-template-modern comment further up for why this is a
   ::before and not .cv-page's own `background`. */
.cv-template-hoek{display:flex;align-items:stretch;position:relative;}
.cv-template-hoek::before{content:"";position:absolute;top:-6px;bottom:-6px;left:0;width:34%;background:#f6f5f1;z-index:0;}
.cv-template-hoek .cv-sidebar{position:relative;z-index:1;flex:none;width:34%;background:transparent;color:#1b1b1b;padding:30px 22px;box-sizing:border-box;overflow:hidden;}
.cv-template-hoek .cv-sidebar::before{content:"";position:absolute;left:0;top:0;width:0;height:0;border-style:solid;border-width:0 130px 130px 0;border-color:transparent var(--accent) transparent transparent;}
.cv-template-hoek .cv-main{flex:1;min-width:0;width:66%;padding:34px 26px;box-sizing:border-box;}
.cv-template-hoek .cv-photo{
  width:78px;height:78px;border-radius:50%;background:#fff;margin-bottom:16px;overflow:hidden;position:relative;z-index:1;
  border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.cv-template-hoek .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-hoek .cv-name{font-family:var(--font-doc);font-size:calc(19px * var(--font-zoom,1));font-weight:600;line-height:1.25;margin-bottom:4px;position:relative;z-index:1;}
.cv-template-hoek .cv-role{font-size:calc(12px * var(--font-zoom,1));color:var(--accent);font-weight:600;margin-bottom:22px;}
.cv-template-hoek .cv-side-block{margin-bottom:20px;}
.cv-template-hoek .cv-side-title{font-family:var(--font-mono);font-size:calc(10px * var(--font-zoom,1));letter-spacing:.08em;text-transform:uppercase;color:#8a8a8a;margin-bottom:8px;}
.cv-template-hoek .cv-side-line{font-size:calc(11.5px * var(--font-zoom,1));line-height:1.7;color:#333;word-break:break-word;}
.cv-template-hoek .cv-main .cv-section-title{color:var(--font-color, var(--accent));}

/* --- Band template: full-width color band across the top, photo overlapping it --- */
.cv-template-band{padding:0;position:relative;}
.cv-template-band .cv-band{background:var(--accent);height:86px;}
.cv-template-band .cv-photo{
  width:76px;height:76px;border-radius:12px;background:#fff;border:3px solid #fff;overflow:hidden;
  position:absolute;left:26px;top:48px;box-shadow:0 3px 10px rgba(0,0,0,.15);
}
.cv-template-band .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-band .cv-head-block{padding:16px 26px 18px 116px;border-bottom:1px solid #eee;margin-bottom:20px;}
.cv-template-band .cv-name{font-family:var(--font-doc);font-size:calc(19px * var(--font-zoom,1));font-weight:600;color:#1b1b1b;}
.cv-template-band .cv-role{font-size:calc(11.5px * var(--font-zoom,1));color:var(--accent);font-weight:600;margin-top:2px;}
.cv-template-band .cv-body{display:flex;padding:0 26px 30px;gap:24px;}
.cv-template-band .cv-col-side{width:34%;flex:none;}
.cv-template-band .cv-col-main{flex:1;min-width:0;}
.cv-template-band .cv-side-title{font-family:var(--font-mono);font-size:calc(9.5px * var(--font-zoom,1));letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:7px;font-weight:600;}
.cv-template-band .cv-side-block{margin-bottom:18px;}
.cv-template-band .cv-side-line{font-size:calc(11px * var(--font-zoom,1));line-height:1.7;color:#444;word-break:break-word;}

/* --- Kader template: thin color frame just inside the page edge, centered header --- */
.cv-template-kader{padding:14px;box-sizing:border-box;}
.cv-template-kader > *{padding-left:34px;padding-right:34px;}
.cv-template-kader{border:2px solid var(--accent);}
.cv-template-kader .cv-head{text-align:center;padding:30px 34px 16px;border-bottom:1.5px solid var(--accent);margin-bottom:22px;}
.cv-template-kader .cv-name{font-family:var(--font-doc);font-size:calc(23px * var(--font-zoom,1));font-weight:600;letter-spacing:-.01em;margin-bottom:4px;}
.cv-template-kader .cv-role{font-size:calc(12px * var(--font-zoom,1));letter-spacing:.04em;text-transform:uppercase;color:var(--accent);font-weight:600;margin-bottom:10px;}
.cv-template-kader .cv-contact-line{font-size:calc(11px * var(--font-zoom,1));color:#555;}
.cv-template-kader .cv-photo{display:none;}
.cv-template-kader .cv-section{margin-bottom:20px;padding-bottom:0;}
.cv-template-kader .cv-section:last-child{padding-bottom:30px;}
.cv-template-kader .cv-section-title{color:var(--font-color, var(--accent));text-align:center;}

/* --- Strook template: slim color spine down the left edge --- */
.cv-template-strook{padding:38px 40px 38px 50px;position:relative;}
.cv-template-strook::before{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;background:var(--accent);}
.cv-template-strook .cv-head{padding-bottom:14px;border-bottom:1px solid #e4e4e1;margin-bottom:22px;}
.cv-template-strook .cv-name{font-family:var(--font-doc);font-size:calc(22px * var(--font-zoom,1));font-weight:600;letter-spacing:-.01em;margin-bottom:4px;}
.cv-template-strook .cv-role{font-size:calc(12px * var(--font-zoom,1));letter-spacing:.03em;color:#555;margin-bottom:10px;}
.cv-template-strook .cv-contact-line{font-size:calc(10.5px * var(--font-zoom,1));color:#8a8a8a;}
.cv-template-strook .cv-photo{display:none;}
.cv-template-strook .cv-section-title{color:var(--font-color, var(--accent));}

/* --- Cirkel template: centered round photo above a centered header --- */
.cv-template-cirkel{padding:42px 44px;text-align:center;}
.cv-template-cirkel .cv-head{margin-bottom:26px;}
.cv-template-cirkel .cv-photo{
  width:84px;height:84px;border-radius:50%;overflow:hidden;background:var(--accent-soft);
  margin:0 auto 14px;border:3px solid var(--accent-soft);
}
.cv-template-cirkel .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-cirkel .cv-name{font-family:var(--font-doc);font-size:calc(22px * var(--font-zoom,1));font-weight:600;letter-spacing:-.01em;margin-bottom:4px;}
.cv-template-cirkel .cv-role{font-size:calc(12px * var(--font-zoom,1));letter-spacing:.03em;color:var(--accent);font-weight:600;margin-bottom:10px;}
.cv-template-cirkel .cv-contact-line{font-size:calc(10.5px * var(--font-zoom,1));color:#8a8a8a;}
.cv-template-cirkel .cv-section{text-align:left;}
.cv-template-cirkel .cv-section-title{text-align:center;}
.cv-template-cirkel .cv-skill-row,.cv-template-cirkel .cv-entry-head{justify-content:center;}
/* the badges' own margin-left:auto (added for the html2canvas
   space-between fix above) would otherwise override this centering by
   claiming all the row's free space for itself instead of letting the
   row center as a group. */
.cv-template-cirkel .cv-skill-row>*{margin-left:0;}

/* --- Stip template: single column with a small bullet dot before each entry heading --- */
.cv-template-stip{padding:42px 44px;}
.cv-template-stip .cv-head{padding-bottom:16px;border-bottom:1px solid #e4e4e1;margin-bottom:24px;}
.cv-template-stip .cv-name{font-family:var(--font-doc);font-size:calc(23px * var(--font-zoom,1));font-weight:600;letter-spacing:-.01em;margin-bottom:4px;}
.cv-template-stip .cv-role{font-size:calc(12px * var(--font-zoom,1));letter-spacing:.03em;color:#555;margin-bottom:10px;}
.cv-template-stip .cv-contact-line{font-size:calc(10.5px * var(--font-zoom,1));color:#8a8a8a;}
.cv-template-stip .cv-photo{display:none;}
.cv-template-stip .cv-section-title{color:#1b1b1b;}
.cv-template-stip .cv-section-title::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);margin-right:7px;vertical-align:middle;}


/* --- Custom template: user-built layout, driven by state.customLayout ---
   Structural variant is selected on the outer element via a
   cv-custom-<layout> modifier class (sidebar-left / sidebar-right / top / single),
   so this single template can render four professional, responsive shapes
   from one generic markup built in js/cv-render.js. */
/* see the .cv-template-modern comment further up: sidebar color lives on
   .cv-page so it can't leave a gap when a multi-page CV is fragmented
   for printing/PDF. Mirrored for .cv-custom-sidebar-right below. The
   "top"/"single" layout variants further down override display/width
   directly on .cv-page and so replace this background too. */
/* see the .cv-template-modern comment further up for why this is a
   ::before and not .cv-page's own `background`. Mirrored for
   .cv-custom-sidebar-right below. The "top"/"single" layout variants
   further down don't use a sidebar column at all, so they get no
   ::before. */
.cv-template-custom{display:flex;align-items:stretch;position:relative;}
.cv-template-custom::before{content:"";position:absolute;top:-6px;bottom:-6px;left:0;width:34%;background:var(--accent);z-index:0;}
.cv-template-custom .cv-sidebar{position:relative;z-index:1;flex:none;width:34%;background:transparent;color:#fff;padding:30px 22px;box-sizing:border-box;}
.cv-template-custom .cv-main{position:relative;z-index:1;flex:1;min-width:0;width:66%;padding:34px 26px;box-sizing:border-box;}
.cv-template-custom .cv-photo{
  width:76px;height:76px;border-radius:50%;background:rgba(255,255,255,.16);
  margin-bottom:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.cv-template-custom .cv-photo img{width:100%;height:100%;object-fit:cover;}
.cv-template-custom .cv-name{font-family:var(--font-doc);font-size:calc(19px * var(--font-zoom,1));font-weight:600;line-height:1.25;margin-bottom:4px;}
.cv-template-custom .cv-role{font-size:calc(12px * var(--font-zoom,1));opacity:.85;margin-bottom:22px;}
.cv-template-custom .cv-side-block{margin-bottom:20px;}
.cv-template-custom .cv-side-title{font-family:var(--font-mono);font-size:calc(10px * var(--font-zoom,1));letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin-bottom:8px;}
.cv-template-custom .cv-side-line{font-size:calc(11.5px * var(--font-zoom,1));line-height:1.7;opacity:.92;word-break:break-word;}
.cv-template-custom .cv-skill-level-dots span{background:rgba(255,255,255,.3);}
.cv-template-custom .cv-skill-level-dots span.is-on{background:#fff;}
.cv-template-custom .cv-skill-level-bar{background:rgba(255,255,255,.25);}
.cv-template-custom .cv-skill-level-bar-fill{background:#fff;}
.cv-template-custom .cv-skill-level-stars{color:rgba(255,255,255,.3);}
.cv-template-custom .cv-skill-level-stars span.is-on{color:#fff;}
.cv-template-custom .cv-skill-level-text{background:rgba(255,255,255,.16);color:#fff;}

/* photo shape modifier — square overrides the default circle */
.cv-template-custom.cv-custom-photo-square .cv-photo{border-radius:8px;}

/* sidebar-right: mirror the two columns, keep sidebar readable (left-aligned) */
.cv-template-custom.cv-custom-sidebar-right::before{left:66%;right:0;width:auto;}
.cv-template-custom.cv-custom-sidebar-right .cv-sidebar{order:2;}

/* top: full-width header band above a single, wide content column —
   sidebar content renders inline in a light strip instead of a column */
.cv-template-custom.cv-custom-top{display:block;}
.cv-template-custom.cv-custom-top::before{display:none;}
.cv-template-custom.cv-custom-top .cv-sidebar{
  width:100%;display:flex;align-items:center;gap:20px;padding:26px 30px;
}
.cv-template-custom.cv-custom-top .cv-photo{margin-bottom:0;flex:none;}
.cv-template-custom.cv-custom-top .cv-head-text{flex:1;min-width:0;}
.cv-template-custom.cv-custom-top .cv-name{margin-bottom:2px;}
.cv-template-custom.cv-custom-top .cv-role{margin-bottom:0;}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline{
  width:100%;display:flex;flex-wrap:wrap;gap:26px;padding:16px 30px;
  background:var(--accent-soft);box-sizing:border-box;
}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-side-block{margin-bottom:0;min-width:160px;flex:1;}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-side-title,
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-side-line{color:var(--ink,#1b1b1b);opacity:.85;}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-skill-level-dots span{background:var(--accent-soft);}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-skill-level-dots span.is-on{background:var(--accent);}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-skill-level-bar{background:var(--accent-soft);}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-skill-level-bar-fill{background:var(--accent);}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-skill-level-stars{color:var(--accent-soft);}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-skill-level-stars span.is-on{color:var(--accent);}
.cv-template-custom.cv-custom-top .cv-side-blocks-inline .cv-skill-level-text{background:var(--accent-soft);color:var(--ink,#1b1b1b);}
.cv-template-custom.cv-custom-top .cv-main{width:100%;}

/* single: no sidebar at all, contact/skills/languages flow as regular
   full-width sections above the main content */
.cv-template-custom.cv-custom-single{display:block;padding:40px 44px;}
.cv-template-custom.cv-custom-single::before{display:none;}
.cv-template-custom.cv-custom-single .cv-head{margin-bottom:24px;}
.cv-template-custom.cv-custom-single .cv-photo{
  width:72px;height:72px;margin:0 0 14px;background:var(--accent-soft);
}
.cv-template-custom.cv-custom-single.cv-custom-photo-square .cv-photo{border-radius:8px;}
.cv-template-custom.cv-custom-single:not(.cv-custom-photo-square) .cv-photo{border-radius:50%;}
.cv-template-custom.cv-custom-single .cv-contact-line{font-size:calc(11px * var(--font-zoom,1));color:#666;margin-top:6px;}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline{display:flex;flex-wrap:wrap;gap:26px;margin-bottom:24px;}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-side-block{min-width:160px;flex:1;margin-bottom:0;}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-side-title{color:var(--accent);}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-side-line{color:var(--ink,#1b1b1b);opacity:.85;}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-skill-level-dots span{background:var(--accent-soft);}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-skill-level-dots span.is-on{background:var(--accent);}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-skill-level-bar{background:var(--accent-soft);}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-skill-level-bar-fill{background:var(--accent);}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-skill-level-stars{color:var(--accent-soft);}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-skill-level-stars span.is-on{color:var(--accent);}
.cv-template-custom.cv-custom-single .cv-side-blocks-inline .cv-skill-level-text{background:var(--accent-soft);color:var(--ink,#1b1b1b);}
.cv-template-custom.cv-custom-single .cv-main{width:100%;padding:0;}

/* 2-column main content — works with any layout variant. CSS multi-column
   flows the existing .cv-section blocks into two balanced columns without
   any markup changes; break-inside:avoid keeps a section from splitting
   across the column gap. A section longer than one column can't honor
   that hint on its own (it has to break somewhere), so .cv-entry also
   gets break-inside:avoid: without it, an entry can be bisected by the
   column break, and its date/tick — position:absolute against that same
   (now-split) entry box — ends up measured against a box straddling the
   column gap, landing the label on top of whatever starts the next
   column instead of next to its own entry. */
/* align-self:flex-start opts .cv-main out of the flex row's
   align-items:stretch, which otherwise hands it a fixed/definite height
   equal to the sidebar's. Multi-column layout with a fixed container
   height and more content than column-count can hold in that height
   doesn't grow the box — it silently opens extra columns further to the
   right, past .cv-main's own width, landing on top of the sidebar (this
   is what produced the overlapping/garbled text over the sidebar).
   Sizing to its own content height instead removes that ceiling, so the
   two columns balance to whatever height actually fits everything. */
.cv-template-custom.cv-custom-cols-2 .cv-main{column-count:2;column-gap:26px;align-self:flex-start;}
.cv-template-custom.cv-custom-cols-2 .cv-main .cv-section{break-inside:avoid;-webkit-column-break-inside:avoid;}
.cv-template-custom.cv-custom-cols-2 .cv-main .cv-entry{break-inside:avoid;-webkit-column-break-inside:avoid;}

/* entry style: "plain" strips the timeline dot + connecting line from
   every entry (werkervaring/opleiding) and removes the indent that made
   room for them, for a flatter, line-free look. Default stays the
   dot+line timeline shared with the rest of the app. */
.cv-template-custom.cv-custom-entry-plain .cv-entry{padding-left:0;}
.cv-template-custom.cv-custom-entry-plain .cv-entry::before,
.cv-template-custom.cv-custom-entry-plain .cv-entry::after{display:none;}

/* timeline theme: solid — filled dot + a bolder, more opaque line */
.cv-template-custom.cv-custom-entry-solid .cv-entry::before{
  background:var(--accent);border:none;width:6px;height:6px;left:.5px;
}
.cv-template-custom.cv-custom-entry-solid .cv-entry::after{width:2px;opacity:.55;}

/* timeline theme: numbered — each entry gets a small filled number badge
   instead of a dot; numbering restarts per section via a CSS counter. */
.cv-template-custom.cv-custom-entry-numbered .cv-section{counter-reset:cv-entry-num;}
.cv-template-custom.cv-custom-entry-numbered .cv-entry{counter-increment:cv-entry-num;padding-left:22px;}
.cv-template-custom.cv-custom-entry-numbered .cv-entry::before{
  content:counter(cv-entry-num);width:15px;height:15px;left:-2px;top:1px;border-radius:50%;
  background:var(--accent);border:none;color:#fff;font-family:var(--font-mono);
  font-size:calc(8px * var(--font-zoom,1));font-weight:700;display:flex;align-items:center;justify-content:center;
}
.cv-template-custom.cv-custom-entry-numbered .cv-entry::after{left:4.5px;top:18px;bottom:-16px;}

/* timeline theme: tick — a short coloured tick per entry, no connecting
   line — reads as a flat, modern list rather than a continuous timeline. */
.cv-template-custom.cv-custom-entry-tick .cv-entry{padding-left:12px;}
.cv-template-custom.cv-custom-entry-tick .cv-entry::before{
  content:"";width:3px;height:calc(13px * var(--font-zoom,1));left:0;top:2px;border-radius:2px;
  background:var(--accent);border:none;
}
.cv-template-custom.cv-custom-entry-tick .cv-entry::after{display:none;}

/* timeline theme: dashed — same hollow dot as the classic timeline, but
   a dashed connecting line instead of a solid one, for a lighter, more
   sketch-like feel. */
.cv-template-custom.cv-custom-entry-dashed .cv-entry::after{
  background:none;background-image:linear-gradient(var(--accent) 60%,transparent 40%);
  background-size:1.5px 6px;opacity:.6;
}

/* timeline theme: ring — a larger, thicker hollow ring marker with a
   thin, subtle connecting line; reads as more prominent milestones. */
.cv-template-custom.cv-custom-entry-ring .cv-entry{padding-left:17px;}
.cv-template-custom.cv-custom-entry-ring .cv-entry::before{
  width:8px;height:8px;left:-1px;top:3px;border-width:2px;
}
.cv-template-custom.cv-custom-entry-ring .cv-entry::after{left:2.5px;top:15px;opacity:.3;}

/* timeline theme: diamond — a rotated square marker per entry with the
   usual connecting line, a slightly sharper, more geometric look. */
.cv-template-custom.cv-custom-entry-diamond .cv-entry::before{
  width:5px;height:5px;border-radius:1px;background:var(--accent);border:none;
  transform:rotate(45deg);left:.5px;top:6px;
}

/* timeline theme: square — a small solid square marker, no rotation;
   a plainer, more geometric alternative to the round dot. */
.cv-template-custom.cv-custom-entry-square .cv-entry::before{
  width:5px;height:5px;border-radius:1px;background:var(--accent);border:none;left:.5px;
}

/* timeline theme: triangle — a small solid triangle marker built with
   CSS borders (no background/border-radius on the marker itself). */
.cv-template-custom.cv-custom-entry-triangle .cv-entry::before{
  width:0;height:0;left:0;top:4px;background:none;border-radius:0;
  border-style:solid;border-width:4px 0 4px 6px;
  border-color:transparent transparent transparent var(--accent);box-sizing:content-box;
}

/* timeline theme: star — a small star glyph instead of a shape built
   from borders/background, for a more playful, personal cv. */
.cv-template-custom.cv-custom-entry-star .cv-entry{padding-left:19px;}
.cv-template-custom.cv-custom-entry-star .cv-entry::before{
  content:"\2605";width:auto;height:auto;left:-2px;top:-2px;background:none;border:none;border-radius:0;
  font-size:11px;line-height:1;color:var(--accent);
}
.cv-template-custom.cv-custom-entry-star .cv-entry::after{left:2.5px;}

/* timeline theme: ruler — a continuous connecting line for the whole
   section (not gapped per entry like the classic dot) crossed by a
   short horizontal tick at each entry's marker, like a ruler/measuring
   line. Unlike "tick", the vertical line keeps running underneath.
   The date also moves into a small gutter right next to the tick
   (instead of floating at the top-right of the entry), matching the
   reference: a compact date label sitting directly on the timeline. */
.cv-template-custom.cv-custom-entry-ruler .cv-entry{padding-left:132px;}
/* The tick lives on .cv-entry-date (below) now, not .cv-entry — see the
   note there for why. This ::before is switched off so the shared
   generic dot/marker CSS (used by every other timeline theme) doesn't
   draw a second, misplaced marker here. */
.cv-template-custom.cv-custom-entry-ruler .cv-entry::before{display:none;}
.cv-template-custom.cv-custom-entry-ruler .cv-entry::after{
  left:0;top:7px;width:1.2px;opacity:.8;
  /* Overlap generously into the next entry's own line instead of
     relying on the exact -16px/margin-16px cancellation the other
     themes use — any small mismatch there reads as a visible break
     in what should be one unbroken line down the whole section. */
  bottom:-40px;
}
.cv-template-custom.cv-custom-entry-ruler .cv-entry-head{
  /* flex + align-items:baseline instead of the date being absolutely
     positioned with a hand-picked top offset: the title (13px, bold) and
     the date (10px) sit on different font sizes, so a fixed top:Npx only
     ever lined them up by luck at one particular font size/zoom — at any
     other size the date crept up or down relative to "marketing". Flex
     baseline alignment reads each item's own real text baseline and lines
     them up exactly, so title and date always sit level, at any size. */
  display:flex;align-items:baseline;
}
.cv-template-custom.cv-custom-entry-ruler .cv-entry-date{
  /* Still visually sits in the left gutter (was left:14px via
     position:absolute) but now as a normal flex item pulled back into
     that gutter with a negative margin, so its vertical position comes
     from flex baseline alignment above instead of a guessed top offset.
     order:-1 puts it before the title even though it's after it in the
     HTML. position:relative (not absolute) keeps it as the positioned
     ancestor the tick below still needs, without taking it out of flow.
     No fixed width any more, plus white-space:nowrap: a plain year
     ("2013 — 2023") and a month+year date ("jan 1990 — mrt 2023") are
     very different lengths, so the gutter now sizes to whatever the date
     actually needs (up to the wider padding-left above) and always
     stays on one line instead of wrapping once months were added. */
  position:relative;order:-1;flex:none;white-space:nowrap;
  margin-left:calc(14px - 132px);
  font-family:var(--font-doc);font-size:calc(10px * var(--font-zoom,1));color:#888;
  text-align:left;line-height:1.35;
}
/* flex:1 + min-width:0 so the title still claims the rest of the row
   (matching its old block/100%-width behaviour) and wraps normally
   instead of being sized to its own content, which a flex item is by
   default — without min-width:0 a long job title would refuse to shrink
   below its natural width and push the date out instead of wrapping. */
.cv-template-custom.cv-custom-entry-ruler .cv-entry-title{flex:1;min-width:0;}
/* Tick as a real element inside the date (.cv-ruler-tick, emitted by
   cv-render.js) rather than a pseudo-element, so top:50%/translateY(-50%)
   centers it on the date's own rendered height — correct whether the
   period text ("2013 — 2023") fits on one line or wraps to two. A fixed
   pixel offset from the top of .cv-entry (the old approach) only ever
   matched the single-line case; a wrapped two-line date visually
   centers lower, so the tick sat too high relative to it.
   .cv-entry-date is already position:relative (its own positioned
   ancestor by CSS rule — see above), so it's already the nearest
   positioned ancestor this needs.
   It's a real (non-pseudo) node specifically so the PDF export can grab
   it with a normal DOM query and swap top:50%/transform for an explicit
   pixel top right before html2canvas runs — see the PDF export code in
   app.js. html2canvas doesn't always rasterize top:50%+transform
   reliably (the same reason the sidebar height gets pixel-pinned there
   too), which is what left this tick visibly off-center in exported
   PDFs even though the live preview (real browser layout) is correct. */
.cv-ruler-tick{display:none;}
.cv-template-custom.cv-custom-entry-ruler .cv-entry-date .cv-ruler-tick{
  display:block;position:absolute;left:-14px;top:50%;transform:translateY(-50%);
  width:8px;height:2px;background:var(--accent);
}
/* .cv-page is width:100% up to a 794px (A4) cap — on a narrow phone
   screen it's genuinely only ~300-350px wide, not a scaled-down A4. The
   ruler style's 132px date gutter was a fixed fraction of that real
   width either way, so on a narrow page it ate a third of the row,
   squeezing "marketing" and — since .cv-entry-sub shares the same
   132px padding-left — leaving barely any width for "visiyon ·
   uithuizen" underneath, which is what forced it onto two cramped
   lines. Shrink the gutter (and its matching negative margin on the
   date) on narrow pages so both lines actually have room. */
/* Two-column layout (.cv-custom-cols-2) splits .cv-main into CSS
   columns, so each column is roughly half the usual single-column
   width regardless of screen size — the ruler gutter squeeze isn't
   only a small-screen problem, a desktop-width page hits it too as
   soon as two columns are on. Shrink the gutter here unconditionally
   (not just under the narrow-viewport media query below) so a column
   entry's title and sub-line both keep usable width. */
.cv-template-custom.cv-custom-cols-2.cv-custom-entry-ruler .cv-entry{padding-left:80px;}
.cv-template-custom.cv-custom-cols-2.cv-custom-entry-ruler .cv-entry-date{margin-left:calc(14px - 80px);}

  .cv-template-custom.cv-custom-entry-ruler .cv-entry{padding-left:88px;}
  .cv-template-custom.cv-custom-entry-ruler .cv-entry-date{margin-left:calc(14px - 88px);}
}

/* --- shared preview typography --- */
.cv-section{margin-bottom:20px;}
.cv-section:last-child{margin-bottom:0;}
.cv-section-title{
  font-family:var(--font-mono);font-size:calc(10.5px * var(--font-zoom,1));letter-spacing:.09em;text-transform:uppercase;
  color:var(--font-color, var(--accent));margin-bottom:10px;font-weight:600;
}
.cv-template-klassiek .cv-section-title{color:#1b1b1b;border-bottom:1px solid #ddd;padding-bottom:4px;}
.cv-summary-text{font-size:calc(12.5px * var(--font-zoom,1));line-height:1.65;color:#333;}
/* timeline: every entry gets a dot + a line connecting it down to the
   next one, so a section with several jobs/opleidingen reads as one
   continuous vertical tijdlijn instead of a list of loose blocks. */
.cv-entry{position:relative;padding-left:14px;margin-bottom:16px;}
.cv-entry:last-child{margin-bottom:0;}
.cv-entry::before{
  content:"";position:absolute;left:0;top:5px;width:5px;height:5px;border-radius:50%;
  background:#fff;border:1.3px solid var(--accent);box-sizing:border-box;
}
.cv-entry::after{
  content:"";position:absolute;left:2px;top:13px;bottom:-16px;width:1.5px;background:var(--accent);opacity:.35;
}
.cv-entry:last-child::after{display:none;}
.cv-entry-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;}
.cv-entry-title{font-size:calc(13px * var(--font-zoom,1));font-weight:700;color:#1b1b1b;}
.cv-entry-sub{font-size:calc(11.5px * var(--font-zoom,1));color:#555;margin-top:1px;}
.cv-entry-date{font-family:var(--font-doc);font-size:calc(10px * var(--font-zoom,1));color:#888;white-space:nowrap;flex:none;}
.cv-entry-desc{font-size:calc(11.5px * var(--font-zoom,1));line-height:1.6;color:#444;margin-top:5px;white-space:pre-line;}
.cv-skill-list{display:flex;flex-direction:column;gap:calc(7px * var(--font-zoom,1));}
/* justify-content:space-between deliberately avoided here: html2canvas
   (used for the PDF export) has a long-standing bug where it doesn't
   distribute space-between correctly on a 2-item flex row, so the
   level badge ends up sitting right after the (variable-length) name
   instead of pushed to the row's right edge — a different badge
   position on every row in the exported PDF, even though the live
   preview (real browser layout) renders it correctly. margin-left:auto
   on the badge (below) achieves the identical on-screen result via
   plain margin math, which html2canvas computes correctly. */
.cv-skill-row{display:flex;align-items:center;gap:12px;font-size:calc(11px * var(--font-zoom,1));}
.cv-skill-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto;}
.cv-skill-level-dots{display:inline-flex;gap:calc(3px * var(--font-zoom,1));flex:none;margin-left:auto;}
.cv-skill-level-dots span{width:calc(7.5px * var(--font-zoom,1));height:calc(7.5px * var(--font-zoom,1));aspect-ratio:1/1;border-radius:50%;background:var(--accent-soft);flex:none;box-sizing:border-box;}
.cv-skill-level-dots span.is-on{background:var(--accent);}

/* ---- niveau-weergave theme: balk ---- */
.cv-skill-level-bar{display:inline-block;width:calc(56px * var(--font-zoom,1));height:calc(6px * var(--font-zoom,1));border-radius:999px;background:var(--accent-soft);flex:none;overflow:hidden;margin-left:auto;}
.cv-skill-level-bar-fill{display:block;height:100%;background:var(--accent);border-radius:999px;}

/* ---- niveau-weergave theme: sterren ---- */
.cv-skill-level-stars{display:inline-flex;gap:calc(1px * var(--font-zoom,1));flex:none;font-size:calc(11px * var(--font-zoom,1));line-height:1;color:var(--accent-soft);margin-left:auto;}
.cv-skill-level-stars span.is-on{color:var(--accent);}

/* ---- niveau-weergave theme: tekstlabel ---- */
.cv-skill-level-text{
  flex:none;font-size:calc(9.5px * var(--font-zoom,1));font-weight:600;letter-spacing:.01em;
  padding:calc(2px * var(--font-zoom,1)) calc(8px * var(--font-zoom,1));border-radius:999px;
  background:var(--accent-soft);color:var(--accent);white-space:nowrap;
  /* explicit line-height (instead of inheriting body's 1.5) plus
     inline-flex + align-items:center so the text sits centered purely
     from layout, not from vertical padding balancing a particular
     font's ascent/descent. html2canvas measures text with the
     fallback font's metrics for a moment while the real webfont is
     still swapping in, and those two fonts don't share the same
     ascent — with line-height:1.5 that mismatch pushed the text
     visibly off-center in the exported PDF even though it looked
     fine on screen once the real font had loaded. line-height:1 removes
     almost all of that slack regardless of which font is measured. */
  display:inline-flex;align-items:center;justify-content:center;line-height:1;margin-left:auto;
}



.cv-empty-hint{font-size:calc(11.5px * var(--font-zoom,1));color:#999;font-style:italic;}

