/* ldu/pages-qa.css: Daniel's Sell-side Q&A logs (qa_logs: the list, one log; 12 Nov 2026).
   Layout and the page's own pieces only; the table, fields, alerts, segmented filters and the modal are the DS components, and the passage and the
   unverified box reuse the grid's (ldu/pages-grid.css). Tokens only (bin/ds-lint). A status is a 6px dot in its tone, as the grid's: draft ready and
   released ok, approved accent, your call danger, not drafted warn, new and drafting neutral. */

.qa__form { display: grid; gap: 16px; max-width: 720px; }
.qa__form-row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .qa__form-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.qa__form .btn { justify-self: start; }
.qa__add > summary { cursor: pointer; }
.qa__add[open] > summary { margin-bottom: 16px; }
.qa__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.qa__filters { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.qa__filters .ldu-seg { width: max-content; max-width: 100%; overflow-x: auto; }

.qa__table td { vertical-align: top; }
.qa__ref { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; color: var(--ink); }
.qa__open { display: block; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.qa__open:hover { text-decoration: underline; }
.qa__open:focus-visible { outline: var(--ring-w) solid var(--ring); outline-offset: 2px; }
.qa__table small { display: block; margin-top: 2px; font-size: var(--fs-meta); }
.qa__stale { color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }

.qa__status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-ui); font-weight: 500; color: var(--ink); white-space: nowrap; }
.qa__status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--qa-tone, var(--ink-3)); }
.qa__status:is([data-status="drafted"], [data-status="released"]) { --qa-tone: var(--ok); }
.qa__status[data-status="approved"] { --qa-tone: var(--accent); }
.qa__status[data-status="needs_daniel"] { --qa-tone: var(--danger); }
.qa__status[data-status="failed"] { --qa-tone: var(--warn); }

.qa__dialog .ldu-modal__body { display: grid; gap: 16px; }
.qa__dialog .ldu-modal__body > p { margin: 0; }
.qa__question { font-weight: 600; color: var(--ink); }
.qa__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.qa__meta small { font-size: var(--fs-meta); }
.qa__approve { display: grid; gap: 12px; }
.qa__approve .btn { justify-self: start; }
.qa__released { display: grid; gap: 8px; padding: 12px 16px; border-radius: var(--r-2); background: var(--bg-2); }
.qa__released p { margin: 0; }

.qa__foot { display: grid; gap: 12px; }
.qa__foot > p { margin: 0; font-weight: 600; color: var(--ink); }
.qa__bidders { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.qa__bidders li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
