/* GitHub 스타일 마크다운 CSS */

.prose {
    color: #24292e;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* 제목 */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.1;
}

.prose h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
}

.prose h2 {
    font-size: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
}

.prose h3 {
    font-size: 1.25em;
}

.prose h4 {
    font-size: 1em;
}

.prose h5 {
    font-size: 0.875em;
}

.prose h6 {
    font-size: 0.85em;
    color: #6a737d;
}

/* 단락 */
.prose p {
    margin-top: 0;
    margin-bottom: 16px;
}

/* 링크 */
.prose a {
    color: #0366d6;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

/* 리스트 */
.prose ul,
.prose ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.25em;
}

.prose li + li {
    margin-top: 0.25em;
}

.prose ul ul,
.prose ul ol,
.prose ol ol,
.prose ol ul {
    margin-top: 0;
    margin-bottom: 0;
}

/* 코드 */
.prose code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.prose pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
    margin-top: 0;
    margin-bottom: 16px;
}

.prose pre code {
    display: inline;
    padding: 0;
    margin: 0;
    overflow: visible;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0;
    font-size: 100%;
}

/* 인용구 */
.prose blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    margin-top: 0;
    margin-bottom: 16px;
}

.prose blockquote > :first-child {
    margin-top: 0;
}

.prose blockquote > :last-child {
    margin-bottom: 0;
}

/* 구분선 */
.prose hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

/* 테이블 */
.prose table {
    border-spacing: 0;
    border-collapse: collapse;
    display: block;
    width: 100%;
    overflow: auto;
    margin-top: 0;
    margin-bottom: 16px;
}

.prose table th {
    font-weight: 600;
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

.prose table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

.prose table tr {
    background-color: #fff;
    border-top: 1px solid #c6cbd1;
}

.prose table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

/* 이미지 */
.prose img {
    max-width: 100%;
    box-sizing: content-box;
    background-color: #fff;
}

/* Strong, Em */
.prose strong {
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

/* 다크모드 오버라이드 */
.dark .prose {
    color: #c9d1d9;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose h4,
.dark .prose h5 {
    color: #c9d1d9;
}

.dark .prose h6 {
    color: #8b949e;
}

.dark .prose h1,
.dark .prose h2 {
    border-bottom-color: #21262d;
}

.dark .prose a {
    color: #58a6ff;
}

.dark .prose code {
    background-color: rgba(110, 118, 129, 0.4);
    color: #c9d1d9;
}

.dark .prose pre {
    background-color: #161b22;
}

.dark .prose pre code {
    background-color: transparent;
}

.dark .prose blockquote {
    color: #8b949e;
    border-left-color: #3b434b;
}

.dark .prose hr {
    background-color: #21262d;
}

.dark .prose table tr {
    background-color: #0d1117;
    border-top-color: #21262d;
}

.dark .prose table tr:nth-child(2n) {
    background-color: #161b22;
}

.dark .prose table th,
.dark .prose table td {
    border-color: #3b434b;
}

/* prose-lg 변형 */
.prose-lg {
    font-size: 18px;
}

.prose-lg h1 {
    font-size: 2.25em;
}

.prose-lg h2 {
    font-size: 1.75em;
}

.prose-lg h3 {
    font-size: 1.375em;
}

.prose-lg h4 {
    font-size: 1.125em;
}

/* 최대 너비 제거 */
.max-w-none {
    max-width: none;
}
