/* The stack: children one above the next, with the same space between each pair and none at the
   ends. From Every Layout (https://every-layout.dev/layouts/stack/). A layout primitive, so it
   holds only what makes a stack a stack; a component's own rules go in that component's file. */
.stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stack > * {
  margin-block: 0;
}

.stack > * + * {
  margin-block-start: var(--stack-margin);
}

.stack-s > * + * {
  margin-block-start: var(--space-xs-s);
}

.stack-xs > * + * {
  margin-block-start: var(--space-3xs-2xs);
}
