/*!
 * tailwind-local.css — Hand-crafted utility subset for OriensCV.Com
 * ────────────────────────────────────────────────────────────────────
 * Replaces the Tailwind Play CDN (cdn.tailwindcss.com) which:
 *   • Is officially NOT supported for production (Tailwind docs).
 *   • Cannot use SRI because the bundle hash changes silently.
 *   • Loads 80+ KB of JIT runtime + every utility class.
 *
 * This file:
 *   • Ships ONLY the ~195 utility classes actually used by index.html.
 *   • Is locally served from /tailwind-local.css with a strong SRI hash.
 *   • Removes the need for `'unsafe-inline'` on cdn.tailwindcss.com in CSP.
 *
 * Build origin: utility list extracted with
 *   grep -oE 'class="[^"]*"' index.html | tr ' "' '\n\n' | sort -u
 * Each utility below maps 1:1 onto Tailwind's official class names so
 * the markup never needs to change.
 *
 * Custom palette extensions (forge / ink / cyan-400 / cyan-500) are
 * defined first as CSS variables so they can be referenced inline.
 * ────────────────────────────────────────────────────────────────────
 */

:root {
  --forge-50:  #faf5ff;
  --forge-100: #f3e8ff;
  --forge-400: #c084fc;
  --forge-500: #a855f7;
  --forge-600: #7c3aed;
  --forge-700: #6d28d9;
  --forge-900: #4c1d95;
  --ink-900:   #0d0f1a;
  --ink-800:   #131627;
  --ink-700:   #181b2e;
  --cyan-400:  #22d3ee;
  --cyan-500:  #06b6d4;
}

/* ─── Reset / antialiasing ──────────────────────────────────────────── */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

/* ─── Position ─────────────────────────────────────────────────────── */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.inset-0  { inset: 0; }
.top-0    { top: 0; }
.z-40     { z-index: 40; }
.overflow-hidden { overflow: hidden; }

