/* Vyzora Archival Authority Palette — Governance Memory Layer (ADR-008-D)
 * ----------------------------------------------------------------------------
 * Lead surface mode for: signed records, evidence receipts, audit trail,
 * share pages, regulator-facing exports, final delivery artifacts, approval
 * history, immutable decisions.
 *
 * Communicates: execution was governed AND remembered. Permanence. Audit.
 * The signed memory of governed delivery.
 *
 * Anti-pattern: NEVER leads the homepage (Vyzora drifts too slow/static).
 * Public-facing only on share pages and regulator-facing exports.
 *
 * Hex anchors PROVISIONAL — derived from Lloyd's Register print + Apollo
 * offset-black. Founder confirms or substitutes before lock.
 * ============================================================================
 */

[data-surface-mode="archival-authority"] {
  /* ── Primitives ──────────────────────────────────────────────────────── */
  /* Hex re-spec from founder DISTINCT PALETTE DIRECTIONS card · 2026-05-11
   * "Archival Authority — governed, institutional, archival." Card-spec aligned.
   *
   * 2026-05-16 (VYZ-284 WCAG remediation): secondary/tertiary ink darkened
   * to clear AA body-text contrast on #E7E0D3 paper. Bronze split into seal-ink
   * (large-display, card-spec preserved) and notation-ink (body-size AA-clear). */
  --archive-paper:      #E7E0D3;  /* cool-bone, working-institution paper (card-spec) */
  --archive-card:       #FFFFFF;  /* signed-card surface, brighter than paper */
  --archive-secondary:  #DCD5C7;  /* secondary surface, slightly inset (derived) */
  --archive-rule:       #121417;  /* primary structural rule, near-black (card-spec ink) */
  --archive-rule-soft:  #B8AC92;  /* editorial-density hairline — warm-tan derivative
                                   * of paper × notation-ink. Use for card-hairline
                                   * primitive, spec-row dividers, magazine-density
                                   * tables. --archive-rule (#121417) remains primary
                                   * for signed records, form fields, evidence
                                   * boundaries. Added 2026-05-17 to close the
                                   * Replit-reference editorial-rule gap (~15% remaining
                                   * after the 80–85% Archival ↔ Replit match). */
  --archive-ink:        #121417;  /* primary text — card-spec ink */
  --archive-secondary-ink: #5A6166;  /* secondary text — AA 4.80 on paper (was #6A7278/3.73) */
  --archive-tertiary-ink:  #665F52;  /* tertiary text — AA 4.81 on paper (was #908a7c/2.62) */
  --archive-route:      #8A2E2A;  /* archival routing accent — oxblood per card (NOT blue) */
  --archive-seal-ink:   #8E7B52;  /* bronze seal-ink — card-spec, large-display only (3.13 UI-AA) */
  --archive-notation-ink: #6E5D3D;  /* darker bronze for body-size margin notation — AA 4.85 */

  /* ── Semantic role mapping ───────────────────────────────────────────── */
  --bg-primary:         var(--archive-paper);
  --surface-1:          var(--archive-card);
  --surface-2:          var(--archive-secondary);
  --surface-3:          var(--archive-paper);

  --text-primary:       var(--archive-ink);
  --text-secondary:     var(--archive-secondary-ink);
  --text-tertiary:      var(--archive-tertiary-ink);

  --border-hairline:    var(--archive-rule);
  --border-hairline-soft: var(--archive-rule-soft);
  --border-strong:      var(--archive-rule);

  /* Archival roles — the IDENTITY tokens for proof surfaces */
  --record-signed:      var(--archive-rule);          /* signed = authoritative ink */
  --record-evidence:    var(--archive-route);         /* evidence link, route-back-to-source */
  --record-notation:    var(--archive-notation-ink);  /* margin notation, body-size, AA-clear */
  --record-insignia:    var(--archive-seal-ink);      /* terminus insignia, large-display only */
  --record-immutable:   var(--archive-tertiary-ink);  /* locked, archived, immutable state */

  --action-primary:     var(--archive-rule);
  --text-on-action:     var(--archive-paper);

  --accent-trace:       var(--archive-route);
  --accent-trace-soft:  var(--archive-secondary-ink);
}

/* Per ADR-008-D: Archival Authority appears at 65–70% on evidence/audit/share
 * pages; 20% on homepage as proof moments; never as homepage lead. */
