/* ── 아티클 페이지 전용 스타일 ───────────────────────────────── */

.article-nav {
  margin-bottom: 2rem;
}

.back-link {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s;
}
.back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-date {
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.article-header h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}

/* ── 본문 콘텐츠 ─────────────────────────────────────────────── */
.article-content {
  max-width: 68ch;
  font-size: 0.97rem;
  line-height: 1.8;
  color: #ccc;
}

[data-theme="light"] .article-content {
  color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5 {
  color: var(--fg);
  font-weight: 700;
  line-height: 1.35;
  margin: 2rem 0 0.75rem;
}

.article-content h2 { font-size: 1.35rem; }
.article-content h3 { font-size: 1.15rem; }
.article-content h4 { font-size: 1rem; color: var(--muted); }

.article-content p { margin: 0.9rem 0; }

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
  margin: 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.article-content li { color: inherit; }

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-style: italic;
}

/* 인라인 코드 */
.article-content code {
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 0.85em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}

/* 코드 블록 */
.article-content pre {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

[data-theme="light"] .article-content pre {
  background: #1e1e1e;
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d4d4d4;
  font-size: inherit;
}

.article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.25rem 0;
}

.article-content th,
.article-content td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
}

/* Bootstrap 잔재 클래스 무력화 */
.article-content .d-flex,
.article-content .align-items-center,
.article-content .justify-content-between { display: block; }

.article-content .text-muted { color: var(--muted); }

/* 포스트 메타 영역 숨기기 (크롤한 Chirpy 헤더 잔재) */
.article-content .post-meta,
.article-content #toc-bar,
.article-content #toc-solo-trigger,
.article-content dialog { display: none; }
