@charset "UTF-8";

/* ==========================================================================
   Markdown View Typography (GitHub / Velog 모던 마크다운 본문 전용 스타일시트)
   ========================================================================== */

.post-body {
	font-size: 1.05rem;
	line-height: 1.85;
	color: #2b303a;
	word-break: break-word;
}

.post-body h1, .post-body h2, .post-body h3, 
.post-body h4, .post-body h5, .post-body h6 {
	color: #1e293b;
	font-weight: 700;
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
	line-height: 1.4;
}

.post-body h1 {
	font-size: 1.85rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e2e8f0;
}

.post-body h2 {
	font-size: 1.5rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid #e2e8f0;
}

.post-body h3 { font-size: 1.28rem; }
.post-body h4 { font-size: 1.12rem; }
.post-body h5 { font-size: 1.02rem; }
.post-body h6 { font-size: 0.92rem; }

.post-body p {
	margin-bottom: 1rem;
}

/* 마크다운 인용구 (Blockquote) */
.post-body blockquote {
	margin: 1.25rem 0;
	padding: 0.75rem 1.25rem;
	color: #475569;
	background-color: #f8fafc;
	border-left: 4px solid #0d6efd;
	border-radius: 0 0.5rem 0.5rem 0;
	font-style: italic;
}

.post-body blockquote p:last-child {
	margin-bottom: 0;
}

/* 마크다운 표 (Table) */
.post-body table {
	width: 100%;
	margin: 1.25rem 0;
	border-collapse: collapse;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	overflow: hidden;
	display: table;
}

.post-body th, .post-body td {
	padding: 0.65rem 1rem;
	border: 1px solid #e2e8f0;
	text-align: left;
}

.post-body th {
	background-color: #f1f5f9;
	color: #334155;
	font-weight: 600;
	font-size: 0.95rem;
}

.post-body tr:nth-child(even) {
	background-color: #f8fafc;
}

/* 마크다운 코드 블록 & 인라인 코드 */
.post-body pre {
	background-color: #0f172a !important;
	color: #e2e8f0 !important;
	padding: 1rem 1.25rem !important;
	border-radius: 0.6rem !important;
	overflow-x: auto;
	margin: 1.25rem 0;
	font-size: 0.92rem;
	line-height: 1.6;
}

.post-body pre code {
	background: transparent !important;
	color: inherit !important;
	padding: 0 !important;
	font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.post-body code:not(pre code) {
	background-color: #f1f5f9;
	color: #e11d48;
	padding: 0.2rem 0.45rem;
	border-radius: 4px;
	font-size: 0.9em;
	font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 마크다운 리스트 */
.post-body ul, .post-body ol {
	padding-left: 1.5rem;
	margin-bottom: 1rem;
}

.post-body li {
	margin-bottom: 0.35rem;
}

.post-body hr {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 2rem 0;
}

/* 마크다운 본문 이미지 (순수 CSS 연한 배경 & 스무스 fadeIn 애니메이션) */
.post-body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.5rem auto;
	border-radius: 0.75rem;
	background-color: #f1f5f9;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	animation: md-img-fadein 0.35s ease-out forwards;
}

@keyframes md-img-fadein {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.content-image-wrapper {
	display: inline-block;
	max-width: 100%;
	border-radius: 0.75rem;
	overflow: hidden;
	vertical-align: middle;
}
