/* Accuracy reports: the list of what people in this workspace have told us
   the diagram gets wrong.

   Every colour is a custom property declared on :root in app.css, so both
   schemes are served by one declaration. A literal hex here would be right in
   one of them and wrong in the other.

   The class prefix is `rp-` throughout, and nothing here restyles a shared
   class. The page frame - .page, .block, .block-head, .kv, .pill - is the
   design system's and is used unchanged; a rule of this file's own on one of
   those names would silently relay out every other view that uses it.

   The list is deliberately quiet. Nothing here is a badge, a count that
   follows the reader around, or a colour that says "act on this": these are
   durable statements about the estate that somebody reads to find a pattern,
   not an inbox. The only emphasis in the whole file is on the reported
   person's own words. */

/* ---------- the pattern ---------- */

.rp-total { margin-top: 2px; }

.rp-rules {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rp-rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.rp-rule-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rp-rule-name { align-self: start; justify-self: start; }

.rp-rule-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Tabular figures so a column of counts lines up on its digits. */
.rp-rule-count {
  flex: none;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- one report ---------- */

.rp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rp-report {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rp-report-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rp-subject {
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Which of the two things the diagram asserts is being disputed. Neutral in
   both cases: neither is worse news than the other. */
.rp-kind { flex: none; }

.rp-kind-edge {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.rp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* The reporter's own words. The one thing on the page that is not this
   application talking, marked as a quotation and given the accent rule so it
   reads as somebody else's sentence. */
.rp-reason {
  margin: 12px 0 0;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--accent);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rp-evidence {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 620px) {
  /* The pill would otherwise squeeze a long resource name into a column two
     words wide. */
  .rp-report-head,
  .rp-rule {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
