/* ============================================================
   Consent (participant privacy preferences) page: placement only.
   Every card is a design-system pane, every message a callout, the
   data-rights list is the rows component and the controls are the
   field/choice/button components. This sheet owns the stack of cards,
   the circle a right leads with, and the space inside an expanded
   "Learn more".
   Reads only --t-* and --c-* tokens.
   ============================================================ */

@layer layout {
  .consent .consent-list { display: grid; gap: var(--t-space-3);
                            margin: 0; padding: 0; list-style: none; }
  .consent .consent-list > li { display: grid; gap: var(--t-space-2); }

  .consent .consent-desc { margin: 0; }

  .consent .consent-changed { margin: 0; }

  .consent .consent-learn { display: grid; gap: var(--t-space-2); }
  /* The disclosure keeps its words' width rather than filling the card. */
  .consent .consent-learn > summary { justify-self: start; }
  .consent .consent-learn-body { padding: var(--t-space-3);
                                  border-radius: var(--t-radius-md); }

  .consent .consent-rights-body { margin: 0; }

  /* The circle a data right leads with, inside a rows marker. */
  .consent .consent-right-mark { display: inline-flex; align-items: center;
                                  justify-content: center; flex: none;
                                  inline-size: var(--t-space-10); block-size: var(--t-space-10);
                                  border-radius: var(--t-radius-pill); }
}

@layer design {
  .consent .consent-desc { font-size: var(--t-font-size-sm);
                            color: var(--c-surface-text-color-muted); }
  .consent .consent-changed { font-size: var(--t-font-size-xs);
                               color: var(--c-surface-text-color-muted); }
  .consent .consent-learn-body { font-size: var(--t-font-size-sm);
                                  color: var(--c-surface-text-color-muted); }
  .consent .consent-rights-body { color: var(--c-surface-text-color-muted); }
}
