/* 마크다운 렌더링 스타일 (뽀짝이의 서재 참고) */
.md-rendered {
  line-height: 1.8;
  word-break: keep-all;
  color: #2C2420;
}

.md-rendered p {
  font-size: 15px;
  margin-bottom: 10px;
}

.md-rendered h1 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 14px;
}

.md-rendered h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 44px;
  margin-bottom: 12px;
}

.md-rendered h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
}

.md-rendered h4 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.md-rendered h1:first-child,
.md-rendered h2:first-child,
.md-rendered h3:first-child {
  margin-top: 0;
}

.md-rendered strong {
  font-weight: 700;
}

.md-rendered a {
  color: #7B5EA7;
  text-decoration: none;
}

.md-rendered a:hover {
  text-decoration: underline;
}

.md-rendered blockquote {
  border-left: 3px solid #7B5EA7;
  background: #FAF7F3;
  padding: 16px 24px;
  margin: 24px 0;
}

.md-rendered blockquote p {
  color: #5A4D3E;
  font-size: 13px;
  margin-bottom: 0;
}

.md-rendered code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  background: #F5F2ED;
  color: #7B5EA7;
  padding: 2px 6px;
  border-radius: 3px;
}

.md-rendered pre {
  background: #2C2420;
  color: #F0EDE8;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 8px;
  overflow-x: auto;
}

.md-rendered pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 13px;
}

.md-rendered ul,
.md-rendered ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.md-rendered li {
  margin-bottom: 6px;
}

.md-rendered hr {
  border: none;
  border-top: 1px solid #E8E0D8;
  margin: 40px 0;
}

.md-rendered img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.md-rendered table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
}

.md-rendered th,
.md-rendered td {
  border: 1px solid #E8E0D8;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
}

.md-rendered th {
  background: #FAF7F3;
  font-weight: 600;
}
