/**
 * Supplements ~/lib/tailwind/tailwind-2.2.19.min.css: arbitrary values (e.g. text-[#203669]),
 * opacity modifiers (hover:bg-[#...]/80), and focus rings that the default Tailwind 2 bundle does not emit.
 * Layout also loads this after ~/new/assets/css/style.css so these rules win when they overlap utilities.
 * Replaces @tailwindcss/browser (Play CDN), which compiles arbitrary classes at runtime and is not CSP-friendly.
 */

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

/* ---- Layout & display ---- */
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* ---- Flexbox ---- */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.min-h-0 { min-height: 0; }
.min-w-0 { min-width: 0; }

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

/* ---- Spacing: gap ---- */
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* ---- Space-y (margin-top on children) ---- */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.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-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* ---- Padding ---- */
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.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; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-14 { padding-top: 3.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-32 { padding-bottom: 8rem; }
.pe-5 { padding-inline-end: 1.25rem; }
.\!p-0 { padding: 0 !important; }

/* ---- Margin ---- */
.m-0 { margin: 0; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.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-8 { margin-bottom: 2rem; }
.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-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.ms-2 { margin-inline-start: 0.5rem; }
.me-2 { margin-inline-end: 0.5rem; }
.me-3 { margin-inline-end: 0.75rem; }
.ltr\:mr-2:where([dir="ltr"], [dir="ltr"] *) { margin-right: 0.5rem; }
.rtl\:ml-2:where([dir="rtl"], [dir="rtl"] *) { margin-left: 0.5rem; }

/* ---- Size ---- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1\/2 { width: 50%; }
.h-full { height: 100%; }
.max-w-full { max-width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }
.max-h-full { max-height: 100%; }
.max-h-52 { max-height: 13rem; }
.max-h-72 { max-height: 18rem; }
.min-h-\[70\%\] { min-height: 70%; }
.min-h-\[72px\] { min-height: 72px; }
.max-h-\[90\%\] { max-height: 90%; }
.max-h-\[95vh\] { max-height: 95vh; }
.w-\[90\%\] { width: 90%; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-\[50px\] { height: 50px; }
.h-2\.5 { height: 0.625rem; }
.w-2\.5 { width: 0.625rem; }

/* ---- Typography ---- */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-start { text-align: start; }
.text-nowrap, .whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-relaxed { line-height: 1.625; }
.tracking-wider { letter-spacing: 0.05em; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* ---- Borders & radius ---- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-none { border-style: none; }
.border-transparent { border-color: transparent; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-b-md { border-bottom-left-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }

/* ---- Standard semantic colors (subset used in Razor) ---- */
.border-gray-50 { border-color: #f9fafb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-200 { border-color: #bfdbfe; }
.border-red-200 { border-color: #fecaca; }
.border-red-300 { border-color: #fca5a5; }
.border-yellow-200 { border-color: #fde68a; }
.border-yellow-700 { border-color: #a16207; }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-amber-100 { background-color: #fef3c7; }
.text-black { color: #000; }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-yellow-600 { color: #ca8a04; }
.text-yellow-700 { color: #a16207; }
.text-yellow-800 { color: #854d0e; }
.text-amber-800 { color: #92400e; }
.text-green-600 { color: #16a34a; }

/* ---- Arbitrary colors / values (bracket notation) ---- */
.text-\[10px\] { font-size: 10px; }
.text-\[\#203669\] { color: #203669; }
.text-\[\#4d6e1d\] { color: #4d6e1d; }
.text-\[\#5BC5F4\] { color: #5BC5F4; }
.text-\[\#82B42E\] { color: #82B42E; }
.text-\[\#ACD563\] { color: #ACD563; }
.bg-\[\#203669\] { background-color: #203669; }
.bg-\[\#4d6e1d\] { background-color: #4d6e1d; }
.bg-\[\#5BC5F4\] { background-color: #5BC5F4; }
.bg-\[\#82B42E\] { background-color: #82B42E; }
.bg-\[\#ACD563\] { background-color: #ACD563; }
.border-\[\#82B42E\] { border-color: #82B42E; }
.border-\[\#ACD563\] { border-color: #ACD563; }
.border-t-\[\#ACD563\] { border-top-color: #ACD563; }

.hover\:bg-\[\#152442\]:hover { background-color: #152442; }
.hover\:bg-\[\#6a9a25\]:hover { background-color: #6a9a25; }
.hover\:bg-\[\#ACD563\]\/80:hover { background-color: rgba(172, 213, 99, 0.8); }
.hover\:text-\[\#203669\]:hover { color: #203669; }
.hover\:text-\[\#82B42E\]:hover { color: #82B42E; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:text-red-900:hover { color: #7f1d1d; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-transparent:hover { background-color: transparent; }
.hover\:border-gray-400:hover { border-color: #9ca3af; }
.hover\:shadow:hover { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

.active\:bg-gray-100:active { background-color: #f3f4f6; }
.active\:bg-transparent:active { background-color: transparent; }
.active\:shadow-sm:active { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-\[\#82B42E\]:focus { border-color: #82B42E; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px rgb(59 130 246 / 0.35); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgb(59 130 246 / 0.35); }
.focus\:ring-3:focus { box-shadow: 0 0 0 3px rgb(59 130 246 / 0.35); }
.focus\:ring-\[\#203669\]:focus { box-shadow: 0 0 0 3px rgba(32, 54, 105, 0.45); }
.focus\:ring-\[\#82B42E\]:focus { box-shadow: 0 0 0 3px rgba(130, 180, 46, 0.45); }
.focus\:ring-blue-100:focus { box-shadow: 0 0 0 3px rgba(219, 234, 254, 0.9); }
.focus\:ring-yellow-500:focus { box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.45); }
.focus\:ring-offset-2:focus { outline-offset: 2px; }

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

/* ---- Transitions ---- */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* ---- Overflow & sizing helpers ---- */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overscroll-contain { overscroll-behavior: contain; }

/* ---- Misc ---- */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }
.bg-opacity-20 { --tw-bg-opacity: 0.2; } /* paired with bg-* if needed */
.rotate-180 { transform: rotate(180deg); }
.object-contain { object-fit: contain; }
.d-flex { display: flex; } /* Bootstrap-compat used in some views */

/* Bootstrap-style helpers used alongside Tailwind in Razor (Font Awesome / layout) */
.small { font-size: 0.875rem; line-height: 1.5; }
.text-muted { color: #6c757d; }
.text-success { color: #198754; }
.text-info { color: #17a2b8; }
.text-warning { color: #997404; }

/* ---- sm: 640px ---- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:w-auto { width: auto; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:px-\[60px\] { padding-left: 60px; padding-right: 60px; }
  .sm\:px-\[80px\] { padding-left: 80px; padding-right: 80px; }
  .sm\:px-\[100px\] { padding-left: 100px; padding-right: 100px; }
  .sm\:pb-4 { padding-bottom: 1rem; }
  .sm\:pb-32 { padding-bottom: 8rem; }
  .sm\:pb-36 { padding-bottom: 9rem; }
  .sm\:text-end { text-align: end; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

/* ---- md: 768px ---- */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:flex-col { flex-direction: column; }
  .md\:justify-between { justify-content: space-between; }
  .md\:justify-start { justify-content: flex-start; }
  .md\:items-start { align-items: flex-start; }
  .md\:items-end { align-items: flex-end; }
  .md\:gap-4 { gap: 1rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:w-auto { width: auto; }
  .md\:shrink { flex-shrink: 1; }
  .md\:px-\[80px\] { padding-left: 80px; padding-right: 80px; }
  .md\:px-\[100px\] { padding-left: 100px; padding-right: 100px; }
  .md\:px-\[120px\] { padding-left: 120px; padding-right: 120px; }
  .md\:px-\[180px\] { padding-left: 180px; padding-right: 180px; }
  .md\:pt-4 { padding-top: 1rem; }
  .md\:pt-14 { padding-top: 3.5rem; }
  .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

/* ---- lg: 1024px ---- */
@media (min-width: 1024px) {
  .lg\:px-\[120px\] { padding-left: 120px; padding-right: 120px; }
  .lg\:px-\[160px\] { padding-left: 160px; padding-right: 160px; }
  .lg\:px-\[200px\] { padding-left: 200px; padding-right: 200px; }
  .lg\:px-\[240px\] { padding-left: 240px; padding-right: 240px; }
}

/* ---- xl: 1280px ---- */
@media (min-width: 1280px) {
  .xl\:px-\[200px\] { padding-left: 200px; padding-right: 200px; }
  .xl\:px-\[318px\] { padding-left: 318px; padding-right: 318px; }
  .xl\:w-\[1250px\] { width: 1250px; }
}
