/* 블로그 본문 타이포그래피 (LLM 이 생성한 HTML 을 읽기 좋게) */

.blog-content {
    font-size: 17px;
    line-height: 1.9;
    color: #334155;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.blog-content > :first-child { margin-top: 0; }

.blog-content p { margin: 0 0 1.15em; }

.blog-content h2 {
    margin: 2.6em 0 0.9em;
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -0.02em;
    padding-top: 0.9em;
    border-top: 1px solid #e2e8f0;
}
.blog-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.6em; }

.blog-content h3 {
    margin: 2em 0 0.7em;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    letter-spacing: -0.015em;
}

.blog-content h4 { margin: 1.6em 0 0.6em; font-size: 1.05em; font-weight: 700; color: #1e293b; }

.blog-content strong { font-weight: 700; color: #0f172a; }
.blog-content em { font-style: italic; }

.blog-content a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}
.blog-content a:hover { color: #1e40af; }

.blog-content ul, .blog-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin: 0.45em 0; line-height: 1.85; }
.blog-content li > ul, .blog-content li > ol { margin: 0.4em 0 0.2em; }

.blog-content blockquote {
    margin: 1.9em 0;
    padding: 0.2em 0 0.2em 1.25em;
    border-left: 4px solid #bfdbfe;
    color: #475569;
    background: linear-gradient(90deg, rgba(239,246,255,.7), transparent);
}

.blog-content hr { margin: 2.6em 0; border: 0; border-top: 1px solid #e2e8f0; }

.blog-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.8em 0; }

/* 표는 좁은 화면에서 가로 스크롤 */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.95em;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.blog-content table th, .blog-content table td {
    border: 1px solid #e2e8f0;
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
    min-width: 90px;
}
.blog-content table th { background: #f8fafc; font-weight: 700; color: #0f172a; white-space: nowrap; }

.blog-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.9em;
}
.blog-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.8em 0;
    font-size: 0.88em;
    line-height: 1.7;
}
.blog-content pre code { background: none; padding: 0; color: inherit; }

/* 목록 카드 요약 2줄 자르기 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .blog-content { font-size: 16px; line-height: 1.85; }
    .blog-content h2 { font-size: 1.35em; margin-top: 2.2em; }
    .blog-content h3 { font-size: 1.13em; }
}
