/* /receipt — the claim-record demo.
   Same instrument-lab system as /record, --rc-* tokens reused deliberately
   (one design system, not two). Additions here are --rk-* scoped.

   ⚑ DOCTRINE THIS FILE ENFORCES VISUALLY:
   - a REFUSAL is rendered at identical weight to a pass. Copper and slate,
     never error red: the machine declining to grade something is a correct
     outcome, not a fault, and colouring it as failure teaches the opposite.
   - reason codes are shown as data, in monospace, never hidden behind prose.
   - the synthetic label is part of the layout, not an afterthought overlay. */

.rk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* ── The synthetic banner. Structural, not decorative. ─────────────────── */
.rk-synthetic {
  border: 1px solid var(--rc-copper);
  background: color-mix(in srgb, var(--rc-copper) 8%, transparent);
  color: var(--rc-ink);
  font-family: var(--rc-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 16px; margin: 0 0 34px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.rk-synthetic b { color: var(--rc-copper); font-weight: 700; }
.rk-synthetic span { letter-spacing: .04em; text-transform: none; color: var(--rc-ink3); font-size: 12.5px; }

/* ── Claim picker ──────────────────────────────────────────────────────── */
.rk-picker { display: grid; gap: 1px; background: var(--rc-line); border: 1px solid var(--rc-line); margin-bottom: 34px; }
@media (min-width: 760px) { .rk-picker { grid-template-columns: repeat(3, 1fr); } }
.rk-tab {
  background: var(--rc-surface); border: 0; text-align: left; cursor: pointer;
  padding: 18px 18px; font-family: var(--rc-body); font-size: 13.5px;
  color: var(--rc-ink2); line-height: 1.45;
}
.rk-tab:hover { color: var(--rc-ink); }
.rk-tab[aria-selected="true"] { background: var(--rc-sunk); color: var(--rc-ink); box-shadow: inset 2px 0 0 var(--rc-copper); }
.rk-tab-k { display: block; font-family: var(--rc-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--rc-ink4); margin-bottom: 8px; }

/* ── One claim panel ───────────────────────────────────────────────────── */
.rk-panel[hidden] { display: none; }
.rk-claim {
  font-family: var(--rc-display); font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.35; color: var(--rc-ink); margin: 0 0 8px; max-width: 34ch;
}
.rk-note { color: var(--rc-ink3); font-size: 13.5px; max-width: 62ch; margin: 0 0 28px; }

/* ── Verdict. Equal weight across all three. ───────────────────────────── */
.rk-verdict {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rc-mono); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  padding: 10px 16px; border: 1px solid currentColor; border-radius: 2px;
}
/* ⚑ Identical box, identical type, identical weight. Only the hue differs,
   and the two refusal hues are copper and slate — never red. */
.rk-verdict-resolvable { color: var(--rc-hit); }
.rk-verdict-underspecified { color: var(--rc-copper); }
.rk-verdict-unsupported { color: var(--rc-slate); }

.rk-message { color: var(--rc-ink2); max-width: 64ch; margin: 20px 0 0; }

/* ── Machine reasons, shown as data ────────────────────────────────────── */
.rk-codes { margin-top: 26px; }
.rk-codes-h { font-family: var(--rc-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--rc-ink4); margin-bottom: 12px; }
.rk-code {
  display: inline-block; font-family: var(--rc-mono); font-size: 11.5px;
  letter-spacing: .06em; color: var(--rc-ink2);
  border: 1px solid var(--rc-line); padding: 6px 10px; margin: 0 8px 8px 0;
}
.rk-reqs { margin: 16px 0 0; padding-left: 18px; color: var(--rc-ink3); font-size: 13.5px; }
.rk-reqs li { margin-bottom: 6px; }

/* ── The contract, shown in full ───────────────────────────────────────── */
.rk-contract {
  margin-top: 30px; background: var(--rc-sunk);
  border: 1px solid var(--rc-line); padding: 20px 22px;
  font-family: var(--rc-mono); font-size: 12.5px; line-height: 1.7;
  color: var(--rc-ink2); overflow-x: auto; white-space: pre;
}
.rk-contract-h { font-family: var(--rc-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--rc-ink4); margin: 30px 0 12px; }

@media (prefers-reduced-motion: reduce) {
  .rk-tab { transition: none !important; }
}
