/* PathKEY — Report Studio · Algorithms (WS-ALGO, spec 2.5). The page reuses
 * the Scorings page's rows (.sc-tags) and the sample panel's fields
 * (.try-grid); these rules only fit what an algorithm adds to them. */

/* A category's cases are a list inside a row: its items are plain list items,
 * not rows of the three-column grid (.sc-tags li). */
.sc-tags .dlg-list { margin: 0; }
.sc-tags .dlg-list li { display: list-item; padding: 0; border-top: 0; font-size: inherit; }

/* Review R2-P3: the page is a size container of its own. Its rows are the
 * Scorings page's three-column grid, which stacks in the Scorings page's
 * detail container (scd) only: here they stack below 720px of page width, so
 * at phone width a sentence keeps its line and no column runs into the next. */
.alg-page { container: alg / inline-size; }
@container alg (max-width: 720px) {
  .alg-page .sc-tags li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* The sample respondent and a product's sample answers: the fields, then the results. */
.alg-try, .alg-product { display: flex; flex-direction: column; gap: var(--sp-3); }
.alg-product-pick { max-width: 360px; }
.alg-try-out .sc-cell-sub, .alg-product .sc-cell-sub { display: block; }

/* The Builder's card of a product's algorithms. */
.b-alg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.b-alg { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; }
.b-alg + .b-alg { border-top: 1px solid var(--line-soft); }
.b-alg-text { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.b-alg-name { margin: 0; font-weight: 600; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.b-alg-text p { margin: 0; }
