/* receipt.css — /dashboard/receipts/{trace_id} render surface. */

/* ── Receipt dashboard (/dashboard/receipts/{trace_id}) ──────────── */

/* Same Layout as the rest of the site so the dashboard feels like
   one product. Reading column slightly wider than the whitepaper
   because the causal-chain table needs more room. */
.receipt {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--size-9) var(--size-5) var(--size-9);
  color: var(--fg-soft);
  line-height: 1.65;
}

.receipt-empty .receipt-head {
  border-bottom: 0;
  padding-bottom: 0;
}

.receipt-head {
  margin-bottom: var(--size-7);
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: var(--size-5);
}

.receipt-head .eyebrow {
  font-family: var(--font-display);
  font-size: var(--font-size-0);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--size-2);
}

.receipt-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 var(--size-3);
}

.receipt-lede {
  font-size: 17px;
  margin: 0;
}

.receipt-section {
  margin: var(--size-7) 0;
}

.receipt-section h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-5);
  color: var(--fg);
  margin: 0 0 var(--size-3);
  letter-spacing: -0.01em;
}

.receipt-section .section-lede {
  margin: 0 0 var(--size-4);
  color: var(--fg-muted);
}

.receipt-section p {
  margin: 0 0 var(--size-3);
}

.receipt-section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-soft);
  border: 1px solid var(--rule-soft);
  padding: 0.05em 0.35em;
  border-radius: var(--radius-2);
  color: var(--fg);
}

.receipt-section .muted { color: var(--fg-muted); }

/* "The domain behind this decision" reveal (#545 — the #542 hinge):
   makes the receipt show it came from a governed domain, not an API,
   and links into the domain apex. Reuses .receipt-section/.receipt-grid;
   these style the lede + the apex link. */
.receipt-domain {
  border: 1px solid color-mix(in oklab, var(--accent, #6aa1ff) 30%, var(--rule-soft));
  border-radius: var(--radius-3, 14px);
  padding: var(--size-5);
  background: color-mix(in oklab, var(--accent, #6aa1ff) 5%, transparent);
}
.receipt-domain-lede { color: var(--fg-soft); }
.receipt-domain .receipt-grid { margin-top: var(--size-4); }
.receipt-domain-link {
  display: inline-block;
  margin-top: var(--size-4);
  font-weight: 650;
  color: var(--accent, #6aa1ff);
  text-decoration: none;
}
.receipt-domain-link:hover { text-decoration: underline; }

/* Identity + attestation grids — same shape as the security page's
   operational-practices grid. Two columns on desktop, single column
   on narrow viewports. */
.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-5);
  margin: 0;
}

.receipt-row {
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--size-3);
}

.receipt-row dt {
  font-family: var(--font-display);
  font-size: var(--font-size-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 var(--size-2);
}

.receipt-row dd {
  margin: 0;
  color: var(--fg-soft);
  word-break: break-word;
}

@media (max-width: 640px) {
  .receipt-grid {
    grid-template-columns: 1fr;
    gap: var(--size-4);
  }
}

/* Causal-chain table. */
.receipt-chain,
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--font-size-1);
}

.receipt-chain th,
.receipt-chain td,
.receipt-table th,
.receipt-table td {
  text-align: left;
  padding: var(--size-3) var(--size-2);
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

.receipt-chain th,
.receipt-table th {
  font-family: var(--font-display);
  font-size: var(--font-size-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}

.receipt-chain tbody tr:last-child td,
.receipt-table tbody tr:last-child td { border-bottom: 0; }

.receipt-chain code.hash,
.receipt-section code.hash {
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

/* Roadmap section — same visual cue as the security page's roadmap
   so visitors recognize "this is what we don't yet have" without
   having to read the heading. */
.receipt-roadmap {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-3);
  padding: var(--size-5);
  background: var(--surface-soft);
}

.receipt-roadmap-list {
  margin: 0;
  padding-left: var(--size-4);
  display: grid;
  gap: var(--size-3);
}

.receipt-roadmap-list li {
  color: var(--fg-soft);
}

.receipt-roadmap-list strong {
  color: var(--fg);
}

.receipt-empty-row {
  color: var(--fg-muted);
  margin: 0;
}
/* ── Receipt · product surface ─────────────────────────────────── */
.receipt {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: var(--size-9) var(--size-5);
  border-bottom: var(--rule-width) solid var(--rule-soft);
}

.receipt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--size-5);
  align-items: start;
}

.receipt-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--size-4);
}

.receipt-reasons h3 {
  margin: 0 0 var(--size-2);
  font-size: var(--font-size-3);
}

.receipt-reasons p {
  margin: 0;
  color: var(--fg-soft);
  font-size: var(--font-size-1);
}

@media (max-width: 720px) {
  .receipt-grid {
    grid-template-columns: 1fr;
  }
}

.receipt-cta {
  max-width: var(--max-prose);
  margin: var(--size-5) auto 0;
  padding: var(--size-4);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-elev) 40%, transparent);
  font-size: var(--font-size-1);
  color: var(--fg-soft);
}

.receipt-cta a {
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.95em;
}
/* ── receipt: verify-yourself panel ──────────────────────── */
.receipt-verify {
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--rule-soft));
  background: color-mix(in oklab, var(--accent) 4%, var(--bg-elev) 60%);
  border-radius: var(--radius);
  padding: var(--size-5);
}

.receipt-verify h2 {
  margin-top: 0;
}

.receipt-verify a {
  color: var(--accent, #9cf);
  text-decoration: underline;
}

.receipt-verify a.hash {
  font-family: var(--font-code);
  font-size: 0.92em;
}

/* Outcome verdict + timeline link in the receipt head (#544): the
   outcome is the first thing a reader needs, and the timeline link is
   the one obvious step from this receipt to the entity's full history. */
.receipt-outcome {
  font-size: 17px;
  margin: 0 0 var(--size-3);
  color: var(--fg-soft);
}

.receipt-outcome-pill {
  display: inline-block;
  padding: 0.1em 0.6em;
  margin: 0 0.15em;
  border-radius: var(--radius-2, 8px);
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-weight: 650;
  border: 1px solid var(--rule-soft);
}

.receipt-outcome-allowed {
  color: #6ee7a8;
  border-color: color-mix(in oklab, #6ee7a8 45%, transparent);
  background: color-mix(in oklab, #6ee7a8 10%, transparent);
}

.receipt-outcome-blocked {
  color: #ff9a9a;
  border-color: color-mix(in oklab, #ff9a9a 45%, transparent);
  background: color-mix(in oklab, #ff9a9a 10%, transparent);
}

.receipt-outcome-held {
  color: #ffd479;
  border-color: color-mix(in oklab, #ffd479 45%, transparent);
  background: color-mix(in oklab, #ffd479 10%, transparent);
}

.receipt-outcome-muted {
  color: var(--fg-muted);
}

.receipt-timeline-link {
  margin: var(--size-3) 0 0;
}

.receipt-timeline-link a {
  color: var(--accent, #6aa1ff);
  font-weight: 600;
  text-decoration: none;
}

.receipt-timeline-link a:hover {
  text-decoration: underline;
}

/* When the receipt renders inside the signed-in dashboard shell
   (DashboardReceipt), the app frame already supplies the top chrome, so
   trim the marketing-page top padding and let the reading column use the
   dashboard main width. */
.dash-main-activity .receipt {
  padding-top: var(--size-6);
  padding-bottom: var(--size-8);
}
