/* 06-components/_agent.css */
/* ── c-agent — one agent presented as a full-width row: a glyph slab on the left, then the
   agent's proper name, its prompt file as a quiet reference, and a one-line description.
   Distinct from c-agentcard (the live streaming activity card). Semantic tokens only. */
.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;
}

/* an inline sequence flow interleaved between the always-run and conditional agents */
.c-agents__flowrow { display: flex; justify-content: center; padding-block: var(--space-xs); }

/* a sub-hero lead paragraph introducing the conditional (loop) agents */
.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);
}

/* the glyph slab — a small phosphor square, echoing the act number marker */
.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); }

/* conditional agents (only-on-red, only-on-conflict) read as set apart, dashed like the branch */
.c-agent--conditional { border-style: dashed; border-color: var(--line-strong); }
.c-agent--conditional .c-agent__glyph { color: var(--text-dim); }
