/* QRAI Thinking Check — calm, warm, large-print friendly. */
:root{--ink:#243a32;--muted:#4f6056;--paper:#faf8f1;--bg:#e9ecdf;--accent:#365c48;--accent-dk:#254634;--line:#bbc8b5;--warm:#a24d2d;
  --fs:19px;--q:30px;--choice-fs:20px;--choice-h:68px;--shape:86px;--word:30px}
body[data-band="50-60"]{--fs:19px;--q:28px;--choice-fs:20px;--choice-h:64px;--shape:84px;--word:30px}
body[data-band="60-70"]{--fs:21px;--q:31px;--choice-fs:22px;--choice-h:72px;--shape:96px;--word:34px}
body[data-band="70-80"]{--fs:23px;--q:34px;--choice-fs:25px;--choice-h:84px;--shape:110px;--word:40px}
body[data-band="80+"]{--fs:26px;--q:38px;--choice-fs:29px;--choice-h:100px;--shape:128px;--word:48px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:var(--fs)/1.6 Arial,Helvetica,sans-serif}
a{color:inherit}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;color:inherit}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,h2:focus-visible{outline:3px solid var(--warm);outline-offset:5px}
h2:focus{outline:none}
h1,h2,h3,p{margin-top:0}
h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400}
h1{font-size:clamp(56px,7.5vw,100px);line-height:1;letter-spacing:-3px;margin-bottom:22px}
h1 span{color:var(--accent);font-style:italic}
header,main,footer{max-width:1180px;margin:auto}
header{padding:24px 34px;display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line)}
.brand{font-size:27px;font-weight:900;text-decoration:none;letter-spacing:-1px}.brand b{color:var(--accent)}
.edition,.eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:2.4px;font-weight:700}
.edition{color:var(--muted)}.eyebrow{color:var(--accent);margin-bottom:16px}
.hero{padding:58px 34px 28px;display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:center}
.lede{font-size:28px;font-family:Georgia,serif;margin-bottom:14px}
.sub{font-size:21px;max-width:560px}
.art{border-radius:46% 46% 14px 14px;background:#d2ddc8;overflow:hidden;border:1px solid #b3c3aa;aspect-ratio:4/3}
.art svg{display:block;width:100%;height:100%}
.bands{padding:8px 34px 34px}
.bands h2{font-size:clamp(28px,3.6vw,40px);margin-bottom:18px}
.bandgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.band{min-height:132px;padding:18px;border:2px solid var(--accent);border-radius:14px;background:var(--paper);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;text-align:left}
.band strong{font:400 46px/1 Georgia,serif;color:var(--accent)}
.band span{font-size:16px;color:var(--muted)}
.band:hover{background:#dfe8d6}
.band[data-start="80+"] strong{font-size:52px}
.principles{display:grid;grid-template-columns:repeat(3,1fr);margin:0 34px 30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.principles>div{padding:20px 22px;border-right:1px solid var(--line)}
.principles>div:first-child{padding-left:0}.principles>div:last-child{border:0}
.principles strong{display:block;font-size:18px}.principles span{display:block;font-size:16px;color:var(--muted);margin-top:4px}
.intro-notes{padding:0 34px 40px;display:grid;grid-template-columns:1.3fr 1fr;gap:28px;align-items:start}
.legal{font-size:16px;line-height:1.75;color:var(--muted);margin:0}.legal strong{color:var(--ink)}
.care{border-left:4px solid #7f9276;background:#f4f5ed;padding:16px 20px;font-size:max(17px,calc(var(--fs) - 3px));line-height:1.7}
.care strong{display:block}
/* check */
.shell{max-width:840px;margin:auto;padding:30px 22px 50px}
.status{display:flex;justify-content:space-between;gap:16px;font-size:16px;margin-bottom:12px;font-weight:700;color:var(--muted)}
.progress{height:8px;border-radius:8px;overflow:hidden;background:#c6d1bd}
.progress>div{height:100%;width:0;background:var(--accent);transition:width .25s}
.card{padding:34px;background:var(--paper);border:1px solid #c5cebb;border-radius:16px;box-shadow:0 18px 40px #243a320d;margin-top:22px}
#question{font-size:var(--q);line-height:1.3;margin-bottom:22px}
.hint{color:var(--muted);font-size:calc(var(--fs) - 2px)}
.studybox{background:#fff;border:2px dashed #9fb196;border-radius:14px;padding:24px 26px;margin-bottom:16px}
.studybox p{font-size:calc(var(--q) - 4px);line-height:1.4;margin:0 0 8px}
.wordlist{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px 28px}
.wordlist li{font:700 var(--word)/1.2 Georgia,serif;color:var(--accent);text-transform:capitalize}
.choices{display:grid;gap:12px}
.choices.multi{grid-template-columns:1fr 1fr}
.choices.shapes{grid-template-columns:repeat(auto-fit,minmax(calc(var(--shape) + 24px),1fr))}
.choice{width:100%;display:flex;align-items:center;gap:16px;text-align:left;min-height:var(--choice-h);padding:14px 20px;border:2px solid #a5b49b;border-radius:12px;background:#fffefa;font-size:var(--choice-fs)}
.choice:hover{background:#edf1e5;border-color:var(--accent)}
.choice[aria-pressed="true"]{background:#dbe6d2;border:3px solid var(--accent);font-weight:700}
.choices.shapes .choice{justify-content:center;padding:12px;min-height:calc(var(--shape) + 24px)}
.choices.shapes svg{width:var(--shape);height:var(--shape)}
.dot{height:26px;width:26px;border:2px solid #7b8f70;border-radius:50%;flex-shrink:0}
.multi .dot{border-radius:6px}
.choice[aria-pressed="true"] .dot{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 4px #dbe6d2}
.board{display:block;width:100%;max-width:520px;height:auto;margin:0 auto 18px;background:#fff;border:1px solid #c5cebb;border-radius:12px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.actions .primary{flex:1}
.primary{min-height:max(64px,calc(var(--choice-h) - 4px));padding:14px 26px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-weight:700;font-size:var(--choice-fs)}
.primary:hover:not(:disabled){background:var(--accent-dk)}
.primary:disabled{background:#dce1d4;color:#5b6657}
.secondary{min-height:max(60px,calc(var(--choice-h) - 8px));padding:12px 20px;border:2px solid #97ab94;border-radius:10px;background:transparent;font-size:calc(var(--choice-fs) - 2px)}
.secondary:hover{background:#e2e9db}
.subactions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:14px}
.quiet{background:transparent;border:0;border-bottom:1px solid #8b9d7e;color:#405a49;font-size:calc(var(--fs) - 3px);padding:10px 2px;min-height:48px}
.smallnote{color:var(--muted);font-size:calc(var(--fs) - 4px);margin:18px 0 0}
/* results */
.bigcount{font:64px/1.1 Georgia,serif;margin:6px 0 4px;color:var(--accent)}
.countlabel{color:var(--muted)}
.resultnote{font-size:calc(var(--fs) + 1px)}
.breakdown{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
.stat{border:1px solid #c4cdba;border-radius:10px;padding:15px;background:#fff}
.stat strong{display:block}.stat span{color:var(--muted);font-size:calc(var(--fs) - 2px)}
.nextsteps{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.nextsteps h3{font-size:calc(var(--fs) + 3px);margin-bottom:10px}
.nextsteps li{margin-bottom:10px}
.nextsteps ul{padding-left:22px}
.also{margin-top:22px;font-size:calc(var(--fs) - 3px);color:var(--muted)}
footer{padding:22px 34px 32px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:24px;font-size:14px;color:var(--muted)}
footer a{display:inline-block;min-height:44px;padding-top:9px}
footer small{display:block}
.skip{position:absolute;left:20px;top:-100px;z-index:2;background:#fff;padding:16px}.skip:focus{top:10px}
@media(max-width:860px){.bandgrid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){
  header{padding:18px 20px}.edition{font-size:10px;letter-spacing:1.4px}
  .hero{padding:32px 20px 18px;grid-template-columns:1fr;gap:20px}
  h1{font-size:60px;letter-spacing:-2px}.lede{font-size:24px}.sub{font-size:19px}
  .art{aspect-ratio:2.6}
  .bands{padding:6px 20px 26px}
  .bandgrid{grid-template-columns:1fr;gap:12px}
  .band{min-height:96px;flex-direction:row;align-items:center;justify-content:space-between}
  .band span{text-align:right;max-width:55%}
  .principles{margin:0 20px 22px;grid-template-columns:1fr}
  .principles>div,.principles>div:first-child{padding:14px 0;border:0;border-bottom:1px solid var(--line)}
  .intro-notes{padding:0 20px 30px;grid-template-columns:1fr;gap:20px}
  .shell{padding:20px 12px 34px}.card{padding:22px 16px}
  .choices.multi{grid-template-columns:1fr}
  .actions{flex-direction:column-reverse}
  .actions .primary,.actions .secondary{width:100%;flex:0 0 auto}
  .actions .secondary{min-height:56px}
  .breakdown{grid-template-columns:1fr}
  footer{padding:20px 20px 30px;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media print{header,footer,.actions,.subactions,.bands,.art{display:none}body{background:#fff}}
