/* Explainers (design pass, Nov 27-28 2026): two small figures on pages that had no motion. Each shows only data already
   on its page or in the pack, word for word.
   /verify     the recorded example from /proof section 03, marked as one: the receipt as minted verifies, the copy with
               one changed field is refused (the verify_as_minted and tamper results in /proof's hosted-receipt-json)
   /scorecard  guarantee G09 as its table row states it: 2,000 generated inputs per run, its 2 injected bugs, 2 caught
   Each figure ships as its last frame (the still). explainers.js plays it once when it scrolls into view, on the motion
   system's three durations, and it rests there: no replay control. A step only changes opacity and transform, so the
   page never shifts. A checked signature and a caught bug use the site's check and cross glyphs; the three decision
   marks stay for a gate decision (the receipt's ALLOW tag carries the allowed mark). Red is used once, for the
   verifier refusing the changed receipt. */
.ag-receipt .ag-x{display:grid;gap:12px;margin:0;padding:16px;background:var(--ag-slip);border:1px solid var(--ag-rule);color:var(--ag-ink);font-family:var(--ag-sans)}
.ag-receipt .ag-x p,.ag-receipt .ag-x ol{margin:0;padding:0}
.ag-receipt .ag-x ol{list-style:none}
.ag-receipt .ag-x-k{font:500 10px/1.4 var(--ag-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ag-ink-2)}
.ag-receipt .ag-x-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding-bottom:10px;border-bottom:1px dashed var(--ag-ink);font:400 12.5px/1.5 var(--ag-mono);overflow-wrap:anywhere}
.ag-receipt .ag-x-head b{font-weight:600}
.ag-receipt .ag-x-row{display:grid;grid-template-columns:minmax(24px,1fr) auto;align-items:center;gap:6px 12px;padding:4px 0}
.ag-receipt .ag-x-what{grid-column:1/-1;font:400 13px/1.5 var(--ag-mono);overflow-wrap:anywhere}
.ag-receipt .ag-x-track{position:relative;display:block;height:14px;min-width:24px}
.ag-receipt .ag-x-track::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px dashed var(--ag-empty)}
.ag-receipt .ag-x-track::after{content:"";position:absolute;right:0;top:-4px;bottom:-4px;border-left:3px solid var(--ag-ink)}
.ag-receipt .ag-x-req{position:absolute;left:0;top:0;background:var(--ag-slip);opacity:0}
.ag-receipt .ag-x-out{display:inline-flex;align-items:baseline;gap:8px;font:600 15px/1.3 var(--ag-mono);overflow-wrap:anywhere}
.ag-receipt .ag-x-glyph{display:inline-block;font:600 15px/1 var(--ag-mono)}
.ag-receipt .ag-x [data-x-at]{display:inline-block}
.ag-receipt .ag-x p[data-x-at],.ag-receipt .ag-x li[data-x-at],.ag-receipt .ag-x div[data-x-at]{display:block}
.ag-receipt .ag-x-row.is-refused .ag-x-out,.ag-receipt .ag-x-row.is-refused .ag-x-track::after{color:var(--ag-stamp);border-left-color:var(--ag-stamp)}
/* the marker: what this is and where it comes from, so it never reads as the visitor's own receipt */
.ag-receipt .ag-x-tag{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;font:500 10.5px/1.4 var(--ag-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ag-ink)}
.ag-receipt .ag-x-tag b{padding:4px 8px;border:1px solid var(--ag-ink);font-weight:600}
.ag-receipt .ag-x-tag a{display:inline-flex;align-items:center;min-height:44px;color:var(--ag-ink-2);text-decoration:underline;text-underline-offset:2px}
.ag-receipt .ag-x-tag a:hover{color:var(--ag-ink)}
.ag-receipt .ag-x-chip{display:inline-flex;align-items:center;gap:6px;padding:2px 7px;border:1px solid var(--ag-ink);font:600 11px/1.4 var(--ag-mono);letter-spacing:.04em}
.ag-receipt .ag-x .ag-x-edit{display:block;margin-top:2px;color:var(--ag-ink-2)}
.ag-receipt .ag-x-edit code{font:inherit;color:var(--ag-ink)}
.ag-receipt .ag-x .ag-x-err{grid-column:1/-1;font:400 12.5px/1.45 var(--ag-mono);overflow-wrap:anywhere}
.ag-receipt .ag-x-row.is-refused .ag-x-err{color:var(--ag-stamp)}
.ag-receipt .ag-x-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;min-height:44px;padding-top:10px;border-top:1px dashed var(--ag-ink)}
.ag-receipt .ag-x-note{flex:1 1 30ch;font:400 13px/1.55 var(--ag-sans);color:var(--ag-body)}
@media (min-width:720px){
  .ag-receipt .ag-x{padding:20px 22px}
  .ag-receipt .ag-x-row{grid-template-columns:minmax(0,1.5fr) minmax(48px,.5fr) minmax(0,auto)}
  .ag-receipt .ag-x-what{grid-column:auto}
}

/* /verify orders its blocks on a phone (app-surfaces.css): the figure sits after the two notices, before the closing card */
@media (max-width:899.98px){.ag-receipt .verify-page .main>.ag-x{order:5}}

/* /scorecard */
.ag-receipt .ag-x-g{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:baseline;padding-bottom:10px;border-bottom:1px dashed var(--ag-ink)}
.ag-receipt .ag-x-g b{font:600 13px/1.5 var(--ag-mono)}
.ag-receipt .ag-x-g p{font:400 14.5px/1.5 var(--ag-sans);color:var(--ag-body)}
.ag-receipt .ag-x-run{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:baseline}
.ag-receipt .ag-x-n{font:600 17px/1.2 var(--ag-mono)}
.ag-receipt .ag-x-bugs{display:grid;gap:2px}
.ag-receipt .ag-x-bugs .ag-x-what{font:400 13.5px/1.5 var(--ag-sans);color:var(--ag-body)}

/* motion: only inside a figure explainers.js has armed */
.ag-receipt .ag-x.is-armed [data-x-at]{opacity:0}
.ag-receipt .ag-x.is-armed [data-x-at].is-on{opacity:1;animation:ag-m-row var(--ag-t-step) var(--ag-ease-out) both}
.ag-receipt .ag-x.is-armed .ag-x-glyph.is-on{animation:ag-m-land var(--ag-t-step) var(--ag-ease-out) both}
.ag-receipt .ag-x.is-armed .is-refused .ag-x-glyph.is-on,.ag-receipt .ag-x.is-armed .is-refused b.is-on{animation:ag-m-land var(--ag-t-tick) var(--ag-ease-out) both}
.ag-receipt .ag-x.is-armed .ag-x-req{transform:translateX(0)}
.ag-receipt .ag-x.is-armed .ag-x-req.is-on{opacity:1;animation:none;transform:translateX(var(--x-run,40px));transition:transform var(--ag-t-travel) var(--ag-ease-io)}
.ag-receipt .ag-x.is-armed .ag-x-req.is-on.is-off{opacity:0;transition:opacity var(--ag-t-tick) linear}
@media (prefers-reduced-motion:reduce){
  .ag-receipt .ag-x [data-x-at]{opacity:1!important;animation:none!important;transition:none!important}
  .ag-receipt .ag-x .ag-x-req{opacity:0!important}
}
