/* Inseam & Pant Length Calculator (NS39). Source: sites/needle-tools/tools/inseam-calculator/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-is-seg { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chqt-is-seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chqt-is-seg button { padding: 8px 4px; border-radius: 12px; text-align: center; line-height: 1.2; }
.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 { 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; }
.chqt-pp-tag { display: inline-block; margin-right: 4px; padding: 0 7px; border-radius: 999px; background: var(--chqt-cream); font-size: 12.5px; font-weight: 600; color: var(--chqt-muted); }
/* the brands' lengths: a real table that scrolls in its own box, never the page */
.chqt-is-h { margin-top: 4px; }
.chqt-is-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border: 1px solid var(--chqt-line); border-radius: 10px; background: #fff; }
.chqt-is-brands { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.35; color: var(--chqt-ink); }
.chqt-is-brands th, .chqt-is-brands td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--chqt-line); }
.chqt-is-brands tbody tr:last-child th, .chqt-is-brands tbody tr:last-child td { border-bottom: 0; }
.chqt-is-brands thead th { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--chqt-muted); font-weight: 600; }
/* the width sits on the Why cells, so the pin (which hides them) has a two-column table that fits */
.chqt-is-brands tr > :nth-child(3) { min-width: 170px; }
.chqt-is-brands td[data-out-pick] { font-weight: 700; white-space: nowrap; }
.chqt-is-brands td a { color: var(--chqt-muted); }
.chqt-is-alot { margin-top: 8px; border-left: 4px solid var(--chqt-accent); }
.chqt-result [data-out="hem"][hidden], .chqt-result [data-out="brands-box"][hidden] { display: none; }
/* what inseam means, where the stylists disagree, the brands' words: 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 labels already say */
@media (max-width: 460px) {
  .chqt[data-tool="inseam-calculator"] .chqt-lede { display: none; }
  .chqt-is-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* each brand's reason under its own row: no sideways scroll for the third column */
  .chqt-is-brands thead { display: none; }
  .chqt-is-brands tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--chqt-line); }
  .chqt-is-brands tbody tr:last-child { border-bottom: 0; }
  .chqt-is-brands tbody th, .chqt-is-brands tbody td { border-bottom: 0; }
  .chqt-is-brands td[data-out-pick] { white-space: normal; text-align: right; }
  .chqt-is-brands tbody tr > :nth-child(3) { grid-column: 1 / -1; min-width: 0; padding-top: 0; font-size: 14px; color: var(--chqt-muted); }
}
/* 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; }
}