/* ─── Flex / Grid ─────────────────────────────────────────────────── */
.flex-1        { flex: 1 1 0%; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0      { flex-shrink: 0; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ─── Spacing — gap ───────────────────────────────────────────────── */
.gap-1   { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2   { gap: 0.5rem; }
.gap-3   { gap: 0.75rem; }
.gap-4   { gap: 1rem; }
.gap-5   { gap: 1.25rem; }
.gap-8   { gap: 2rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-y-2 { row-gap: 0.5rem; }

/* ─── Spacing — margin ────────────────────────────────────────────── */
.mb-1   { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2   { margin-bottom: 0.5rem; }
.mb-3   { margin-bottom: 0.75rem; }
.mb-4   { margin-bottom: 1rem; }
.mb-5   { margin-bottom: 1.25rem; }
.mb-6   { margin-bottom: 1.5rem; }
.mb-7   { margin-bottom: 1.75rem; }
.mb-10  { margin-bottom: 2.5rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1   { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2   { margin-top: 0.5rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-3   { margin-top: 0.75rem; }
.mt-4   { margin-top: 1rem; }
.mt-5   { margin-top: 1.25rem; }
.mt-6   { margin-top: 1.5rem; }

.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── Spacing — padding ───────────────────────────────────────────── */
.p-0  { padding: 0; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }

.px-3 { padding-left: 0.75rem;  padding-right: 0.75rem; }
.px-4 { padding-left: 1rem;     padding-right: 1rem; }
.py-1 { padding-top: 0.25rem;   padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem;    padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem;   padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem;      padding-bottom: 1rem; }
.py-8 { padding-top: 2rem;      padding-bottom: 2rem; }
.py-12 { padding-top: 3rem;     padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem;   padding-bottom: 3.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-12 { padding-top: 3rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-8 { padding-bottom: 2rem; }
.pr-1 { padding-right: 0.25rem; }

/* ─── Spacing — space-y (sibling-flow margin) ─────────────────────── */
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2   > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3   > * + * { margin-top: 0.75rem; }
.space-y-5   > * + * { margin-top: 1.25rem; }
.space-y-6   > * + * { margin-top: 1.5rem; }

/* ─── Width / Height ─────────────────────────────────────────────── */
.w-2     { width: 0.5rem; }
.w-4     { width: 1rem; }
.w-20    { width: 5rem; }
.w-full  { width: 100%; }
.\!w-auto { width: auto !important; }
.h-1\.5  { height: 0.375rem; }
.h-2     { height: 0.5rem; }
.h-4     { height: 1rem; }
.h-14    { height: 3.5rem; }
.h-16    { height: 4rem; }
.h-20    { height: 5rem; }
.h-full  { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-xl  { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[1920px\] { max-width: 1920px; }

/* ─── Typography ────────────────────────────────────────────────── */
.text-xs   { font-size: 0.75rem;   line-height: 1rem; }
.text-sm   { font-size: 0.875rem;  line-height: 1.25rem; }
.text-base { font-size: 1rem;      line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem;  line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;   line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;    line-height: 2rem; }
.text-3xl  { font-size: 1.875rem;  line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;   line-height: 2.5rem; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 900; }

.font-display { font-family: "Playfair Display", Georgia, serif; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-white  { color: #ffffff; }
.text-forge-400 { color: var(--forge-400); }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight    { line-height: 1.25; }
.leading-relaxed  { line-height: 1.625; }
.underline        { text-decoration: underline; }
.line-through     { text-decoration: line-through; }
.break-all        { word-break: break-all; }

/* ─── Background / Border ────────────────────────────────────────── */
.bg-transparent { background-color: transparent; }
.bg-white\/10   { background-color: rgba(255, 255, 255, 0.10); }

.border-none { border-style: none; }

.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.backdrop-blur     { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-xl  { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.shadow-2xl        { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* ─── Interactivity / Misc ──────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.transition-all    { transition-property: all;        transition-duration: 150ms; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-duration: 150ms; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.-rotate-90 { transform: rotate(-90deg); }
.fade-in    { animation: ocvFadeIn 0.35s ease; }

@keyframes ocvFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Responsive (sm: ≥ 640px) ───────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:flex          { display: flex; }
  .sm\:flex-row      { flex-direction: row; }
  .sm\:grid-cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6          { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-10          { padding: 2.5rem; }
  .sm\:p-12          { padding: 3rem; }
  .sm\:text-5xl      { font-size: 3rem; line-height: 1; }
}

/* ─── Responsive (md: ≥ 768px) ───────────────────────────────────── */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
}

/* ─── Responsive (lg: ≥ 1024px) ──────────────────────────────────── */
@media (min-width: 1024px) {
  .lg\:flex           { display: flex; }
  .lg\:hidden         { display: none; }
  .lg\:max-w-5xl      { max-width: 64rem; }
  .lg\:gap-3          { gap: 0.75rem; }
  .lg\:col-span-1     { grid-column: span 1 / span 1; }
  .lg\:grid-cols-4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[minmax\(240px\,3fr\)_minmax\(220px\,2fr\)_minmax\(280px\,4fr\)\] {
    grid-template-columns: minmax(240px, 3fr) minmax(220px, 2fr) minmax(280px, 4fr);
  }
  .lg\:px-4           { padding-left: 1rem; padding-right: 1rem; }
  .lg\:py-2           { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .lg\:self-start     { align-self: flex-start; }
  .lg\:sticky         { position: sticky; }
  .lg\:top-\[44px\]   { top: 44px; }
}

/* ─── Responsive (xl: ≥ 1280px) ──────────────────────────────────── */
@media (min-width: 1280px) {
  .xl\:px-6 { padding-left: 1.5rem;  padding-right: 1.5rem; }
  .xl\:px-8 { padding-left: 2rem;    padding-right: 2rem; }
}
