/* CalcThat Q&A answer formats + photo figure (plan qa-hub-v2 §4.1, §5, §6.4). project-qa only; loaded by /questions/.
   Phone first (375 px): text ≥16 px, tap targets ≥48 px, figures full-bleed under 600 px. Light mode only.
   Uses the style.css tokens; components follow the approved v2 design (plan qa-hub-v2). */

/* Answer meta lines at phone size */
.article p.qa-kind, .article p.qa-sample, .article p.qa-sources, .article .qa-asof, .article p.qa-quick { font-size: 16px; }
/* in-sentence links (sources, the onward link line) are exempt from the 48 px target rule; standalone controls get 48 px */
.article .qa-copy { min-width: 48px; min-height: 48px; }
.article .qa-group p, .article .qa-group li { font-size: 16px; } /* site prose is 15.5 px; answers ≥16 px on phones */
.article p.qa-verdict { font-size: 17px; }

/* Photo figure (credit always under the image) */
.qa-photo { margin: 1.1rem 0; }
.qa-photo img { width: 100%; height: auto; border-radius: var(--radius-md); background: var(--green-100); }
.qa-photo figcaption { font-size: 16px; color: var(--text); margin-top: 8px; line-height: 1.45; }
.qa-credit { display: block; color: var(--muted); margin-top: 2px; }
.article .qa-credit a { color: var(--muted); }

/* Chart / diagram frame */
.qa-fig { margin: 1.1rem 0; padding: 14px 16px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); }
.article p.qa-fig-title { font-weight: 700; font-size: 16px; margin: 0 0 8px; color: var(--green-900); }
.qa-chart-pending { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  border: 2px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 16px; }

/* Drawn chart (A1, 2026-11-21): one table per group; label, an SVG bar scaled to the group's largest value, the value under it.
   Every bar track is the full cell width, so bar lengths compare across rows (a value beside the bar shrank each track by its own width). */
