/* ============================================================
   Hiring-notebook theme override for quiz.html + crm.html
   Loads AFTER site.css — remaps the dinaleads-era tokens to the
   cream / forest-ink / highlighter system used on index.html.
   ============================================================ */

:root{
  --brand:#1a3300;          /* fills, buttons */
  --brand-hover:#254508;
  --brand-press:#1a3300;    /* small emphasised text — AA on cream */
  --tint-1:#faf3cf;         /* pale highlighter wash, background only */
  --tint-2:#ffe95c;

  --ground:#f5f0e4;         /* deep cream page */
  --surface:#fcfaf5;        /* card cream */
  --dark:#1a3300;
  --dark-2:#1a3300;
  --dark-3:#2b3d14;

  --heading:#1a3300;
  --body:#2b3d14;
  --muted:#6b7360;
  --on-dark:#cfd8bf;

  --hairline:#e6e0d0;
  --border:#d8d2c2;
  --link:#1a3300;

  --pass:#1a7f5a;  --pass-bg:#d5f5c2;
  --warn:#a8650b;  --warn-bg:#faf3cf;
  --fail:#c8372a;  --fail-bg:#f6d0ff;
}

::selection{background:#ffe95c;color:#1a3300}
a{color:var(--link)}

/* ---- notebook touches ---- */

/* logomark matches the marketing site: yellow tile, hand-drawn hs */
.logomark{background:#ffe95c}
.logomark-hs{display:grid;place-items:center}
.logomark-hs::before,.logomark-hs::after{display:none}
.logomark-hs svg{width:19px;height:19px}
.wordmark span{color:#1a3300}

/* the progress bar is a highlighter stroke filling in */
.progress-fill{background:#ffe95c !important}
.progress-track{background:#e6e0d0 !important}

/* every step slides in like a fresh index card */
@keyframes stepin{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.qstep{animation:stepin .32s cubic-bezier(.22,.9,.24,1)}

/* options feel like paper cards under the thumb */
.option{transition:transform .15s ease, background-color .15s ease, border-color .15s ease}
.option:active{transform:scale(.99)}

/* — landing-page vibe: chunky display headings, marker details, paper energy — */

/* every step heading speaks Bricolage, like the landing page */
.qhead h2{
  font-family:'Bricolage Grotesque','Inter',sans-serif;font-weight:800;
  font-size:clamp(23px,3.2vw,30px);line-height:1.18;letter-spacing:.02em;
}

/* the quiz card reads as a sheet of paper pinned over the cream ground */
.quizcard{border:1px solid #1a3300}

/* buttons match the landing system: 6px radius, lift on hover */
.quizcard .btn,.qnav .btn{border-radius:6px;transition:transform .18s cubic-bezier(.22,.9,.24,1),box-shadow .18s,background-color .18s}
.quizcard .btn:hover:not(:disabled),.qnav .btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 3px 8px rgba(26,51,0,.18)}

/* options: staggered entrance + sticky-note hover + marker-wash selected state */
@keyframes optin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.qstep .option{
  border-radius:12px;animation:optin .4s cubic-bezier(.22,.9,.24,1) backwards;
  transition:transform .15s ease,border-color .15s ease,background-color .15s ease,box-shadow .15s ease;
}
.qstep .option:nth-of-type(1){animation-delay:.06s}
.qstep .option:nth-of-type(2){animation-delay:.12s}
.qstep .option:nth-of-type(3){animation-delay:.18s}
.qstep .option:nth-of-type(4){animation-delay:.24s}
.qstep .option:nth-of-type(5){animation-delay:.30s}
.qstep .option:nth-of-type(6){animation-delay:.36s}
.option:hover{transform:translateY(-2px);border-color:#1a3300;box-shadow:0 6px 0 -3px #ffe95c}
.option:has(input:checked){border-color:#1a3300;background:#faf3cf;box-shadow:0 5px 0 -2px #ffe95c}

/* role picker cards get the same playful lift */
.rolepick button{border-radius:12px}
.rolepick button:hover{box-shadow:0 8px 0 -3px #ffe95c}

/* score band: the number lands like a marker stroke */
.scoreband{border:1px solid #1a3300}
.scoreband .big{font-family:'Bricolage Grotesque','Inter',sans-serif;font-weight:800;letter-spacing:.02em}

/* progress bar fills like a highlighter stroke */
.progress-fill{transition:width .5s cubic-bezier(.22,.9,.24,1)}

/* instant-score tag = pale marker */
.tag.auto{background:#faf3cf !important;color:#1a3300 !important}

/* faint hand-drawn star in the corner of the quiz shell — notebook texture */
.quizshell{position:relative}
.quizshell::before{
  content:'';position:absolute;top:18px;right:6%;width:52px;height:52px;pointer-events:none;opacity:.16;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54' fill='none' stroke='%231a3300' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M27 6 L31 20 L46 21 L34 30 L39 45 L27 36 L15 45 L20 30 L8 21 L23 20 Z'/%3E%3C/svg%3E");
  background-size:contain;background-repeat:no-repeat;
}

@media (prefers-reduced-motion:reduce){
  .qstep{animation:none}
  .qstep .option{animation:none}
}

/* — pill nav, matching the landing header — */
.navwrap-q{position:sticky;top:14px;z-index:60;padding:0 16px}
.nav-q{
  position:relative;max-width:1080px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:#fcfaf5;border:1px solid #b6b6b6;border-radius:16px;padding:10px 14px;
}
.navwrap-q::before{
  content:'';position:absolute;inset:-30px 15% auto;height:90px;z-index:-1;
  background:radial-gradient(50% 100% at 50% 40%,rgba(255,233,92,.55),transparent 70%);
  filter:blur(18px);pointer-events:none;
}
.nav-q .logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.nav-q .wordmark{font-weight:700;font-size:20px;letter-spacing:-.01em;color:#1a3300}

/* the quiz card rises in like the landing sections */
@keyframes cardin{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.quizcard{animation:cardin .5s cubic-bezier(.22,.9,.24,1) both}

/* highlighter wash on the intro title */
.hlq{position:relative;display:inline-block;padding:0 .12em;margin:0 -.06em;isolation:isolate}
.hlq::before{
  content:'';position:absolute;z-index:-1;inset:.06em -.08em .02em -.1em;
  background:#ffe95c;border-radius:.35em .5em .3em .55em/.55em .3em .5em .35em;
  rotate:-.6deg;transform:scaleX(0);transform-origin:0 60%;
  animation:hlqin .55s cubic-bezier(.22,.9,.24,1) .35s forwards;
}
@keyframes hlqin{to{transform:scaleX(1)}}

@media (prefers-reduced-motion:reduce){
  .quizcard{animation:none}
  .hlq::before{animation:none;transform:scaleX(1)}
}

/* ---------- live-question recorder, minimal layout (recorder.js minimal()) ---------- */
.vr-frame{position:relative;border-radius:20px;overflow:hidden;background:var(--dark);color:#fcfaf5;
  aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;scroll-margin-top:88px}
.vr-frame video{width:100%;height:100%;object-fit:cover;display:block;background:var(--dark)}
.vr-idle{aspect-ratio:16/9}
.vr-center{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:28px}
.vr-center svg{width:30px;height:30px;color:#ffe95c;margin-bottom:6px}
.vr-lead{margin:0;font-family:'Bricolage Grotesque','Inter',sans-serif;font-weight:800;font-size:22px;line-height:1.2;letter-spacing:.01em;color:#fcfaf5}
.vr-sub{margin:0;font-size:14.5px;line-height:1.5;color:var(--on-dark)}
.vr-center .vr-cta{margin-top:14px;background:#ffe95c;color:var(--dark);border-color:#ffe95c}
.vr-center .vr-cta:hover{background:#fff27f}
.vr-actions{display:flex;gap:10px;align-items:center;margin-top:14px}
.vr-actions .vr-cta{flex:1}
.vr-actions .vr-link{flex:0 0 auto;padding:0 14px}
.vr-link{background:none;border:0;padding:0;font:inherit;font-size:14px;font-weight:600;color:var(--muted);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.vr-link:hover{color:var(--heading)}
.vr-foot{margin-top:12px;text-align:center}
.vr-go i{display:inline-block;width:10px;height:10px;border-radius:50%;background:#ff4d3d;margin-right:10px;vertical-align:1px}
.vr-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);white-space:nowrap;
  font-family:'Roboto Mono',ui-monospace,monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  background:#1a3300cc;color:#fcfaf5;padding:6px 12px;border-radius:100px}
.vr-rec{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:8px;
  font-family:'Roboto Mono',ui-monospace,monospace;font-size:12.5px;font-variant-numeric:tabular-nums;
  background:#1a3300cc;color:#fcfaf5;padding:6px 11px;border-radius:100px}
.vr-rec i{width:8px;height:8px;border-radius:50%;background:#ff4d3d;animation:recpulse 1.4s ease-in-out infinite}
.vr-rec #rec-clock.low{color:#ffb4a8}
.vr-q{left:12px;right:12px;bottom:12px;background:#1a3300e0;border-radius:14px;padding:14px 16px 12px;
  backdrop-filter:none;-webkit-backdrop-filter:none}
.vr-q .rec-q-n{font-family:'Roboto Mono',ui-monospace,monospace;color:#ffe95c;opacity:1;font-size:11px}
.vr-q .rec-q-t{font-family:'Bricolage Grotesque','Inter',sans-serif;font-weight:800;font-size:19px;line-height:1.25;letter-spacing:.005em}
.vr-q .rec-q-bar{background:#fcfaf533;margin-top:12px}
.vr-q .rec-q-bar span{background:#ffe95c}
.vr-times{margin-top:14px;font-size:14px;color:var(--muted)}
.vr-times summary{cursor:pointer;font-weight:600;list-style:none}
.vr-times summary::-webkit-details-marker{display:none}
.vr-times summary::before{content:'+ '}
.vr-times[open] summary::before{content:'\2013  '}
.vr-times .rec-qlist{color:var(--body)}
.vr-bar{width:min(260px,70%);height:4px;border-radius:4px;background:#fcfaf533;overflow:hidden;margin:10px 0 4px}
.vr-bar span{display:block;height:100%;width:0;background:#ffe95c;transition:width .2s linear}
.vr-done{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.vr-done div{flex:1;display:flex;flex-direction:column}
.vr-done b{font-size:16px;color:var(--heading)}
.vr-done span{font-size:14px;color:var(--muted)}
.vr-tick{flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--pass-bg);color:var(--pass);display:grid;place-items:center}
.vr-tick svg{width:18px;height:18px}
@media (max-width:520px){
  .vr-frame.rec-stage-q,.vr-idle{aspect-ratio:3/4}
  .vr-q .rec-q-t{font-size:17px}
  .vr-actions .btn{width:auto}
}

/* in-frame controls (ready / recording) */
.vr-ctl{position:absolute;left:12px;right:12px;bottom:12px;display:flex}
.vr-ctl .btn{flex:1;width:auto}
.vr-light{background:#ffe95c;color:var(--dark);border-color:#ffe95c}
.vr-light:hover{background:#fff27f}
.vr-hint{bottom:76px}
.vr-q{bottom:76px}
.vr-stop{position:absolute;top:12px;right:12px;font:inherit;font-size:13px;font-weight:700;color:#fcfaf5;
  background:#1a3300cc;border:1px solid #fcfaf566;border-radius:100px;padding:6px 14px;cursor:pointer}
.vr-stop:hover{background:#1a3300}
.vr-review{background:#000}
.vr-review video{object-fit:contain}
@media (max-width:520px){
  /* the frame fits between the sticky header and the quiz nav, whatever the phone */
  .vr-frame.rec-stage-q{aspect-ratio:auto;height:calc(100vh - 210px);height:calc(100svh - 210px);min-height:380px;max-height:620px}
  .vr-idle{aspect-ratio:auto;min-height:300px}
  .vr-review{aspect-ratio:auto;height:calc(100vh - 300px);height:calc(100svh - 300px);min-height:300px;max-height:560px}
}
@media (max-width:520px){
  .vr-idle{min-height:0}
  .vr-idle .vr-center{padding:22px 18px}
  .vr-lead{font-size:19px}
  .vr-center .vr-cta{width:100%}
}
.vr-dot{margin:0 10px;color:var(--muted)}
