.c-agents {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  inline-size: 100%;
  max-inline-size: var(--measure-wide);
  margin-inline: auto;
  text-align: start;
}

.c-agents__flowrow { display: flex; justify-content: center; padding-block: var(--space-xs); }

.c-agents__leadrow { display: block; list-style: none; text-align: center; padding-block: var(--space-sm); }

.c-agent {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg);
  border: var(--bw) solid var(--line);
  background: var(--surface-raised);
}

.c-agent__glyph {
  display: grid;
  place-items: center;
  inline-size: 3.4rem;
  block-size: 3.4rem;
  border: var(--bw) solid var(--line-strong);
  background: var(--surface-sunken);
  color: var(--accent);
  font-size: var(--text-2xl);
  line-height: 1;
  user-select: none;
}

.c-agent__body { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.c-agent__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm); }
.c-agent__name { color: var(--text-bright); font-size: var(--text-xl); font-weight: var(--fw-bold); }
.c-agent__file { color: var(--text-dim); font-size: var(--text-sm); }
.c-agent__desc { margin: 0; color: var(--text-muted); font-size: var(--text-md); line-height: var(--lh-cell); }

.c-agent--conditional { border-style: dashed; border-color: var(--line-strong); }
.c-agent--conditional .c-agent__glyph { color: var(--text-dim); }

/* A card that links to its prompt's docs page: the whole card is the link, so only the file name signals it. */
a.c-agent--link { text-decoration: none; color: inherit; }
a.c-agent--link:hover { border-color: var(--accent); }
a.c-agent--link:hover .c-agent__file { color: var(--accent); }
.c-agents__item { list-style: none; }
