/* Create CV (marcusandrey.com/create-cv). An Operate surface: the editor uses the site's tokens and stays quiet;
   the brand lives in the six CV designs. The sheet is set in mm and pt so the preview and the PDF are the same page. */

.cc { padding: calc(var(--bar-h) + clamp(1.5rem, 3vw, 2.5rem)) 0 clamp(3rem, 6vw, 5rem); }
.cc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.cc-head__title { max-width: 54rem; display: grid; gap: .75rem; }
.cc-head__lead { color: var(--ink-soft); font-size: var(--t-body); max-width: 46rem; }
.cc-head__actions { display: grid; justify-items: end; gap: .5rem; }
.cc-head__note { text-align: right; font-size: var(--t-small); color: var(--ink-soft); max-width: 30rem; }
.cc-noscript { padding: 1.25rem; background: var(--surface); border-radius: 10px; }
.btn--quiet { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.btn--quiet:hover { background: color-mix(in srgb, var(--ink) 20%, transparent); }
:where(.cc) button { font: inherit; color: inherit; cursor: pointer; }
.cc .btn { border: 0; }
.cc [hidden] { display: none !important; }

/* ---------- workspace: two columns, what you write and what you get ---------- */
.cc-work { display: grid; grid-template-columns: minmax(20rem, 25rem) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: start; }
.cc-editor { display: grid; gap: 1.25rem; align-content: start; }
.cc-editor:empty { min-height: 120vh; }
.cc-editor:focus { outline: none; }
/* the preview column runs the editor's full height, so the sheet inside can stay in view while you type */
.cc-preview { align-self: stretch; background: var(--surface); border-radius: 12px; padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.cc-stage-wrap { position: sticky; top: calc(var(--bar-h) + 1rem); }
.cc-tabs, .cc-dock { display: none; }

/* ---------- form ---------- */
.cc-label { font-weight: 600; font-size: 1.0625rem; }
.cc-sub { font-size: var(--t-small); color: var(--ink-soft); }
.cc-field { display: grid; gap: .45rem; }
/* inputs and textareas: .input in styles.css; typeface pills: .pill.pill--choice; text buttons: .text-btn */
.cc-field > label, .cc-field > .cc-label-row label { font-size: var(--t-small); font-weight: 600; }
.cc-label-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.cc-help { font-size: var(--t-small); color: var(--ink-soft); }
.cc-error { font-size: var(--t-small); color: var(--ink); font-weight: 600; }
.cc-error::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .4em; vertical-align: -.15em; background: var(--attn); mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zM7.1 4.3a.9.9 0 0 1 1.8 0v4.6a.9.9 0 0 1-1.8 0zM8 10.5a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2z"/></svg>') center / contain no-repeat; }   /* the drawn "!" of the attention chips, not a glyph */
.cc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }   /* a hint under one field must not stretch its neighbour */

.cc-design { display: grid; gap: .75rem; padding-bottom: .9rem; border-bottom: 1px solid var(--surface-2); }
.cc-design__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.cc-radios { display: flex; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.cc-radios legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cc-templates { overflow-x: auto; scrollbar-width: thin; padding: 3px; gap: .4rem; }
.cc-tpl { position: relative; flex: 0 0 auto; width: 5.25rem; display: grid; align-content: start; gap: .3rem; padding: .35rem .35rem .4rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.cc-tpl:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.cc-tpl:has(input:checked) { background: var(--ground); border: 2px solid var(--accent); padding: calc(.35rem - 1px) calc(.35rem - 1px) calc(.4rem - 1px); }
.cc-tpl:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.cc-tpl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cc-tpl__thumb { aspect-ratio: 210 / 297; background: #fff; overflow: hidden; position: relative; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.cc-tpl__thumb .cvo { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.cc-tpl__name { font-size: .875rem; font-weight: 600; text-align: center; }
.cc-tpl__tag { justify-self: center; font-size: .75rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.cc-design__note { font-size: var(--t-small); color: var(--ink-soft); max-width: 70ch; }
.cc-design__note b { color: var(--ink); font-weight: 600; }
.cc-swatches { flex-wrap: wrap; padding: 4px; }
.cc-swatch { position: relative; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sw); cursor: pointer; }
.cc-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.cc-swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--ink); }
.cc-swatch:has(input:focus-visible) { outline: 2px dashed var(--accent); outline-offset: 8px; }
/* "Your colour": a native colour input inside a swatch; a colour wheel until one is chosen */
.cc-swatch--pick { background: conic-gradient(#d33, #e90, #cc3, #3a5, #39c, #36c, #93c, #d33); }
.cc-swatch--pick.is-on { background: var(--sw); box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--ink); }
.cc-swatch--pick input { width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; }
.cc-swatch--pick:has(input:focus-visible) { outline: 2px dashed var(--accent); outline-offset: 8px; }
.cc-fonts { gap: .3rem; }
.cc-toggles { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.cc-switch { display: inline-flex; align-items: center; gap: .55rem; background: none; border: 0; padding: .35rem 0; min-height: 2.25rem; text-align: left; font-size: var(--t-small); }
.cc-switch__track { flex: none; width: 2.5rem; height: 1.5rem; border-radius: 1rem; background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; transition: background-color .2s var(--ease-out); }
.cc-switch__track::after { content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease-out), background-color .2s; }
.cc-switch[aria-checked="true"] .cc-switch__track { background: var(--accent-fill); }
.cc-switch[aria-checked="true"] .cc-switch__track::after { transform: translateX(1rem); background: var(--on-accent); }
.cc-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.cc-group { border-top: 1px solid var(--surface-2); }
.cc-group__head { width: 100%; display: flex; align-items: baseline; gap: .75rem; padding: 1rem 0; background: none; border: 0; text-align: left; }
.cc-group__title { flex: 1; font: 600 1.5rem/1.1 var(--display); letter-spacing: -.02em; }
.cc-group__meta { font-size: var(--t-small); color: var(--ink-soft); }
.cc-group__sign { font: 500 1.4rem/1 var(--display); color: var(--ink-soft); width: 1rem; text-align: center; }
.cc-group__head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.cc-group__body { display: grid; gap: 1rem; padding-bottom: 1.25rem; }
.cc-group__body[hidden] { display: none; }

.cc-items { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.cc-item { background: var(--surface); border-radius: 8px; }
.cc-item.is-dragging { opacity: .5; }
.cc-item.is-over { outline: 2px dashed var(--accent); }
.cc-item__row { display: flex; align-items: center; gap: .5rem; padding: .65rem .75rem; }
.cc-item__grip { cursor: grab; color: var(--ink-soft); padding: 0 .1rem; user-select: none; }
.cc-item__text { flex: 1; min-width: 0; display: grid; }
.cc-item__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-item__meta { font-size: var(--t-small); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-icon { min-width: 2.25rem; min-height: 2.25rem; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 6px; color: var(--ink-soft); font-weight: 600; }
.cc-icon:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.cc-icon:focus-visible { outline: 2px solid var(--accent); }
.cc-icon[disabled] { opacity: .3; cursor: default; }
.cc-icon--text { color: var(--accent); padding: 0 .6rem; }
.cc-item__actions { display: flex; align-items: center; gap: .25rem; padding-top: .25rem; border-top: 1px solid var(--surface-2); }
.cc-item__actions .cc-linkbtn--quiet { margin-left: auto; min-height: 2.75rem; padding: 0 .6rem; }
.cc-item__actions .cc-icon { min-width: 2.75rem; min-height: 2.75rem; }   /* 44px touch targets */
.cc-item__body { display: grid; gap: .85rem; padding: .25rem .75rem 1rem; }
.cc-add { justify-self: start; padding: .35rem 0; }   /* .text-btn */
.cc-photo { display: flex; align-items: center; gap: 1rem; }
.cc-photo__img { width: 4.5rem; height: 4.5rem; border-radius: 6px; object-fit: cover; background: var(--surface); }
.cc-photo__btns { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.cc-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cc-example { display: grid; gap: .6rem; padding: 1rem 1.1rem; border-radius: 10px; background: color-mix(in srgb, var(--accent-fill) 16%, var(--surface)); }
.cc-example p { font-size: var(--t-small); }
.cc-example__btns { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.cc-example .cc-linkbtn { font-size: 1rem; }
.cc-data { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; border-top: 1px solid var(--surface-2); padding-block: 1rem .25rem; }
.cc-data__saved { flex-basis: 100%; }
.cc-data__clear { margin-left: auto; }

/* ---------- preview ---------- */
.cc-stage { width: 100%; position: relative; aspect-ratio: 210 / 297; }   /* reserves the sheet before the script draws it (no layout shift) */
.cc-stage .cvo { position: absolute; left: 50%; top: 0; transform-origin: 50% 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cc-pagebreak { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed color-mix(in srgb, var(--paper-accent, #1f3fb4) 55%, transparent); pointer-events: none; }
.cc-pagebreak span { position: absolute; right: 0; top: .2rem; font-size: .75rem; background: var(--surface); padding: 0 .4rem; color: var(--ink-soft); }

/* ---------- checks: one quiet line, the reasons one click away ---------- */
.cc-checks { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.cc-checks__list { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
/* one attention tone for "needs a look" (amber, not red: these are trade-offs, not errors). 5.2:1 on the light surface, 8.4:1 on the dark */
/* --attn lives in styles.css (:root) */
.cc-chip { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: .2rem .65rem .2rem .45rem; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-soft); }
.cc-chip__i { flex: none; width: 1rem; height: 1rem; }
.cc-chip:not(.cc-chip--tip) .cc-chip__i { color: var(--ink-soft); }
.cc-chip--tip { background: color-mix(in srgb, var(--attn) 12%, transparent); box-shadow: inset 0 0 0 1.5px var(--attn); color: var(--ink); cursor: pointer; }
.cc-chip--tip .cc-chip__i { color: var(--attn); }
.cc-chip--tip:hover { background: color-mix(in srgb, var(--attn) 22%, transparent); }
.cc-chip--tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-whyp__tag { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--attn); }
.cc-whyp__tag .cc-chip__i { color: var(--attn); }
.cc-whyp__row { padding: .5rem .6rem; margin: -.5rem -.6rem; border-radius: 8px; }
.cc-whyp__row:focus { outline: 2px solid var(--attn); outline-offset: 0; }
.cc-whyp__row.is-attn dd { color: var(--ink); }
.cc-checks__why { font-size: var(--t-small); }
.cc-checks__why::after { content: " +"; }
.cc-checks__why[aria-expanded="true"]::after { content: " −"; }
.cc-whyp { display: grid; gap: .9rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--ground); }
.cc-whyp[hidden] { display: none; }
.cc-whyp__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem 1.5rem; margin: 0; }
.cc-whyp__row dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; font-size: var(--t-small); color: var(--ink-soft); }
.cc-whyp__row dt b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-whyp__row dd { margin: .15rem 0 0; font-size: var(--t-small); }

.cc-toast { position: fixed; z-index: 45; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem 1.25rem; border-radius: 10px; background: var(--ink); color: var(--ground); font-size: var(--t-small); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cc-toast button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .cc-work { grid-template-columns: minmax(19rem, 22rem) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .cc-head__actions { display: none; }
  .cc-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
  .cc-tab { flex: 1; min-height: 2.75rem; }   /* .pill: the tabs navigate, so selected is ink */
  .cc-work { display: block; padding-bottom: 6rem; }
  .cc-work[data-tab="edit"] .cc-preview { display: none; }
  .cc-work[data-tab="preview"] .cc-editor { display: none; }
  .cc-preview { background: none; padding: 0; }
  .cc-stage-wrap { position: static; }
  .cc-templates { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
  .cc-dock { display: flex; position: fixed; z-index: 39; left: 0; right: 0; bottom: 0; padding: .75rem var(--margin) calc(.75rem + env(safe-area-inset-bottom)); background: var(--surface); }
  .cc-dock .btn--primary { flex: 1; }
  .foot--cv { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }   /* the fixed dock must not cover the footer links */
  .cc-head__note { text-align: left; }
}

/* ========== the CV sheet (output) ========== */
/* two optional OFL faces for the sheet (licences in /fonts); they load only when chosen. Funnel stays the default */
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
.cvo--f-serif { --display: "Source Serif 4", Georgia, serif; --text: "Source Serif 4", Georgia, serif; }
.cvo--f-sans { --display: "IBM Plex Sans", Arial, sans-serif; --text: "IBM Plex Sans", Arial, sans-serif; }
.cvo--f-serif .cvo__name, .cvo--f-sans .cvo__name { letter-spacing: -.025em; }
.cvo--f-serif, .cvo--f-sans { font-feature-settings: normal; }   /* ss01 is a Funnel set; it would swap glyphs in other faces */
.cvo {
  --acc: #1f3fb4; --ink: #0e0e10; --soft: #4a4a4e; --rule: #dcdcdc; --chip: #ececec;
  width: 210mm; min-height: 297mm; padding: 14mm 15mm 11mm; background: #fff; color: var(--ink);
  font: 400 9.7pt/1.45 var(--text); font-feature-settings: "ss01"; text-align: left;
  display: flex; flex-direction: column; gap: 5.5mm;
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}
.cvo * { margin: 0; }
.cvo a { color: inherit; text-decoration: none; }
.cvo h2, .cvo h3 { font-family: var(--display); }
.cvo__name { font: 700 34pt/.9 var(--display); letter-spacing: -.04em; }
.cvo__role { font: 600 12pt/1.25 var(--display); color: var(--acc); letter-spacing: -.01em; }
.cvo__contact { display: flex; flex-wrap: wrap; gap: .25em 1.2em; color: var(--soft); padding: 0; list-style: none; }
.cvo__photo { width: 32mm; height: 32mm; object-fit: cover; filter: grayscale(1); }
.cvo__photo--ph { display: grid; place-content: center; justify-items: center; gap: 1.5mm; background: var(--chip); color: #68686d; font-size: 7pt; }   /* 4.7:1 on the chip grey */
.cvo__photo--ph svg { width: 11mm; height: 11mm; fill: currentColor; }
.cvo--banner .cvo__photo--ph { background: color-mix(in srgb, #fff 22%, transparent); color: #fff; }
.cvo__sec h2 { font-size: 11pt; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.cvo__entries { display: grid; gap: 3.8mm; }
.cvo__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .6em; }
.cvo__top h3 { font-size: 10.6pt; font-weight: 600; letter-spacing: -.01em; }
.cvo__org { font: 500 10.6pt/1.2 var(--display); color: var(--acc); }
.cvo__when { margin-left: auto; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cvo__pts { margin-top: 1.2mm; padding-left: 1.05em; display: grid; gap: .7mm; }
.cvo__pts li::marker { color: var(--acc); }
.cvo__note { color: var(--soft); margin-top: .6mm; }
.cvo__tags { display: flex; flex-wrap: wrap; gap: 1.4mm; padding: 0; list-style: none; }
.cvo__tags li { padding: .2em .75em; border-radius: 999px; background: var(--chip); }
.cvo__plain { color: var(--ink); }
.cvo__credit { margin-top: auto; padding-top: 4mm; font-size: 7pt; color: var(--soft); }

/* Studio: a 30 mm label column, like Marcus's own CV */
.cvo--studio .cvo__head { display: grid; grid-template-columns: 1fr auto; gap: 8mm; align-items: end; padding-bottom: 5mm; border-bottom: 2px solid var(--ink); }
.cvo--studio .cvo__id { display: grid; gap: 2.2mm; }
.cvo--studio .cvo__sec { display: grid; grid-template-columns: 30mm 1fr; gap: 6mm; padding-top: 4.4mm; border-top: 2px solid var(--rule); }
.cvo--studio .cvo__head + .cvo__sec { border-top: 0; padding-top: 0; }

/* Editorial: a big name, an accent band and a sidebar */
.cvo--editorial { padding-top: 0; }
.cvo--editorial::before { content: ""; display: block; height: 4mm; margin: 0 -15mm; background: var(--acc); }
.cvo--editorial .cvo__head { display: grid; gap: 2mm; padding-top: 6mm; }
.cvo--editorial .cvo__name { font-size: 44pt; }
.cvo--editorial .cvo__role { color: var(--soft); font-weight: 500; }
.cvo--editorial .cvo__cols { display: grid; grid-template-columns: 52mm 1fr; gap: 10mm; }
.cvo--editorial .cvo__side, .cvo--editorial .cvo__main { display: grid; gap: 5.5mm; align-content: start; }
.cvo--editorial .cvo__sec { display: grid; gap: 1.6mm; }
.cvo--editorial .cvo__sec h2 { color: var(--acc); }
.cvo--editorial .cvo__contact { display: grid; gap: .6mm; color: var(--ink); }
.cvo--editorial .cvo__photo { width: 40mm; height: 40mm; }
.cvo--editorial .cvo__side .cvo__tags { display: grid; gap: .6mm; }
.cvo--editorial .cvo__side .cvo__tags li { padding: 0; background: none; border-radius: 0; }
.cvo--editorial .cvo__lead { font-size: 10.6pt; }

/* Compact: one column, the safest for job portals (ATS) */
.cvo--compact { padding: 13mm 17mm 11mm; gap: 4mm; font-size: 9.2pt; }
.cvo--compact .cvo__head { display: grid; gap: 1.2mm; }
.cvo--compact .cvo__nameline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1mm 4mm; }
.cvo--compact .cvo__name { font-size: 22pt; }
.cvo--compact .cvo__role { font-size: 11pt; }
.cvo--compact .cvo__contact { font-size: 8.4pt; gap: .2em .9em; }
.cvo--compact .cvo__photo { display: none; }
.cvo--compact .cvo__sec { display: grid; gap: 2mm; }
.cvo--compact .cvo__sec h2 { color: var(--acc); font-size: 10pt; padding-bottom: 1mm; border-bottom: 1.5px solid var(--acc); }
.cvo--compact .cvo__entries { gap: 2.6mm; }
.cvo--compact .cvo__top h3, .cvo--compact .cvo__org { font-size: 9.8pt; }
.cvo--compact .cvo__tags { display: block; }
.cvo--compact .cvo__tags li { display: inline; padding: 0; background: none; }
.cvo--compact .cvo__tags li + li::before { content: " · "; color: var(--soft); }

/* Classic: the CV grammar centred. Name, rule-framed section heads and one column; the safest with Compact for job portals */
.cvo--classic { padding: 15mm 18mm 11mm; gap: 5mm; }
.cvo--classic .cvo__head { display: grid; justify-items: center; gap: 2mm; text-align: center; padding-bottom: 5mm; border-bottom: 2px solid var(--ink); }
.cvo--classic .cvo__name { font-size: 30pt; }
.cvo--classic .cvo__contact { justify-content: center; gap: .25em 1.2em; }
.cvo--classic .cvo__photo { width: 26mm; height: 26mm; margin-bottom: 1mm; }
.cvo--classic .cvo__sec { display: grid; gap: 2.4mm; }
.cvo--classic .cvo__sec h2 { display: flex; align-items: center; gap: 4mm; }
.cvo--classic .cvo__sec h2::before, .cvo--classic .cvo__sec h2::after { content: ""; flex: 1; border-top: 2px solid var(--rule); }
.cvo--classic .cvo__pts { list-style: none; padding-left: 1.1em; }
.cvo--classic .cvo__pts li { position: relative; }
.cvo--classic .cvo__pts li::before { content: "–"; position: absolute; left: -1.1em; color: var(--acc); }
.cvo--classic .cvo__tags { justify-content: center; }
.cvo--classic .cvo__plain, .cvo--classic .cvo__credit { text-align: center; }

/* Timeline: dates in a 26 mm column, each entry a dot on one accent line */
.cvo--timeline { gap: 5mm; }
.cvo--timeline .cvo__head { display: flex; gap: 6mm; align-items: center; padding-bottom: 5mm; border-bottom: 2px solid var(--ink); }
.cvo--timeline .cvo__id { display: grid; gap: 2mm; flex: 1; }
.cvo--timeline .cvo__name { font-size: 30pt; }
.cvo--timeline .cvo__photo { width: 26mm; height: 26mm; }
.cvo--timeline .cvo__contact { display: grid; gap: .5mm; justify-items: end; text-align: right; font-size: 8.8pt; }
.cvo--timeline .cvo__sec { display: grid; gap: 2.6mm; }
.cvo--timeline .cvo__sec h2, .cvo--timeline .cvo__lead, .cvo--timeline .cvo__tags, .cvo--timeline .cvo__plain { margin-left: 33mm; }
.cvo--timeline .cvo__sec h2 { color: var(--acc); }
.cvo--timeline .cvo__entries { gap: 3.4mm; background: linear-gradient(var(--rule), var(--rule)) 28.8mm 1.4mm / .5mm calc(100% - 2.8mm) no-repeat; }
.cvo--timeline article { position: relative; display: grid; grid-template-columns: 26mm 1fr; column-gap: 7mm; }
.cvo--timeline article::before { content: ""; position: absolute; left: 28.05mm; top: 1.15mm; width: 2mm; height: 2mm; border-radius: 50%; background: var(--acc); }
.cvo--timeline .cvo__top { display: contents; }
.cvo--timeline .cvo__top h3, .cvo--timeline .cvo__org, .cvo--timeline .cvo__pts, .cvo--timeline .cvo__note { grid-column: 2; }
.cvo--timeline .cvo__when { grid-column: 1; grid-row: 1 / span 3; margin: 0; white-space: normal; font-size: 8.8pt; line-height: 1.35; }   /* same size as the contact: the scale stays at 7 sizes */
.cvo--timeline .cvo__org { font-size: 9.7pt; }

/* Banner: the name on an accent band to the page edge, a main column and a 56 mm sidebar */
.cvo--banner { padding-top: 0; gap: 6mm; }
.cvo--banner .cvo__head { display: grid; grid-template-columns: 1fr auto; gap: 8mm; align-items: center; margin: 0 -15mm; padding: 11mm 15mm 9mm; background: var(--acc); color: #fff; }
.cvo--banner .cvo__id { display: grid; gap: 2.2mm; }
.cvo--banner .cvo__name { font-size: 36pt; }
.cvo--banner .cvo__role { color: #fff; font-weight: 500; }
.cvo--banner .cvo__contact { color: #fff; gap: .25em 1.4em; }
.cvo--banner .cvo__photo { width: 32mm; height: 32mm; }
.cvo--banner .cvo__cols { display: grid; grid-template-columns: 1fr 56mm; gap: 9mm; }
.cvo--banner .cvo__main, .cvo--banner .cvo__side { display: grid; gap: 5.5mm; align-content: start; }
.cvo--banner .cvo__side { padding-left: 6mm; border-left: .5pt solid var(--rule); }
.cvo--banner .cvo__sec { display: grid; gap: 2mm; }
.cvo--banner .cvo__sec h2::before { content: ""; display: block; width: 7mm; height: 1mm; margin-bottom: 1.6mm; background: var(--acc); }
.cvo--banner .cvo__side .cvo__entries { gap: 2.6mm; }
.cvo--banner .cvo__side .cvo__top { display: grid; gap: .3mm; }
.cvo--banner .cvo__side .cvo__when { margin-left: 0; }
.cvo--banner .cvo__side .cvo__tags li { padding: .15em .65em; font-size: 8.8pt; }
.cvo--banner .cvo__lead { font-size: 10.6pt; }

/* ---------- print: only the sheet, true A4 ---------- */
/* page 1 keeps the template's own top margin (Editorial's band runs to the edge); later pages get 14 mm from @page */
@page { size: A4; margin: 14mm 0 12mm; }
@page :first { margin-top: 0; }
@media print {
  html, body { background: #fff !important; }
  body > *:not(main), .cc > *:not(.cc-work), .cc-editor, .cc-design, .cc-checks, .cc-whyp, .cc-pagebreak, .skip, .bar, .foot { display: none !important; }
  /* the editor's wrappers would stop the sheet from breaking across pages: in print they step aside */
  .cc, .cc-work, .cc-preview, .cc-stage-wrap, .cc-stage { display: contents !important; }
  .cc-stage .cvo { position: static; transform: none !important; margin: 0; box-shadow: none; }
  .cvo { min-height: 285mm; padding-bottom: 0; }
  .cvo article, .cvo__head, .cvo__tags, .cvo__plain { break-inside: avoid; }
  .cvo__sec h2 { break-after: avoid; }
  .cvo__photo--ph { display: none !important; }   /* the placeholder is a hint on screen, never on paper */
}

/* after the editor: the paid review and voluntary support, side by side in one band (one ask, two ways) */
.cc-after { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.cc-review { display: grid; align-content: start; gap: .75rem; padding: 1.75rem 2rem; border-radius: 18px; background: var(--surface); }
.cc-review__h { font: 600 1.6rem/1.15 var(--display); letter-spacing: -.02em; }
.cc-review p { max-width: 52ch; }
.cc-review .btn { justify-self: start; }
.cc-after .sup { margin: 0; max-width: none; }
.cc-after .sup__go { gap: .75rem 1.25rem; }
@media (max-width: 720px) { .cc-review { padding: 1.5rem; } }
@media print { .cc-after { display: none; } }
