/* The free assessment: a focused, single-column working surface on Ledger paper. */
.wrap{max-width:1080px;margin:0 auto;padding:0 22px 60px}
.top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0 26px;margin-bottom:28px;flex-wrap:wrap}
.brand img{display:block}
.steps{display:flex;gap:4px;list-style:none;margin:0;padding:0;font-size:14px;color:var(--muted);flex-wrap:wrap}
.steps li{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:var(--r-pill)}
.steps li span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--bg-2);font-size:12px;font-weight:600;color:var(--ink-2)}
.steps li.done span{background:var(--ok);color:var(--bg)}
.steps li.now{color:var(--ink);background:var(--card);font-weight:600} .steps li.now span{background:var(--accent);color:var(--on-accent)}
.stage{display:flex;flex-direction:column;gap:18px}
.foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:48px;padding-top:8px;font-size:14px;color:var(--muted)}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.foot a{color:var(--ink-2)}
.notice a{color:inherit}

.intro{background:transparent;padding:6px 0 0}
.intro h1{max-width:22ch;margin-bottom:14px;font-size:clamp(30px,3.6vw,46px)}
.form{display:flex;flex-direction:column;gap:18px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.q{font-weight:600;color:var(--ink);margin:6px 0 10px;font-size:16px}
.q .likely{display:inline-block;margin-left:8px;font-size:14px;color:var(--ok);font-weight:400}
.qs{display:flex;flex-direction:column;gap:6px}
.qrow{padding:12px 14px;border-radius:var(--r-sm);background:var(--card-2)}
.qrow .q{margin-top:0}
.chips.wrapc{max-height:200px;overflow:auto;padding:8px;background:var(--card-2);border-radius:var(--r-sm)}
.chips.quick{margin-bottom:8px}
.actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:6px}
.actions.between{justify-content:space-between}
#profile-missing{color:var(--warn);font-weight:600;min-height:1em}

/* the map */
.cols{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.col h2{font-size:24px;margin-bottom:12px}
.col .origin{font-size:14px;color:var(--muted);margin:14px 0 6px;font-weight:600}
.col .sub,.picks .sub{font-size:15px;font-weight:600;color:var(--ink-2);margin:16px 0 8px}
.card+.card{margin-top:10px}
.card header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.card header h3{margin-right:auto}
.card .name{font-size:14px;color:var(--muted);margin-bottom:10px}
.card.advisory{background:var(--warn-soft)}
.card.vol{opacity:.9}
.facts{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:4px;font-size:15px;color:var(--ink-2)}
.facts b{color:var(--muted);font-weight:600;margin-right:6px}
.why{margin:0 0 12px;padding-left:18px;font-size:15px;color:var(--ink-2);line-height:1.45}
.why li{margin-bottom:4px} .why li.warn{color:var(--warn)}
.excluded summary{cursor:pointer;font-weight:600;color:var(--ink-2)}
.excluded ul{margin:14px 0 0;padding-left:18px;font-size:15px;color:var(--muted);line-height:1.5;columns:2;column-gap:28px}
.excluded li{break-inside:avoid;margin-bottom:6px} .excluded b{color:var(--ink-2)}
.cta{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--accent-soft);flex-wrap:wrap}
.cta h2{font-size:26px;margin-bottom:6px} .cta p{color:var(--ink-2);max-width:52ch}

/* choose */
.search{margin-top:20px;max-width:520px}
.picks .sub:first-child{margin-top:0}
.pickgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.pick{text-align:left;background:var(--card-2);border:0;border-radius:var(--r-sm);padding:12px 14px;color:var(--ink);display:flex;flex-direction:column;gap:3px;transition:background-color .15s}
.pick:hover{background:var(--bg-2)}
.pick b{font-size:15px} .pick span{font-size:14px;color:var(--muted)}
.pick.rec{background:var(--ok-soft)}
.pick.bound{background:var(--accent-soft)}

