/* Article: resources/questions-that-matter. Page-scoped components only (prefix .qtm-). Shared article styles live in site.css. */

/* Question mix figure ------------------------------------------------------------------------- */
.qtm-mix {
  margin: 0; padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--highlight), var(--shadow-sm);
}
.prose > .qtm-mix { margin-top: 1.6em; }
.prose > .qtm-mix + * { margin-top: 1.6em; }
.qtm-mix figcaption { margin: 0 0 14px; font-size: 12.5px; font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qtm-mix-bar { display: flex; gap: 4px; }
.qtm-cell { flex: 1 1 0; min-width: 0; height: 28px; border-radius: 6px; }
.qtm-cell:nth-child(4), .qtm-cell:nth-child(6), .qtm-cell:nth-child(8) { margin-left: 6px; }
.qtm-k1 { background: var(--chart-1); }
.qtm-k2 { background: var(--chart-2); }
.qtm-k3 { background: var(--chart-3); }
.qtm-k4 { background: var(--chart-4); }
.qtm-mix-legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.prose .qtm-mix-legend li + li { margin-top: 0; }
.qtm-mix-legend li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; align-content: start; }
.qtm-swatch { width: 10px; height: 10px; border-radius: 3px; }
.qtm-count { font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.qtm-label { grid-column: 1 / -1; display: grid; gap: 2px; margin-top: 6px; line-height: 1.35; }
.qtm-label strong { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.qtm-label span { font-size: 13.5px; color: var(--muted); }
@media (min-width: 640px) {
  .qtm-mix-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Keyword versus buyer question table --------------------------------------------------------- */
.qtm-rewrite-wrap {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--highlight), var(--shadow-sm);
}
.prose > .qtm-rewrite-wrap { margin-top: 1.1em; }
.prose > .qtm-rewrite-wrap + * { margin-top: 1.6em; }
.qtm-rewrite { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.qtm-rewrite th {
  padding: 12px 20px; text-align: left; vertical-align: bottom; background: var(--bg-2); border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.qtm-rewrite th:first-child { width: 42%; }
.qtm-rewrite td { padding: 20px; vertical-align: top; }
.qtm-rewrite td:first-child { padding-right: 12px; }
.qtm-rewrite tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.qtm-kw {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  font-size: 14.5px; line-height: 1.35; color: var(--muted);
}
.qtm-kw .icon { flex: none; align-self: flex-start; margin-top: 2.5px; width: 14px; height: 14px; color: var(--faint); }
.qtm-ask {
  display: block; padding: 12px 16px; border: 1px solid var(--accent-line); border-radius: 16px 16px 16px 4px;
  background: var(--accent-soft); color: var(--ink); text-wrap: pretty;
}
@media (max-width: 639px) {
  .qtm-rewrite, .qtm-rewrite tbody, .qtm-rewrite tr, .qtm-rewrite td { display: block; width: 100%; }
  .qtm-rewrite thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .qtm-rewrite thead tr, .qtm-rewrite thead th { display: block; width: 1px; padding: 0; border: 0; }
  .qtm-rewrite tbody tr { padding: 18px 16px; }
  .qtm-rewrite tbody tr + tr { border-top: 1px solid var(--line-soft); }
  .qtm-rewrite tbody tr + tr td { border-top: 0; }
  .qtm-rewrite td { padding: 0; }
  .qtm-rewrite td + td { margin-top: 14px; }
  .qtm-rewrite td::before {
    content: attr(data-label); content: attr(data-label) / "";
    display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
}

/* Monday checklist ---------------------------------------------------------------------------- */
.qtm-checklist {
  list-style: none; margin: 0; padding: 4px 0; counter-reset: qtm;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--highlight), var(--shadow-sm);
  font-size: .95em; line-height: 1.6;
}
.prose > .qtm-checklist { margin-top: 1.1em; }
.qtm-checklist > li { counter-increment: qtm; position: relative; padding: 16px 20px 16px 64px; }
.prose .qtm-checklist > li + li { margin-top: 0; border-top: 1px solid var(--line-soft); }
.qtm-checklist > li::before {
  content: counter(qtm, decimal-leading-zero);
  position: absolute; left: 20px; top: 15px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
@media (max-width: 479px) {
  .qtm-checklist > li { padding: 14px 16px 14px 54px; }
  .qtm-checklist > li::before { left: 14px; top: 14px; width: 28px; height: 28px; }
}

/* Sources and CTA ----------------------------------------------------------------------------- */
.qtm-src-pub { color: var(--ink-2); font-weight: 500; }
.qtm-src-sep { margin-inline: 2px; color: var(--muted); }
.qtm-sources a:not([class]) { white-space: nowrap; }
