/* Self-assessments: sits on the site.css tokens. Reuses .qrow, .qtop, .qtext, .seg, .qnext, .qres from site.css. */
.qn { color: var(--ink-3); }
.figs { display: grid; gap: 12px; margin-top: 14px; max-width: 34em; }
.figs label { display: grid; gap: 6px; }
.acount { padding-left: 20px; margin: 0 0 20px; }
.acount li { margin-bottom: 6px; }
.aweak { border-left: 2px solid var(--gap); padding-left: 18px; margin: 0 0 22px; max-width: 40em; }
.alinks { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 8px 0 22px; }
.arow { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 22px; max-width: none; }
.optin { border: 1px solid var(--line); padding: 16px 18px; margin: 0 0 22px; max-width: 40em; }
.optin label { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; margin-bottom: 12px; }
.optin input[type=checkbox] { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.optin .btn { height: auto; padding: 14px 22px; line-height: 1.3; text-align: left; }
.qrow .field { min-height: 44px; }
/* text inputs get the same 2px outline as the buttons (site.css :focus-visible), not only the 1px shadow */
.field:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
#a-res h3 { margin-top: 28px; }
.assess-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
@media (max-width: 560px) { .arow .chip { flex: 1 1 100%; } }
@media print {
  .qgroup, .assess-act, .optin, .arow, .ex-step:not(#a-res), .nav, .foot, #notes { display: none !important; }
  #a-res { display: block !important; }
  #a-res[hidden] { display: none !important; }
}
[hidden] { display: none !important; }
/* the page fills in from script (hidden by default, not via html.js, which is added after first paint; a noscript style undoes it): keep the article, rail and footer out of the first paint so nothing visibly shifts */
body:not(.a-ready) :is(article, #notes, .foot) { visibility: hidden; animation: a-fallback 0s linear 1.5s forwards; }
/* if assess.js throws, body never gets a-ready: show the page after 1.5s anyway (visibility only, no layout change, so CLS stays 0; zero-length, so reduced motion is respected) */
@keyframes a-fallback { to { visibility: visible; } }
/* inner QC 2026-10-28: the opening line after the title gets the same air as the lede on the other tool; Justin's line under a question sits clear of it; the closing row and footnote get room before the rule */
#a-h + p { margin-top: 28px; }
.qrow > p.k { margin: 8px 0 0; }
.assess-act { margin-bottom: 40px; }
#a-disc { margin-top: 0; padding-bottom: 48px; }
/* unchecked opt-in box must read as empty, not ticked */
.optin input[type=checkbox]:not(:checked) { appearance: none; -webkit-appearance: none; background: #fff; border: 2px solid var(--ink-3); border-radius: 3px; }
