/* engineering.css, VerifAIer engineering architecture docs (Phase 4).
   Loaded after content.css. Reuses the site tokens; adds diagram framing,
   wider prose for technical content, schema/field tables and code affordances. */

/* Slightly wider column than legal/marketing prose, engineering content carries
   diagrams, wide tables and JSON. */
.st-prose--eng { max-width: 940px; }

/* Mermaid diagram frame. Always horizontally scrollable so a wide graph never
   forces the page body to scroll (see artifact/reflow rules). */
.st-diagram {
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--elevated, #0d1520);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow-x: auto;
}
.st-diagram pre.mermaid {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  text-align: center;
  min-width: min-content;
  font-size: 0;               /* hide raw source before render */
  color: transparent;
}
.st-diagram pre.mermaid svg { max-width: 100%; height: auto; }
.st-diagram__cap {
  display: block;
  margin-top: .75rem;
  color: var(--faint);
  font-size: .78rem;
  font-family: var(--mono);
  text-align: center;
}

/* Wide code + schema JSON scroll inside their own box. */
.st-prose pre.st-code { overflow-x: auto; }

/* Schema / field reference tables reuse .st-methods; these add wrapping + tags. */
.st-fieldtable { width: 100%; overflow-x: auto; }
.st-fieldtable table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 1.1rem 0; }
.st-fieldtable th, .st-fieldtable td { padding: .6rem .75rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.st-fieldtable thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.st-fieldtable td code { white-space: nowrap; font-family: var(--mono); font-size: .82em; }

/* Inline monospace token / id-prefix pill. */
.st-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.6;
  padding: .05rem .45rem;
  border-radius: 5px;
  background: var(--brand-bg);
  color: var(--brand);
  border: 1px solid rgba(0, 229, 160, .25);
}

/* "On this page" secondary nav inside the prose for long engineering pages. */
.st-onpage { margin: 0 0 2rem; padding: 1rem 1.25rem; background: var(--elevated, #0d1520); border: 1px solid var(--line-soft); border-radius: var(--r); }
.st-onpage h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 .6rem; }
.st-onpage ul { margin: 0 0 0 1.05rem; }
.st-onpage li { margin-bottom: .3rem; }

/* Grounding note, ties a claim to the file that implements it. */
.st-src { display: block; margin: .4rem 0 1.25rem; color: var(--faint); font-size: .8rem; font-family: var(--mono); }
.st-src::before { content: "source: "; color: var(--brand); }
