/* =========================
   .u-* — utilities
   Small classes that each do one layout job, prefixed u- (code-structure.md section 16): no colour, border or
   other look, which belongs in the component. Loaded by base.html after every other stylesheet, so a utility
   wins over a component rule of the same weight without !important. A new one only when two components need it.
   ========================= */

/* Centre the content on both axes */
.u-center {
  align-items: center;
  display: flex;
  justify-content: center;
}

/* Put the children under each other with a gap; a component may set --stack-gap to another --space-* token */
.u-stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-sm));
}

/* Hide an element from sight but not from a screen reader (a checkbox behind its label, a heading) */
.u-visually-hidden {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