/* assessment */
.assess{display:flex;flex-direction:column;gap:18px}
.ahead{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.dom{font-weight:600;color:var(--ink)} .pack{font-size:14px;color:var(--muted)}
.prog{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--muted)}
.bar{width:220px;height:6px;background:var(--bg-2);border-radius:3px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);border-radius:3px;transition:width .4s ease}
/* progress as strata: one band per area of the framework, filled as its checks are answered */
.strata{display:flex;gap:3px;width:min(340px,40vw);height:10px}
.strata i{display:block;position:relative;height:100%;background:var(--bg-2);border-radius:2px;overflow:hidden}
.strata i b{display:block;height:100%;background:var(--ok);transition:width .35s ease}
.strata i.now{outline:1px solid var(--accent);outline-offset:1px} .strata i.now b{background:var(--accent)}
.readout{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;margin-right:6px}
.readout i{font-style:normal;color:var(--ink-2);font-size:14px;font-weight:600}
.readout em{font-style:normal;font-size:13px;font-weight:600;color:var(--ok);background:var(--ok-soft);border-radius:var(--r-pill);padding:2px 9px;animation:pop .35s ease both}
.readout em:nth-child(2){animation-delay:.08s} .readout em:nth-child(3){animation-delay:.16s} .readout em:nth-child(4){animation-delay:.24s}
@keyframes pop{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
#boot{background:var(--bg)}
.qcard{background:var(--card);border-radius:var(--r);padding:30px 32px;animation:rise .35s ease both}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ref{font-size:14px;font-weight:600;color:var(--muted);margin-bottom:12px}
.qcard h2{font-size:clamp(20px,2vw,25px);font-weight:600;line-height:1.35;letter-spacing:-.01em;margin-bottom:22px;color:var(--ink)}
.answers{display:grid;gap:8px;margin-bottom:18px}
.ans{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:14px;text-align:left;background:var(--card-2);border:1px solid transparent;border-radius:var(--r-sm);padding:12px 14px;color:var(--ink);transition:border-color .15s,background-color .15s}
.ans:hover{border-color:var(--accent)}
.ans kbd{font-family:var(--mono);font-size:12px;color:var(--muted);background:var(--bg-2);border-radius:var(--r-sm);padding:3px 0;text-align:center}
.ans b{display:block;font-size:16px;font-weight:600} .ans small{display:block;font-size:14px;color:var(--muted);margin-top:2px}
.ans em{font-style:normal;font-size:14px;color:var(--muted)}
.ans.on{border-color:var(--ok);background:var(--ok-soft)} .ans.on kbd{background:var(--ok);color:var(--bg)}
.ans.a-none.on{border-color:var(--danger);background:var(--danger-soft)} .ans.a-none.on kbd{background:var(--danger)}
.ans.a-partly.on{border-color:var(--warn);background:var(--warn-soft)} .ans.a-partly.on kbd{background:var(--warn)}
.ans.a-largely.on{border-color:var(--accent);background:var(--accent-soft)} .ans.a-largely.on kbd{background:var(--accent);color:var(--on-accent)}
.ans.a-full.on{border-color:var(--ok);background:var(--ok-soft)} .ans.a-full.on kbd{background:var(--ok)}
.evidence{padding-top:6px}
.evidence summary{cursor:pointer;font-weight:600;color:var(--ink-2);font-size:15px}
.evidence ul{margin:10px 0 6px;padding-left:18px;color:var(--ink-2);font-size:15px;line-height:1.5}
.owner{font-size:14px;color:var(--muted)}
.qgrid{display:flex;flex-wrap:wrap;gap:5px;list-style:none;margin:0;padding:0}
.qgrid button{width:32px;height:32px;border-radius:var(--r-sm);border:0;background:var(--bg-2);color:var(--muted);font-size:12px;font-weight:600}
.qgrid button.done{background:var(--ok);color:var(--bg)}
.qgrid button.now{background:var(--card);color:var(--ink);outline:2px solid var(--accent);outline-offset:1px}

/* results */
.results{display:flex;flex-direction:column;gap:22px}
.rhead{display:grid;grid-template-columns:180px 1fr;gap:28px;align-items:center}
.ring{position:relative;width:180px;height:180px}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .track{fill:none;stroke:var(--bg-2);stroke-width:10}
.ring .fill{fill:none;stroke-width:10;stroke-linecap:round;transition:stroke-dashoffset 1s ease}
.b-exposed{stroke:var(--danger);background:var(--danger)} .b-forming{stroke:var(--warn);background:var(--warn)} .b-established{stroke:var(--accent);background:var(--accent)} .b-assured{stroke:var(--ok);background:var(--ok)} .b-exemplary{stroke:var(--ok);background:var(--ok)}
.ring .num{position:absolute;inset:0;display:grid;place-items:center;align-content:center}
.ring .num b{font-size:46px;font-weight:600;line-height:1;letter-spacing:-.03em} .ring .num span{font-size:14px;color:var(--muted);margin-top:4px}
.bars{list-style:none;margin:0 0 26px;padding:0;display:grid;gap:10px}
.bars li{display:grid;grid-template-columns:1fr 160px 44px;align-items:center;gap:12px;font-size:15px;color:var(--ink-2)}
.bars .bar{width:100%} .bars b{font-size:14px;text-align:right}
.req{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.req li{background:var(--card-2);border-radius:var(--r-pill);padding:5px 11px;font-size:14px;color:var(--ink-2)}
.gap .ev{margin:6px 0;padding-left:18px;font-size:15px;color:var(--ink-2);line-height:1.45}
.gap.none{background:var(--danger-soft)} .gap.partly{background:var(--warn-soft)}
.ok{color:var(--ok)}
.horizons{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px}
.hz{background:var(--card-2);border-radius:var(--r-sm);padding:14px 16px}
.hz h3{display:flex;align-items:center;gap:6px;margin-bottom:2px} .hz .sub{font-size:14px;color:var(--muted);margin-bottom:10px}
.hz ul{list-style:none;margin:0;padding:0;font-size:14px;color:var(--ink-2);display:grid;gap:6px}
.hz-none h3{color:var(--danger)} .hz-partly h3{color:var(--warn)} .hz-largely h3{color:var(--accent)}
.send .sent{margin-top:10px;font-size:15px;color:var(--ok);width:100%}
.send .notice{width:100%;margin-top:4px}
.product{background:var(--accent-soft)}
.report{display:none}

/* Reduced motion, per effect: the question and the readout fade in without rising. */
@media (prefers-reduced-motion:reduce){
  .qcard{animation-name:fade}
  .readout em{animation-name:fade}
  .ring .fill{transition:none}
}
@keyframes fade{from{opacity:0}to{opacity:1}}

@media (max-width:820px){
  .wrap{padding:0 18px 40px}
  .top{padding:14px 0 14px;margin-bottom:18px;gap:12px}
  /* the steps bar becomes a stepper: numbered dots spread across one row, only the current step named */
  .steps{width:100%;flex-wrap:nowrap;justify-content:space-between;gap:2px;overflow:hidden}
  .steps li{padding:4px 6px;gap:6px;flex:0 0 auto}
  .steps li span{width:26px;height:26px;font-size:12px}
  .steps li:not(.now){font-size:0;gap:0;padding:4px 0}
  .steps li.now{padding:4px 12px 4px 4px;white-space:nowrap}
  .grid2,.cols,.horizons{grid-template-columns:1fr}
  .form{gap:16px}
  .qrow{padding:12px 12px}
  .chips.wrapc{max-height:240px}
  .col h2{font-size:22px;margin-top:6px}
  .card+.card{margin-top:8px}
  .excluded ul{columns:1;padding-left:16px}
  .cta{gap:16px}
  .cta>div,.cta>.actions{flex:1 1 100%}
  .cta h2{font-size:23px}
  .search{margin-top:14px;max-width:none}
  /* the question */
  .ahead{gap:10px 20px}
  .prog{width:100%;justify-content:space-between} .strata{width:min(300px,62vw)}
  .qcard{padding:20px 16px}
  .qcard h2{font-size:19px;margin-bottom:18px}
  .ans{grid-template-columns:26px 1fr;gap:12px;padding:12px 12px;min-height:56px}
  .ans em{display:none}
  .qgrid{gap:6px} .qgrid button{width:36px;height:36px}
  .actions{flex-direction:column;align-items:stretch} .actions .btn{justify-content:center;text-align:center}
  .actions.between{flex-direction:row;gap:10px} .actions.between .btn{flex:1 1 0} .actions.between .small{display:none}
  .send .actions{flex-direction:column}
  /* results */
  .results{gap:18px}
  .rhead{grid-template-columns:1fr;gap:16px;text-align:center;justify-items:center}
  .ring{width:150px;height:150px} .ring .num b{font-size:40px}
  .rhead h1{font-size:28px}
  .bars{margin-bottom:22px;gap:8px} .bars li{grid-template-columns:1fr 96px 40px;font-size:14px}
  .req li{min-height:36px;display:inline-flex;align-items:center;gap:6px}
  .gap header h3{font-size:17px}
  .hz{padding:12px 14px}
  .foot{flex-direction:column;gap:8px;margin-top:32px}
}

/* print fallback for the results page itself; the record opens as its own document */
@media print{
  body{background:#fff;color:#111}
  .top,.foot,.actions,.send,.product,.steps,.qgrid{display:none!important}
  .panel,.card,.hz{background:#fff;color:#111}
  .report table{width:100%;border-collapse:collapse;font-size:11px}
  .report th,.report td{border:1px solid #ccc;padding:6px 8px;vertical-align:top;text-align:left}
}

.late{display:flex;flex-direction:column;gap:6px;max-width:340px;margin-top:12px} .late span{font-size:14px;color:var(--ink-2)}
