/* ==========================================================================
   ZENNTAC — Utilities
   --------------------------------------------------------------------------
   A deliberately small set of single-purpose helpers. Loaded last so they
   win over component styles of equal specificity. Add a utility only when
   the same need appears in several unrelated components.
   Depends on tokens.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

/* Hidden visually, still announced by screen readers. */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   RTL
   Directional icons (arrows, chevrons) point "forward" in LTR and flip in
   RTL. Non-directional icons (search, close, logo) must not use this.
   -------------------------------------------------------------------------- */
.icon--directional:dir(rtl) {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Text
   start/end follow the writing direction; never use left/right here.
   -------------------------------------------------------------------------- */
.text-start {
  text-align: start;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: end;
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

/* Comfortable reading line length for prose blocks. */
.measure {
  max-inline-size: var(--measure);
}
