/* Prompts and Context as Versioned Artifacts: the figures on its slides.
   Boxes, chips, tables and the shared colours are in ../llmops.css. */

/* SVG boxes (node() in the JS). */
.nd rect { stroke-width: 2; fill: #fff; stroke: var(--sv-line); }
.nd.model rect { fill: #f7f3ff; stroke: var(--model); }
.nd.code rect { fill: #f0f8fd; stroke: var(--code); }
.nd.data rect { fill: #effaf5; stroke: var(--data); }
.nd.tool rect { fill: #fffaf0; stroke: var(--tool); }
.nd.user rect { fill: #fdf2f8; stroke: var(--user); }
.nd.ops rect { fill: #f5f7fa; stroke: var(--ops); }

/* The parts of a context window, also used by prompt caching. */
.cw { stroke-width: 2; }
.cw.code { fill: #e2f1fa; stroke: var(--code); }
.cw.tool { fill: #fdf0e0; stroke: var(--tool); }
.cw.model { fill: #f1eafe; stroke: var(--model); }
.cw.data { fill: #e3f6ee; stroke: var(--data); }
.cw.user { fill: #fdf2f8; stroke: var(--user); }
.cw.bad { fill: #fde8e8; stroke: var(--no); }
.cw-n { font: 700 14px var(--mono); fill: var(--model); }
.cw-who { font-size: 12.5px; font-style: italic; fill: var(--sv-ink2); }

/* Prompt and context engineering. */
.pc-pe { fill: none; stroke: var(--code); stroke-width: 2; stroke-dasharray: 6 4; }
.pc-pet { font-size: 13px; font-weight: 700; fill: var(--code); }
.pc-ce { fill: #f0f8fd; stroke: var(--code); stroke-width: 2.5; }
.pc-cet { font-size: 13px; font-weight: 700; fill: var(--code); }

/* The prompt file and the tool definition. */
.src.pf, .src.td { font-size: 13.5px; }
/* The marked line's bar sits in the block's padding, not over its first letter. */
.src .hl { padding-left: 8px; margin-left: -8px; }
.src .hl.ver, .src .hl.sys { --hlc: #e2f1fa; --hlb: var(--code); }
.src .hl.mdl, .src .hl.prm { --hlc: #f1eafe; --hlb: var(--model); }
.src .hl.var { --hlc: #e3f6ee; --hlb: var(--data); }
.src .hl.nm, .src .hl.ds, .src .hl.ds2, .src .hl.pa, .src .hl.pa2 { --hlc: #fdf0e0; --hlb: var(--tool); }

/* The pull request. */
.pr { display: flex; flex-direction: column; gap: 10px; }
.pr-head { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.pr-checks { display: flex; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.pr-cm { background: #fdf2f8; border-left: 4px solid var(--user); border-radius: 6px; padding: 8px 12px; font-size: 14px; }

/* The release. */
.rb { display: flex; flex-direction: column; gap: 16px; }
.rb-box { border: 2.5px solid var(--sv-accent); border-radius: 12px; padding: 10px 12px 12px; background: #fff; }
.rb-name { font-weight: 700; color: var(--sv-accent); margin-bottom: 8px; }
.rb-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rb-parts small { font-family: var(--mono); }
.rb-tbl b.ok { color: var(--ok); } .rb-tbl b.no { color: var(--no); }

/* The pipeline. */
.pp { display: flex; flex-direction: column; gap: 14px; }
.pp-gate { font-size: 14.5px; background: #fef2f2; border: 1px solid #f5c2c2; border-radius: 8px; padding: 8px 12px; }
.pp-back { align-self: center; font-size: 15px; color: var(--model); border: 1.5px dashed var(--model); border-radius: 20px; padding: 6px 16px; background: #fff; }

/* Registry and repository. */
.rr { display: flex; flex-direction: column; gap: 12px; }
.rr-flows { display: grid; gap: 10px; }
.rr-flows > div { display: flex; flex-direction: column; gap: 6px; }
.hs-tag { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sv-ink2); }

/* Context rot. */
.cr-line { fill: none; stroke: var(--model); stroke-width: 3; }
.cr-lean { fill: #e3f6ee; }
.cr-t { font-size: 13.5px; font-weight: 700; fill: var(--data); }
.cr-t.no { fill: var(--no); }
.cr-dot { fill: var(--no); }

/* The history. */
.th { stroke-width: 1.5; }
.th.old { fill: #eceff3; stroke: #9aa3ad; }
.th.new { fill: #f1eafe; stroke: var(--model); }
.th.sum { fill: #e2f1fa; stroke: var(--code); }
.th-t { font-size: 13.5px; font-weight: 700; fill: var(--sv-ink); }

/* Prompt caching. */
.pk-in { font-size: 12.5px; font-weight: 600; fill: var(--sv-ink); }
.pk-hit { fill: none; stroke: var(--ok); stroke-width: 3; }
.pk-ht { font-size: 13px; font-weight: 700; fill: var(--ok); }
.pk-w { font-size: 13px; fill: var(--sv-ink2); font-style: italic; }

@media (max-width: 860px) {
  .rb-parts { grid-template-columns: 1fr 1fr; }
}
