/* ============================================================
   Document checks.

   HAND-AUTHORED, NOT TAILWIND, for the same reason as report.css:
   wwwroot/app.css is compiled by hand, is routinely stale, and a utility
   class that has never been built fails SILENTLY - no build error, no
   failing test. That is how both evidence tables shipped for months
   without ever rendering as tables. Nothing here depends on it.

   THIS FILE IS THE PAGE ON SCREEN. print.css carries what changes when it
   becomes paper, the same split the report uses - rather than a third
   stylesheet repeating A4 geometry and the colour-adjust escape.

   THERE IS NO SCORE IN THIS FILE. No bar, no gauge, no ratio, no
   percentage - not even a subtle one. Any of them would be read as a
   confidence number, and a count of rules that happened to pass is not a
   measure of anything. The page states what was checked and what it found.
   ============================================================ */

.chk { max-width: 860px; }

.chk-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
               text-transform: uppercase; color: #64748b; }
.chk-h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 0; }
.chk-lede { font-size: 14px; line-height: 1.55; color: #334155; margin: 8px 0 0; }
.chk-note { font-size: 11.5px; line-height: 1.5; color: #64748b; margin: 8px 0 0; }

/* ---- the headline ---- */
.chk-headline { margin: 22px 0 0; padding: 18px 20px; border-radius: 14px;
                background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
.chk-headline.is-clear { background: #ecfdf5; box-shadow: inset 0 0 0 1px #d1fae5; }
.chk-headline.is-problem { background: #fef2f2; box-shadow: inset 0 0 0 1px #fde3e3; }

.chk-lead { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0; color: #0f172a; }
.chk-headline.is-clear .chk-lead { color: #047857; }
.chk-headline.is-problem .chk-lead { color: #b91f1f; }

/* The problems, named. No bullets: these are sentences, not a shopping
   list, and a disc in front of each makes them read as items to tick off. */
.chk-problems { margin: 10px 0 0; padding: 0; list-style: none; }
.chk-problems li { font-size: 14px; line-height: 1.5; color: #0f172a; margin: 4px 0 0;
                   padding-left: 16px; position: relative; }
.chk-problems li::before { content: '\2715'; position: absolute; left: 0; top: 0;
                           color: #b91f1f; font-size: 11px; line-height: 1.75; }

/* Supporting detail, deliberately after the sentence and deliberately
   small. Counts answer "how much was looked at", never "how good is it". */
.chk-counts { font-size: 11.5px; color: #64748b; margin: 12px 0 0; }

/* ---- groups ---- */
.chk-group { margin: 26px 0 0; }
.chk-group-h { font-size: 15px; font-weight: 600; margin: 0 0 8px;
               padding-bottom: 6px; border-bottom: 1px solid #e9eef4; color: #0f172a; }

/* The whole-group collapse, used ONLY when every rule in it is not
   applicable. The rule names stay on the page: a reader has to be able to
   see WHAT WOULD HAVE BEEN CHECKED, or the line is just an absence. */
.chk-group-na { font-size: 13px; color: #64748b; padding: 10px 0 2px; }
.chk-group-na .chk-would { display: block; font-size: 11.5px; color: #94a3b8; margin-top: 4px; }

/* ---- rows ---- */
.chk-row { display: flex; align-items: flex-start; gap: 10px;
           padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.chk-row:last-child { border-bottom: 0; }

.chk-mark { flex: 0 0 18px; font-size: 12px; line-height: 1.5; text-align: center; }
.chk-body { flex: 1 1 auto; min-width: 0; }

.chk-name { font-size: 13.5px; font-weight: 500; color: #0f172a; }
.chk-status { font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
              text-transform: uppercase; margin-left: 8px; }

/* The Detail string, verbatim. It carries the figures the verdict rested
   on, and a FAIL that does not say what it compared sends a reviewer back
   to the documents. Never truncated, never ellipsised - it wraps. */
.chk-detail { font-size: 12px; line-height: 1.5; color: #475569; margin-top: 2px;
              overflow-wrap: anywhere; }

/* Tones. QUIET IS TYPOGRAPHIC, NOT STRUCTURAL: a not-applicable row is a
   full row in the normal flow, just recessive. Nothing is hidden, because
   a report whose passes are hidden cannot serve as evidence that anything
   was checked. */
.chk-pass .chk-mark,        .chk-pass .chk-status        { color: #047857; }
.chk-fail .chk-mark,        .chk-fail .chk-status        { color: #b91f1f; }
.chk-unchecked .chk-mark,   .chk-unchecked .chk-status   { color: #b45309; }
.chk-na .chk-mark,          .chk-na .chk-status          { color: #94a3b8; }

.chk-fail .chk-name { font-weight: 600; }
.chk-na .chk-name { color: #64748b; font-weight: 400; }
.chk-na .chk-detail { color: #94a3b8; }

@media (max-width: 640px) {
    .chk-h1 { font-size: 24px; }
    .chk-status { display: block; margin-left: 0; margin-top: 2px; }
}
