/* =============================================================
   Procure.build — Utilities
   Single-purpose classes. Kept minimal and purposeful.
   ============================================================= */

/* ----- Typography ----- */

.txt-xs     { font-size: var(--font-size-xs); }
.txt-sm     { font-size: var(--font-size-sm); }
.txt-base   { font-size: var(--font-size-base); }
.txt-lg     { font-size: var(--font-size-lg); }

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

.txt-normal   { font-weight: var(--font-weight-normal); }
.txt-medium   { font-weight: var(--font-weight-medium); }
.txt-semibold { font-weight: var(--font-weight-semibold); }

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

.txt-nowrap    { white-space: nowrap; }
.txt-truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txt-mono      { font-family: var(--font-mono); }

/* ----- Spacing ----- */

.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.mx-auto { margin-inline: auto; }
.space-y-2 { & > * + * { margin-top: var(--space-2); } }
.gap-2 { gap: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.p-4 { padding: var(--space-4); }

/* ----- Display ----- */

.flex         { display: flex; }
.flex-row     { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.inline-flex  { display: inline-flex; }
.hidden       { display: none; }
.grow        { flex-grow: 1; }

.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }

.justify-end    { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-apart  { justify-content: space-between; }

.flex-1    { flex: 1; }
.flex-none { flex: none; }
.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ----- Sizing ----- */

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.min-w-0 { min-width: 0; }
.w-5xl { width: 60rem; }

/* ----- Borders & radius ----- */

.rounded-sm { border-radius: var(--radius-sm); }
.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.border         { border: 1px solid var(--color-border); }
.border-subtle  { border: 1px solid var(--color-border-subtle); }
.border-top     { border-top: 1px solid var(--color-border); }
.border-bottom  { border-bottom: 1px solid var(--color-border); }

/* grids */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ----- Backgrounds ----- */

.bg-surface        { background-color: var(--color-surface); }
.bg-surface-raised { background-color: var(--color-surface-raised); }
.bg-accent-subtle  { background-color: var(--color-accent-subtle); }

/* ----- Status / compliance ratings ----- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--green  { background-color: var(--color-green-subtle);  color: var(--color-green); }
.badge--yellow { background-color: var(--color-yellow-subtle); color: var(--color-yellow); }
.badge--red    { background-color: var(--color-red-subtle);    color: var(--color-red); }
.badge--subtle { background-color: var(--color-surface); color: var(--color-text-subtle); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

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

.visually-hidden {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

list.inline li {
  display: inline-block;
}