/* Family Photo Outfit Planner (NS124). Source: sites/needle-tools/tools/family-photo-outfits/tool.css. The quoted lines and the
   folded boxes are the Court Outfit's (.chqt-wg-*, .chqt-iv-more), copied: each tool page loads only its own tool.css. */
.chqt-fp-seg { display: grid; gap: 6px; }
.chqt-fp-seg--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chqt-fp-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chqt-fp-seg--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.chqt-fp-pal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chqt-fp-seg button { padding: 8px 4px; border-radius: 12px; text-align: center; line-height: 1.2; }
.chqt-fp-pal button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 6px; }
/* the palette: round swatches with a fine edge (cream on white stays visible) */
.chqt-fp-sws { display: inline-flex; gap: 4px; margin: 0; }
.chqt-fp-sw { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .3); vertical-align: middle; }
.chqt-fp-sws--big { display: flex; margin: 2px 0 6px; }
.chqt-fp-sws--big .chqt-fp-sw { width: 30px; height: 30px; }
.chqt-fp-sw--pt { background: repeating-linear-gradient(45deg, var(--chqt-ink) 0 3px, #fff 3px 6px); background-size: auto; }
/* the family drawn in its colours */
.chqt-fp-fig { margin: 4px 0 0; background: #fff; border: 1px solid var(--chqt-line); border-radius: 12px; padding: 10px 8px 4px; }
.chqt-fp-fig svg { display: block; width: 100%; max-width: 560px; max-height: 170px; height: auto; margin: 0 auto; }
.chqt-fp-people { margin: 0 0 10px; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.chqt-fp-people li { padding-left: 2px; }
.chqt-fp-people li + li { margin-top: 5px; }
.chqt-fp-people .chqt-fp-sw { margin-right: 6px; width: 15px; height: 15px; vertical-align: -2px; }
.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-fp-people + .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 rules, what to skip, where they 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="family-photo-outfits"] .chqt-lede { display: none; }
  .chqt-fp-seg--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chqt-fp-seg--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* 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; }
}
