/*
 * Small set of plain-CSS utility classes used by the admin views and a few shared pages.
 * Written by hand so the site has no CSS framework or build step.
 * Mobile-first: the only breakpoint is 640px (sm), and it only affects the two classes that need it.
 */

/* ── Base defaults the pages rely on (same behaviour the old framework reset gave) ── */
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ol, ul, menu { list-style: none; }

/* ── Display & layout ── */
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-x-auto { overflow-x: auto; }
.cursor-pointer { cursor: pointer; }
.text-center { text-align: center; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ── Sizing ── */
.h-4 { height: 1rem; }
.h-12 { height: 3rem; }
.w-4 { width: 1rem; }
.w-full { width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }

/* ── Spacing ── */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-2 { padding-top: 0.5rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* ── Radius ── */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* ── Type ── */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tracking-widest { letter-spacing: 0.1em; }

/* ── Colour & interaction ── */
.accent-indigo-500 { accent-color: #6366f1; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.hover\:text-indigo-400:hover { color: #818cf8; }

/* ── Responsive: two columns from 640px up ── */
.sm\:grid-cols-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
}

/* ── Shared admin card (used by the 2FA setup and project forms) ── */
.app-card {
    background: var(--card, #121219);
    border: 1px solid var(--border, #232331);
    border-radius: 1rem;
}
