/* ==========================================================================
   꿀팁 저장소 - 고성능 초경량 블로그 스타일시트 (Pure Vanilla CSS)
   ========================================================================== */

/* 1. Reset & Global Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

input, textarea {
    font-family: inherit;
}

/* 2. Layout & Container */
.max-w-6xl { max-width: 1152px; }
.max-w-3xl { max-width: 768px; }
.max-w-xs  { max-width: 320px; }
.max-w-xl  { max-width: 576px; }
.max-w-none{ max-width: none; }
.mx-auto   { margin-left: auto; margin-right: auto; }
.w-full    { width: 100%; }
.h-full    { height: 100%; }
.min-w-0   { min-width: 0; }
.flex-1    { flex: 1 1 0%; }
.shrink-0  { flex-shrink: 0; }

/* Padding & Margin */
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3   { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4   { padding-left: 1rem; padding-right: 1rem; }
.px-6   { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8   { padding-left: 2rem; padding-right: 2rem; }
.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-8   { padding-top: 2rem; padding-bottom: 2rem; }
.py-10  { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.p-0\.5 { padding: 0.125rem; }
.p-4    { padding: 1rem; }
.p-5    { padding: 1.25rem; }
.p-6    { padding: 1.5rem; }

.pt-1   { padding-top: 0.25rem; }
.pt-2   { padding-top: 0.5rem; }
.pt-3   { padding-top: 0.75rem; }
.pt-4   { padding-top: 1rem; }
.pt-6   { padding-top: 1.5rem; }
.pt-8   { padding-top: 2rem; }
.pb-2   { padding-bottom: 0.5rem; }
.pb-4   { padding-bottom: 1rem; }
.pb-8   { padding-bottom: 2rem; }
.pl-4   { padding-left: 1rem; }
.pr-10  { padding-right: 2.5rem; }

.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; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1   { margin-top: 0.25rem; }
.mt-2   { margin-top: 0.5rem; }
.mt-auto{ margin-top: auto; }
.-mt-0\.5 { margin-top: -0.125rem; }

/* 3. Flexbox & Grid */
.flex      { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col  { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }

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

.gap-1   { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2   { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3   { gap: 0.75rem; }
.gap-4   { gap: 1rem; }
.gap-6   { gap: 1.5rem; }
.gap-8   { gap: 2rem; }

.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-3 > * + *   { margin-top: 0.75rem; }
.space-y-6 > * + *   { margin-top: 1.5rem; }
.space-y-8 > * + *   { margin-top: 2rem; }

/* 4. Dimensions */
.w-1\.5 { width: 0.375rem; }
.w-2   { width: 0.5rem; }
.w-3\.5 { width: 0.875rem; }
.w-4   { width: 1rem; }
.w-5   { width: 1.25rem; }
.w-9   { width: 2.25rem; }
.w-10  { width: 2.5rem; }
.w-11  { width: 2.75rem; }
.w-14  { width: 3.5rem; }

.h-1\.5 { height: 0.375rem; }
.h-2   { height: 0.5rem; }
.h-3\.5 { height: 0.875rem; }
.h-4   { height: 1rem; }
.h-5   { height: 1.25rem; }
.h-9   { height: 2.25rem; }
.h-10  { height: 2.5rem; }
.h-11  { height: 2.75rem; }
.h-14  { height: 3.5rem; }
.h-20  { height: 5rem; }

/* 5. Typography */
.text-\[11px\] { font-size: 11px; }
.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-extrabold { font-weight: 800; }
.font-black     { font-weight: 900; }

.tracking-tight { letter-spacing: -0.025em; }
.leading-snug   { line-height: 1.375; }
.leading-tight  { line-height: 1.25; }
.leading-relaxed{ line-height: 1.625; }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.truncate       { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 6. Colors & Backgrounds */
.bg-white        { background-color: #ffffff; }
.bg-white\/95    { background-color: rgba(255, 255, 255, 0.95); }
.bg-slate-50     { background-color: #f8fafc; }
.bg-slate-50\/30 { background-color: rgba(248, 250, 252, 0.3); }
.bg-slate-50\/50 { background-color: rgba(248, 250, 252, 0.5); }
.bg-slate-50\/70 { background-color: rgba(248, 250, 252, 0.7); }
.bg-slate-100    { background-color: #f1f5f9; }
.bg-slate-100\/80{ background-color: rgba(241, 245, 249, 0.8); }
.bg-slate-700    { background-color: #334155; }
.bg-slate-900    { background-color: #0f172a; }

.bg-indigo-50    { background-color: #eef2ff; }
.bg-indigo-50\/70{ background-color: rgba(238, 242, 255, 0.7); }
.bg-indigo-50\/50{ background-color: rgba(238, 242, 255, 0.5); }
.bg-indigo-600   { background-color: #4f46e5; }
.bg-emerald-400  { background-color: #34d399; }
.bg-emerald-600  { background-color: #059669; }
.bg-blue-600     { background-color: #2563eb; }
.bg-purple-600   { background-color: #9333ea; }
.bg-amber-500    { background-color: #f59e0b; }
.bg-amber-600    { background-color: #d97706; }
.bg-teal-500     { background-color: #14b8a6; }

/* Category Pills */
.bg-blue-50    { background-color: #eff6ff; }
.text-blue-700 { color: #1d4ed8; }
.border-blue-200 { border-color: #bfdbfe; }

.bg-emerald-50 { background-color: #ecfdf5; }
.text-emerald-700 { color: #047857; }
.border-emerald-200 { border-color: #a7f3d0; }

.bg-purple-50  { background-color: #faf5ff; }
.text-purple-700 { color: #7e22ce; }
.border-purple-200 { border-color: #e9d5ff; }

.bg-amber-50   { background-color: #fffbeb; }
.text-amber-700 { color: #b45309; }
.border-amber-200 { border-color: #fde68a; }

.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops, #4f46e5, #8b5cf6)); }
.from-indigo-600 { --tw-gradient-stops: #4f46e5, #8b5cf6; }
.from-indigo-500 { --tw-gradient-stops: #6366f1, #06b6d4; }

/* Text Colors */
.text-white     { color: #ffffff; }
.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-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-indigo-600{ color: #4f46e5; }
.text-indigo-400{ color: #818cf8; }
.text-rose-500  { color: #f43f5e; }

/* Borders & Rounded */
.border           { border-width: 1px; border-style: solid; border-color: #e2e8f0; }
.border-b         { border-bottom-width: 1px; border-bottom-style: solid; border-color: #e2e8f0; }
.border-t         { border-top-width: 1px; border-top-style: solid; border-color: #e2e8f0; }
.border-slate-50  { border-color: #f8fafc; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-200\/80 { border-color: rgba(226, 232, 240, 0.8); }
.border-slate-800 { border-color: #1e293b; }
.border-slate-900 { border-color: #0f172a; }
.border-indigo-100{ border-color: #e0e7ff; }
.border-indigo-600{ border-color: #4f46e5; }
.border-transparent { border-color: transparent; }

.divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
.divide-slate-100 > * + * { border-color: #f1f5f9; }

.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; }
.rounded-\[14px\] { border-radius: 14px; }

/* 7. Positioning & Display */
.sticky    { position: sticky; }
.fixed     { position: fixed; }
.relative  { position: relative; }
.absolute  { position: absolute; }
.top-0     { top: 0; }
.top-1\/2  { top: 50%; }
.right-3   { right: 0.75rem; }
.right-6   { right: 1.5rem; }
.bottom-6  { bottom: 1.5rem; }
.z-30      { z-index: 30; }
.z-40      { z-index: 40; }
.-translate-y-1\/2 { transform: translateY(-50%); }

.block     { display: block; }
.hidden    { display: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

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

/* 8. Interactions & Hover States */
.transition       { transition: all 0.15s ease-in-out; }
.transition-colors{ transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-transform { transition: transform 0.15s ease-in-out; }

.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:bg-indigo-50:hover { background-color: #eef2ff; }
.hover\:bg-indigo-50\/50:hover { background-color: rgba(238, 242, 255, 0.5); }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-indigo-600:hover { color: #4f46e5; }
.hover\:text-indigo-300:hover { color: #a5b4fc; }
.hover\:text-rose-700:hover { color: #be123c; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.hover\:border-indigo-100:hover { border-color: #e0e7ff; }

.group:hover .group-hover\:text-indigo-600 { color: #4f46e5; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Focus */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:bg-white:focus { background-color: #ffffff; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #6366f1; }
.focus\:border-transparent:focus { border-color: transparent; }

/* 9. Article Content Styling */
#bo_v_con h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    border-left: 4px solid #4f46e5;
    padding-left: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
#bo_v_con h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
#bo_v_con p {
    margin-bottom: 1.15rem;
    line-height: 1.8;
}
#bo_v_con ul, #bo_v_con ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
#bo_v_con ul { list-style-type: disc; }
#bo_v_con ol { list-style-type: decimal; }
#bo_v_con li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
#bo_v_con code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #4f46e5;
    font-weight: 600;
}
#bo_v_con table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}
#bo_v_con table th {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
    font-weight: 700;
    text-align: left;
}
#bo_v_con table td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
}
#bo_v_con .callout-tip {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #166534;
}
#bo_v_con .callout-warning {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #92400e;
}
#bo_v_con .summary-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

/* 10. Responsive Media Queries */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl { font-size: 1.25rem; }
    .sm\:text-2xl { font-size: 1.5rem; }
    .sm\:text-3xl { font-size: 1.875rem; }
    .sm\:p-10 { padding: 2.5rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-8 { grid-column: span 8 / span 12; }
    .lg\:col-span-4 { grid-column: span 4 / span 12; }
    .lg\:text-4xl { font-size: 2.25rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* 11. Additional Micro-Utilities & Animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.inline-block { display: inline-block; }
.min-h-screen { min-height: 100vh; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.top-1\/2 { top: 50%; }

.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }
.shadow-indigo-100 { box-shadow: 0 4px 6px -1px rgba(224, 231, 255, 0.7); }
.shadow-sm\/50 { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03); }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.hover\:bg-indigo-600:hover { background-color: #4f46e5; }
.hover\:bg-slate-50\/70:hover { background-color: rgba(248, 250, 252, 0.7); }
.hover\:gap-1\.5:hover { gap: 0.375rem; }

.focus\:ring-indigo-500:focus {
    box-shadow: 0 0 0 2px #6366f1;
}

.bg-gradient-to-tr.from-indigo-600.to-violet-500 {
    background-image: linear-gradient(to top right, #4f46e5, #8b5cf6);
}
.bg-gradient-to-tr.from-indigo-500.to-cyan-400 {
    background-image: linear-gradient(to top right, #6366f1, #22d3ee);
}
.from-indigo-600 { --tw-gradient-from: #4f46e5; }
.to-violet-500 { --tw-gradient-to: #8b5cf6; }
.from-indigo-500 { --tw-gradient-from: #6366f1; }
.to-cyan-400 { --tw-gradient-to: #22d3ee; }

.prose, .prose-slate { max-width: none; }

