/* Layout for the density/baseline doc examples. Minimal: an inline row of
 * controls (so their baselines can be read against the overlay together) and a
 * vertical stack for comparing two cells. No overrides that would shift text off
 * the grid — the examples must show the real seating.
 *
 * Layer: ds.components.global (@canonical/styles README, "Cascade layers").
 */

@layer ds.components.global {
  .density-example__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start; /* controls are top-referenced; the seat is internal */
    gap: calc(var(--baseline-height, 0.25rem) * 3); /* 12px */
    overflow-x: auto;
  }

  .density-example__stack {
    display: flex;
    flex-direction: column;
    /* One field-block gap between the compared cells, so the stack itself stays on
       the grid. */
    gap: calc(var(--baseline-height, 0.25rem) * 6); /* 24px */
  }
}
