/* Stratevera CV builder (step by step). Loaded on cv.html after site.css.
   Design: the dark Stratevera page with very few boxes. The steps are drawn as a route with stops, like the
   route map behind the site. The one bright object is the CV itself: a white page that builds as people type. */

/* ---------- The screens before the steps: start, upload, sorting, the job ---------- */
.cvb-card{max-width:820px;margin:0 auto;padding:8px 0 0}
.cvb-card h2{font-size:clamp(1.6rem,1.2rem + 1.4vw,2.2rem);font-weight:600;letter-spacing:-.015em;line-height:1.15;margin:0 0 10px;color:var(--stone)}
.cvb-card > p.lead-s,.cvb-card .lead-s{color:var(--granite);font-size:1.05rem;margin:0 0 30px;max-width:60ch}
.cvb-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.cvb-choice{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%;min-height:190px;text-align:left;padding:26px 26px 24px;border-radius:22px;border:1px solid var(--edge-2);background:rgba(14,20,31,.55);color:var(--stone);font:inherit;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.cvb-choice:hover{border-color:var(--ice);background:rgba(20,30,46,.75);transform:translateY(-2px)}
.cvb-choice:focus-visible{outline:2px solid var(--ice);outline-offset:3px}
.cvb-choice svg{width:24px;height:24px;color:var(--ice-2);box-sizing:content-box;padding:12px;border-radius:50%;background:var(--ice-soft)}
.cvb-choice b{display:block;font-size:1.25rem;font-weight:600;margin-bottom:6px}
.cvb-choice small{display:block;color:var(--granite);font-size:.97rem;line-height:1.5}
.cvb-choice.is-continue{grid-column:1/-1;min-height:0;flex-direction:row;align-items:center;border-color:rgba(207,165,76,.55);background:rgba(207,165,76,.07)}
.cvb-choice.is-continue svg{color:var(--gold-400);background:var(--gold-soft)}
.cvb-reset{margin-top:18px}
.cvb-linkbtn{background:none;border:0;padding:0;color:var(--ice-2);font:inherit;font-size:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.cvb-linkbtn:hover{color:var(--stone)}
.cvb-linkbtn:focus-visible{outline:2px solid var(--ice);outline-offset:2px;border-radius:3px}
.cvb-note{color:var(--slate);font-size:.9rem;margin-top:22px}
.cvb-reset .cvb-note{margin-left:6px}
.cvb-back{margin-bottom:22px;font-size:.95rem}

/* Messages that need attention keep a box; everything else is a plain line */
.cvb-alert{border-radius:14px;padding:14px 16px;margin:0 0 22px;font-size:.96rem;line-height:1.55}
.cvb-alert.info{background:var(--ice-soft);border:1px solid rgba(143,184,232,.35);color:var(--stone)}
.cvb-alert.warn{background:var(--gold-soft);border:1px solid rgba(207,165,76,.45);color:#F0D99A}
.cvb-alert.bad{background:var(--bad-bg);border:1px solid rgba(242,154,136,.5);color:var(--stone)}
.cvb-alert.good{background:var(--good-bg);border:1px solid rgba(127,211,167,.4);color:var(--stone)}
.cvb-alert b{color:var(--stone)}
.cvb-alert[hidden]{display:none}
.cvb-line{position:relative;padding:2px 0 2px 18px;margin:0 0 24px;color:var(--granite);font-size:.96rem;line-height:1.6}
.cvb-line::before{content:'';position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:3px;background:var(--ice)}
.cvb-line b{color:var(--stone);font-weight:600}

/* Upload */
.cvb-card .drop{padding:46px 20px;border-radius:22px}
.cvb-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 0 14px}
.cvb-loading[hidden]{display:none}
.cvb-loader{position:relative;width:136px;height:136px}
.cvb-loader svg{width:100%;height:100%;transform:rotate(-90deg)}
.cvb-loader circle{fill:none;stroke-width:7}
.cvb-loader .trk{stroke:rgba(150,175,210,.14)}
.cvb-loader .bar{stroke:var(--gold-500);stroke-linecap:round}
.cvb-loader .pct{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.75rem;font-weight:600;color:var(--stone);font-variant-numeric:tabular-nums}
.cvb-loader-label{margin:16px 0 0;color:var(--granite);font-size:1rem}

/* The job description */
.cvb-card label{display:block;font-weight:500;font-size:.95rem;margin:0 0 10px;color:var(--stone)}
.cvb-card textarea,.cvb-card input[type=text]{width:100%;padding:14px 18px;border-radius:16px;border:1px solid var(--edge-2);background:var(--well);color:var(--stone);font-size:16px;font-family:inherit;line-height:1.55}
.cvb-card textarea{min-height:240px;resize:vertical}
.cvb-card input[type=text]{min-height:46px}
.cvb-card textarea:focus,.cvb-card input:focus,.cv-form input:focus,.cv-form textarea:focus,.cv-form select:focus{outline:none;border-color:rgba(143,184,232,.7);box-shadow:0 0 0 4px rgba(143,184,232,.12)}
.cvb-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px;align-items:center}

/* Key words */
.kw-list{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px;padding:0;list-style:none}
.kw{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 6px 0 12px;border-radius:999px;font-size:.88rem;font-weight:500;border:1px solid var(--edge-2);color:var(--granite);background:transparent}
.kw.no-x{padding-right:13px}
.kw.ok{border-color:rgba(127,211,167,.45);color:#A8E6C4}
.kw.miss{border-color:rgba(207,165,76,.45);color:#F0D99A}
.kw .tick{font-size:.78rem}
.kw.miss .tick::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--gold-500);vertical-align:2px}
.kw .kw-x{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;border:0;background:transparent;color:inherit;font-size:16px;line-height:1;cursor:pointer;opacity:.7}
.kw .kw-x:hover,.kw .kw-x:focus-visible{opacity:1;background:rgba(255,255,255,.08);outline:none}
.kw-add{display:flex;gap:8px;margin-top:12px;max-width:440px}
.kw-add input{flex:1;min-height:40px!important;border-radius:999px!important;padding:0 16px!important;font-size:15px!important}
.kw-add .btn{min-height:40px;padding:0 18px;font-size:.92rem}

/* The guide in each step: no box, a gold rule down the side */
.cvb-guide{position:relative;padding:0 0 0 20px;margin:4px 0 34px}
.cvb-guide::before{content:'';position:absolute;left:0;top:2px;bottom:2px;width:3px;border-radius:3px;background:linear-gradient(var(--gold-500),rgba(207,165,76,.15))}
.cvb-guide-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;font-weight:600;color:var(--stone);font-size:1rem}
.cvb-count{font-weight:500;color:var(--granite);font-size:.9rem;font-variant-numeric:tabular-nums}
.cvb-guide p{margin:6px 0 0;color:var(--granite);font-size:.93rem;line-height:1.55;max-width:62ch}
.cvb-guide .honest{font-size:.88rem;color:var(--slate);margin-top:10px}
.cvb-guide .honest .cvb-linkbtn{margin-left:10px}
.cvb-nojob{margin:0 0 30px;font-size:.95rem;color:var(--granite)}

