/* Verifier read screen — see docs/UX.md §Verifier flow + STYLE-GUIDE §11.
 *
 * Single-column reading layout: notice + upload card + (after submit)
 * the verifier matrix. No app-side chrome (no back-to-home link, no
 * brand lockup) — the verify bundle is a focused read-only surface. */

.verify-hero {
  min-height: 100dvh;
  padding: var(--space-12) var(--space-6) var(--space-12);
  color: var(--color-text-body);
  display: grid;
  place-content: center;
}

.verify-column {
  display: grid;
  grid-template-columns: minmax(0, 64ch);
  gap: var(--space-5);
  text-align: left;
}

.verify-notice {
  background: var(--color-accent-bounded-subtle);
  border-inline-start: 3px solid var(--color-accent-bounded);
  border-radius: var(--r-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-bounded);
  margin: 0;
}

.verify-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-secondary);
}

.verify-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--r-md);
  background: var(--color-bg-page);
  color: var(--color-text-heading);
  box-sizing: border-box;
}

textarea.verify-input {
  resize: vertical;
  min-height: 8rem;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* M17 verifier-side preview — the *Who attests* section rendered
 * inside the matrix card when `body.witness_attestation_refs` is
 * non-empty. Each row is a small cluster: a head line carrying the
 * disclosure chip + claim scope code, then a key/value detail block
 * listing the cryptographic anchors. */

.verify-witnesses {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-secondary);
}

.verify-witness-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px dashed var(--color-border-secondary);
}

.verify-witness-row:first-child {
  border-top: none;
}

.verify-witness-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
}

.verify-witness-fields {
  display: grid;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
}

.verify-witness-field {
  display: contents;
}

.verify-witness-field dt {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.verify-witness-field dd {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  margin: 0;
  color: var(--color-text-heading);
  overflow-wrap: anywhere;
}

/* Bundle-side end-to-end verification status chip — rendered only when
 * the verifier surface received a `ScopedProofBundle` and was able to
 * pair each ref with its auxiliary `WitnessAttestationProof`. The
 * verified variant reads as a quiet confirmation; the failed variant
 * borrows the M17 persona-sensitive coral chrome so a rejected witness
 * reads as a real stop, not a soft nudge. */

.verify-witness-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border-secondary);
}

.verify-witness-status-verified {
  background: var(--color-accent-bounded-subtle);
  color: var(--color-text-bounded);
  border-color: var(--color-accent-bounded);
}

.verify-witness-status-failed {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 480px) {
  .verify-hero {
    padding: var(--space-8) var(--space-4);
  }
  .verify-card {
    padding: var(--space-4);
  }
  .verify-witness-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .verify-witness-field {
    display: grid;
    gap: var(--space-1);
  }
}
