/* /labs/ testing-lab directory (src/labs/index.njk, Task #1736).
   Cards rather than one wide table: each lab carries a price list, turnaround
   and notes of very different lengths, and a card reflows to one column on a
   phone without a sideways scroll. */
.labs-intro { padding: 20px 24px; margin: 0 0 22px; }
.labs-intro p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.labs-intro p:last-child { margin-bottom: 0; }

.labs-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin: 0 0 8px; }
.labs-filters .lf { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.labs-filters select { font: inherit; font-weight: 500; font-size: 15px; color: var(--ink); background: var(--field); border: 1px solid var(--field-border); border-radius: 10px; padding: 8px 10px; min-height: 40px; max-width: 100%; }
.labs-filters .lf-check { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.labs-filters .lf-check input { width: 18px; height: 18px; }
.labs-status { font-size: 13px; color: var(--faint); margin: 0 0 14px; min-height: 1em; }

.labs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.lab { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lab[hidden] { display: none; }
.lab-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.lab-name { font-family: var(--sans); font-size: 19px; font-weight: 800; margin: 0; color: var(--ink); }
.lab-site { font-size: 13px; color: var(--accent-text, var(--muted)); overflow-wrap: anywhere; }
.lab-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--muted); }
.lab-chip--independent { color: var(--good-text, var(--good)); background: var(--good-bg); border-color: transparent; }
.lab-chip--vendor_affiliated, .lab-chip--unverifiable { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.lab-chip--ind-yes { color: var(--good-text, var(--good)); background: var(--good-bg); border-color: transparent; }
.lab-flag { margin: 0; font-size: 13.5px; line-height: 1.5; padding: 8px 12px; border-radius: 10px; background: var(--panel-alt); border: 1px solid var(--panel-alt-border); color: var(--muted); }
.lab-flag--warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }

.lab-prices { margin: 0; font-size: 14px; }
.lab-prices div { display: grid; grid-template-columns: 36% 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid var(--hairline); }
.lab-prices dt { font-weight: 700; color: var(--ink); }
.lab-prices dd { margin: 0; overflow-wrap: anywhere; }
.lab-prices .is-unpriced dd { color: var(--faint); }
.lab-packages { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.lab-packages li { overflow-wrap: anywhere; }

.lab-facts { margin: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.lab-facts div { display: grid; grid-template-columns: 36% 1fr; gap: 12px; }
.lab-facts dt { font-weight: 700; color: var(--ink); }
.lab-facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.lab-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--faint); padding-top: 4px; }

.labs-note { font-size: 13.5px; color: var(--faint); margin: 18px 0 0; line-height: 1.55; }
.labs-empty { padding: 32px; text-align: center; color: var(--faint); }
.labs-faq { margin: 44px 0 0; }
.labs-faq h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 14px; }
.labs-q { padding: 14px 20px; margin: 0 0 10px; }
.labs-q summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.labs-q p { margin: 10px 0 2px; color: var(--muted); line-height: 1.6; }
.labs-disclaimer { margin: 28px 0 48px; padding: 16px 20px; font-size: 13.5px; color: var(--faint); }
.labs-disclaimer p { margin: 0; }

@media (max-width: 480px) {
  .lab { padding: 16px; }
  .lab-facts div { grid-template-columns: 1fr; gap: 0; }
  .labs-filters .lf { flex: 1 1 140px; }
  .labs-filters select { width: 100%; }
}

/* Lab checklist (#2003): three states, no scores or grades. "gap" covers both
   "could not confirm" and "found a problem"; the words carry the difference. */
.lab-checks h3 { font-size: 13px; font-weight: 800; letter-spacing: .02em; margin: 0 0 6px; color: var(--ink); }
.lab-checks ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.chk { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--hairline); line-height: 1.45; }
.chk-label { color: var(--ink); font-weight: 600; }
.chk-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.chk-mark { width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.chk--met .chk-state { color: var(--good-text, var(--good)); }
.chk--met .chk-mark { background: currentColor; }
.chk--gap .chk-state { color: var(--warn); }
.chk--gap .chk-mark { border-radius: 2px; }
.chk--unchecked .chk-state { color: var(--faint); }
.chk--unchecked .chk-mark { border-style: dotted; }
.chk-detail { grid-column: 1 / -1; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.chk-when, .chk-none { margin: 8px 0 0; font-size: 12.5px; color: var(--faint); }
.chk-none { margin: 0; }
@media (max-width: 480px) { .chk { grid-template-columns: 1fr; } }