/* ---------- The steps ---------- */
#cvSteps .cv-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:clamp(28px,4vw,64px)}
#cvSteps .cv-form{background:none;border:0;border-radius:0;padding:6px 0 0}

/* The route: one stop per step */
.route{margin:0 0 40px}
.route ol{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:0;padding:0;list-style:none;position:relative}
.route li{position:relative;display:flex;justify-content:center}
.route li::before{content:'';position:absolute;top:15px;left:-50%;right:50%;height:2px;background:var(--edge-2)}
.route li:first-child::before{display:none}
.route li.rt-done::before,.route li.rt-now::before{background:var(--ice)}
.route button{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;background:none;border:0;padding:0;color:var(--slate);font:inherit;cursor:default;text-align:center}
.route .rt-stop{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;font-size:.85rem;font-weight:600;background:var(--night);border:2px solid var(--edge-3);color:var(--slate);font-variant-numeric:tabular-nums;transition:background .2s,border-color .2s}
.route .rt-name{font-size:.78rem;line-height:1.25;max-width:9em}
.route li.rt-done button{cursor:pointer;color:var(--granite)}
.route li.rt-done .rt-stop{background:var(--ice);border-color:var(--ice);color:var(--ice-ink)}
.route li.rt-done button:hover .rt-name{color:var(--stone)}
.route li.rt-done button:focus-visible .rt-stop{outline:2px solid var(--ice-2);outline-offset:3px}
.route li.rt-now button{color:var(--stone)}
.route li.rt-now .rt-stop{background:var(--gold-500);border-color:var(--gold-500);color:var(--gold-ink);box-shadow:0 0 0 6px rgba(207,165,76,.16)}
.route li.rt-now .rt-name{font-weight:600}
.route-now{display:none;margin:14px 0 0;color:var(--granite);font-size:.92rem}
.route-now b{color:var(--stone);font-weight:600;margin-left:4px}