.qa-bars { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 16px; }
.qa-bars caption { text-align: left; caption-side: top; color: var(--muted); font-size: 16px; padding: 0 0 6px; }
.qa-bars th { text-align: left; font-weight: 400; text-transform: none; letter-spacing: normal; vertical-align: middle; padding: 5px 10px 5px 0; width: 42%; line-height: 1.3; }
.qa-bars td { padding: 5px 0; vertical-align: middle; }
.qa-bar-w { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.qa-bar { width: 100%; height: 14px; display: block; }
.qa-bar rect { fill: var(--green-700, #3f6b3a); }
.qa-bar rect.qa-bar-r { fill: var(--text, #1f2a1f); }
.qa-bar-v { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--green-900); }
.qa-bars tr + tr th, .qa-bars tr + tr td { border-top: 1px solid var(--line); }
.article p.qa-chart-desc { font-size: 16px; color: var(--muted); margin: 0; }
@media (max-width: 480px) { .qa-bars th { width: 38%; font-size: 16px; } .qa-bar-v { font-size: 16px; } }

/* Diagram: vertical chain of nodes with arrows; cycle adds a "back to step 1" line */
.article .qa-nodes { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.article .qa-nodes li { counter-increment: n; position: relative; margin: 0 0 22px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; }
.qa-nodes li:last-child { margin-bottom: 0; }
.qa-nodes li strong { display: block; color: var(--green-900); }
.qa-diagram--steps .qa-nodes li strong::before, .qa-diagram--cycle .qa-nodes li strong::before { content: counter(n) ". "; }
.qa-nodes li:not(:last-child)::after { content: "\2193"; position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%); color: var(--green-700); font-weight: 700; line-height: 1; font-size: 18px; }
.article p.qa-cycle-back { margin: 12px 0 0; font-size: 16px; color: var(--green-900); font-weight: 600; }

/* By the numbers: stat cards */
.article ul.qa-stats { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.qa-stats li { margin: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qa-stats .n { font-size: 30px; font-weight: 800; color: var(--green-900); line-height: 1.1; }
.qa-stats .u { font-size: 18px; font-weight: 700; color: var(--green-700); margin-left: 4px; }
.qa-stats .m { display: block; font-size: 16px; margin-top: 4px; }
.qa-stats .s { display: block; font-size: 16px; color: var(--muted); margin-top: 4px; }
/* the counterpoint ("but") card: a labelled card with an amber rule (brief accent), never red: red = data errors only (QHS rule) */
.qa-stats li.qa-but { border-color: var(--amber); box-shadow: inset 4px 0 0 var(--amber); }
.qa-stats .qa-but .k { display: block; font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
/* By-the-numbers region row: one compact line per region on phones, a row of tiles from 600 px */
.article ul.qa-region-row { list-style: none; margin: 1rem 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.qa-region-row li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 16px; }
.qa-region-row li:first-child { border-top: 0; }
.qa-region-row .r { font-weight: 700; color: var(--green-900); }
.qa-region-row .n { font-weight: 800; color: var(--green-900); text-align: right; }
.qa-region-row .m, .qa-region-row .s { grid-column: 1 / -1; color: var(--muted); }
.article .qa-region-row .s a, .article .qa-stats .s a,.article .qa-do .s a, .article .qa-fn a, .article .qa-one-stat .s a { color: var(--muted); }

/* Myth vs fact: claim card; the label carries text + icon, never colour alone */
.qa-myth { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--card); }
.article p.qa-myth-claim { margin: 0; padding: 14px 16px; background: #f3efe4; }
.qa-myth-claim .k { display: block; font-size: 16px; color: var(--muted); font-weight: 700; }
.qa-myth-claim q { display: block; font-size: 19px; font-weight: 700; margin-top: 4px; quotes: "\201C" "\201D"; }
.article p.qa-myth-grade { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-weight: 800; font-size: 17px; color: var(--green-900); }
.qa-myth-grade svg { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qa-myth-grade .lbl { padding: 2px 12px; border: 2px solid var(--green-900); border-radius: 999px; }

/* Comparison card: the data table becomes one card per row on phones (calculator.css) */
.qa-cmp .data-table thead th:nth-child(2) { background: var(--green-100); }
.qa-cmp .data-table thead th:nth-child(3) { background: var(--clay-bg); color: var(--clay-deep); }
.article .qa-cmp .data-table th, .article .qa-cmp .data-table td { font-size: 16px; }

/* Region table / comparison at phone size: ≥16 px */
.article .qa .data-table th, .article .qa .data-table td, .article .qa .data-table td::before { font-size: 16px; }

/* Timeline */
.article ol.qa-tl { list-style: none; margin: 1rem 0; padding: 0 0 0 6px; }
.qa-tl li { position: relative; margin: 0; padding: 0 0 14px 24px; border-left: 2px solid var(--green-200); font-size: 16px; }
.qa-tl li:last-child { padding-bottom: 0; }
.qa-tl li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--green-700); }
.qa-tl .t { display: block; font-weight: 800; color: var(--green-900); }
.qa-tl li.hl::before { background: var(--clay); border-color: var(--clay-deep); }
.qa-tl li.hl .t { color: var(--clay-deep); }

/* How we know: evidence lines */
.article ul.qa-ev { list-style: none; margin: 1rem 0; padding: 0; }
.qa-ev li { margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--green-700); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 16px; }
.qa-ev .d { display: block; font-size: 16px; color: var(--muted); margin-top: 4px; }
.article p.qa-uncertain { padding: 10px 14px; background: var(--amber-bg); border-radius: var(--radius-sm); }

/* What you can do: checklist */
.article ol.qa-do { list-style: none; margin: 1rem 0; padding: 0; }
.qa-do li { position: relative; margin: 0 0 12px; padding: 0 0 0 34px; font-size: 16px; }
.qa-do li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 18px; height: 18px; border: 2px solid var(--green-700); border-radius: 4px; }
.qa-do li strong { display: block; color: var(--green-900); }
.qa-do .s { color: var(--muted); }
.article p.qa-total { padding: 10px 14px; background: var(--green-100); border-radius: var(--radius-sm); }

/* Photo-led: one stat */
.article p.qa-one-stat { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); }
.qa-one-stat .n { font-size: 30px; font-weight: 800; color: var(--green-900); line-height: 1.1; }
.qa-one-stat .s { color: var(--muted); }

/* Phones: figures full-bleed (the content gutter is 18 px) */
@media (max-width: 599.98px) {
  .qa-photo, .qa-fig { margin-left: -18px; margin-right: -18px; }
  .qa-photo img { border-radius: 0; }
  .qa-photo figcaption { padding: 0 18px; }
  .qa-fig { border-radius: 0; border-left: 0; border-right: 0; padding: 12px 18px; }
}
@media (min-width: 600px) {
  .article ul.qa-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
/* Hub index + cluster pages (2026-10-21): topic chips, topic grid, latest fact checks, question index */
.qa-chips{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:14px 0 6px; }
.qa-chips ul{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; }
.qa-chips li{ margin:0; }
.article .qa-chips a{ display:inline-flex; align-items:center; gap:6px; min-height:48px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:var(--card); font-size:16px; font-weight:600; text-decoration:none; }
.qa-chip-n{ font-weight:400; color:var(--muted); }
.article .qa-chips a.qa-ask-btn{ background:var(--green-700); border-color:var(--green-700); color:#fff; }
.article .qa-topic-grid{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
@media (min-width:600px){ .article .qa-topic-grid{ grid-template-columns:1fr 1fr; } }
.article .qa-topic-card{ margin:0; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden; }
.qa-topic-card img{ display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
.qa-topic-card > div{ padding:10px 14px 12px; }
.article .qa-topic-card h3{ margin:0 0 2px; font-size:18px; }
.article p.qa-topic-n{ margin:0 0 6px; color:var(--muted); font-size:16px; }
.article .qa-topic-card ul{ margin:0; padding-left:1.1em; }
.article .qa-topic-card li, .article .qa-start-list li, .article .qa-latest li, .article .qa-index li{ font-size:16px; margin-bottom:.5em; }
.qa-latest-meta{ display:block; color:var(--muted); font-size:16px; }
.article .qa-index h3{ font-size:18px; scroll-margin-top:80px; }
.article .qa-more li{ font-size:16px; }
.qa-head h2{ margin:0; padding-top:10px; font-size:19px; }

/* jump chips: 16 px text, 48 px targets on cluster pages (2026-10-21) */
.article .qa-jump a{ font-size:16px; min-height:48px; padding:6px 16px; border-radius:24px; }

/* Hub search (plan §6.2 item 2, 2026-10-21): label + 48 px field; results appear only after typing (user-initiated, no
   load-time shift); hidden without JS (the question index below is the fallback). */
.qa-search{ margin:16px 0 8px; }
.article .qa-search label{ display:block; font-size:16px; font-weight:700; color:var(--green-900); margin-bottom:6px; }
.qa-search input{ box-sizing:border-box; width:100%; min-height:48px; padding:10px 14px; font:inherit; font-size:16px; color:var(--text);
  background:var(--card); border:2px solid var(--line); border-radius:var(--radius-sm); }
.qa-search input:focus-visible{ outline:3px solid var(--green-700); outline-offset:2px; border-color:var(--green-700); }
.article p.qa-count{ margin:6px 0 0; font-size:16px; color:var(--muted); }
.article p.qa-count:empty{ margin:0; }
.article ul.qa-results{ list-style:none; margin:4px 0 0; padding:0; }
.article ul.qa-results:empty{ display:none; }
.article .qa-results li{ margin:0; border-top:1px solid var(--line); font-size:16px; }
.article .qa-results a{ display:block; padding:10px 0 2px; min-height:24px; font-weight:600; }
.qa-res-meta{ display:block; padding-bottom:10px; color:var(--muted); font-size:16px; }
.article p.qa-none{ margin:8px 0 0; font-size:16px; }
.article .qa-none a{ display:inline-flex; align-items:center; min-height:48px; }
@media (scripting: none){ .qa-search{ display:none; } }

/* Tags + related questions under each answer (plan §6.2 "Tags") */
.qa-meta{ margin:-4px 0 28px; padding:10px 0 0; border-top:1px dashed var(--line); }
.article p.qa-tags{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 8px; font-size:16px; }
.article .qa-meta-k{ font-size:16px; font-weight:700; color:var(--muted); margin:0 4px 0 0; }
.article p.qa-meta-k{ margin:8px 0 2px; }
.article .qa-tags a{ display:inline-flex; align-items:center; min-height:48px; padding:0 14px; border:1px solid var(--line); border-radius:999px;
  background:var(--card); font-size:16px; text-decoration:none; }
.article ul.qa-related{ list-style:none; margin:0; padding:0; }
.article .qa-related li{ margin:0; font-size:16px; }
.article .qa-related a{ display:flex; align-items:center; min-height:48px; padding:4px 0; }

/* phone-first pass (2026-10-21): hub lists and cluster links as 48 px rows (standalone links, not in sentences) */
.article .qa-topic-card li, .article .qa-start-list li, .article .qa-latest li, .article .qa-index li, .article .qa-more li{ margin:0; }
.article .qa-topic-card li > a, .article .qa-start-list li > a, .article .qa-latest li > a, .article .qa-index li > a, .article .qa-more li > a{ display:block; padding-block:12px; }
.article .qa-latest li > .qa-latest-meta, .article .qa-index li > .qa-latest-meta{ margin:-8px 0 8px; }
.article .qa-index h3 a, .article .qa-topic-card h3 a{ padding-block:12px; } /* inline padding: 48 px hit area */
.article .qa-latest p, .article .qa-latest li{ font-size:16px; }
.article .qa-hub > section > p{ font-size:16px; }
.article .qa-start-list li:last-child{ padding-block:12px; } /* "Or put your own bill into the …" is a sentence: its link stays inline */
.article .qa-start-list li:last-child > a{ display:inline; padding:0; }
