/*!
 * Portfel Ongoing — Tailwind subset (static).
 *
 * Hand-rolled subset of the Tailwind utility classes the plugin actually
 * uses. Replaces the Play CDN (~250 KB JS + JIT compilation) with ~30 KB
 * of static CSS. If a new utility is needed, add it here.
 *
 * Order matters (cascade):
 *   1. preflight reset
 *   2. base utilities (display, position)
 *   3. layout (flex, grid)
 *   4. spacing
 *   5. sizing
 *   6. typography
 *   7. backgrounds + borders
 *   8. colors (text, bg, border)
 *   9. effects (shadow, ring, transition)
 *   10. responsive variants (sm:, md:, lg:)
 *   11. state variants (hover:, focus:, disabled:, group-hover:)
 */

/* ---------------- preflight reset ---------------- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
::before, ::after { --tw-content: ''; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { margin: 0; line-height: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
abbr:where([title]) { text-decoration: underline dotted; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; } sup { top: -0.5em; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; background-color: transparent; background-image: none; }
:-moz-focusring { outline: auto; }
:-moz-ui-invalid { box-shadow: none; }
progress { vertical-align: baseline; }
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
[type='search'] { -webkit-appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
summary { display: list-item; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
fieldset { margin: 0; padding: 0; } legend { padding: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
dialog { padding: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden] { display: none; }

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

/* ---------------- position ---------------- */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; } .top-2 { top: 0.5rem; } .top-full { top: 100%; }
.top-1\/2 { top: 50%; }
.lg\:top-20 { /* see lg: section */ }
.right-0 { right: 0; } .right-2 { right: 0.5rem; } .right-3 { right: 0.75rem; }
.-right-0\.5 { right: -0.125rem; }
.left-3 { left: 0.75rem; }
.-top-0\.5 { top: -0.125rem; }
.bottom-2 { bottom: 0.5rem; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* ---------------- transform ---------------- */
.-translate-y-1\/2 { transform: translateY(-50%); }

/* ---------------- flex / grid layout ---------------- */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }

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

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

.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.shrink-0 { flex-shrink: 0; }

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

.gap-0\.5 { gap: 0.125rem; }
.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; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f1f5f9; }
.divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: #e2e8f0; }

