/* Visually hidden but accessible */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Text alignment */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }

/* Font family */
.font-mono { font-family: var(--font-mono); }

/* Font sizes */
.font-xs { font-size: var(--text-xs); }
.font-sm { font-size: var(--text-sm); }
.font-base { font-size: var(--text-base); }
.font-md { font-size: var(--text-md); }
.font-lg { font-size: var(--text-lg); }
.font-xl { font-size: var(--text-xl); }
.font-2xl { font-size: var(--text-2xl); }
.font-3xl { font-size: var(--text-3xl); }

/* Font weights */
.weight-normal { font-weight: var(--font-normal); }
.weight-medium { font-weight: var(--font-medium); }
.weight-semibold { font-weight: var(--font-semibold); }
.weight-bold { font-weight: var(--font-bold); }

/* Colors */
.color-primary { color: var(--color-primary); }
.color-muted { color: var(--color-text-muted); }
.color-success { color: var(--color-success); }
.color-warning { color: var(--color-warning); }
.color-error { color: var(--color-error); }

/* Backgrounds */
.bg-alt { background-color: var(--color-bg-alt); }
.bg-muted { background-color: var(--color-bg-muted); }
.bg-primary { background-color: var(--color-primary); }
.color-inverse { color: var(--color-text-inverse); }

/* Gaps */
.gap-xs { gap: var(--space-xs); }
.gap-s { gap: var(--space-s); }
.gap-m { gap: var(--space-m); }
.gap-l { gap: var(--space-l); }

/* Flow spacing */
.flow-space-s > * + * { margin-top: var(--space-s); }
.flow-space-m > * + * { margin-top: var(--space-m); }
.flow-space-l > * + * { margin-top: var(--space-l); }

/* Width */
.w-full { width: 100%; }

/* Overflow */
.overflow-x-auto { overflow-x: auto; }

/* Text transform */
.text-upper { text-transform: uppercase; }

/* Button reset — for <button> elements styled as text/links */
.button-reset {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* Checkbox label */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-size: var(--text-sm);
  cursor: pointer;
}

/* Padding */
.pt-s { padding-top: var(--space-s); }
.pt-m { padding-top: var(--space-m); }
.pt-l { padding-top: var(--space-l); }
.pt-xl { padding-top: var(--space-xl); }
.pt-3xl { padding-top: var(--space-3xl); }
.pb-l { padding-bottom: var(--space-l); }

/* Margin */
.mb-0 { margin-bottom: 0; }
.mb-m { margin-bottom: var(--space-m); }

/* Flex */
.flex-1 { flex: 1; }

/* Fading dots (. . .) — staggered opacity pulse */
.dot::after {
  content: ".";
}

.dot {
  font-size: 1.4em;
  font-weight: var(--font-bold);
  margin-inline-start: 0.1em;
  animation: dot-fade 1.4s infinite both;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-fade {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}
