/* ==========================================================================
   Utilities — single-purpose classes. They always win over components
   (utilities is the last cascade layer), so no !important is needed.
   ========================================================================== */

/* Corners — per element. For a whole area or app use .shape-sharp / .shape-soft / .shape-round */
.rounded-0 { border-radius: 0; }
.rounded-sm { border-radius: calc(var(--mo-radius-control) * .6); }
.rounded { border-radius: var(--mo-radius-control); }
.rounded-lg { border-radius: var(--mo-radius-card); }
.rounded-xl { border-radius: var(--mo-radius-7); }
.rounded-pill { border-radius: var(--mo-radius-pill); }
.rounded-circle { border-radius: 50%; }

/* Text overflow (alignment, sizes and the rest are generated by build.mjs, with breakpoint versions) */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-nowrap { white-space: nowrap; }

/* Screen-reader only: hidden on screen, still read aloud */
.visually-hidden,
.visually-hidden-focusable:not(:focus, :focus-within) {
  position: absolute !important;
  /* Pinned to a corner: left at its natural spot it could stick out past a wide table
     and push the page sideways */
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
