/* DIAGRAMS — figure shell (generated copy for the apex: landing/public/diagrams/diagrams.css, build.mjs keeps them equal).
   The SVG sizes itself from its viewBox (width 100 %, height auto) → no layout shift while fonts load.
   Two layouts per diagram: the wide one (1200 units) needs ≥ 900 px to keep its 11.5 px labels legible; narrower containers —
   phones, and the /docs article column — get the stacked `-tall` layout (container query; the media query is the fallback). */
.dg-fig { margin: 0; width: 100%; max-width: 1200px; color: var(--fg, #fff); container-type: inline-size; }
.dg-fig svg { display: block; width: 100%; height: auto; }
.dg-fig .dg-tall { display: none; max-width: 480px; }
@media (max-width: 719px) { .dg-fig .dg-wide { display: none; } .dg-fig .dg-tall { display: block; } }
@container (max-width: 899px) { .dg-fig .dg-wide { display: none; } .dg-fig .dg-tall { display: block; } }
