/* Will It Shrink? (NS70). Source: sites/needle-tools/tools/will-it-shrink/tool.css. The segments, quoted lines, folded boxes and
   the phone peek are the Engagement Photo Outfit Planner's (.chqt-fp-seg, .chqt-wg-*, .chqt-iv-more, .chqt-ns-peek), copied: each
   tool page loads only its own tool.css. */
.chqt-fp-seg { display: grid; gap: 6px; }
.chqt-fp-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chqt-fp-seg button { padding: 8px 4px; border-radius: 12px; text-align: center; line-height: 1.2; }
/* fabric and setting buttons: the name, and under it what it covers */
.chqt-ws-fab button, .chqt-ws-set button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; }
.chqt-ws-fab small, .chqt-ws-set small { font-size: 12.5px; font-weight: 500; line-height: 1.25; opacity: .85; }
.chqt-field[hidden] { display: none; }
/* the verdict's colour: likely (2), a little (1), unlikely (0) */
.chqt[data-tool="will-it-shrink"] .chqt-result[data-level="2"] .chqt-answer { color: #9b2c1f; }
.chqt[data-tool="will-it-shrink"] .chqt-result[data-level="1"] .chqt-answer { color: #7a4d00; }
.chqt[data-tool="will-it-shrink"] .chqt-result[data-level="0"] .chqt-answer { color: #2f5f2a; }
/* every wash × dryer for the fabric */
.chqt-ws-chart { margin: 4px 0 0; background: #fff; border: 1px solid var(--chqt-line); border-radius: 12px; padding: 8px; overflow-x: auto; }
.chqt-ws-grid { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 14px; table-layout: fixed; }
.chqt-ws-grid caption { text-align: left; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--chqt-muted); font-weight: 600; padding: 0 4px 4px; }
.chqt-ws-grid th { font-weight: 600; color: var(--chqt-ink); padding: 2px 4px; text-align: center; line-height: 1.2; }
.chqt-ws-grid th[scope="row"] { text-align: left; width: 22%; }
.chqt-ws-grid td { text-align: center; padding: 8px 4px; border-radius: 8px; font-weight: 600; line-height: 1.2; border: 2px solid transparent; }
.chqt-ws-grid td small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.chqt-ws-l0 { background: #e3f1df; color: #24501f; }
.chqt-ws-l1 { background: #fbefd2; color: #6b4300; }
.chqt-ws-l2 { background: #f8dcd6; color: #84261b; }
.chqt-ws-grid td.chqt-ws-you { border-color: var(--chqt-ink); }
/* the quoted lines */
.chqt-wg-box a { color: var(--chqt-ink); }
.chqt-wg-box { background: #fff; border: 1px solid var(--chqt-line); border-radius: 10px; padding: 10px 12px; }
.chqt-wg-h { margin: 0 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--chqt-muted); font-weight: 600; }
.chqt-wg-r + .chqt-wg-h, .chqt-ws-steps + .chqt-wg-h { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--chqt-line); }
.chqt-wg-r + .chqt-wg-r { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--chqt-line); }
.chqt-wg-rl { margin: 0 0 4px; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.chqt-wg-q { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.45; color: var(--chqt-ink); }
.chqt-wg-q li + li { margin-top: 3px; }
/* the unshrink steps, numbered */
.chqt-ws-steps { margin: 0; padding-left: 22px; }
.chqt-ws-steps > li + li { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--chqt-line); }
.chqt-ws-steps .chqt-wg-r { margin: 0; padding: 0; border: 0; }
/* why clothes shrink, where the guides differ: folded, with a thumb-sized summary */
.chqt-iv-more { background: #fff; border: 1px solid var(--chqt-line); border-radius: 12px; padding: 0 12px; }
.chqt-iv-more[hidden] { display: none; }
.chqt-iv-more > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--chqt-ink); }
.chqt-iv-more[open] { padding-bottom: 12px; }
.chqt-iv-more .chqt-wg-box { border: 0; padding: 0; }
/* NS75: the answer on the first phone screen — phones skip the lede, which the legends already say */
@media (max-width: 460px) {
  .chqt[data-tool="will-it-shrink"] .chqt-lede { display: none; }
  .chqt-ws-grid { font-size: 13px; border-spacing: 3px; }
}
/* NS75: on phones the answer shows in one tappable line under the first question (the full answer is below) */
.chqt-ns-peek { display: none; }
@media (max-width: 460px) {
  .chqt-ns-peek { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; font: inherit; text-align: left; cursor: pointer; border: 0; border-left: 4px solid var(--chqt-accent); border-radius: 10px; background: var(--chqt-cream); color: var(--chqt-ink); }
  .chqt-ns-peek small { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--chqt-muted); }
  .chqt-ns-peek b { font-size: 18px; line-height: 1.25; }
  .chqt-ns-peek[hidden] { display: none; }
}
