/* utilities.css — helpers */

.flex   { display: flex; }
.iflex  { display: inline-flex; }
.grid   { display: grid; }
.block  { display: block; }
.hidden { display: none; }

.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }

.flex-1     { flex: 1; }
.flex-col   { flex-direction: column; }
.flex-wrap  { flex-wrap: wrap; }

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

.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }

.mb-1 { margin-bottom: var(--sp-1); } .mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--sp-2); } .p-3 { padding: var(--sp-3); } .p-4 { padding: var(--sp-4); }
.p-5 { padding: var(--sp-5); } .p-6 { padding: var(--sp-6); }

.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }

.text-text { color: var(--c-text); }
.text-muted { color: var(--c-muted); }
.text-dim { color: var(--c-dim); }
.text-lime { color: var(--c-lime); }
.text-purple { color: var(--c-violet); }
.text-red { color: var(--c-red); }
.text-gold { color: var(--c-gold); }

.font-display { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.font-mono { font-family: var(--font-mono); }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.italic { font-style: italic; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.rounded { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: 50%; }

.border { border: 1px solid var(--c-border-2); }
.border-top { border-top: 1px solid var(--c-border-2); }
.border-bottom { border-bottom: 1px solid var(--c-border-2); }

.bg-surface { background: var(--c-surface); }
.bg-bg2 { background: var(--c-bg-2); }

.cursor-pointer { cursor: pointer; }
.relative { position: relative; }
.absolute { position: absolute; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }

@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-md-1 { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
}
@media (min-width: 881px) {
  .hide-desktop { display: none; }
}

.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon-sm svg { width: 16px; height: 16px; }
.icon-md svg { width: 20px; height: 20px; }
.icon-lg svg { width: 24px; height: 24px; }
