/* =================================================================
   c-qa: the design QA checklist, playable.
   Top: the end of the design board (a QA column with the ticket, a Done column) and a summary.
   Below: the checklist in sections, each with its progress. Once every required section is
   complete, the ticket can move to Done.
   Wide screens: an index of sections on the left, the open section on the right.
   Narrow screens: an accordion. Without JS: every section open, one after the other.
   ================================================================= */
.c-qa{
  --c-ink:var(--ink,#161616);
  --c-ink2:var(--ink-2,#55575B);
  --c-rule:var(--rule,#C8CACE);
  --c-field:var(--field,#EEEFF1);
  --c-paper:var(--paper,#FFFFFF);
  --c-spot:var(--spot,#2852D6);
  --c-tint:var(--spot-tint,#E8EEFF);
  --c-eo:var(--ease-out,cubic-bezier(.23,1,.32,1));
  --c-eio:var(--ease-in-out,cubic-bezier(.77,0,.175,1));
  --c-mono:var(--mono,"Atkinson Hyperlegible Mono",ui-monospace,monospace);
  position:relative;
  font-family:var(--font,"Atkinson Hyperlegible Next",Verdana,sans-serif);
  color:var(--c-ink);
  font-size:16px;
  line-height:1.45;
}
.c-qa *,.c-qa *::before,.c-qa *::after{box-sizing:border-box}
.c-qa p{margin:0;max-width:none}
.c-qa__sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- top: the end of the board, the actions, the summary ---------- */
/* wide screens: the board on the left; counts, actions and hint on the right */
.c-qa__top{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-areas:"board req" "board opt" "board acts" "board hint" "board .";grid-template-rows:auto auto auto auto 1fr;align-items:start;align-content:center;column-gap:40px;padding:0 0 26px;border-bottom:2px solid var(--c-ink)}
.c-qa__head,.c-qa__sum{display:contents}
.c-qa__sentinel{position:absolute;width:1px;height:1px;pointer-events:none}
.c-qa__board{grid-area:board;align-self:center;display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:stretch}
.c-qa__req{grid-area:req}
.c-qa__opt{grid-area:opt}
.c-qa__acts{grid-area:acts}
.c-qa__hint{grid-area:hint}
.c-qa__tray{display:flex;flex-direction:column;min-width:0;padding:10px 12px 12px;border-radius:12px;background:var(--c-field)}
.c-qa__tray-h{margin:0 0 9px 2px!important;font-family:var(--c-mono);font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:var(--c-ink2)}
.c-qa__slot{position:relative;flex:1;display:grid}
.c-qa__slot > *{grid-area:1 / 1}
/* an empty place in a column: dashed; the Done column shows a lock until the required sections are complete */
.c-qa__ghost{display:grid;place-items:center;border:1.5px dashed var(--c-rule);border-radius:8px;color:var(--c-ink2)}
.c-qa__lock{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.c-qa__shackle{transform-origin:10.6px 7px}
.c-qa.is-ready .c-qa__shackle{transform:translateY(-1.6px) rotate(24deg)}
.c-qa.is-ready .c-qa__slot--done .c-qa__ghost{border-color:var(--c-ink2);color:var(--c-ink)}
.c-qa__arr{align-self:center;justify-self:center;width:30px;height:12px;fill:none;stroke:var(--c-rule);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.c-qa.is-ready .c-qa__arr{stroke:var(--c-ink)}

/* the ticket */
.c-qa__card{position:relative;z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"i t z" "m m m";align-items:center;gap:0 8px;min-width:0;padding:10px 12px 12px;border:1.5px solid var(--c-ink);border-radius:8px;background:var(--c-paper)}
.c-qa__type{grid-area:i;width:16px;height:16px;fill:none;stroke:var(--c-ink);stroke-width:1.4;stroke-linecap:round}
.c-qa__card-t{grid-area:t;min-width:0;font-size:14.5px;font-weight:700;line-height:1.25}
.c-qa__lz{grid-area:z;display:grid;font-family:var(--c-mono);font-size:11px;font-weight:600;line-height:1.2;letter-spacing:.06em;text-transform:uppercase}
.c-qa__lz > span{grid-area:1 / 1;padding:2px 6px 1px;border:1px solid var(--c-ink);border-radius:3px;text-align:center}
.c-qa__lz-done{background:var(--c-ink);color:var(--c-paper);opacity:0}
.c-qa.is-done .c-qa__lz-done{opacity:1}
.c-qa.is-done .c-qa__lz-qa{opacity:0}
.c-qa__card-m{grid-area:m;display:flex;align-items:center;gap:10px;margin-top:11px!important;font-size:13px;font-weight:600;line-height:1.2;color:var(--c-ink2)}
.c-qa__card-l{flex:none}
.c-qa__bar{flex:1;min-width:20px;height:6px;border-radius:3px;background:var(--c-field);overflow:hidden}
.c-qa__bar i{display:block;height:100%;background:var(--c-ink);transform:scaleX(var(--v,0));transform-origin:left center}
.c-qa__card-n{flex:none;color:var(--c-ink);font-variant-numeric:tabular-nums}

/* counts, actions, hint */
.c-qa__req{font-size:18px;font-weight:600;line-height:1.3}
.c-qa__req .c-qa__n{font-weight:800;font-variant-numeric:tabular-nums}
.c-qa__opt{margin-top:3px!important;font-size:15px;line-height:1.35;color:var(--c-ink2)}
.c-qa__opt .c-qa__n{font-weight:700;color:var(--c-ink);font-variant-numeric:tabular-nums}
.c-qa__acts{display:none;flex-wrap:wrap;gap:10px;margin-top:14px}
html.js .c-qa__acts{display:flex}
.c-qa__btn{display:inline-flex;align-items:center;min-height:44px;padding:10px 17px;border:1.5px solid var(--c-ink);border-radius:0;background:var(--c-paper);color:var(--c-ink);font:600 16px/1.2 var(--font,inherit);cursor:pointer;-webkit-tap-highlight-color:transparent}
.c-qa__btn:focus-visible{outline:2px solid var(--c-spot);outline-offset:2px}
.c-qa__mv{display:grid;text-align:left}
.c-qa__mv-l{grid-area:1 / 1}
.c-qa__mv-l--moved,.c-qa.is-done .c-qa__mv-l--move{visibility:hidden}
.c-qa.is-done .c-qa__mv-l--moved{visibility:visible}
/* locked until the required sections are complete; ink once it can be used */
.c-qa__move[aria-disabled="true"]{border-color:var(--c-rule);color:var(--c-ink2);cursor:not-allowed}
.c-qa.is-ready:not(.is-done) .c-qa__move{background:var(--c-ink);border-color:var(--c-ink);color:var(--c-paper)}
.c-qa__hint{margin-top:10px!important;font-size:14.5px;line-height:1.45;color:var(--c-ink2)}
.c-qa.is-nudge .c-qa__hint{color:var(--c-ink)}

/* ---------- the checklist ---------- */
.c-qa__list{margin-top:4px}
.c-qa .c-qa__h{margin:0;font-size:inherit;font-weight:inherit;line-height:inherit}
.c-qa__tab{appearance:none;-webkit-appearance:none;display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:4px 12px;width:100%;min-height:56px;margin:0;padding:12px 12px 12px 6px;border:0;border-bottom:1px solid var(--c-rule);border-radius:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:default;-webkit-tap-highlight-color:transparent}
html.js .c-qa__tab{cursor:pointer}
.c-qa__tab:focus-visible{outline:2px solid var(--c-spot);outline-offset:-2px}
.c-qa__k{position:relative;display:grid;place-items:center;width:26px;height:26px;border:1.6px solid var(--c-ink);border-radius:50%;font-size:13.5px;font-weight:700;font-variant-numeric:tabular-nums}
.c-qa__k .c-qa__ck{position:absolute;inset:4px;width:auto;height:auto;opacity:0}
.c-qa__sec.is-complete .c-qa__k{background:var(--c-ink);color:var(--c-paper)}
.c-qa__sec.is-complete .c-qa__kn{opacity:0}
.c-qa__sec.is-complete .c-qa__k .c-qa__ck{opacity:1;stroke:var(--c-paper)}
.c-qa__name{min-width:0;font-size:16px;font-weight:600;line-height:1.3}
.c-qa__tag{display:inline-block;margin-left:8px;padding:1px 6px 2px;border:1px solid var(--c-rule);border-radius:4px;font-size:12px;font-weight:600;line-height:1.3;color:var(--c-ink2);vertical-align:1px;white-space:nowrap}
.c-qa__meter{display:inline-flex;gap:2px}
.c-qa__meter i{width:7px;height:7px;border:1.25px solid var(--c-rule);border-radius:1.5px}
.c-qa__meter i.on{background:var(--c-ink);border-color:var(--c-ink)}
/* optional checks are round */
.c-qa__sec.is-opt .c-qa__meter i{border-radius:50%}
.c-qa__count{min-width:2.6em;font-size:14px;font-weight:600;color:var(--c-ink2);text-align:right;font-variant-numeric:tabular-nums}
.c-qa__got{color:var(--c-ink)}

/* a section's checks */
.c-qa__items{min-width:0;margin:0;padding:0 0 10px;border:0}
.c-qa__legend{float:left;width:100%;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:16px 0 10px;font-size:20px;font-weight:700;line-height:1.25}
.c-qa__legend .c-qa__tag{font-size:12.5px}
.c-qa__lc{margin-left:auto;font-size:14px;font-weight:600;color:var(--c-ink2);font-variant-numeric:tabular-nums}
.c-qa__legend + *{clear:both}
.c-qa__note{margin:-4px 0 8px!important;font-size:14.5px;line-height:1.45;color:var(--c-ink2)}
.c-qa__ul{list-style:none;margin:0;padding:0}
.c-qa__ul li{margin:0;border-bottom:1px solid var(--c-rule)}
.c-qa__row{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:12px;min-height:46px;padding:11px 4px 11px 2px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.c-qa__row--all{display:none;min-height:44px;border-bottom:1px solid var(--c-ink);font-size:15px;font-weight:600;color:var(--c-ink2)}
html.js .c-qa__row--all{display:grid}
.c-qa__cb{position:absolute;left:2px;top:12px;width:22px;height:22px;margin:0;opacity:0;cursor:pointer}
.c-qa__box{position:relative;display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border:1.5px solid var(--c-ink);border-radius:4px;background:var(--c-paper)}
.c-qa__ck{width:14px;height:14px;fill:none;stroke:var(--c-paper);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.c-qa__box .c-qa__ck{stroke-dasharray:1;stroke-dashoffset:1}
.c-qa__dash{position:absolute;width:10px;height:2px;border-radius:1px;background:var(--c-paper);opacity:0}
.c-qa__cb:checked + .c-qa__box{background:var(--c-ink)}
.c-qa__cb:checked + .c-qa__box .c-qa__ck{stroke-dashoffset:0}
.c-qa__cb:indeterminate + .c-qa__box{background:var(--c-ink)}
.c-qa__cb:indeterminate + .c-qa__box .c-qa__dash{opacity:1}
.c-qa__cb:indeterminate + .c-qa__box .c-qa__ck{stroke-dashoffset:1}
.c-qa__cb:focus-visible + .c-qa__box{outline:2px solid var(--c-spot);outline-offset:2px}
.c-qa__t{font-size:16px;line-height:1.45;padding-top:1px}
.c-qa__row--all .c-qa__t{font-size:15px}
.c-qa__next{display:none;width:fit-content;max-width:100%;min-height:44px;margin:8px 0 0 auto;padding:11px 2px 9px;border:0;background:transparent;color:var(--c-ink);font:600 15px/1.35 var(--font,inherit);text-align:right;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.js .c-qa__next{display:block}
.c-qa__nw{white-space:nowrap}
.c-qa__next:focus-visible{outline:2px solid var(--c-spot);outline-offset:2px}
.c-qa__nx{display:inline-block;vertical-align:0;margin-left:8px;width:21px;height:10px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* without JS: the section heads are plain headings, every section is open */
html:not(.js) .c-qa__tab{min-height:0;padding:22px 0 8px;border-bottom:0}
html:not(.js) .c-qa__meter,html:not(.js) .c-qa__count{display:none}
html:not(.js) .c-qa__legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html:not(.js) .c-qa__ul{border-top:1px solid var(--c-ink)}

/* ---------- with JS, on wide screens: an index of sections, the open one beside it ---------- */
@media (min-width:900px){
  html.js .c-qa__list{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:repeat(var(--rows,7),auto) 1fr;column-gap:40px}
  html.js .c-qa__sec{display:contents}
  html.js .c-qa__h{grid-column:1;grid-row:calc(var(--k) + 1)}
  html.js .c-qa__items{grid-column:2;grid-row:1 / -1;visibility:hidden}
  html.js .c-qa__sec.is-open .c-qa__items{visibility:visible}
  html.js .c-qa__sec.is-open .c-qa__tab{background:var(--c-field)}
  html.js .c-qa__sec.is-open .c-qa__name{font-weight:700}
  html.js .c-qa__sec.is-open .c-qa__k{border-color:var(--c-spot);color:var(--c-spot);background:var(--c-tint)}
  html.js .c-qa__sec.is-open.is-complete .c-qa__k{background:var(--c-ink);border-color:var(--c-ink);color:var(--c-paper)}
}
/* ---------- with JS, on narrow screens: an accordion ---------- */
@media (max-width:899px){
  html.js .c-qa__items{display:none;padding:2px 0 14px 0}
  html.js .c-qa__sec.is-open .c-qa__items{display:block}
  html.js .c-qa__sec.is-open .c-qa__tab{border-bottom-color:transparent;background:var(--c-field)}
  html.js .c-qa__sec.is-open .c-qa__name{font-weight:700}
  html.js .c-qa__legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  html.js .c-qa__note{margin:10px 0 4px!important}
  html.js .c-qa__sec.is-open .c-qa__items{border-bottom:1px solid var(--c-rule)}
  .c-qa__top{display:block;padding:0;border-bottom:0}
  .c-qa__head{display:block}
  .c-qa__sum{display:block;margin-top:14px;padding-bottom:22px;border-bottom:2px solid var(--c-ink)}
  .c-qa__acts{margin-top:12px}
  .c-qa__tab{grid-template-columns:28px minmax(0,1fr) auto;padding-right:8px}
  .c-qa__meter{display:none}
}
/* with JS, on a narrow screen tall enough, the head (the two columns and the actions) stays in view while the checklist scrolls */
@media (max-width:899px) and (min-height:700px){
  html.js .c-qa__top{display:contents}
  html.js .c-qa__head{position:sticky;top:0;z-index:5;margin:0 -2px;padding:6px 2px 12px;background:var(--c-paper)}
  html.js .c-qa__head.is-stuck{border-bottom:1px solid var(--c-rule)}
  html.js .c-qa__sum{margin-top:2px}
}
@media (max-width:599px){
  .c-qa__board{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr)}
  .c-qa__arr{width:22px}
  .c-qa__tray{padding:9px 9px 10px;border-radius:10px}
  .c-qa__card{grid-template-columns:16px auto minmax(0,1fr);grid-template-areas:"i t t" "z z m";gap:8px 7px;padding:9px 9px 10px}
  .c-qa__bar{display:none}
  .c-qa__card-t{font-size:13.5px}
  .c-qa__card-m{gap:7px;margin-top:0!important;font-size:12.5px}
  .c-qa__card-l{display:none}
  .c-qa__next{margin-left:0;text-align:left}
  .c-qa__req{font-size:17px}
  .c-qa__t{font-size:15.5px}
}
@media (max-width:359px){
  .c-qa__type{display:none}
  .c-qa__card{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"t t" "z m"}
  .c-qa__btn{padding-left:13px;padding-right:13px;font-size:15px}
}

/* ---------- pointer devices only ---------- */
@media (hover:hover) and (pointer:fine){
  html.js .c-qa__tab:hover .c-qa__nm,.c-qa__next:hover{text-decoration:underline;text-underline-offset:3px}
  .c-qa__row:hover .c-qa__box{background:var(--c-field)}
  .c-qa__row:hover .c-qa__cb:checked + .c-qa__box,.c-qa__row:hover .c-qa__cb:indeterminate + .c-qa__box{background:var(--c-ink)}
  .c-qa__btn:not([aria-disabled="true"]):hover{text-decoration:underline;text-underline-offset:3px}
}

/* ---------- motion ---------- */
.motion .c-qa__box,.motion .c-qa__meter i,.motion .c-qa__k,.motion .c-qa__kn,.motion .c-qa__k .c-qa__ck,.motion .c-qa__tab{transition:background-color 180ms var(--c-eo),border-color 180ms var(--c-eo),color 180ms var(--c-eo),opacity 180ms var(--c-eo)}
.motion .c-qa__box .c-qa__ck{transition:stroke-dashoffset 220ms var(--c-eo)}
.motion .c-qa__dash{transition:opacity 160ms var(--c-eo)}
.motion .c-qa__bar i{transition:transform 360ms var(--c-eo)}
.motion .c-qa__move,.motion .c-qa__arr,.motion .c-qa__hint,.motion .c-qa__ghost{transition:background-color 220ms var(--c-eo),border-color 220ms var(--c-eo),color 220ms var(--c-eo),stroke 220ms var(--c-eo)}
.motion .c-qa__shackle{transition:transform 260ms var(--c-eo)}
.motion .c-qa__btn:active:not([aria-disabled="true"]){transform:scale(.97)}
.motion .c-qa__btn{transition:transform 140ms var(--c-eo),background-color 220ms var(--c-eo),border-color 220ms var(--c-eo),color 220ms var(--c-eo)}
/* the ticket slides between the columns (FLIP, set by the script); its status changes once it lands */
.motion .c-qa__card{transition:transform 600ms var(--c-eio)}
.motion .c-qa__lz > span{transition:opacity 200ms var(--c-eo) 380ms}
/* entrance (once): the columns, then the sections */
.motion .c-qa:not(.in) :is(.c-qa__tray,.c-qa__sum){opacity:0;transform:translateY(8px)}
.motion .c-qa:not(.in) .c-qa__h{opacity:0;transform:translateY(6px)}
.motion .c-qa.in:not(.is-settled) :is(.c-qa__tray,.c-qa__sum){transition:opacity 600ms var(--c-eo),transform 600ms var(--c-eo)}
.motion .c-qa.in:not(.is-settled) .c-qa__tray--done{transition-delay:90ms}
.motion .c-qa.in:not(.is-settled) .c-qa__sum{transition-delay:180ms}
.motion .c-qa.in:not(.is-settled) .c-qa__h{transition:opacity 500ms var(--c-eo),transform 500ms var(--c-eo);transition-delay:calc(220ms + var(--k,0) * 45ms)}

@media print{
  .c-qa__acts,.c-qa__next,.c-qa__row--all{display:none!important}
  html.js .c-qa__list{display:block}
  html.js .c-qa__sec{display:block}
  html.js .c-qa__items{display:block!important;visibility:visible!important}
}

/* ---------- dark theme: the page's own drawing, in light ink on dark paper ---------- */
@media screen{
  html[data-theme="dark"] .c-qa{--c-tint:var(--spot-tint,#1D2440)}
}
