/* Badges (A3) and the trust chain (also on Home): layout only; every value is a kit token. */
.badges-grid { display: grid; gap: var(--space-8) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); padding: var(--space-8) var(--space-6); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-1); }
.badges-grid__item { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
.badges-grid__line { max-width: 24ch; font-size: var(--text-meta); line-height: var(--leading-meta); color: var(--color-ink-3); }
.badges-what { display: flex; flex-direction: column; gap: var(--space-6); }
.badge-sheet__medal { display: flex; justify-content: center; padding: var(--space-2) 0; }
.badge-course { display: flex; align-items: center; gap: var(--space-4); }
.badge-course__img { width: 72px; height: 48px; flex-shrink: 0; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-ground-2); }
.badge-course__text { min-width: 0; flex: 1; }
.badge-course__title { font-weight: var(--weight-medium); }
.badge-where__page { width: 100%; max-width: 300px; }

/* The trust chain: six steps on one line, joined by a hairline path */
.trust { margin: 0; }
.trust__steps { position: relative; display: grid; gap: var(--space-4) var(--space-2); grid-template-columns: repeat(6, minmax(0, 1fr)); }
.trust__steps::before { content: ""; position: absolute; top: 24px; left: 8%; right: 8%; height: 2px; border-radius: var(--radius-full); background: var(--color-brand-tint-2); }
.trust__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; animation: k-rise var(--duration-slow) var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
.trust__node { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-brand); box-shadow: var(--shadow-1), inset 0 0 0 2px var(--color-brand-tint-2); }
.trust__step:last-child .trust__node { background: var(--color-brand); color: var(--color-surface); box-shadow: var(--shadow-1); }
.trust__label { max-width: 12ch; font-size: var(--text-meta); line-height: var(--leading-meta); color: var(--color-ink-2); }
.trust--compact .trust__steps::before { top: 18px; }
.trust--compact .trust__node { width: 36px; height: 36px; }
.trust--compact .trust__label { font-size: var(--text-caption); line-height: var(--leading-caption); }
@media (max-width: 767px) {
  .trust__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__steps::before { display: none; }
  .badges-grid { padding: var(--space-6) var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
