/* Two layers: one call's path on the system's Lifelines, its names at the side (three lanes: the platform's a
   hairline, the AI agent's the violet path, a person's dashed until the warm transfer brings them in), on a card,
   which is the box they turn down by. Under it, the systems the agent runs inside on their tiles; then the
   ranking rules as a numbered list beside how the list was made. */
.cl-path { margin: 0; padding: var(--space-6) var(--space-7) var(--space-6); display: grid; gap: var(--space-6); }
.cl-path-title { margin: 0; }
/* What this card keeps of its own on Lifelines, which the recipe draws otherwise (drew.json): each name at the top of
   its row, level with its lane's first line; the platform's hairline in the lighter strong hairline, on white; down,
   the steps a size closer, each head a step lower beside its number; and on a German page the lanes' words hyphenate
   as the page's words do, where Lifelines would hyphenate a word from ten letters */
.cl-path .lifelines-name { align-items: flex-start; }
.cl-path .lifelines-name > img { margin-top: 2px; }
.cl-path .lifelines-name:not(.lifelines-name--ours, .lifelines-name--party)::before,
.cl-path .lifelines-lane:not(.lifelines-lane--ours, .lifelines-lane--party)::before { border-top-color: var(--border-strong); }
.cl-path .lifelines:lang(de) { hyphenate-limit-chars: inherit; }
@container lifelines (max-width: 835px) {
  .cl-path .lifelines-steps { gap: var(--space-5); }
  .cl-path .lifelines-step { gap: var(--space-2); }
  .cl-path .lifelines-step:not(:last-child)::after { bottom: calc(-1 * var(--space-5)); }
  .cl-path .lifelines-head { padding-top: var(--space-1); }
}

.cl-path-foot { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--space-4); align-items: center;
  padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.cl-path-foot > p { margin: 0; }
.cl-path-tiles { margin: 0; }

/* How it was ranked, beside how the list was made: two columns from one top line. The rules are priorities, not
   steps: a plain ordered list, each rank a tabular figure in primary ink, a hairline between the rules. */
.cl-rank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.cl-rank-rules, .cl-rank-how { display: grid; gap: var(--space-5); align-content: start; }
.cl-rank h3, .cl-rank p { margin: 0; }
.cl-rank-how { max-width: var(--measure); }
.cl-rank-list { margin: 0; padding: 0; list-style: none; counter-reset: cl-rule; border-block: 1px solid var(--border-subtle); }
.cl-rank-list li { counter-increment: cl-rule; display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr); column-gap: var(--space-3); align-items: baseline;
  padding-block: var(--space-3); color: var(--ink-primary); text-wrap: pretty; }
.cl-rank-list li + li { border-top: 1px solid var(--border-subtle); }
.cl-rank-list li::before { content: counter(cl-rule); font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); font-variant-numeric: tabular-nums; color: var(--ink-primary); }
.cl-rank-own { padding-left: var(--space-4); border-left: var(--line-current) solid var(--accent); color: var(--ink-primary); }

@media (max-width: 1199px) {
  .cl-path { padding: var(--space-5) var(--space-5) var(--space-5); }
  .cl-path-foot { grid-template-columns: minmax(0, 1fr); }
  .cl-rank { gap: var(--space-7); }
}
@media (max-width: 899px) {
  .cl-rank { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .cl-path { padding: var(--space-4) var(--space-4) var(--space-5); gap: var(--space-5); }
}

/* Less material (the type's own): the rules alone, or how the list was made alone, stand at the measure; a path with no
   systems under it ends on its last step */
.cl-rank--one { grid-template-columns: minmax(0, var(--measure)); }