/* ---------------- sizing ---------------- */
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-56 { width: 14rem; }
.w-80 { width: 20rem; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.min-w-\[1\.1rem\] { min-width: 1.1rem; }

.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-\[1\.1rem\] { height: 1.1rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[80vh\] { min-height: 80vh; }
.max-h-screen { max-height: 100vh; }
.max-h-\[60vh\] { max-height: 60vh; }
.max-h-\[70vh\] { max-height: 70vh; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }

/* ---------------- spacing ---------------- */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.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; }
.ml-1 { margin-left: 0.25rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-6 { padding-right: 1.5rem; }

/* ---------------- borders + radius ---------------- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ---------------- typography ---------------- */
.text-\[10px\] { font-size: 10px; line-height: 1; }
.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.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-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

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

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-\[0\.5em\] { letter-spacing: 0.5em; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.tabular-nums { font-variant-numeric: tabular-nums; }

.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.object-contain { object-fit: contain; }

/* ---------------- colors: backgrounds ---------------- */
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-500 { background-color: #10b981; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-500 { background-color: #ef4444; }
.bg-portfel-50 { background-color: #eff6ff; }
.bg-portfel-100 { background-color: #dbeafe; }
.bg-portfel-500 { background-color: #2f6bff; }
.bg-portfel-600 { background-color: #1d4ed8; }
.bg-portfel-900 { background-color: #040816; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }

/* ---------------- colors: text ---------------- */
.text-white { color: #fff; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-blue-700 { color: #1d4ed8; }
.text-portfel-600 { color: #1d4ed8; }
.text-portfel-700 { color: #1e40af; }
.text-portfel-900 { color: #040816; }

/* ---------------- colors: borders ---------------- */
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-amber-100 { border-color: #fef3c7; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-red-200 { border-color: #fecaca; }
.border-portfel-300 { border-color: #93c5fd; }
.border-portfel-500 { border-color: #2f6bff; }

/* ---------------- effects ---------------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.opacity-25 { opacity: 0.25; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.transition { transition: all 0.15s ease; }
.transition-all { transition: all 0.15s ease; }
.duration-500 { transition-duration: 0.5s; }

.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* Focus rings (Tailwind-like) */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(59, 130, 246, 0.5)); }
.focus\:ring-portfel-100:focus { --tw-ring-color: rgba(219, 234, 254, 0.5); }
.focus\:ring-portfel-500:focus { --tw-ring-color: rgba(47, 107, 255, 0.4); }
.focus\:border-portfel-500:focus { border-color: #2f6bff; }
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(59, 130, 246, 0.5)); }
.ring-portfel-500\/20 { --tw-ring-color: rgba(47, 107, 255, 0.2); }
.ring-portfel-500\/30 { --tw-ring-color: rgba(47, 107, 255, 0.3); }

/* sr-only — assistive only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ---------------- backdrop ---------------- */
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------------- animations ---------------- */
@keyframes pfo-spin { to { transform: rotate(360deg); } }
@keyframes pfo-pulse { 50% { opacity: 0.5; } }
.animate-spin { animation: pfo-spin 1s linear infinite; }
.animate-pulse { animation: pfo-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ---------------- prose (very minimal — only what we use) ---------------- */
.prose { max-width: 65ch; color: #374151; }
.prose-sm { font-size: 0.875rem; line-height: 1.7; }
.prose p { margin-top: 1em; margin-bottom: 1em; }
.prose ul { list-style: disc; margin: 1em 0; padding-left: 1.5em; }
.prose ol { list-style: decimal; margin: 1em 0; padding-left: 1.5em; }
.prose li { margin: 0.25em 0; }
.prose strong { font-weight: 600; color: inherit; }
.prose a { color: #1d4ed8; text-decoration: underline; }
.prose code { background: #f1f5f9; padding: 1px 4px; border-radius: 3px; font-size: 0.875em; }

/* ---------------- hover state variants ---------------- */
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:bg-portfel-50:hover { background-color: #eff6ff; }
.hover\:bg-portfel-700:hover { background-color: #1e40af; }
.hover\:bg-emerald-100:hover { background-color: #d1fae5; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:bg-red-100:hover { background-color: #fee2e2; }
.hover\:text-slate-700:hover { color: #334155; }
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:text-portfel-700:hover { color: #1e40af; }
.hover\:text-portfel-900:hover { color: #040816; }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:border-portfel-300:hover { border-color: #93c5fd; }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.group:hover .group-hover\:text-portfel-700 { color: #1e40af; }

/* ---------------- disabled state ---------------- */
.disabled\:opacity-60:disabled { opacity: 0.6; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ---------------- responsive: sm (640px+) ---------------- */
@media (min-width: 640px) {
	.sm\:flex { display: flex; }
	.sm\:inline { display: inline; }
	.sm\:flex-row { flex-direction: row; }
	.sm\:items-center { align-items: center; }
	.sm\:items-end { align-items: flex-end; }
	.sm\:justify-between { justify-content: space-between; }
	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sm\:p-10 { padding: 2.5rem; }
	.sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
	.sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
	.sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
	.sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
	.sm\:rounded-2xl { border-radius: 1rem; }
	.sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
	.sm\:max-h-\[85vh\] { max-height: 85vh; }
	.sm\:w-72 { width: 18rem; }
}

/* ---------------- responsive: md (768px+) ---------------- */
@media (min-width: 768px) {
	.md\:flex { display: flex; }
	.md\:flex-row { flex-direction: row; }
	.md\:items-center { align-items: center; }
}

/* ---------------- responsive: lg (1024px+) ---------------- */
@media (min-width: 1024px) {
	.lg\:flex-row { flex-direction: row; }
	.lg\:items-center { align-items: center; }
	.lg\:gap-4 { gap: 1rem; }
	.lg\:col-span-2 { grid-column: span 2 / span 2; }
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:grid-cols-\[220px_1fr\] { grid-template-columns: 220px 1fr; }
	.lg\:grid-cols-\[2fr_1fr\] { grid-template-columns: 2fr 1fr; }
	.lg\:sticky { position: sticky; }
	.lg\:top-20 { top: 5rem; }
}
