/* Research template. Tokens only (ds/tokens.css); media queries use the three breakpoints, 48rem, 64rem and 80rem. */

/* Stat cards: one, two or three across by the width of their container, not the window */
.ds-research__frame { container-type: inline-size; margin-block-start: var(--ds-space-8); }
.ds-research__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-col-gap); }
@container (min-width: 36rem) { .ds-research__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 48rem) { .ds-research__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The card rule: raised surface, one hairline, no shadow, no gradient; light in both themes */
.ds-stat { display: grid; align-content: start; gap: var(--ds-space-2); min-inline-size: 0; padding: var(--ds-space-6); background: var(--ds-surface-raised); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-md); color: var(--ds-text); }
.ds-stat > p { margin: 0; }
.ds-stat__figure { font-family: var(--ds-font-display); font-size: var(--ds-type-figure); line-height: var(--ds-leading-h1); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum", "tnum"; color: var(--ds-neural); overflow-wrap: anywhere; }
.ds-stat__outcome { font-size: var(--ds-type-body); line-height: var(--ds-leading-body); }
.ds-stat__frame { font-size: var(--ds-type-meta); line-height: var(--ds-leading-meta); font-variant-numeric: lining-nums tabular-nums; }   /* captions and sources keep the 13px meta floor */
.ds-stat__cite { display: inline-flex; align-items: center; min-block-size: 2.75rem; color: var(--ds-accent); text-underline-offset: .18em; font-size: var(--ds-type-meta); line-height: var(--ds-leading-meta); font-variant-numeric: lining-nums; }
.ds-stat__cite:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; border-radius: var(--ds-radius-sm); }
.ds-research__limits .ds-h2, .ds-research__sources .ds-h2 { margin-block-end: var(--ds-space-4); }
