/* Leonardo Codex -- the page map (codex-map.js): one suite's tree as a nested, foldable list. */

.cxm-tree { list-style: none; margin: 0; padding: 0 0 0 18px; font-size: 14px; }
.cxm-root > .cxm-tree { padding-left: 0; }
.cxm-tree li.shut > .cxm-tree { display: none; }
.cxm-node { display: flex; align-items: center; gap: 6px; min-height: 36px; flex-wrap: wrap; }
.cxm-node a { color: #1D4ED8; text-decoration: none; padding: 6px 0; }
.cxm-node a:hover { text-decoration: underline; }
.cxm-fold { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; color: #555; font-size: 14px; padding: 0; }
.cxm-gap { display: inline-block; width: 28px; }
.cxm-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.cxm-chip { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #EEF2FF; color: #3730A3; }
.cxm-chip.warn { background: #FEF3C7; color: #92400E; }

/* The Map on the Codex home: one foldable band per suite, its edge in the suite's colour. */
.cx-map { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cx-map-band { border: 1px solid #E5E7EB; border-left: 4px solid var(--cx-edge, #6B7280); border-radius: 8px; background: #fff; }
.cx-map-head { display: flex; align-items: center; gap: 8px; padding: 2px 10px 2px 2px; }
.cx-map-toggle { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: transparent;
                 cursor: pointer; text-align: left; font-size: 15px; font-weight: 600; color: #111; padding: 0 8px; }
.cx-map-toggle .caret { width: 14px; color: #555; font-size: 13px; }
.cx-map-toggle svg { width: 18px; height: 18px; color: var(--cx-edge, #6B7280); flex: 0 0 auto; }
.cx-map-toggle .n { margin-left: auto; font-size: 12px; font-weight: 400; color: #6B7280; }
.cx-map-record { font-size: 13px; color: #1D4ED8; text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.cx-map-body { padding: 0 12px 8px 14px; }
.cx-map-band.shut .cx-map-body { display: none; }
.cx-map-empty { color: #6B7280; font-size: 13px; padding: 6px 0; }
