/* Intro to AI Agents: the figures on its slides. Boxes, chips, tables and the
   shared colours are in ../llmops.css. */

/* The three parts of an agent. */
.ag { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.ag-io { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13.5px; color: var(--sv-ink2); }
.ag-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ag-arrow { font-size: 12.5px; background: #fff; border: 1px dashed var(--sv-line); border-radius: 8px; padding: 6px 8px; }
.ag-side { display: flex; flex-direction: column; gap: 12px; }
.ag-tl { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ag-tl .chip { font-family: var(--mono); font-size: 12px; }

/* One run. */
.tbl.lp td:nth-child(3), .tbl.lp td:nth-child(5), .tbl.cost td { font-family: var(--mono); white-space: nowrap; }
.tbl.lp code { white-space: normal; }

/* Memory. */
.mm2 { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); gap: 12px; align-items: center; }
.mm2-win, .mm2-out { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 2px solid var(--model); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.mm2-out { border: 2px dashed var(--data); }
.mm2-p { border-radius: 6px; padding: 6px 10px; background: #f3effd; }
.mm2-p.p3 { padding: 14px 10px; } .mm2-p.p4 { background: #fef3c7; padding: 12px 10px; }
.mm2-ar { text-align: center; color: #545b64; } .mm2-ar span { font-size: 30px; display: block; } .mm2-ar small { font-size: 12px; }

/* The ladder. */
.au { display: flex; flex-direction: column; gap: 10px; }
.au-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.au-s { height: var(--h); display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; background: #f7f3ff; border: 2px solid var(--model); border-radius: 10px; padding: 10px; font-size: 14.5px; }
.au-s small { font-size: 12.5px; color: var(--sv-ink2); }
.au-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--sv-ink2); }

/* The coding agent. */
.term.ca { font-size: 13.5px; white-space: pre-wrap; }

/* Several agents. */
.ma { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ma-task { font-size: 15px; font-weight: 600; background: #fff; border: 1.5px solid var(--user); border-radius: 10px; padding: 8px 14px; }
.ma-task.out { border-color: var(--data); }
.ma-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 8px; }
.ma-sub { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: center; }
.ma-sub small { font-size: 12px; color: var(--sv-ink2); }

.tbl.fw, .tbl.inf, .tbl.cs { font-size: 13.5px; }

@media (max-width: 860px) {
  .ag, .mm2 { grid-template-columns: 1fr; }
  .au-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tbl.inf .chip { white-space: nowrap; }
