/* ==========================================================================
   CV BUILDER

   The guided builder from "Mindship_CV_Builder_v12_Single_Tip.html", drawn in
   the site's own theme: its navy, its teal, its radii and borders, with flat
   surfaces. The prototype's gradients, glows and tinted panels are gone; what
   it laid out, and how, is kept.

   Everything is scoped to .cvs (the builder) or .cv-page (the page around it),
   and every class is prefixed, so nothing here can reach the rest of the site
   and nothing on the site can restyle the builder.

   The A4 preview and the template thumbnails are documents rather than
   interface, so they keep the prototype's own typography and colours; they
   borrow nothing from the page around them. Their colours are the ones the
   Word and PDF downloads use (TONES in assets/js/cv-studio.js).
   ========================================================================== */

.cv-page {
	--cvs-navy: var(--color-navy-900, #01224F);
	--cvs-teal: var(--color-primary, #028B93);
	--cvs-teal-ink: var(--color-primary-ink, #02737A);
	--cvs-teal-dark: var(--color-primary-dark, #015A60);
	--cvs-soft: var(--color-primary-soft, #E6F4F5);
	--cvs-text: var(--color-text, #16202B);
	--cvs-muted: var(--color-text-muted, #5C6B7A);
	--cvs-line: var(--color-border, #E2E8EC);
	--cvs-line-strong: #CBD5DC;
	--cvs-danger: var(--color-danger, #CC2A1E);
	--cvs-radius: var(--radius-lg, 16px);
	--cvs-radius-sm: var(--radius-md, 10px);
	background: #F5F9FB;
	padding-block: 34px 70px;
}

/* --- The page around it --------------------------------------------------- */

.cv-page__head { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.cv-page__title { margin: 0 0 8px; font-size: clamp(27px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; color: var(--cvs-navy); }
.cv-page__lead { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--cvs-muted); }
.cv-page__points { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.cv-page__points li { padding: 5px 13px; border-radius: 999px; background: var(--cvs-soft); font-size: 12.5px; font-weight: 600; color: var(--cvs-teal-ink); }
.cv-page__noscript { max-width: 620px; margin: 0 auto; padding: 20px 22px; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius); background: #fff; font-size: 14px; line-height: 1.6; color: var(--cvs-muted); text-align: center; }

/* --- Base ------------------------------------------------------------------- */

.cvs { position: relative; color: var(--cvs-text); font-size: 14px; line-height: 1.5; }
.cvs *, .cvs *::before, .cvs *::after { box-sizing: border-box; }
.cvs button, .cvs input, .cvs textarea, .cvs select { font: inherit; }
.cvs button { cursor: pointer; }
.cvs button:disabled { cursor: not-allowed; opacity: .5; }
.cvs :focus-visible { outline: 3px solid #70C6D8; outline-offset: 2px; }
.cvs .cvs-i { flex: none; }
.cvs [hidden] { display: none !important; }

html.cvs-lock { overflow: hidden; }

/* --- Buttons -------------------------------------------------------------- */

.cvs .cvs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 42px; padding: 9px 16px;
	border: 1px solid var(--cvs-line-strong); border-radius: var(--cvs-radius-sm);
	background: #fff; color: var(--cvs-navy);
	font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease;
}
.cvs .cvs-btn:hover:not(:disabled) { background: #F1F7F8; border-color: #A9C3C9; }
.cvs .cvs-btn--primary { background: var(--cvs-teal-ink); border-color: var(--cvs-teal-ink); color: #fff; }
.cvs .cvs-btn--primary:hover:not(:disabled) { background: var(--cvs-teal-dark); border-color: var(--cvs-teal-dark); }
.cvs .cvs-btn--outline-strong { border-color: var(--cvs-teal-ink); color: var(--cvs-teal-ink); }
.cvs .cvs-btn--small { min-height: 34px; padding: 6px 11px; font-size: 12.5px; }
.cvs .cvs-btn--danger { color: #A32643; border-color: #F0CBD2; }
.cvs .cvs-btn--danger:hover:not(:disabled) { background: #FDF1F3; border-color: #E5A9B4; }
.cvs .cvs-btn--link { min-height: 0; padding: 4px 2px; border: 0; background: none; color: var(--cvs-teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.cvs .cvs-btn--link:hover:not(:disabled) { background: none; color: var(--cvs-teal-dark); }
.cvs .cvs-mt { margin-top: 10px; }

/* Shown only where the preview is a pop-over rather than a column. */
.cvs .cvs-only-narrow { display: none; }

/* --- Toolbar and context ---------------------------------------------------- */

.cvs-toolbar { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.cvs-toolbar__acts { display: flex; gap: 8px; }

.cvs-context { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #CDE6E8; border-radius: var(--cvs-radius-sm); background: var(--cvs-soft); color: var(--cvs-navy); font-size: 13.5px; line-height: 1.55; }
.cvs-context .cvs-i { margin-top: 2px; color: var(--cvs-teal-ink); }

/* --- Layout ----------------------------------------------------------------- */

.cvs-layout { display: grid; grid-template-columns: 210px minmax(380px, 1fr) minmax(350px, .9fr); gap: 18px; align-items: start; }

.cvs-card, .cvs-editor, .cvs-preview { border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius); background: #fff; box-shadow: 0 1px 2px rgba(1, 34, 79, .04); }

.cvs-side { position: sticky; top: 16px; }
.cvs-card { padding: 16px 12px; }
.cvs-card__title { margin: 4px 10px 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cvs-muted); }

.cvs-steps { display: grid; gap: 3px; }
.cvs-step { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 9px; border: 0; border-left: 3px solid transparent; border-radius: 9px; background: none; color: #405A71; font-size: 13px; font-weight: 650; text-align: left; }
.cvs-step:hover { background: #F2F6F8; }
.cvs-step.is-active { background: var(--cvs-soft); border-left-color: var(--cvs-teal); color: var(--cvs-navy); }
.cvs-step__n { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #E8EEF2; color: #516D89; font-size: 11.5px; font-weight: 800; }
.cvs-step.is-active .cvs-step__n { background: var(--cvs-teal-ink); color: #fff; }
.cvs-step.is-done .cvs-step__n { background: #D9F0E8; color: #146A52; }

.cvs-progress { display: grid; gap: 12px; margin: 16px 6px 0; padding-top: 16px; border-top: 1px solid var(--cvs-line); }
.cvs-progress__row { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 5px; font-size: 11.5px; color: var(--cvs-muted); }
.cvs-progress__row b { color: var(--cvs-navy); font-weight: 800; }
.cvs-bar { height: 7px; overflow: hidden; border-radius: 20px; background: #E3EBEF; }
.cvs-bar > i { display: block; width: 0; height: 100%; border-radius: 20px; background: var(--cvs-teal); transition: width .2s ease; }
.cvs-bar--info > i { background: #3A66B0; }
.cvs-progress__note { margin: 0; font-size: 11px; line-height: 1.45; color: #6A7C8E; }

.cvs-save { margin: 14px 6px 0; padding-top: 14px; border-top: 1px solid var(--cvs-line); }
.cvs-save__toggle { margin: 0 0 6px; font-weight: 700; }
.cvs-save__note { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 6px; font-size: 11.5px; line-height: 1.45; color: var(--cvs-muted); }
.cvs-save__note .cvs-i { margin-top: 2px; }

/* --- Editor ----------------------------------------------------------------- */

.cvs-editor { min-width: 0; overflow: hidden; }
.cvs-edhead { padding: 20px 24px 18px; border-bottom: 1px solid var(--cvs-line); }
.cvs-edhead__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cvs-stepmeta { padding: 4px 11px; border-radius: 999px; background: var(--cvs-soft); color: var(--cvs-teal-ink); font-size: 12px; font-weight: 800; }
.cvs-kind { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #EEF3F6; }
.cvs-kind button { min-height: 32px; padding: 5px 12px; border: 0; border-radius: 8px; background: none; color: #3E566B; font-size: 12.5px; font-weight: 700; }
.cvs-kind button.is-active { background: var(--cvs-teal-ink); color: #fff; }
.cvs-edhead h2 { margin: 12px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.015em; color: var(--cvs-navy); }
.cvs-edhead p { margin: 0; font-size: 13.5px; color: var(--cvs-muted); }

.cvs-tip { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding: 10px 13px; border: 1px solid #CDE6E8; border-radius: var(--cvs-radius-sm); background: var(--cvs-soft); color: #164B56; font-size: 12.5px; line-height: 1.55; }
.cvs-tip .cvs-i { margin-top: 2px; color: var(--cvs-teal-ink); }

.cvs-profilebar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; padding: 10px 13px; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius-sm); background: #FAFCFD; }
.cvs-profilebar p { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 260px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--cvs-text); }
.cvs-profilebar p .cvs-i { margin-top: 2px; color: var(--cvs-teal-ink); }
.cvs-profilebar__acts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cvs-profilebar .cvs-btn--link { font-size: 12.5px; }

.cvs-edbody { min-height: 440px; padding: 24px; }
.cvs-edfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--cvs-line); background: #FAFCFD; }
.cvs-next { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cvs-next small { font-size: 11px; color: #6A7C8E; text-align: right; }

/* --- Fields ----------------------------------------------------------------- */

.cvs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 15px; }
.cvs-field > label { font-size: 12.5px; font-weight: 700; color: #1A3A58; }
.cvs-field input, .cvs-field textarea, .cvs-field select, .cvs .cvs-inputlike {
	width: 100%; min-height: 42px; padding: 10px 12px;
	border: 1px solid var(--cvs-line-strong); border-radius: var(--cvs-radius-sm);
	background: #fff; color: var(--cvs-navy); outline: 0;
}
.cvs-field input:focus, .cvs-field textarea:focus, .cvs-field select:focus, .cvs .cvs-inputlike:focus { border-color: var(--cvs-teal); box-shadow: 0 0 0 3px rgba(2, 139, 147, .16); }
.cvs-field textarea { min-height: 94px; resize: vertical; }
.cvs-field input[aria-invalid="true"] { border-color: #C9602F; box-shadow: 0 0 0 3px rgba(201, 96, 47, .16); }
.cvs-field input.cvs-date { font-variant-numeric: tabular-nums; }
.cvs-help { display: block; font-size: 11.5px; color: #657A8D; }

/* The photograph, where a layout draws one: asked for beside the name. */
.cvs-field--photo { padding: 12px 14px; border: 1px solid var(--cvs-line-strong); border-radius: var(--cvs-radius-sm); background: #F7FAFB; }
.cvs-photorow { display: flex; align-items: flex-start; gap: 12px; }
.cvs-photorow__c { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; flex: 1; }
.cvs-photoshot { width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 1px solid var(--cvs-line-strong); }
.cvs-help--block { margin: 0 0 14px; }
.cvs-sub { font-size: 11.5px; font-weight: 400; color: #72879A; }
.cvs-inline { display: flex; gap: 8px; }
.cvs-inline input { flex: 1; }

.cvs-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cvs-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }

.cvs-check { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 13px; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius-sm); background: #FAFCFD; color: #1A3A58; font-size: 13px; font-weight: 700; cursor: pointer; }
.cvs-check input { flex: none; width: 17px; height: 17px; accent-color: var(--cvs-teal-ink); }
.cvs-check--plain { padding: 0; border: 0; background: none; font-size: 13px; }

.cvs-subbox { margin: -2px 0 16px; padding: 15px 14px 6px; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius-sm); background: #FAFCFD; }
.cvs-subbox > small { display: block; margin: -4px 0 12px; font-size: 11.5px; color: #657A8D; }

.cvs-minor { margin: 0 0 16px; font-size: 12.5px; line-height: 1.55; color: var(--cvs-muted); }
.cvs-minor--warn { color: #8B5116; }
.cvs-minor--gap { margin: 14px 0; }

.cvs-sechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; }
.cvs-sechead--gap { margin-top: 26px; }
.cvs-sechead h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--cvs-navy); }
.cvs-sechead p { margin: 3px 0 0; font-size: 12px; color: var(--cvs-muted); }
.cvs-count-label { font-size: 12px; color: #6A7C8E; }

/* --- Entries, suggestions, pills --------------------------------------------- */

.cvs-entry { margin-bottom: 16px; padding: 16px; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius-sm); background: #fff; }
.cvs-entry__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.cvs-entry__head strong { font-size: 14px; color: var(--cvs-navy); }

.cvs-note { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius-sm); background: #F6F9FB; color: #3E566B; font-size: 12.5px; line-height: 1.55; }
.cvs-note--green { border-color: #CDE6E8; background: var(--cvs-soft); color: #164B56; }

.cvs-suggest { margin: 16px 0 4px; padding: 14px; border: 1px solid #CDE6E8; border-radius: var(--cvs-radius-sm); background: #F3FAFA; }
.cvs-suggest h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 13.5px; color: var(--cvs-navy); }
.cvs-suggest h4 .cvs-i { color: var(--cvs-teal-ink); }
.cvs-suggest p { margin: 0 0 10px; font-size: 12px; color: var(--cvs-muted); }
.cvs-suggest__item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 7px; padding: 9px 10px; border: 1px solid #D7E8EA; border-radius: 9px; background: #fff; }
.cvs-suggest__item span { flex: 1; font-size: 12.5px; }

.cvs-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 13px; }
.cvs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #C5DDE1; border-radius: 999px; background: #fff; color: #17566A; font-size: 12.5px; }
.cvs-pill:hover { background: #F1F7F8; }
.cvs-pill.is-chosen { border-color: #7FB8B4; background: var(--cvs-soft); }

.cvs-bullets { display: grid; gap: 7px; }
.cvs-bulletline { display: flex; align-items: flex-start; gap: 7px; }
.cvs-bulletline textarea { flex: 1; min-height: 60px; padding: 9px 10px; border: 1px solid var(--cvs-line-strong); border-radius: 9px; font-size: 12.5px; resize: vertical; }
.cvs-bulletline textarea:focus { border-color: var(--cvs-teal); outline: 0; box-shadow: 0 0 0 3px rgba(2, 139, 147, .16); }
.cvs-bulletline button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #F0CBD2; border-radius: 8px; background: #fff; color: #A32643; }

.cvs-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 8px 0; padding: 13px; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius-sm); background: #fff; }
.cvs-summary strong { font-size: 12.5px; color: var(--cvs-navy); }
.cvs-summary p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #31495F; }

.cvs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Accordions: "More details", the extra sections, the cover letter. */
.cvs-extras { display: grid; gap: 12px; }
.cvs-acc { margin: 0 0 12px; padding: 14px; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius-sm); background: #fff; }
.cvs-extras .cvs-acc { margin: 0; }
.cvs-acc--tight { margin-bottom: 18px; }
.cvs-acc > summary { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--cvs-navy); cursor: pointer; list-style: none; }
.cvs-acc > summary::-webkit-details-marker { display: none; }
.cvs-acc > summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; font-weight: 500; color: #537488; }
.cvs-acc[open] > summary::after { content: "–"; }
.cvs-acc__body { padding-top: 14px; }
.cvs-hint { margin-left: auto; margin-right: 6px; font-size: 11.5px; font-weight: 500; color: #6A7C8E; }
.cvs-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cvs-soft); color: var(--cvs-teal-ink); font-size: 11px; font-weight: 800; }

.cvs-more { margin: 10px 0 0; padding: 11px; border: 1px dashed #B9D5D9; border-radius: var(--cvs-radius-sm); background: #FAFDFD; }
.cvs-more > summary { font-size: 12.5px; font-weight: 700; color: var(--cvs-teal-ink); cursor: pointer; }
.cvs-more__body { padding-top: 13px; }
.cvs-cred-type { margin-bottom: 14px; }
.cvs-cred-type span { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--cvs-soft); color: var(--cvs-teal-ink); font-size: 11.5px; font-weight: 800; }
.cvs-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }

.cvs-choices { display: flex; flex-wrap: wrap; gap: 9px; margin: 9px 0; }
.cvs-choices button { flex: 1; min-width: 110px; max-width: 190px; padding: 12px 10px; border: 1px solid var(--cvs-line-strong); border-radius: 9px; background: #fff; color: var(--cvs-navy); font-weight: 700; }
.cvs-choices button.is-active { border: 2px solid var(--cvs-teal); padding: 11px 9px; background: var(--cvs-soft); color: var(--cvs-teal-ink); }

.cvs-langs { display: grid; gap: 7px; margin: 8px 0 14px; }
.cvs-lang { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border: 1px solid var(--cvs-line); border-radius: 9px; background: #FAFCFD; font-size: 13px; }
.cvs-lang strong { color: var(--cvs-teal-ink); }
.cvs-langrow { display: grid; grid-template-columns: 1.25fr 1fr auto; gap: 8px; align-items: center; }
.cvs-langrow .cvs-inputlike { min-width: 0; }

/* --- Finalise ---------------------------------------------------------------- */

.cvs-group-label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 20px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #557589; }
.cvs-group-label__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E6F0F4; font-size: 11px; letter-spacing: 0; color: #3C5F74; }
.cvs-group-label small { flex-basis: 100%; font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #6A7C8E; }

/* The ATS filter, in both pickers. The two-column and photographed layouts
   are the ones it hides, which is also what its label promises. */
.cvs-tplbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cvs-tplbar .cvs-help { margin: 0; }
.cvs-modal__filter { display: flex; justify-content: flex-end; margin-top: 4px; }
.cvs-atsfilter { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 9px; border: 1px solid var(--cvs-line-strong); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; color: #3C5F74; cursor: pointer; }
.cvs-atsfilter:hover { border-color: #6FB5BA; }
.cvs-atsfilter__box { display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid var(--cvs-line-strong); border-radius: 5px; background: #fff; color: #fff; }
.cvs-atsfilter[aria-pressed="true"] { border-color: var(--cvs-teal); background: #F2FAFA; color: var(--cvs-teal-ink); }
.cvs-atsfilter[aria-pressed="true"] .cvs-atsfilter__box { border-color: var(--cvs-teal); background: var(--cvs-teal); }

/* The badge on a card. ATS is the reassurance; Design is the warning, which
   is why it is the quieter of the two rather than the louder. */
.cvs-tag { margin-left: auto; padding: 2px 7px; border-radius: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cvs-tag--ats { background: #E3F6EC; color: #11704E; }
.cvs-tag--photo { background: #F0EFF6; color: #5B5580; }

.cvs-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; }
.cvs-tpl { min-width: 0; padding: 8px; border: 1px solid var(--cvs-line-strong); border-radius: 10px; background: #fff; color: var(--cvs-navy); text-align: left; }
.cvs-tpl:hover { border-color: #8FBCC2; }
.cvs-tpl.is-active { border: 2px solid var(--cvs-teal); padding: 7px; background: #F5FBFB; }
.cvs-tpl strong { display: block; font-size: 12px; }
.cvs-tpl small { display: block; font-size: 10.5px; line-height: 1.35; color: #6A7C8E; }

/* The miniature page on a template card ---------------------------------------
   One miniature for all of them, drawn from the same spec the real page is -
   see thumb() in cv-studio-preview.js. It shows the three things somebody
   actually picks a layout by: where the name sits, whether there is a band or
   a rail, and what colour it is.
   ---------------------------------------------------------------------------- */

.cvs-thumb {
	--accent: #3a4256;
	display: flex; overflow: hidden; width: 100%; height: 88px; margin-bottom: 7px;
	border: 1px solid #D7E3ED; background: #fff;
}
.cvs-tile .cvs-thumb { align-self: center; width: 80%; max-width: 78px; height: 98px; }
.cvs-thumb u { display: flex; flex-direction: column; gap: 4px; }
.cvs-thumb__main { flex: 1; min-width: 0; padding: 8px 7px; }
.cvs-thumb b { display: block; width: 72%; height: 7px; border-radius: 1px; background: #1a1a2e; }
.cvs-thumb s { display: block; width: 46%; height: 4px; border-radius: 1px; background: var(--accent); }
.cvs-thumb o { display: block; width: 38%; height: 4px; margin-top: 3px; border-radius: 1px; background: var(--accent); }
.cvs-thumb i { display: block; width: 92%; height: 3px; border-radius: 1px; background: #D5E2E8; }
.cvs-thumb i:last-child { width: 62%; }
.cvs-thumb em { display: block; width: 16px; height: 16px; border-radius: 50%; background: #c9cde0; }

.cvs-thumb__rail { width: 34%; flex-shrink: 0; padding: 8px 6px; background: var(--thumb-rail); }
.cvs-thumb__rail b { width: 86%; height: 6px; background: rgba(255, 255, 255, .92); }
.cvs-thumb__rail s { width: 60%; background: var(--accent); }
.cvs-thumb--h-rail.cvs-thumb { flex-direction: row; }
.cvs-thumb--h-rail .cvs-thumb__main o { width: 44%; }

.cvs-thumb__band { padding: 9px 7px; background: var(--thumb-band); }
.cvs-thumb__band b { width: 70%; background: #fff; }
.cvs-thumb__band s { background: rgba(255, 255, 255, .62); }
.cvs-thumb__band em { align-self: flex-end; margin-top: -14px; background: rgba(255, 255, 255, .55); }
.cvs-thumb--h-band, .cvs-thumb--h-darkband, .cvs-thumb--h-bandphoto { flex-direction: column; }

.cvs-thumb--h-centre .cvs-thumb__main { align-items: center; }
.cvs-thumb--h-centre b, .cvs-thumb--h-centre s, .cvs-thumb--h-centre o,
.cvs-thumb--h-ornament b, .cvs-thumb--h-ornament s, .cvs-thumb--h-ornament o { align-self: center; }
.cvs-thumb--h-ornament .cvs-thumb__main { align-items: center; }
.cvs-thumb--h-split b, .cvs-thumb--h-compact b, .cvs-thumb--h-topbar b { width: 55%; }

.cvs-thumb--strip { border-left: 5px solid var(--accent); }
.cvs-thumb--topbar { border-top: 6px solid var(--accent); }
.cvs-thumb--s-block o { width: 64%; height: 7px; }
.cvs-thumb--s-double o { width: 100%; height: 2px; }
.cvs-thumb--serif b { border-radius: 0; }

.cvs-ready { margin: 13px 0 18px; overflow: hidden; border: 1px solid var(--cvs-line); border-radius: var(--cvs-radius-sm); background: #fff; }
.cvs-ready__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--cvs-line); background: #F6FAFB; }
.cvs-ready__head h4 { margin: 0 0 4px; font-size: 15px; color: var(--cvs-navy); }
.cvs-ready__head p { margin: 0; font-size: 12px; color: var(--cvs-muted); }
.cvs-ready__badge { flex: none; padding: 5px 10px; border: 1px solid var(--cvs-line-strong); border-radius: 999px; background: #fff; color: #234F66; font-size: 11px; font-weight: 800; }
.cvs-ready__list { display: grid; gap: 7px; padding: 10px 12px 6px; }
.cvs-ready__item { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid #E6EDF1; border-radius: 10px; background: #fff; }
.cvs-ready__item > div { flex: 1; min-width: 0; }
.cvs-ready__item strong { display: block; margin-bottom: 2px; font-size: 13px; color: var(--cvs-navy); }
.cvs-ready__item small { display: block; font-size: 12px; line-height: 1.45; color: var(--cvs-muted); }
.cvs-ready__icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #FFF3E3; color: #A35F0A; }
.cvs-ready__icon.is-done { background: #E2F4EC; color: #146A52; }
.cvs-ready__how { margin: 6px 14px 12px; padding: 10px 12px; border: 1px solid var(--cvs-line); border-radius: 9px; background: #F8FAFB; font-size: 12px; color: #3E566B; }
.cvs-ready__how summary { cursor: pointer; font-weight: 700; color: #1F5873; }
.cvs-ready__how p { margin: 7px 0 1px; }
.cvs-ready__foot { padding: 4px 16px 14px; font-size: 11.5px; line-height: 1.5; color: #657A8D; }

.cvs-download { margin: 18px 0 22px; padding: 18px; border: 1px solid #CDE6E8; border-radius: var(--cvs-radius-sm); background: #F3FAFA; }
.cvs-download h3 { margin: 0 0 6px; font-size: 16px; color: var(--cvs-navy); }
.cvs-download > p { margin: 0 0 12px; font-size: 13px; color: #3E566B; }
.cvs-download .cvs-help { margin-top: 10px; }
.cvs-exportnote { margin: 12px 0 0; padding: 9px 11px; border: 1px solid #CDE6E8; border-radius: 8px; background: #fff; font-size: 12px; color: #2F6169; }
.cvs-apply { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--cvs-teal-ink); text-underline-offset: 3px; }

.cvs-after { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--cvs-line); }
.cvs-after__head { margin-bottom: 14px; }
.cvs-after__head h3 { margin: 4px 0 6px; font-size: 18px; color: var(--cvs-navy); }
.cvs-after__head p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--cvs-muted); }
.cvs-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cvs-teal-ink); }

/* --- Preview ----------------------------------------------------------------- */

.cvs-preview { position: sticky; top: 16px; min-width: 0; overflow: hidden; }
.cvs-preview__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--cvs-line); }
.cvs-preview__head strong { font-size: 14px; color: var(--cvs-navy); }
.cvs-preview__head small { display: block; font-size: 11.5px; color: #6A7C8E; }
.cvs-editing { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--cvs-teal-ink); }
.cvs-preview__stage { max-height: calc(100vh - 120px); padding: 18px 13px 25px; overflow-y: auto; background: #E8EEF2; }

/* The page itself ------------------------------------------------------------
   An A4 sheet at whatever width the column gives it. Every size in here is
   written in points, the unit the layouts are specified in and the unit the
   PDF and Word files are made of, and `--pt` converts: the renderer measures
   the page and sets it to width / 595.28, so the preview is the same document
   at a smaller scale rather than an approximation of it.

   Everything below is driven by the custom properties the renderer writes on
   to the page element from the layout's entry in cv-studio-templates.js. No
   rule here names a template; the template names a device and the device is
   styled once.
   ---------------------------------------------------------------------------- */

.cvs-page {
	--pt: .79px;
	--accent: #3a4256;
	--ink: #1a1a2e; --body: #33344a; --muted: #6b6d85; --faint: #9698ad; --hair: #e2e3ec;
	--base: 10.5pt; --pad: 44px; --gap: 14px;
	position: relative;
	width: 100%; max-width: 470px; margin: auto; padding: var(--pad);
	aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 4px 18px rgba(1, 34, 79, .16);
	color: var(--body); font-size: var(--base); line-height: 1.45; overflow: hidden; overflow-wrap: anywhere;
}
.cvp-sans { font-family: Arimo, Arial, Helvetica, sans-serif; }
.cvp-serif { font-family: Tinos, "Times New Roman", Times, serif; }

/* Layouts whose header is a full-bleed band put the page padding on the
   inner blocks instead, so the band can reach the paper's edge. */
.cvs-page.cvp-h-band, .cvs-page.cvp-h-darkband, .cvs-page.cvp-h-bandphoto,
.cvs-page.cvp-twocol { padding: 0; }

/* The top bar is the one device that only has to escape upwards, so the page
   keeps its padding and the bar cancels the top and sides it needs. */
.cvs-page.cvp-h-topbar .cvp-topbar { margin: calc(-1 * var(--pad-t)) calc(-1 * var(--pad-r)) var(--pad-t) calc(-1 * var(--pad-l)); }

/* --- Name, headline, contacts ------------------------------------------- */

.cvs-page .cvp-name {
	margin: 0; font-size: var(--name-size); line-height: 1.14; font-weight: 700;
	letter-spacing: var(--name-track); color: var(--ink);
}
.cvp-name-caps .cvp-name { text-transform: uppercase; }
.cvp-mono .cvp-name { font-family: "Courier New", Courier, monospace; }
.cvs-page .cvp-headline { margin-top: calc(3 * var(--pt)); font-size: var(--headline-size); color: var(--muted); }
.cvp-headline-accent .cvp-headline { color: var(--accent); }
.cvp-headline-accent-light .cvp-headline { color: var(--accent); filter: brightness(1.9); }
.cvp-headline-italic .cvp-headline { font-style: italic; }
.cvp-headline-bold .cvp-headline { font-weight: 700; }
.cvp-headline-caps .cvp-headline { text-transform: uppercase; letter-spacing: calc(2 * var(--pt)); }

.cvs-page .cvp-contact {
	display: flex; flex-wrap: wrap; align-items: center; gap: calc(2 * var(--pt)) calc(5 * var(--pt));
	margin-top: calc(7 * var(--pt)); font-size: calc(9 * var(--pt)); color: var(--muted);
}
.cvs-page .cvp-c b { font-weight: 700; color: var(--accent); }
.cvs-page .cvp-c-sep { color: var(--faint); }
.cvs-page .cvp-c-line { font-size: calc(9 * var(--pt)); line-height: 1.5; color: var(--muted); }
.cvs-page .cvp-dim { font-style: italic; color: var(--faint); }

.cvp-h-centre .cvp-head { text-align: center; }
.cvp-h-centre .cvp-contact, .cvp-h-ornament .cvp-contact { justify-content: center; }
.cvp-h-ornament .cvp-head { text-align: center; }

.cvs-page .cvp-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(20 * var(--pt)); }
.cvs-page .cvp-headleft { flex: 1; min-width: 0; }
.cvs-page .cvp-headright { flex-shrink: 0; text-align: right; max-width: 45%; }
.cvp-h-compact .cvp-headrow { align-items: flex-end; }

/* The ornament rule Elegant sets under its headline: line, dot, line. */
.cvs-page .cvp-ornament { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--pt)); margin: calc(8 * var(--pt)) 0 calc(6 * var(--pt)); }
.cvs-page .cvp-ornament i { flex: 1; height: calc(.5 * var(--pt)); background: var(--accent); }
.cvs-page .cvp-ornament b { width: calc(4 * var(--pt)); height: calc(4 * var(--pt)); border-radius: 50%; background: var(--accent); }

/* --- Full-bleed devices --------------------------------------------------- */

.cvs-page .cvp-strip { position: absolute; inset: 0 auto 0 0; width: var(--strip); background: var(--accent); }
.cvp-h-left.cvs-page:has(.cvp-strip) { padding-left: calc(var(--strip) + 50 * var(--pt)); }
.cvs-page .cvp-topbar { height: var(--topbar); background: var(--accent); }

.cvs-page .cvp-band { padding: var(--band-pad); background: var(--band-back); color: #fff; }
.cvs-page .cvp-band .cvp-name { color: #fff; }
.cvs-page .cvp-band .cvp-headline { color: rgba(255, 255, 255, .8); }
.cvs-page .cvp-band .cvp-contact { color: rgba(255, 255, 255, .72); }
.cvs-page .cvp-band .cvp-c b, .cvs-page .cvp-band .cvp-c-sep { color: rgba(255, 255, 255, .72); }
.cvs-page .cvp-bandline { height: var(--band-line); background: var(--accent); }
.cvs-page .cvp-bandrow { display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--pt)); }
.cvs-page .cvp-bandrow .cvp-photo { width: var(--photo); height: var(--photo); border-radius: 50%; border: calc(2 * var(--pt)) solid #fff; object-fit: cover; flex-shrink: 0; }
.cvs-page.cvp-h-band .cvp-body, .cvs-page.cvp-h-darkband .cvp-body, .cvs-page.cvp-h-bandphoto .cvp-body { padding: var(--pad); }

/* --- The rule between header and body ------------------------------------- */

/* A layout that draws no rule still needs the gap the rule would have made,
   or its first section title lands on the contact line. */
.cvp-r-none .cvp-head { margin-bottom: calc(15 * var(--pt)); }

.cvs-page .cvp-rule { margin: calc(13 * var(--pt)) 0; }
.cvs-page .cvp-rule--thin { border-bottom: calc(.75 * var(--pt)) solid var(--hair); }
.cvs-page .cvp-rule--ink { border-bottom: calc(1 * var(--pt)) solid var(--ink); }
.cvs-page .cvp-rule--accent { border-bottom: calc(1 * var(--pt)) solid var(--accent); }
.cvs-page .cvp-rule--accentThick { border-bottom: calc(1.5 * var(--pt)) solid var(--accent); }
.cvs-page .cvp-rule--stub { width: calc(40 * var(--pt)); height: calc(2.5 * var(--pt)); background: var(--accent); }
.cvs-page .cvp-rule--band3 { height: calc(3 * var(--pt)); background: var(--accent); margin: calc(8 * var(--pt)) 0 calc(14 * var(--pt)); }
.cvs-page .cvp-rule--accent3 { height: calc(3 * var(--pt)); background: var(--accent); margin: calc(5 * var(--pt)) 0 0; }
.cvs-page .cvp-rule--hair { height: calc(.5 * var(--pt)); background: var(--hair); margin: calc(5 * var(--pt)) 0 calc(12 * var(--pt)); }

/* --- Sections -------------------------------------------------------------- */

.cvs-page .cvp-sec { margin-bottom: var(--gap); break-inside: avoid; }
.cvs-page .cvp-sechead { display: flex; align-items: center; gap: calc(8 * var(--pt)); margin-bottom: calc(8 * var(--pt)); }
.cvs-page .cvp-sectitle {
	margin: 0; font-size: var(--title-size); font-weight: 700; line-height: 1.2;
	letter-spacing: var(--title-track); text-transform: uppercase; color: var(--ink);
}
.cvp-s-ruled .cvp-sechead, .cvp-s-ruledAccent .cvp-sechead, .cvp-s-ruledAccentThin .cvp-sechead,
.cvp-s-centred .cvp-sechead, .cvp-s-underbar .cvp-sechead, .cvp-s-underline .cvp-sechead,
.cvp-s-bar .cvp-sechead, .cvp-s-stub .cvp-sechead, .cvp-s-numbered .cvp-sechead,
.cvp-s-plain .cvp-sechead, .cvp-s-double .cvp-sechead, .cvp-s-block .cvp-sechead { display: block; }

/* Accent-coloured titles. */
.cvp-s-ruled .cvp-sectitle, .cvp-s-ruledAccent .cvp-sectitle, .cvp-s-ruledAccentThin .cvp-sectitle,
.cvp-s-centred .cvp-sectitle, .cvp-s-ornament .cvp-sectitle, .cvp-s-line .cvp-sectitle { color: var(--accent); }

.cvp-s-ruled .cvp-sectitle { padding-bottom: calc(4 * var(--pt)); border-bottom: calc(.75 * var(--pt)) solid var(--hair); }
.cvp-s-ruledAccent .cvp-sectitle { padding-bottom: calc(4 * var(--pt)); border-bottom: calc(1.5 * var(--pt)) solid var(--accent); }
.cvp-s-ruledAccentThin .cvp-sectitle { padding-bottom: calc(3 * var(--pt)); border-bottom: calc(1 * var(--pt)) solid var(--accent); }
.cvp-s-centred .cvp-sectitle { padding-bottom: calc(4 * var(--pt)); border-bottom: calc(1 * var(--pt)) solid var(--accent); text-align: center; }

.cvs-page .cvp-r2 { display: block; height: calc(2 * var(--pt)); background: var(--ink); margin-bottom: calc(1 * var(--pt)); }
.cvs-page .cvp-r05 { display: block; height: calc(.5 * var(--pt)); background: var(--muted); margin-top: calc(2 * var(--pt)); }
.cvp-s-double .cvp-sectitle { text-align: center; }

.cvs-page .cvp-bar { display: block; width: calc(26 * var(--pt)); height: calc(2 * var(--pt)); margin-top: calc(3 * var(--pt)); background: var(--accent); }
.cvp-s-bar .cvp-bar { width: calc(24 * var(--pt)); }
.cvp-s-stub .cvp-bar { width: calc(22 * var(--pt)); height: calc(2.5 * var(--pt)); }
.cvs-page .cvp-underline { display: block; height: calc(1 * var(--pt)); margin-top: calc(3 * var(--pt)); background: var(--accent); }
.cvs-page .cvp-line { flex: 1; height: calc(.75 * var(--pt)); background: var(--hair); }
.cvs-page .cvp-tab { flex-shrink: 0; width: calc(4 * var(--pt)); height: calc(var(--title-size) + 1 * var(--pt)); background: var(--accent); }
.cvs-page .cvp-vbar { flex-shrink: 0; align-self: stretch; width: calc(3 * var(--pt)); border-radius: calc(2 * var(--pt)); background: var(--accent); }
.cvs-page .cvp-sdot { flex-shrink: 0; width: calc(6 * var(--pt)); height: calc(6 * var(--pt)); border-radius: 50%; background: var(--accent); }
.cvs-page .cvp-num { font-size: calc(16 * var(--pt)); font-weight: 700; line-height: 1; color: var(--accent); }
.cvp-s-numbered .cvp-sechead { display: flex; align-items: baseline; gap: calc(7 * var(--pt)); }
.cvp-s-ornament .cvp-sectitle { margin-inline: calc(10 * var(--pt)); }
.cvp-s-block .cvp-sectitle {
	padding: calc(4 * var(--pt)) calc(10 * var(--pt));
	background: var(--accent); color: #fff;
}
.cvp-s-tab .cvp-sechead, .cvp-s-dot .cvp-sechead, .cvp-s-line .cvp-sechead,
.cvp-s-ornament .cvp-sechead, .cvp-s-barleft .cvp-sechead { display: flex; }
.cvp-s-barleft .cvp-sechead { align-items: stretch; }

/* --- Body copy, entries, bullets -------------------------------------------- */

.cvs-page .cvp-para { margin: 0 0 calc(5 * var(--pt)); line-height: 1.55; }
.cvp-sum-centre .cvp-sec--summary .cvp-para { text-align: center; line-height: 1.6; }
.cvp-sum-centreItalic .cvp-sec--summary .cvp-para { text-align: center; font-style: italic; line-height: 1.7; color: var(--muted); }
.cvp-sum-italic .cvp-sec--summary .cvp-para { font-style: italic; color: var(--muted); line-height: 1.6; }

.cvs-page .cvp-entry { margin-bottom: calc(9 * var(--pt)); }
.cvs-page .cvp-row { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(8 * var(--pt)); }
.cvs-page .cvp-title { flex: 1; min-width: 0; font-weight: 700; font-size: calc(10.5 * var(--pt)); color: var(--ink); }
.cvs-page .cvp-date { flex-shrink: 0; font-size: calc(9.5 * var(--pt)); color: var(--faint); }
.cvp-date-accent .cvp-date { color: var(--accent); }
.cvp-date-bold .cvp-date { font-weight: 700; }
.cvp-date-mono .cvp-date { font-family: "Courier New", Courier, monospace; }
.cvp-e-chip .cvp-date {
	padding: calc(2 * var(--pt)) calc(6 * var(--pt)); border-radius: calc(2 * var(--pt));
	background: #f2f2f5; color: var(--accent); font-weight: 700; font-size: calc(8.5 * var(--pt));
}
.cvp-e-pill .cvp-date {
	padding: calc(1.5 * var(--pt)) calc(5 * var(--pt)); border-radius: calc(3 * var(--pt));
	background: var(--accent); color: #fff; font-size: calc(9 * var(--pt));
}
.cvs-page .cvp-sub { margin: calc(1 * var(--pt)) 0 calc(3 * var(--pt)); font-size: calc(10 * var(--pt)); color: var(--muted); }
.cvp-sub-italic .cvp-sub { font-style: italic; }
.cvp-sub-bold .cvp-sub { font-weight: 700; }
.cvp-sub-accent .cvp-sub { color: var(--accent); }
.cvs-page .cvp-org { margin: calc(1 * var(--pt)) 0 calc(3 * var(--pt)); font-size: calc(10 * var(--pt)); font-weight: 700; color: var(--muted); }
.cvp-e-elegant .cvp-title { font-style: italic; font-weight: 400; }
.cvp-e-elegant .cvp-date { font-style: italic; }

.cvs-page .cvp-bullets { margin: calc(2 * var(--pt)) 0 0; padding: 0; list-style: none; }
.cvs-page .cvp-bullets li { display: flex; gap: calc(3 * var(--pt)); margin-bottom: calc(2.5 * var(--pt)); line-height: 1.4; }
.cvs-page .cvp-mark { flex-shrink: 0; width: calc(10 * var(--pt)); font-style: normal; }
.cvp-dot-accent .cvp-mark { color: var(--accent); }

/* The date in its own fixed column, newspaper style. */
.cvs-page .cvp-entry--datecol { display: flex; align-items: flex-start; gap: calc(8 * var(--pt)); }
.cvs-page .cvp-datecol { flex-shrink: 0; width: var(--datecol); font-size: calc(9 * var(--pt)); font-weight: 700; line-height: 1.55; color: var(--accent); }
.cvs-page .cvp-entrybody { flex: 1; min-width: 0; }
.cvp-e-datecol .cvp-title { font-size: calc(10.5 * var(--pt)); }

/* The dot-and-line rail. */
.cvs-page .cvp-entry--tl { display: flex; align-items: stretch; gap: calc(2 * var(--pt)); margin-bottom: calc(12 * var(--pt)); }
.cvs-page .cvp-marker { display: flex; flex-direction: column; align-items: center; width: calc(16 * var(--pt)); flex-shrink: 0; }
.cvs-page .cvp-tldot { width: calc(7 * var(--pt)); height: calc(7 * var(--pt)); margin-top: calc(3 * var(--pt)); border-radius: 50%; background: var(--accent); }
.cvs-page .cvp-tlline { flex: 1; width: calc(1.5 * var(--pt)); margin-top: calc(2 * var(--pt)); background: var(--hair); }

/* --- Skills ----------------------------------------------------------------- */

.cvs-page .cvp-skills-inline { margin: 0; font-size: calc(9.5 * var(--pt)); line-height: 1.5; }
.cvs-page .cvp-skillgrid { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: calc(9.5 * var(--pt)); }
.cvs-page .cvp-skillgrid li { margin-bottom: calc(4 * var(--pt)); padding-right: calc(8 * var(--pt)); }
.cvs-page .cvp-skillgrid--2 li { width: 50%; }
.cvs-page .cvp-skillgrid--3 li { width: 33.33%; }
.cvs-page .cvp-skills { display: flex; flex-wrap: wrap; gap: calc(5 * var(--pt)); font-size: calc(9 * var(--pt)); }
.cvs-page .cvp-skills--chips span { padding: calc(3 * var(--pt)) calc(7 * var(--pt)); border-radius: calc(3 * var(--pt)); background: #f2f2f5; color: var(--accent); font-size: calc(8.5 * var(--pt)); }
.cvs-page .cvp-skills--tags span { padding: calc(2 * var(--pt)) calc(8 * var(--pt)); border-radius: calc(12 * var(--pt)); background: var(--wash-pill); }
.cvs-page .cvp-skills--tagsSquare span { padding: calc(2 * var(--pt)) calc(7 * var(--pt)); border: calc(1 * var(--pt)) solid var(--accent); }
.cvs-page .cvp-skills--pills span { padding: calc(2 * var(--pt)) calc(7 * var(--pt)); border: calc(.75 * var(--pt)) solid var(--hair); border-radius: calc(10 * var(--pt)); }
.cvs-page .cvp-skills--wrap span { margin-right: calc(9 * var(--pt)); font-size: calc(9.5 * var(--pt)); }
.cvs-page .cvp-skills--centre { justify-content: center; }
.cvs-page .cvp-skills--centre span { margin-inline: calc(6 * var(--pt)); }
.cvp-mono .cvp-skills--tags span { font-family: "Courier New", Courier, monospace; background: var(--wash-tag); border: calc(.5 * var(--pt)) solid var(--tag-edge); border-radius: calc(3 * var(--pt)); font-size: calc(8.5 * var(--pt)); }

/* The box Functional puts its skills in, above everything else. */
.cvs-page .cvp-skillsbox {
	margin-bottom: calc(14 * var(--pt)); padding: calc(10 * var(--pt)) calc(14 * var(--pt));
	border-left: calc(4 * var(--pt)) solid var(--accent); border-radius: calc(4 * var(--pt));
	background: var(--wash-soft);
}
.cvs-page .cvp-skillsbox__title { margin-bottom: calc(7 * var(--pt)); font-size: calc(9 * var(--pt)); font-weight: 700; letter-spacing: calc(1.2 * var(--pt)); text-transform: uppercase; color: var(--accent); }

/* --- Two column ------------------------------------------------------------- */

.cvs-page.cvp-twocol { display: flex; align-items: stretch; }
.cvs-page .cvp-rail {
	width: var(--rail-w); flex-shrink: 0; padding: var(--rail-pad);
	background: var(--rail-back); color: var(--rail-body);
}
.cvs-page .cvp-rail .cvp-name { color: var(--rail-ink); line-height: 1.3; }
.cvs-page .cvp-rail .cvp-headline { margin-bottom: calc(14 * var(--pt)); color: var(--rail-muted); }
.cvs-page .cvp-rail .cvp-c-line { color: var(--rail-body); font-size: calc(8.5 * var(--pt)); }
.cvs-page .cvp-rail .cvp-c-line b { color: var(--rail-muted); }
.cvs-page .cvp-rail .cvp-photo { display: block; width: calc(76 * var(--pt)); height: calc(76 * var(--pt)); margin-bottom: calc(16 * var(--pt)); border-radius: 50%; object-fit: cover; }
.cvs-page .cvp-railsec { margin-top: calc(16 * var(--pt)); }
.cvs-page .cvp-railtitle { margin-bottom: calc(6 * var(--pt)); font-size: calc(8.5 * var(--pt)); font-weight: 700; letter-spacing: calc(1.1 * var(--pt)); text-transform: uppercase; color: var(--accent); }
.cvs-page .cvp-railskill { margin-bottom: calc(4 * var(--pt)); font-size: calc(9 * var(--pt)); }
.cvs-page .cvp-railentry { margin-bottom: calc(9 * var(--pt)); }
.cvs-page .cvp-railentry__t { font-size: calc(9 * var(--pt)); font-weight: 700; color: var(--rail-ink); }
.cvs-page .cvp-railentry__s { font-size: calc(8.5 * var(--pt)); color: var(--rail-muted); }
.cvs-page .cvp-railentry__d { font-size: calc(8 * var(--pt)); color: var(--rail-faint); }
.cvs-page .cvp-main { flex: 1; min-width: 0; padding: var(--pad); }

/* The tinted rail keeps the page's own ink; only the dark one inverts. */
.cvs-page--cleancolumn .cvp-railtitle { padding-bottom: calc(3 * var(--pt)); border-bottom: calc(.5 * var(--pt)) solid var(--rule-soft); }

/* Bold's two unequal body columns. */
.cvs-page .cvp-split { display: flex; gap: calc(20 * var(--pt)); }
.cvs-page .cvp-col--l { flex: var(--col-l); min-width: 0; }
.cvs-page .cvp-col--r { flex: var(--col-r); min-width: 0; }

/* --- States ----------------------------------------------------------------- */

.cvs-page .cvp-empty { margin-top: 55px; font-size: 10px; font-style: italic; text-align: center; color: #a4b0ba; }
.cvs-page .is-focus { border-radius: 3px; outline: 2px solid #1ba9a6; outline-offset: 4px; background: #f0fbfa; }

/* Compact spacing, on any layout. */
.cvs-page.is-tight { line-height: 1.35; }
.cvs-page.is-tight .cvp-sec { margin-bottom: calc(9 * var(--pt)); }
.cvs-page.is-tight .cvp-entry { margin-bottom: calc(5 * var(--pt)); }
.cvs-page.is-tight .cvp-sechead { margin-bottom: calc(5 * var(--pt)); }

/* --- Template chooser -------------------------------------------------------- */

/*
 * The picker: a panel that fits the window, with only its middle scrolling.
 *
 * The overlay itself used to scroll, which put the scrollbar at the edge of
 * the window where it reads as the browser's own, and carried the heading
 * and the Continue button off the top with it. The panel is a column now -
 * head, a middle that scrolls, foot - and is never taller than the window,
 * so both ends stay put on a short laptop screen.
 */
.cvs-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px 16px; overflow: hidden; background: rgba(1, 34, 79, .55); }
.cvs-modal.is-open { display: flex; }
.cvs-modal__panel { display: flex; flex-direction: column; width: min(980px, 100%); max-height: 100%; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(1, 34, 79, .3); }
.cvs-modal__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 32px 4px; }
.cvs-modal__head { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 24px 32px 10px; }
.cvs-modal__head h2 { margin: 6px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--cvs-navy); }
.cvs-modal__lead { max-width: 700px; margin: 10px 0 8px; font-size: 14px; color: var(--cvs-muted); }
.cvs-modal__group { margin-top: 18px; }
.cvs-modal__group h3 { margin: 0 0 2px; font-size: 15px; color: var(--cvs-navy); }
.cvs-modal__group small { color: #6A7C8E; }
.cvs-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cvs-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 150px; padding: 11px 9px; border: 1.5px solid var(--cvs-line-strong); border-radius: 14px; background: #fff; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.cvs-tile:hover { border-color: #6FB5BA; box-shadow: 0 6px 16px rgba(1, 34, 79, .1); }
.cvs-tile.is-selected { padding: 10.5px 8.5px; border: 2px solid var(--cvs-teal); background: #F5FBFB; box-shadow: 0 0 0 3px rgba(2, 139, 147, .14); }
.cvs-tile__page { align-self: center; width: 78%; max-width: 76px; height: 96px; margin: 0 auto 6px; padding: 8px 6px; box-shadow: 0 2px 8px rgba(1, 34, 79, .12); }
.cvs-tile strong { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--cvs-navy); }
.cvs-tile small { font-size: 10.5px; line-height: 1.4; color: #6A7C8E; }
.cvs-modal__foot { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px 18px; border-top: 1px solid var(--cvs-line); }
.cvs-modal__foot p { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 12.5px; color: var(--cvs-muted); }
.cvs-modal__foot p span { display: inline-flex; align-items: center; gap: 5px; }
.cvs-modal__foot .cvs-i { color: var(--cvs-teal-ink); }

/* --- Toast ------------------------------------------------------------------- */

.cvs-toast { position: fixed; right: 22px; bottom: 22px; z-index: 500; display: none; max-width: 360px; padding: 12px 18px; border-radius: 10px; background: var(--cvs-navy); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 8px 24px rgba(1, 34, 79, .3); }
.cvs-toast.is-on { display: block; }

/* --- Narrower screens ---------------------------------------------------------- */

@media (max-width: 1190px) {
	.cvs-layout { grid-template-columns: 190px minmax(0, 1fr) minmax(310px, .85fr); gap: 12px; }
	.cvs-edbody, .cvs-edhead { padding-left: 18px; padding-right: 18px; }
	.cvs-page { padding: 28px 25px; }
}

@media (max-width: 980px) {
	.cvs-layout { grid-template-columns: 190px minmax(0, 1fr); }
	.cvs .cvs-only-narrow { display: inline-flex; }
	.cvs-preview { display: none; }
	.cvs-preview.is-open { position: fixed; inset: 5% 4%; z-index: 450; display: block; max-width: 680px; max-height: 90vh; margin: auto; box-shadow: 0 0 0 100vmax rgba(1, 34, 79, .55); }
	.cvs-preview.is-open .cvs-preview__stage { max-height: calc(90vh - 72px); }
	.cvs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	.cv-page { padding-block: 22px 50px; }
	.cvs-layout { display: block; }
	.cvs-side { position: static; margin-bottom: 12px; }
	.cvs-card { padding: 10px; }
	.cvs-card__title, .cvs-progress { display: none; }
	.cvs-steps { display: flex; gap: 5px; overflow-x: auto; }
	.cvs-step { width: auto; padding: 7px 10px; border-left: 0; white-space: nowrap; flex: none; }
	.cvs-save { margin: 8px 4px 0; padding-top: 10px; }
	.cvs-edbody, .cvs-edhead { padding: 17px 14px; }
	.cvs-edhead h2 { font-size: 21px; }
	.cvs-edfoot { padding: 12px 14px; }
	.cvs-row2, .cvs-row3 { grid-template-columns: 1fr; gap: 0; }
	.cvs-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cvs-langrow { grid-template-columns: 1fr; }
	.cvs-acc { padding: 12px; }
	.cvs-download .cvs-actions { display: grid; }
	.cvs-download .cvs-actions .cvs-btn { width: 100%; }
	.cvs-hint { display: none; }
	.cvs-modal { padding: 12px 8px; }
	.cvs-modal__panel { border-radius: 17px; }
	.cvs-modal__head { padding: 16px 15px 8px; }
	.cvs-modal__scroll { padding: 0 15px 4px; }
	.cvs-modal__foot { padding: 12px 15px 15px; }
	.cvs-modal__head { flex-direction: column; }
	.cvs-modal__head .cvs-btn { display: none; }
	.cvs-modal__head h2 { font-size: 23px; }
	.cvs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.cvs-modal__foot { flex-direction: column; align-items: stretch; }
	.cvs-next small { max-width: 150px; }
	.cvs-next .cvs-btn { white-space: normal; }
	.cvs-toast { right: 12px; left: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cvs .cvs-btn, .cvs-tile, .cvs-bar > i { transition: none; }
}

/*
 * A short screen - a 570 to 600 point laptop - spends its height on the
 * tiles rather than on the panel's own padding, and drops the second
 * Continue button, which repeats the one in the head.
 */
@media ( max-height: 700px ) {
	.cvs-modal { padding: 10px 12px; }
	.cvs-modal__head { padding: 14px 24px 6px; }
	.cvs-modal__head h2 { margin-top: 2px; font-size: 22px; }
	.cvs-modal__scroll { padding: 0 24px 2px; }
	.cvs-modal__lead { margin: 6px 0 4px; }
	.cvs-modal__group { margin-top: 10px; }
	.cvs-modal__foot { padding: 10px 24px 12px; }
	.cvs-modal__foot p { display: none; }
	.cvs-modal__foot { justify-content: flex-end; }
}
