/* ===== Tailwind 유틸리티 (CDN 대체용) ===== */
/* footer.html, login.html, quick.html에서 사용하는 클래스만 포함 */

/* ── 리셋/기본 ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── 컨테이너 ── */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* ── 디스플레이 ── */
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }

/* ── Flexbox ── */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-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-start { justify-content: flex-start; }

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

/* ── Gap / Space ── */
.gap-4 { gap: 1rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* ── 너비/높이 ── */
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-10 { height: 2.5rem; }
.w-4 { width: 1rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.max-w-\[480px\] { max-width: 480px; }
.min-h-\[70vh\] { min-height: 70vh; }

/* ── 패딩 ── */
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.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-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3 { padding-right: 0.75rem; }

/* ── 마진 ── */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }

/* ── 폰트 크기 ── */
.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; }

/* ── 폰트 두께 ── */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ── 텍스트 색상 ── */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-\[\#C8102E\] { color: #C8102E; }

/* ── 배경 색상 ── */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-\[\#1A1A2E\] { background-color: #1A1A2E; }
.bg-\[\#C8102E\] { background-color: #C8102E; }

/* ── 텍스트 정렬/서식 ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.leading-relaxed { line-height: 1.625; }

/* ── 테두리 ── */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; }
.border-transparent { border-color: transparent; }
.border-gray-200 { border-color: #E5E7EB; }
.border-gray-300 { border-color: #D1D5DB; }
.border-gray-700 { border-color: #374151; }

/* ── Divide ── */
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #F3F4F6; }

/* ── 둥근 모서리 ── */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

/* ── 그림자 ── */
.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-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }

/* ── 트랜지션 ── */
.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-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; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* ── 포지션 ── */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.right-4 { right: 1rem; }
.left-0 { left: 0; }

/* ── Z-index ── */
.z-40 { z-index: 40; }

/* ── 오버플로우 ── */
.overflow-hidden { overflow: hidden; }

/* ── 커서/포인터 ── */
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }

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

/* ── 필터/불투명도 ── */
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }
.brightness-0.invert { filter: brightness(0) invert(1); }
.opacity-80 { opacity: 0.8; }

/* ── 접근성 ── */
.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; }

/* ── 기타 ── */
.object-contain { object-fit: contain; }
.placeholder-gray-500::placeholder { color: #6B7280; }

/* ── Hover 상태 ── */
.hover\:bg-gray-50:hover { background-color: #F9FAFB; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6; }
.hover\:bg-red-700:hover { background-color: #B91C1C; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-red-400:hover { color: #F87171; }
.hover\:text-red-600:hover { color: #DC2626; }
.hover\:text-\[\#C8102E\]:hover { color: #C8102E; }
.hover\:underline:hover { text-decoration-line: underline; }

/* ── Focus 상태 ── */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #C8102E; }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #C8102E; }
.focus\:border-red-600:focus { border-color: #DC2626; }

/* ── sm: 반응형 (640px+) ── */
@media (min-width: 640px) {
    .sm\:p-12 { padding: 3rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
}

/* ── md: 반응형 (768px+) ── */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:items-start { align-items: flex-start; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:ml-12 { margin-left: 3rem; }
    .md\:text-left { text-align: left; }
}
