/* The test pages (Website/Design/projects/test-page, 2026-10-20), from the prototype proto/_template.html,
   scoped to .tpg; built by tools/build_test_page_css.py, edit the source and rebuild.
   The tokens are the header's (css/site-chrome.css), repeated for the page. */
.tpg{--navy:#284257;--ink:#194C8E;--text:#434244;--muted:#6B7280;--grey:#F7F7F7;--line:#E6E8EB;--rule:#D8D8D8;
  --rb:10px;--rc:18px;--rm:12px;--px:20px;--serif:"EB Garamond",Georgia,serif;--sans:"Roboto",system-ui,sans-serif;
  display:block;font:400 16px/1.55 var(--sans);color:var(--text);background:#fff}
@media (min-width:900px){ .tpg{--px:32px} }
.tpg,.tpg *,.tpg *::before,.tpg *::after{box-sizing:border-box}
/* the site's style.css unsets a and button: back to normal inside the page */
.tpg a,.tpg button{all:revert;box-sizing:border-box;font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tpg a{text-decoration:none}
.tpg button{background:none;border:0;padding:0;margin:0}
.tpg h1,.tpg h2,.tpg h3{margin:0;font-weight:400}
.tpg p,.tpg ul,.tpg ol,.tpg figure,.tpg fieldset{margin:0}
.tpg svg{display:block}
.tpg :focus-visible{outline:2px solid var(--navy);outline-offset:3px;border-radius:6px}
.tpg .phero :focus-visible{outline-color:#fff}
.tpg .wrap{max-width:1264px;margin:0 auto;padding:0 var(--px)}
.tpg .sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* hero */
.tpg .phero{position:relative;overflow:hidden;background:var(--navy);color:#fff}
.tpg .phero .wrap{padding-top:20px;padding-bottom:22px;max-width:640px}
.tpg .ph1{margin:0;font:400 28px/1.12 var(--serif);text-wrap:balance}
.tpg .plead{margin:10px 0 0;font:400 14.5px/1.5 var(--sans);color:rgba(255,255,255,.84)}
.tpg .halo2{position:absolute;right:-190px;top:-140px;width:500px;height:500px;color:#fff;opacity:.06;pointer-events:none}

/* the test */
.tpg .ptest{background:#fff;padding-bottom:40px}
.tpg .ptest .wrap{max-width:640px}
/* phone: a sticky percent bar in six segments (one per screen of questions); decorative */
.tpg .pbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}
.tpg .pbar .in{display:grid;grid-template-columns:44px 1fr;align-items:center;gap:12px;max-width:640px;margin:0 auto;padding:0 var(--px);height:46px}
.tpg .pct{font:500 14px/1 var(--sans);color:var(--ink);font-variant-numeric:tabular-nums}
.tpg .seg{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.tpg .seg i{position:relative;height:4px;border-radius:2px;background:#EDEDED;overflow:hidden}
.tpg .seg i b{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:2px;background:var(--navy);transition:width .35s}

/* a question */
.tpg .tq{position:relative;margin:0;padding:22px 0 24px;border:0;border-bottom:1px solid var(--line);scroll-margin-top:62px}
.tpg .tq:last-child{border-bottom:0}
.tpg .tq:focus{outline:none}
.tpg .tq legend{float:left;width:100%;padding:0;margin:0 0 14px}
.tpg .tq .num{display:block;margin-bottom:6px;font:500 12.5px/1 var(--sans);letter-spacing:.06em;color:var(--muted);font-variant-numeric:tabular-nums}
.tpg .tq .qt{margin:0;font:400 22px/1.25 var(--serif);color:var(--navy);transition:color .3s}
.tpg .tq .opts{clear:both;display:grid;gap:8px}
.tpg .opt{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 14px;border:1px solid var(--rule);border-radius:var(--rb);background:#fff;color:var(--text);font:400 16px/1.35 var(--sans);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .2s,border-color .2s,color .2s,opacity .3s}
.tpg .opt input{appearance:none;flex:0 0 auto;width:18px;height:18px;margin:0;border:1px solid #7C8691;border-radius:50%;transition:border-color .2s,box-shadow .2s}
@media (hover:hover){ .tpg .opt:hover{border-color:var(--navy);background:rgba(40,66,87,.04)} .tpg .opt:hover input{border-color:var(--navy)} }
.tpg .opt:has(input:checked){background:var(--navy);border-color:var(--navy);color:#fff}
.tpg .opt input:checked{border-color:#fff;box-shadow:inset 0 0 0 4px var(--navy),inset 0 0 0 9px #fff}
.tpg .opt:has(input:focus-visible){outline:2px solid var(--navy);outline-offset:2px}
.tpg .tq.done .opt:not(:has(input:checked)){opacity:.7}
/* the question in work vs the ones ahead (live focus logic, softened for contrast): only once JS runs,
   the questions ahead get a muted heading and lighter frames; their answers stay readable */
.js .tpg .tq:not(.is-active):not(.done) .qt{color:#7A8794}
.js .tpg .tq:not(.is-active):not(.done) .opt{border-color:var(--line)}
/* a missed question: an ink rule in the gutter, a visible «no answer» line, the first one ringed */
.tpg .tq .nomiss{display:none;margin:-6px 0 12px;font:500 13.5px/1.3 var(--sans);color:var(--ink)}
.tpg .tq.miss .nomiss{display:block}
.tpg .tq.miss::before{content:"";position:absolute;left:-12px;top:22px;bottom:24px;width:3px;border-radius:2px;background:var(--ink)}
.tpg .tq.miss.first{outline:1px solid var(--ink);outline-offset:8px;border-radius:var(--rc)}
/* a new block fades in */
.tpg .qs.in .tq{animation:tpgIn .3s ease both}
@keyframes tpgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.tpg .qs[aria-busy="true"]{opacity:.35;pointer-events:none;transition:opacity .2s}
.tpg .qerr{margin:18px 0 0;padding:12px 14px;border:1px solid var(--ink);border-radius:var(--rb);font:400 15px/1.45 var(--sans);color:var(--ink)}
.tpg .qerr[hidden]{display:none}
.tpg .tnext{margin-top:28px}
.tpg #coretest-next[hidden],.tpg #coretest-result[hidden]{display:none}

/* the page's buttons: ink with volume; the spark runs only when the screen is complete */
.tpg .btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;padding:0 24px;border:1px solid #173f73;border-radius:var(--rb);
  background:linear-gradient(#2D5A9E,#194C8E 62%);color:#fff;font:500 16px/1.2 var(--sans);text-decoration:none;cursor:pointer;touch-action:manipulation;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 6px 14px -8px rgba(0,0,0,.45)}
.tpg .btn svg{width:18px;height:18px}
.tpg .btn::after{content:"";position:absolute;left:0;top:0;width:22px;height:2px;pointer-events:none;border-radius:2px;background:linear-gradient(90deg,rgba(255,255,255,0),#fff);box-shadow:0 0 4px rgba(255,255,255,.6);
  offset-path:inset(0 round var(--rb));offset-rotate:auto;offset-anchor:100% 50%;animation:tpgRun 4.5s linear infinite}
.tpg .btn.rest::after{animation-play-state:paused;opacity:0}
.tpg .btn:active{transform:translateY(1px)}
.tpg .btn:disabled{opacity:.6;cursor:progress}

/* the four steps: the home's route, under the test */
.tpg .steps{padding:40px 0 44px;background:var(--grey)}
.tpg .steps .wrap{max-width:640px}
.tpg .st-list{list-style:none;margin:0;padding:0;position:relative}
.tpg .st-list::before{content:"";position:absolute;left:17.5px;top:18px;bottom:30px;width:1px;background:var(--rule)}
.tpg .st>a,.tpg .st>div{display:grid;grid-template-columns:36px 1fr;gap:14px;padding:0 0 22px;color:inherit;text-decoration:none}
.tpg .st b{font:400 21px/1.2 var(--serif);color:var(--navy)}
.tpg .st p{margin:6px 0 0;font:400 15px/1.55 var(--sans);color:var(--text)}
.tpg .head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding-top:5px}
.tpg .head b{flex:1 1 auto}
.tpg .badge{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:8px;font:500 12.5px/1 var(--sans);color:var(--navy);background:#fff}
.tpg .badge.paid{background:none;border:1px solid rgba(25,76,142,.45);color:var(--ink)}
.tpg .node{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--navy);background:var(--grey);font:400 19px/1 var(--serif);color:var(--navy)}
.tpg .st.free .node{background:var(--navy);color:#fff}

.tpg .rail{display:none}

/* ===== DESKTOP (≥900): the shared grid (1264 = 1200 + 2×32) =====
   Hero: a short band, the H1 left and the lead right. The test: a sticky rail with the progress lens
   (six arcs = six screens, the live percent in the iris) and the questions in a 760 px column, answers 2×2.
   The four steps follow as the home's horizontal route. */
@media (min-width:900px){
 .tpg .phero .wrap{max-width:1264px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:64px;align-items:end;padding-top:52px;padding-bottom:56px}
 .tpg .ph1{font-size:46px;line-height:1.06;max-width:10em}
 .tpg .plead{margin:0;font-size:16px;line-height:1.55;max-width:34em}
 .tpg .halo2{right:-80px;top:-260px;width:700px;height:700px}
 .tpg .pbar{display:none}
 .tpg .ptest{padding-bottom:88px}
 .tpg .ptest .wrap{max-width:1264px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,760px);column-gap:48px;align-items:start}
 .tpg .rail{display:grid;justify-items:center;gap:14px;position:sticky;top:32px;margin-top:40px}
 .tpg .lens{position:relative;width:220px;height:220px}
 .tpg .lens svg{display:block;width:100%;height:100%;overflow:visible}
 .tpg .lens .rim{fill:none;stroke:var(--navy);stroke-width:1}
 .tpg .lens .tk{fill:none;stroke:var(--navy);stroke-width:1;stroke-opacity:.5}
 .tpg .lens .ab{fill:none;stroke:#EDEDED;stroke-width:9;stroke-linecap:round}
 .tpg .lens .af{fill:none;stroke:var(--navy);stroke-width:9;stroke-linecap:butt;transition:stroke-dasharray .4s}
 .tpg .lens .af.on{stroke-linecap:round}
 .tpg .lens .in1{fill:none;stroke:var(--rule);stroke-width:1}
 .tpg .lp{position:absolute;inset:0;display:grid;place-items:center;font:400 46px/1 var(--serif);color:var(--navy);font-variant-numeric:lining-nums tabular-nums}
 .tpg .rng{font:500 13px/1 var(--sans);letter-spacing:.06em;color:var(--muted);font-variant-numeric:tabular-nums}
 .tpg #coretest-form{grid-column:2}
 .tpg .tq{padding:40px 0 38px;scroll-margin-top:24px}
 .tpg .tq.miss::before{left:-20px;top:40px;bottom:38px}
 .tpg .tq .num{font-size:13px}
 .tpg .tq .qt{font-size:28px;line-height:1.22}
 .tpg .tq legend{margin-bottom:20px}
 .tpg .tq .opts{grid-template-columns:1fr 1fr;gap:12px}
 .tpg .opt{min-height:64px;padding:12px 18px;font-size:16.5px}
 .tpg .tnext{margin-top:36px}
 .tpg .tnext .btn{width:auto;min-width:280px}
 .tpg .ptest.last .tnext .btn{width:100%;min-height:60px;font-size:17px}
 .tpg .steps{padding:88px 0 96px}
 .tpg .steps .wrap{max-width:1264px}
 .tpg .st-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px}
 .tpg .st-list::before{left:18px;right:18px;top:18px;bottom:auto;width:auto;height:1px}
 .tpg .st>a,.tpg .st>div{grid-template-columns:1fr;gap:18px;padding:0}
 .tpg .head{flex-direction:column;align-items:flex-start;gap:8px;padding-top:0}
 .tpg .st b{font-size:24px}
 .tpg .st p{margin-top:10px;font-size:15.5px}
}
@media (min-width:900px) and (max-width:1099px){
 .tpg .ph1{font-size:40px}
 .tpg .phero .wrap{column-gap:40px}
 .tpg .ptest .wrap{grid-template-columns:180px minmax(0,1fr);column-gap:40px}
 .tpg .lens{width:160px;height:160px}
 .tpg .lp{font-size:34px}
 .tpg .opt{padding:10px 14px;font-size:16px}
 .tpg .st-list{gap:28px}
 .tpg .st b{font-size:21px}
}
@media (forced-colors:active){
 .tpg .opt input:checked{background:Highlight;border-color:Highlight}
 .tpg .opt:has(input:checked){outline:2px solid Highlight}
}
@media (prefers-reduced-motion:reduce){ .tpg .btn::after{display:none} .tpg .qs.in .tq{animation:none} .tpg .opt,.tpg .tq .qt,.tpg .seg i b,.tpg .lens .af{transition:none} }

@keyframes tpgRun{from{offset-distance:0%}to{offset-distance:100%}}
