/* ==========================================================================
   FINDING · SOURCES TALLY — the rigor telegraph. "SOURCES 24" set as a compact
   instrument readout that rides beside a verdict so the reader registers the
   weight of evidence BEFORE scrolling to it. The reference-list carries its own
   running tally at the bibliography head; this is the portable, standalone unit
   for the Assessment Box, a profile head, a card foot. Mono counts.
   ========================================================================== */

.op-tally {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-furniture);
}

.op-tally__label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.op-tally__count {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text);
}

/* A link tally pivots to the reference list; ink with a rubric underline */
a.op-tally { text-decoration: none; }
a.op-tally:hover .op-tally__count { color: var(--accent); }
a.op-tally:hover .op-tally__label { color: var(--accent); }
a.op-tally:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* The boxed variant — a small ruled chip for a card foot or a head shelf */
.op-tally--boxed {
  padding: 0.28em 0.7em;
  background: var(--surface-sunken);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
}

/* The featured variant — a larger numeral for the verdict shelf */
.op-tally--lg .op-tally__count { font-size: var(--text-lg); line-height: 1; }
.op-tally--lg { align-items: center; }

/* A thin variant flags a finding standing on few sources — candour, not alarm:
   the count keeps the warning ink, never the rubric, and never a band. */
.op-tally--thin .op-tally__count { color: var(--warning); }
.op-tally--thin .op-tally__label::after {
  content: " · few";
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wide);
  text-transform: none;
  color: var(--text-muted);
}
