/* The capability map (article one, Fig. 1): the Business Capability Map the assistant built from Ardoq's repository,
   rebuilt as HTML in the diagram's look (diagram.css): its parts, its lamp on the one part the map was for, its wires
   with a ring where they leave and a dot where they land, blue only into the lit part. The levels stack down the
   column, each a part with what it holds. No sand and no band: nothing here crosses a boundary. Every value is one the
   stylesheets already hold. Loaded by that essay only, after diagram.css. */
.cm { margin: 52px 0 48px; }
.cm .cm-live { margin-block: 0; display: grid; }
@media (min-width: 1240px) {
  .prose .cm .cm-live { padding-top: 0; }
  .prose .cm .cm-live > * { width: 100%; max-width: 880px; margin-inline: auto; }
}
.cm .fig-cap { margin-top: 40px; }

/* the page's own head, as the map had it */
.cm-head { display: grid; justify-items: start; row-gap: 8px; margin-bottom: 28px; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cm-chip, .cm-lvl, .cm-on, .cm-kids-h, .cm-kid span, .cm-stats dt { font-family: var(--font-label); font-size: 11px; line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cm-chip { padding: 4px 12px; border: 1px solid var(--dia-part-edge); border-radius: 3px; }
.cm-title { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); }
.cm-sub { max-width: 46ch; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* a level: its number and kind, then its name, what it covers and what it holds */
.cm .n { width: 100%; }
.cm-top { display: flex; align-items: baseline; justify-content: space-between; column-gap: 16px; width: 100%; margin-bottom: 8px; }
.cm-on { display: inline-flex; align-items: center; column-gap: 6px; }
.cm-on::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
.cm-desc { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cm .n.lit .cm-desc, .cm .n.lit .cm-lvl { color: var(--ink); }
.cm-kids-h { margin-top: 16px; }
.cm-kids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 8px; }
.cm-kid { display: grid; align-content: start; row-gap: 2px; padding: 8px 12px; background: var(--dia-part); border: 1px solid var(--dia-part-edge); border-radius: 3px; }
.cm-kid b { font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.cm .n.lit .cm-kid { background: none; border-color: var(--dia-lit-edge); }
@media (min-width: 1240px) { .cm-kids.many { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* the wire from one level down to the next */
.cm-w { display: block; width: 12px; height: 40px; margin-left: 28px; overflow: visible; }

/* what the map counted */
.cm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 15px; background: var(--dia-part); border: 1px solid var(--dia-part-edge); border-radius: 6px; }
.cm-stats div { display: grid; justify-items: center; row-gap: 4px; }
.cm-stats dd { order: -1; margin: 0; font-family: var(--font-label); font-size: 28px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .cm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
