/* Recognition — global part: shared accents, the crests and the Home card (loaded on every page by index.html).
   The recognition pages themselves are styled by recognition-workspace.css, which they load on demand.
   Geometry, type and motion come from design-tokens.css, colours from appearance.css.
   Home-release tokens (card, type, pill, warning) are used directly.
   Store, award and crest colours are the shared fixed meanings (appearance.css); the lane defines no colours. */

/* Crests on every page are only the Home card's: its four paint servers and the ghost state. Their 14 colours are
   shared fixed colours in appearance.css; the rest of the crest palette (award-crest.css) and the drawing rules
   (recognition-workspace.css) load with the recognition routes (R-recognition-13). */
.crest{flex:none;overflow:visible}
.crest-defs{position:absolute;width:0;height:0;overflow:hidden}
.cs-gold-0{stop-color:var(--award-metal-gold-0)}.cs-gold-1{stop-color:var(--award-metal-gold-1)}.cs-gold-2{stop-color:var(--award-metal-gold-2)}.cs-gold-3{stop-color:var(--award-metal-gold-3)}.cs-gold-4{stop-color:var(--award-metal-gold-4)}
.cs-bronze-0{stop-color:var(--award-metal-bronze-0)}.cs-bronze-1{stop-color:var(--award-metal-bronze-1)}.cs-bronze-2{stop-color:var(--award-metal-bronze-2)}.cs-bronze-3{stop-color:var(--award-metal-bronze-3)}.cs-bronze-4{stop-color:var(--award-metal-bronze-4)}
.cs-onyx-0{stop-color:var(--award-enamel-onyx-0)}.cs-onyx-1{stop-color:var(--award-enamel-onyx-1)}.cs-plum-0{stop-color:var(--award-enamel-plum-0)}.cs-plum-1{stop-color:var(--award-enamel-plum-1)}
.cr-locked{filter:url(#cr-grey);opacity:.26}

/* Home card — matches the Home cards (radius, shadow, press feedback). Must stay in the global sheet. */
.rec-home.rec-home-unified{display:block;margin:var(--rp-space-3) 0}
/* UX-A1-22: nothing to show yet is the shared one-line entry (ui.mjs entryRow), same spacing as the card. */
.rec-home.rec-home-entry{display:block;margin:var(--rp-space-3) 0}
.rec-home.rec-home-entry>.rp-entry-row{box-shadow:var(--rp-card-shadow)}
.rec-home.rec-home-unified>.rec-home-link.panel{display:flex;align-items:center;gap:var(--rp-space-3);margin:0;padding:var(--rp-card-padding);border-radius:var(--rp-card-radius);box-shadow:var(--rp-card-shadow);background:var(--paper);color:inherit;text-decoration:none;transition:transform var(--rp-press-duration) var(--rp-ease),background-color var(--rp-state-duration) var(--rp-ease)}
.rec-home.rec-home-unified>.rec-home-link.panel:hover{background:var(--surface-hover)}
.rec-home.rec-home-unified>.rec-home-link.panel:active{transform:scale(.985)}
.rec-home-medal{display:grid;place-items:center;width:var(--rp-control-size);height:var(--rp-control-size);border-radius:var(--rp-control-radius);background:var(--award-gold-soft);flex:none}
.rec-home-copy{display:grid;gap:var(--rp-space-1);flex:1;min-width:0}
.rec-home-copy strong{font-size:var(--rp-body-size);font-weight:500}
.rec-home-copy small{font-size:var(--rp-help-size);color:var(--muted);line-height:1.5}
.rec-home-link>.icon{width:var(--rp-icon-md);height:var(--rp-icon-md);flex:none;color:var(--muted)}
/* A negative balance that is not credit (points clawed back by a return): the number in the warning ink, no "(credit)". */
.rec-short{color:var(--warning-ink);white-space:nowrap}
