/* ============================================================
   paragraf.tools — Utility Classes
   Replaces most common inline styles across templates.
   ============================================================ */

/* ── Display ── */
.u-hidden { display: none; }
.u-flex { display: flex; }
.u-grid { display: grid; }
.u-block { display: block; }
.u-inline { display: inline; }
.u-inline-block { display: inline-block; }

/* ── Flex shortcuts ── */
.u-flex-center { display: flex; align-items: center; }
.u-flex-between { display: flex; justify-content: space-between; align-items: center; }
.u-flex-col { display: flex; flex-direction: column; }
.u-flex-wrap { flex-wrap: wrap; }
.u-flex-1 { flex: 1; }

/* ── Grid shortcuts ── */
.u-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.u-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ── Gap ── */
.u-gap-4 { gap: 4px; }
.u-gap-6 { gap: 6px; }
.u-gap-8 { gap: 8px; }
.u-gap-10 { gap: 10px; }
.u-gap-12 { gap: 12px; }
.u-gap-14 { gap: 14px; }
.u-gap-16 { gap: 16px; }
.u-gap-20 { gap: 20px; }

/* ── Text align ── */
.u-text-center { text-align: center; }
.u-text-right { text-align: right; }
.u-text-left { text-align: left; }

/* ── Margin top ── */
.u-mt-0 { margin-top: 0; }
.u-mt-4 { margin-top: 4px; }
.u-mt-6 { margin-top: 6px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-18 { margin-top: 18px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-24 { margin-top: 24px; }

/* ── Margin bottom ── */
.u-mb-0 { margin-bottom: 0; }
.u-mb-4 { margin-bottom: 4px; }
.u-mb-6 { margin-bottom: 6px; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-10 { margin-bottom: 10px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-14 { margin-bottom: 14px; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-18 { margin-bottom: 18px; }
.u-mb-20 { margin-bottom: 20px; }

/* ── Margin horizontal auto ── */
.u-mx-auto { margin-left: auto; margin-right: auto; }

/* ── Padding ── */
.u-p-12 { padding: 12px; }
.u-p-14 { padding: 14px; }
.u-p-16 { padding: 16px; }
.u-pt-0 { padding-top: 0; }

/* ── Font size (semantic scale) ── */
.u-text-2xs { font-size: .72rem; }
.u-text-xs { font-size: .78rem; }
.u-text-sm { font-size: .82rem; }
.u-text-md { font-size: .88rem; }
.u-text-base { font-size: .9rem; }
.u-text-lg { font-size: .95rem; }
.u-text-xl { font-size: 1.05rem; }

/* ── Font weight ── */
.u-fw-500 { font-weight: 500; }
.u-fw-600 { font-weight: 600; }
.u-fw-700 { font-weight: 700; }

/* ── Colors (text, using design tokens) ── */
.u-color-light { color: var(--text-light); }
.u-color-light-dim { color: var(--text-light-dim); }
.u-color-dark { color: var(--text-dark); }
.u-color-dark-dim { color: var(--text-dark-dim); }
.u-color-orange { color: var(--orange-400); }
.u-color-muted { color: var(--neutral-400); }
.u-color-success { color: #16a34a; }
.u-color-error { color: #DC2626; }

/* ── Max width ── */
.u-max-w-600 { max-width: 600px; }
.u-max-w-780 { max-width: 780px; }

/* ── Misc ── */
.u-cursor-pointer { cursor: pointer; }
.u-nowrap { white-space: nowrap; }
.u-border-none { border: none; }

/* ── Checkbox styling ── */
.u-checkbox { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

/* ── Card container ── */
.u-card { background: var(--surface); border: 1px solid var(--ivory-mid); border-radius: 8px; padding: 14px; margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .u-grid-2 { grid-template-columns: 1fr; }
  .u-grid-3 { grid-template-columns: 1fr; }
}
