/* recognition.css - styles for apps/shared/recognition.js (ADVOCACY-CONTRACT.md §6). Colours from the Connect theme tokens only. */

.rc { display: flex; flex-direction: column; gap: var(--pa-s4); min-width: 0; color: var(--cx-text); }
.rc h2 { margin: 0; font-size: var(--cx-text-section); font-weight: var(--cx-weight-strong); }
.rc h3 { margin: 0; font-size: var(--cx-text-body); font-weight: var(--cx-weight-strong); }
.rc h4 { margin: 0; }
.rc p { margin: 0; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--pa-s3); flex-wrap: wrap; }
.rc-head h2:focus { outline: none; }
.rc-head h2:focus-visible { outline: 2px solid var(--cx-focus); outline-offset: 2px; }
.rc-meta { font-size: var(--cx-text-meta); color: var(--cx-text-2); overflow-wrap: anywhere; }
.rc-plain { color: var(--cx-text-2); overflow-wrap: anywhere; }
.rc-live:empty { display: none; }
.rc-live { font-size: var(--cx-text-meta); color: var(--cx-text-2); }

/* Why share: a short, scannable question-and-answer list. */
.rc-qa { margin: 0; display: grid; gap: var(--pa-s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rc-qa > div { min-width: 0; padding: var(--pa-s3); border: 1px solid var(--cx-border); border-radius: var(--cx-radius); background: var(--cx-surface); }
.rc-qa dt { font-weight: var(--cx-weight-strong); margin-bottom: 4px; }
.rc-qa dd { margin: 0; color: var(--cx-text-2); overflow-wrap: anywhere; line-height: var(--cx-leading); }

.rc-block { display: flex; flex-direction: column; gap: var(--pa-s2); min-width: 0; }
.rc h4.rc-sub { font-size: var(--cx-text-meta); color: var(--cx-text-2); margin-top: var(--pa-s2); }
.rc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--pa-s2); }

/* Incentives: the whole disclosure, in reading order, before any share action below. */
.rc-offer { padding: var(--pa-s3); border: 1px solid var(--cx-border-strong); border-radius: var(--cx-radius); background: var(--cx-surface-2); display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.rc-offer-title { font-size: var(--cx-text-body); font-weight: var(--cx-weight-strong); }
.rc-offer-value { font-weight: 500; color: var(--cx-text-2); }
.rc-disclosure, .rc-terms { color: var(--cx-text); line-height: var(--cx-leading); }
.rc-rewards li { display: flex; justify-content: space-between; align-items: center; gap: var(--pa-s2); flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }

/* Achievements. */
.rc-achs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pa-s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.rc-ach { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--pa-s3); border: 1px solid var(--cx-border); border-radius: var(--cx-radius); background: var(--cx-surface); box-shadow: var(--cx-shadow-1); }
.rc-ach-top { display: flex; justify-content: space-between; align-items: center; gap: var(--pa-s2); flex-wrap: wrap; }
.rc-ach-title { font-size: var(--cx-text-body); font-weight: var(--cx-weight-strong); overflow-wrap: anywhere; }
.rc-evidence { font-size: var(--cx-text-meta); color: var(--cx-text-2); overflow-wrap: anywhere; line-height: var(--cx-leading); }
.rc-evidence-label { font-weight: var(--cx-weight-strong); color: var(--cx-text); }
.rc-share { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }
.rc-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--cx-radius-pill); background: var(--cx-surface-2); border: 1px solid var(--cx-border); color: var(--cx-text-2); font-size: var(--cx-text-meta); }
.rc-tag.is-granted { background: var(--cx-success-soft); color: var(--cx-success-text); border-color: var(--cx-success-soft); }
.rc-tag.is-declined { background: var(--cx-danger-soft); color: var(--cx-danger-text); border-color: var(--cx-danger-soft); }
.rc-tag.is-pending { background: var(--cx-info-soft); color: var(--cx-info-text); border-color: var(--cx-info-soft); }

/* Testimonials. */
.rc-quote { margin: 0; padding: var(--pa-s3); border-left: 3px solid var(--cx-border-strong); background: var(--cx-surface); border-radius: var(--cx-radius-sm); min-width: 0; }
.rc-quote blockquote { margin: 0 0 6px; overflow-wrap: anywhere; line-height: var(--cx-leading); }
.rc-quote figcaption { font-size: var(--cx-text-meta); color: var(--cx-text-2); }

/* Share stats: each rung on its own tile with its evidence label. */
.rc-stats { margin: 0; display: grid; gap: var(--pa-s2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.rc-stat { min-width: 0; padding: var(--pa-s3); border: 1px solid var(--cx-border); border-radius: var(--cx-radius); background: var(--cx-surface); display: flex; flex-direction: column; gap: 2px; }
.rc-stat dt { font-size: var(--cx-text-meta); color: var(--cx-text-2); }
.rc-stat dd { margin: 0; }
.rc-stat-n { font-size: var(--cx-text-section); font-weight: var(--cx-weight-strong); font-variant-numeric: tabular-nums; }
.rc-stat-ev { font-size: var(--cx-text-meta); color: var(--cx-text-2); overflow-wrap: anywhere; }

/* Compact: one card for an Overview. */
.rc-card { gap: var(--pa-s2); padding: var(--pa-s4); border: 1px solid var(--cx-border); border-radius: var(--cx-radius); background: var(--cx-surface); box-shadow: var(--cx-shadow-1); }
.rc-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--cx-text-meta); color: var(--cx-text-2); }
.rc-actions { display: flex; flex-wrap: wrap; gap: var(--pa-s2); align-items: center; }
.rc-actions .pa-btn { display: inline-flex; align-items: center; gap: 6px; }
.rc-collapsed, .rc-error { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pa-s2); padding: var(--pa-s3); border: 1px dashed var(--cx-border); border-radius: var(--cx-radius); }
.rc-loading { gap: var(--pa-s2); }

@media (max-width: 640px) {
  .rc-meta, .rc-evidence, .rc-stat dt, .rc-stat-ev, .rc-tag, .rc-quote figcaption { font-size: max(12px, var(--cx-text-meta)); }
}
@media (any-pointer: coarse) {
  .rc .pa-btn { min-height: 44px; }
}