.cv-form h2.step-h{font-size:clamp(1.7rem,1.3rem + 1.2vw,2.3rem);font-weight:600;letter-spacing:-.015em;line-height:1.12;margin:0 0 8px;color:var(--stone)}
.cv-form .step-sub{color:var(--granite);margin:0 0 30px;font-size:1.02rem}
.cv-form .fwrap{margin-bottom:22px}
.cv-form .frow{gap:0 18px}
.cv-form label{margin:0 0 9px;font-size:.95rem;color:var(--stone)}
.cv-form input,.cv-form textarea{min-height:52px;border-radius:14px;padding:0 18px;background:rgba(6,10,16,.6)}
.cv-form textarea{padding:14px 18px;line-height:1.55}
.cv-form .hint{display:block;font-size:.86rem;color:var(--slate);margin-top:8px;line-height:1.5}
.cv-form .ferr{display:block;color:var(--bad);font-size:.88rem;margin-top:8px}
.cv-form .ferr:empty{display:none}
.cv-form .invalid{border-color:var(--bad)!important}
.cv-form .opt{font-weight:400;color:var(--slate)}
.cv-form .check{display:flex;align-items:center;gap:12px;margin:0 0 22px;font-weight:500;cursor:pointer;color:var(--stone)}
.cv-form .check input{width:22px;height:22px;min-height:0;margin:0;flex:none;accent-color:var(--ice)}
.cv-form .radios{display:grid;gap:10px}
.cv-form .radios label{display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px;border:1px solid var(--edge-2);border-radius:14px;cursor:pointer;font-weight:500}
.cv-form .radios input{width:20px;height:20px;min-height:0;margin:0;accent-color:var(--ice)}
.cv-form .radios label:has(input:checked){border-color:var(--ice);background:var(--ice-soft)}
.cv-form .radios.invalid label{border-color:rgba(242,154,136,.6)}

/* Jobs and qualifications: separated by a line, not boxed */
.cvb-entry{padding:26px 0 4px;border-top:1px solid var(--edge-2)}
.cvb-entry:first-child{border-top:0;padding-top:4px}
.entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.entry-n{font-weight:600;color:var(--stone);font-size:1.05rem}
.entry-tools{display:flex;gap:4px}
.entry-tools button{min-height:32px;padding:0 10px;border-radius:999px;border:0;background:transparent;color:var(--granite);font-size:.86rem;cursor:pointer}
.entry-tools button:hover{color:var(--stone);background:rgba(255,255,255,.06)}
.entry-tools button.rm:hover{color:var(--bad)}
.entry-tools button[disabled]{opacity:.3;cursor:default;background:transparent}
.entry-tools button:focus-visible{outline:2px solid var(--ice);outline-offset:1px}
.cv-form .add-btn{min-height:48px;margin-top:6px;border-radius:999px;padding:0 22px}

/* Back and Next */
.cv-form .form-nav{margin-top:36px;padding-top:26px;border-top:1px solid var(--edge)}
.cv-form .form-nav .btn-gold{min-width:170px}
#cvSteps .ats-tips{margin-top:40px;border:0;border-top:1px solid var(--edge);border-radius:0;background:none;padding:22px 0 0}
#cvSteps .ats-tips summary{font-weight:500;color:var(--granite);font-size:.95rem}

