/* Participant page for study 1. Plain system fonts: no third-party font request on a research page. */
:root{color-scheme:light dark;--bg:light-dark(#fff,#0e0e0e);--ink:light-dark(#111,#eee);--soft:light-dark(#5c5c5c,#a8a8a8);--rule:light-dark(#dcdcdc,#2e2e2e);--red:light-dark(#d0021b,#ff5a6a);--opt:light-dark(#f4f4f4,#1b1b1b);--sel:light-dark(#fde8ea,#3a1a1e)}
*{box-sizing:border-box;min-width:0}
body{background:var(--bg);color:var(--ink);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow-x:clip;margin:0;padding-block:clamp(16px,3vw,36px);padding-left:max(5vw,16px,env(safe-area-inset-left,0px));padding-right:max(5vw,16px,env(safe-area-inset-right,0px))}
.run{max-width:560px;margin-inline:auto}
.progress{height:6px;background:var(--opt);border-radius:3px;overflow:hidden;margin-bottom:18px}
.progress i{display:block;height:100%;background:var(--ink);transition:width .2s}
@media(prefers-reduced-motion:reduce){.progress i{transition:none}}
h1{font-weight:800;font-size:clamp(28px,4.4vw,40px);line-height:1.08;letter-spacing:-.02em;margin:0 0 12px;text-wrap:balance}
h1.info{margin-top:24px}
.infop{font-size:18px}
p{margin:0 0 10px;max-width:70ch}
.notice{border-left:3px solid var(--red);padding-left:12px}
.q h2{margin:0 0 6px;font-size:20px;line-height:1.35;font-weight:700;text-wrap:balance}
.q h2 em{font-style:normal;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.qlead{font-size:17px;line-height:1.4;color:var(--ink);margin:6px 0 4px;text-wrap:balance}
p.count{font-size:14px;color:var(--ink);font-weight:600;margin:0 0 12px}
.platname{font-weight:800;font-size:clamp(34px,8vw,48px);line-height:1;letter-spacing:-.02em;margin-bottom:10px}
.q h2.platq{font-size:17px;font-weight:600;color:var(--soft)}
.opts{display:grid;gap:8px}
.opt{display:flex;gap:12px;align-items:flex-start;background:var(--opt);border-radius:8px;padding:12px 14px;font-size:16px;cursor:pointer;border:1.5px solid transparent;min-height:48px}
.opt span{text-wrap:pretty}
.opt:has(input:checked){background:var(--sel);border-color:var(--red)}
.opt input{margin:4px 0 0;accent-color:var(--red);flex:none;width:18px;height:18px}
.optsub{display:block;font-size:14px;color:var(--soft);margin-top:2px}
.hint{font-size:14px;color:var(--soft);margin:10px 0 0}
.other{margin-top:10px}
.other input{font:inherit;font-size:16px;width:100%;padding:12px;border-radius:8px;border:1.5px solid var(--rule);background:var(--opt);color:var(--ink)}
.err{color:var(--red);font-size:14px;font-weight:700;margin-top:10px}
.next{position:sticky;bottom:0;padding:14px 0 calc(14px + env(safe-area-inset-bottom,0px));background:var(--bg);margin-top:18px;display:flex;gap:10px}
button{font:inherit;font-weight:700;font-size:16px;border-radius:8px;padding:12px 20px;cursor:pointer;border:1.5px solid var(--ink);background:transparent;color:var(--ink);min-height:48px}
button.primary{background:var(--ink);color:var(--bg);flex:1}
button.primary[aria-disabled=true]{background:var(--opt);color:var(--soft);border-color:var(--rule);cursor:not-allowed}
button.primary[aria-disabled=false]:hover{filter:brightness(1.25)}
.q h2.least{margin-top:22px}
.opt.off{opacity:.35;cursor:not-allowed}
button.reveal{width:100%;margin-top:4px;background:var(--opt)}
button.reveal[aria-disabled=true]{color:var(--soft);border-color:var(--rule);cursor:not-allowed}
a{color:inherit}
.next.stack{flex-direction:column}
/* Last on purpose: the hidden attribute must beat the layout rules above (.opts is a grid, .next a
   flex row), or the "Show answers" pause hides nothing (review triage 2026-12-05). !important wins in
   browsers; being last also wins in jsdom, which the walk-through uses to check what is visible. */
[hidden]{display:none!important}