/* The last step */
.cvb-check{list-style:none;margin:0 0 30px;padding:0;display:grid;gap:14px}
.cvb-check li{display:flex;gap:12px;align-items:flex-start;color:var(--granite);font-size:.98rem;line-height:1.5}
.cvb-check li .dot{flex:none;width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;margin-top:0}
.cvb-check li .dot.ok{background:var(--good-bg);color:var(--good)}
.cvb-check li .dot.warn{background:var(--gold-soft);color:var(--gold-400)}
.cvb-check li b{color:var(--stone);font-weight:600}
.cvb-dl{display:grid;gap:8px}
.cvb-dl .btn{width:100%;min-height:56px;font-size:1.05rem}
.cvb-dl .hint{text-align:center;margin:0 0 10px}
.cvb-next{margin-top:26px}

/* ---------- The CV page itself ---------- */
#cvSteps .cv-preview-shell{background:none;border:0;padding:0;border-radius:0}
.cv-preview-shell .pv-label{color:var(--slate);font-size:.86rem;margin:0 2px 12px}
#cvSteps .cv-preview-shell .cv-preview{border-radius:4px;box-shadow:0 40px 80px -30px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.06);min-height:620px;padding:44px 44px 48px}
.cv-preview{overflow-wrap:anywhere}
.cv-preview strong,.cv-preview b{color:#111}
.cv-preview .row{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.cv-preview .row .dt{font-size:11px;color:#444;white-space:nowrap}
.cv-preview .sub{font-size:11.5px;color:#444;font-style:italic;margin-bottom:2px}
.cv-preview .entry{margin-bottom:8px}
.cv-preview .empty{color:#8a8f98;font-style:italic}

/* ---------- Phone: the View my CV button and the full screen CV ---------- */
.cv-view-btn{display:none}
.cv-sheet{position:fixed;inset:0;z-index:120;background:#05080D;overflow:auto;-webkit-overflow-scrolling:touch;padding:14px 12px calc(96px + env(safe-area-inset-bottom))}
.cv-sheet[hidden]{display:none}
.cv-sheet .cv-preview{min-height:0;padding:24px 20px 28px;border-radius:4px}
.cv-sheet-bar{position:fixed;left:0;right:0;bottom:0;z-index:121;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#05080D;border-top:1px solid var(--edge-2)}
.cv-sheet-bar .btn{width:100%}
.cv-sheet-top{display:flex;justify-content:space-between;align-items:center;color:var(--granite);font-size:.92rem;margin:2px 4px 12px}
@media(max-width:980px){
  #cvSteps .cv-preview-shell{display:none}
  #cvSteps .cv-layout{grid-template-columns:minmax(0,1fr)}
  #cvSteps .cv-form{max-width:640px;margin:0 auto;width:100%}
  .cv-view-btn{display:flex;position:fixed;left:16px;right:16px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:90;align-items:center;justify-content:center;gap:10px;min-height:54px;border-radius:999px;border:1px solid rgba(143,184,232,.5);background:rgba(12,19,31,.96);color:var(--stone);font:inherit;font-weight:600;font-size:1rem;box-shadow:0 16px 34px -12px rgba(0,0,0,.85);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer}
  .cv-view-btn small{color:var(--granite);font-weight:500;font-size:.88rem}
  .cv-view-btn[hidden],body.cv-typing .cv-view-btn{display:none}
  #cvSteps{padding-bottom:84px}
  #toTop{display:none!important}
}
@media(max-width:760px){
  .route{margin-bottom:30px}
  .route .rt-stop{width:26px;height:26px;font-size:.76rem}
  .route li::before{top:12px}
  .route .rt-name{display:none}
  .route-now{display:block}
  .cvb-choice{min-height:0;padding:22px 20px}
  .cv-form .step-sub{margin-bottom:24px}
  .entry-tools button{padding:0 8px}
  .kw-add{max-width:none}
}
@media(prefers-reduced-motion:reduce){.cvb-choice,.route .rt-stop{transition:none}.cvb-choice:hover{transform:none}}
@media print{.cv-view-btn,.cv-sheet-bar{display:none!important}}
.route button{margin:0;align-self:flex-start;line-height:1.2}
.route .rt-stop{flex:none;line-height:1}
