@charset "utf-8";
/* =====================================================================
   커스텀 매거진 스킨  style.css
   - 2단 레이아웃(본문 + 우측 사이드바), 반응형, 다크모드
   - 디자인 토큰은 :root 에서 관리. 색을 바꾸려면 --point 만 수정.
   ===================================================================== */

/* ---------- 디자인 토큰 ---------- */
:root {
  --point: #2f6bff;        /* 메인 포인트 (링크/버튼/카테고리) */
  --point-dark: #1d4ed8;
  --point-soft: #eaf1ff;
  --ink: #1a1f2b;          /* 제목 */
  --body-text: #39414f;    /* 본문 */
  --muted: #79818f;        /* 보조 텍스트 */
  --line: #ececf1;         /* 구분선 */
  --bg: #ffffff;           /* 페이지 배경 */
  --bg-soft: #f6f7f9;      /* 박스 배경 */
  --card: #ffffff;         /* 카드 배경 */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 4px 20px rgba(20, 28, 46, .07);
  --shadow-hover: 0 10px 30px rgba(20, 28, 46, .12);
  --maxw: 1180px;          /* 전체 최대폭 */
  --side-w: 300px;         /* 사이드바 폭 */
  --header-h: 64px;
}

/* ---------- 다크모드 토큰 ---------- */
html[data-theme="dark"] {
  --point: #6b9bff;
  --point-dark: #8db4ff;
  --point-soft: #1b2740;
  --ink: #eef1f6;
  --body-text: #c7cdd8;
  --muted: #8b93a3;
  --line: #2a2f3a;
  --bg: #14171d;
  --bg-soft: #1b1f27;
  --card: #1b1f27;
  --shadow: 0 4px 20px rgba(0, 0, 0, .3);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, .45);
}

/* ---------- 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: top; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- 읽기 진행바 ---------- */
#readingBar {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 0;
  background: var(--point);
  transition: width .1s linear;
}

/* ===================== 헤더 ===================== */
#header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: var(--header-h); padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.logo a { font-size: 20px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.gnb { display: flex; gap: 22px; margin-left: 8px; }
.gnb a { font-size: 15px; font-weight: 600; color: var(--body-text); }
.gnb a:hover { color: var(--point); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 16px;
  display: grid; place-items: center; color: var(--body-text);
}
.theme-toggle:hover { border-color: var(--point); color: var(--point); }
.theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: inline; }

.menu-toggle { display: none; width: 38px; height: 38px; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 20px; height: 2px;
  background: var(--ink); transition: .3s;
}
.menu-toggle span { top: 18px; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ===================== 레이아웃 ===================== */
#wrap { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 80px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  gap: 40px;
  align-items: start;
}
#content { min-width: 0; }

/* ===================== 홈/목록 섹션 ===================== */
.home-section { margin-bottom: 40px; }
.home-title, .list-head h2, .related h2 {
  font-size: 19px; font-weight: 800; color: var(--ink);
  margin-bottom: 18px; letter-spacing: -.4px;
}
.list-head { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.list-count { color: var(--muted); font-weight: 600; font-size: 15px; }

/* ---------- 카드 그리드 (커버/관련글) ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.card-grid li a {
  display: block; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card-grid li a:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-thumb { display: block; aspect-ratio: 4/3; background: var(--bg-soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: block; padding: 14px 16px 18px; }
.card-cat { font-size: 12px; font-weight: 700; color: var(--point); }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink);
}
.card-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.55;
}

/* ---------- 글 목록 카드 (인덱스) ---------- */
.post-wrap { display: flex; flex-direction: column; gap: 18px; }
.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card a { display: flex; gap: 20px; padding: 18px; }
.pc-thumb {
  flex: 0 0 180px; aspect-ratio: 4/3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-soft);
}
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-cat { font-size: 12px; font-weight: 700; color: var(--point); }
.pc-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 6px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink);
}
.post-card a:hover .pc-title { color: var(--point); }
.pc-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; color: var(--muted); line-height: 1.55;
}
.pc-date { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ===================== 글 상세 ===================== */
.post-detail {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 44px;
}
.post-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-cat {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--point);
  background: var(--point-soft); padding: 4px 11px; border-radius: 6px; margin-bottom: 14px;
}
.post-head h1 { font-size: 30px; font-weight: 800; line-height: 1.32; letter-spacing: -.6px; color: var(--ink); }
.post-meta { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.post-meta span + span::before { content: "·"; margin: 0 8px; }

/* ---------- 자동 목차 ---------- */
.toc-box {
  display: none; margin-bottom: 30px; padding: 18px 22px;
  background: var(--point-soft); border: 1px solid color-mix(in srgb, var(--point) 30%, transparent);
  border-radius: var(--radius-sm);
}
.toc-box.on { display: block; }
.toc-box .toc-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 800; color: var(--point); cursor: pointer;
}
.toc-box .toc-head .toc-arrow { transition: transform .2s; font-size: 12px; color: var(--muted); }
.toc-box.collapsed .toc-arrow { transform: rotate(-90deg); }
.toc-box.collapsed .toc-list { display: none; }
.toc-list { margin-top: 12px; }
.toc-list a {
  display: block; padding: 5px 0 5px 12px; font-size: 14px; color: var(--muted);
  border-left: 2px solid transparent; line-height: 1.5;
}
.toc-list a.lv3 { padding-left: 26px; font-size: 13px; }
.toc-list a:hover { color: var(--point); }
.toc-list a.active { color: var(--point); font-weight: 700; border-left-color: var(--point); }

/* ---------- 본문 가독성 ---------- */
#article-view, .post-content {
  font-size: 17px; line-height: 1.9; color: var(--body-text); letter-spacing: -.1px;
  word-wrap: break-word;
}
#article-view p { margin: 0 0 1.5em; }
#article-view h2, #article-view h3, #article-view h4,
#article-view h2[data-ke-size], #article-view h3[data-ke-size], #article-view h4[data-ke-size] {
  color: var(--ink); font-weight: 800; letter-spacing: -.4px; line-height: 1.4;
  scroll-margin-top: 80px;
}
#article-view h2, #article-view h2[data-ke-size] {
  margin: 1.9em 0 .7em; padding-left: 14px; border-left: 5px solid var(--point); font-size: 1.5em;
}
#article-view h3, #article-view h3[data-ke-size] { margin: 1.6em 0 .6em; font-size: 1.28em; }
#article-view h4, #article-view h4[data-ke-size] { margin: 1.4em 0 .5em; font-size: 1.12em; }
#article-view a { color: var(--point); text-decoration: underline; text-underline-offset: 2px; }
#article-view strong { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 58%, color-mix(in srgb, var(--point) 22%, transparent) 58%); }
#article-view img, #article-view figure img { border-radius: var(--radius-sm); }
#article-view blockquote {
  margin: 24px 0; padding: 14px 20px; background: var(--bg-soft);
  border-left: 4px solid var(--point); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--body-text);
}
#article-view ul, #article-view ol { margin: 1em 0 1.5em; padding-left: 1.4em; }
#article-view ul li { list-style: disc; margin: .4em 0; }
#article-view ol li { list-style: decimal; margin: .4em 0; }
#article-view ul li::marker, #article-view ol li::marker { color: var(--point); }
#article-view pre {
  margin: 1.4em 0; padding: 18px 20px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: auto; font-size: 14px; line-height: 1.7;
}
#article-view table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
#article-view table td, #article-view table th { border: 1px solid var(--line); padding: 9px 12px; }
#article-view table tr:first-child td { background: var(--bg-soft); font-weight: 700; color: var(--ink); }

/* ---------- 태그 ---------- */
.post-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
  font-size: 13px; color: var(--muted); background: var(--bg-soft);
  padding: 6px 13px; border-radius: 20px;
}
.post-tags a::before { content: "#"; margin-right: 1px; color: var(--point); }
.post-tags a:hover { color: var(--point); background: var(--point-soft); }

/* ---------- 관련글 ---------- */
.related { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- 보호글 폼 ---------- */
.protected-form { margin: 40px 0; padding: 50px 20px; text-align: center; background: var(--bg-soft); border-radius: var(--radius); }
.protected-form p { margin-bottom: 16px; color: var(--muted); }
.protected-form input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--body-text); }
.btn-primary { height: 46px; padding: 0 22px; margin-left: 8px; border-radius: var(--radius-sm); background: var(--point); color: #fff; font-weight: 700; }

/* ===================== 댓글 ===================== */
.comments { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ===================== 페이징 ===================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 44px 0 0; }
.pagination a {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 14px; color: var(--body-text);
}
.pagination a:hover { border-color: var(--point); color: var(--point); }
.pagination .selected { background: var(--point); color: #fff; border-color: var(--point); }
.pagination .no-more-prev, .pagination .no-more-next { display: none; }

/* ===================== 사이드바 ===================== */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }

/* 프로필 */
.profile { text-align: center; }
.profile-img img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.profile-name { margin-top: 12px; font-size: 16px; font-weight: 800; color: var(--ink); }
.profile-desc { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* 검색 */
.side-search { display: flex; gap: 6px; }
.side-search input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--body-text); }
.side-search button { width: 42px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); }

/* 카테고리 */
.side-category a { color: var(--body-text); }
.side-category a:hover { color: var(--point); }
.side-category > ul > li { margin: 2px 0; }
.side-category li { font-size: 14px; line-height: 2; }
.side-category ul ul { padding-left: 12px; font-size: 13.5px; }
.side-category .c_cnt, .side-category .count { color: var(--muted); font-size: 12px; }

/* 인기글/최근글 리스트 — 네이버 위젯풍 카드 + 세련된 호버 반응 */
.side-list li { border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list li a {
  position: relative;
  display: flex; gap: 13px; padding: 13px 12px; align-items: center;
  margin: 3px -8px; border-radius: 12px;
  overflow: hidden;
  transition: background .28s cubic-bezier(.22,.61,.36,1),
              transform .28s cubic-bezier(.22,.61,.36,1),
              box-shadow .28s cubic-bezier(.22,.61,.36,1);
}
/* 왼쪽에서 슬라이드되는 포인트 바 */
.side-list li a::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 3px; border-radius: 3px; background: var(--point);
  transform: scaleY(0); transform-origin: center;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.side-list li a:hover {
  background: var(--card);
  box-shadow: 0 8px 26px rgba(20,28,46,.13);
  transform: translateY(-3px);
}
html[data-theme="dark"] .side-list li a:hover { box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.side-list li a:hover::before { transform: scaleY(1); }

.sl-thumb {
  position: relative;
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 11px;
  overflow: hidden; background: var(--bg-soft);
}
.sl-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, color-mix(in srgb, var(--point) 45%, transparent));
  opacity: 0; transition: opacity .28s ease;
}
.side-list li a:hover .sl-thumb::after { opacity: 1; }
.sl-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.side-list li a:hover .sl-thumb img { transform: scale(1.12); }

.sl-text { min-width: 0; transition: transform .28s cubic-bezier(.22,.61,.36,1); }
.side-list li a:hover .sl-text { transform: translateX(3px); }
.sl-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 600; line-height: 1.42; color: var(--ink);
  transition: color .2s ease;
}
.side-list li a:hover .sl-title { color: var(--point); }
.sl-date { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }

/* 최근 댓글 */
.side-comments li { padding: 10px 0; border-top: 1px solid var(--line); }
.side-comments li:first-child { border-top: 0; }
.side-comments a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; color: var(--body-text); line-height: 1.5; }
.side-comments a:hover { color: var(--point); }
.rc-meta { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }

/* 태그 */
.side-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); padding: 5px 11px; border-radius: 16px; }
.tag-chip:hover { color: var(--point); background: var(--point-soft); }

/* 방문자 */
.visitor { display: flex; justify-content: space-around; text-align: center; }
.visitor span { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.visitor b { font-size: 17px; font-weight: 800; color: var(--ink); }

/* ===================== 푸터 ===================== */
#footer { border-top: 1px solid var(--line); padding: 36px 24px; text-align: center; }
.footer-menu { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.footer-menu a { font-size: 13.5px; color: var(--muted); }
.footer-menu a:hover { color: var(--point); }
.copyright { font-size: 12.5px; color: var(--muted); }

/* ===================== 반응형: 태블릿 (사이드바 아래로) ===================== */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; gap: 36px; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-box { flex: 1 1 calc(50% - 10px); }
  .side-box.profile { flex-basis: 100%; }
}

/* ===================== 반응형: 모바일 ===================== */
@media (max-width: 767px) {
  .header-inner { padding: 0 16px; gap: 14px; }
  .gnb { display: none; }
  .menu-toggle { display: block; }
  #wrap { padding: 20px 16px 60px; }

  .card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .post-card a { flex-direction: row; gap: 14px; padding: 14px; }
  .pc-thumb { flex-basis: 116px; }
  .pc-title { font-size: 16px; -webkit-line-clamp: 2; }
  .pc-excerpt { display: none; }

  .post-detail { padding: 24px 18px; }
  .post-head h1 { font-size: 24px; }
  #article-view, .post-content { font-size: 16px; line-height: 1.85; }

  .sidebar { flex-direction: column; }
  .side-box { flex-basis: 100%; }
}

/* 모바일 메뉴 오픈 시 헤더 네비 노출 */
body.menu-open .gnb {
  display: flex; position: fixed; top: var(--header-h); left: 0; right: 0;
  flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 99;
}
body.menu-open .gnb a { padding: 14px 20px; border-top: 1px solid var(--line); }

/* =====================================================================
   추가 1. 사이드바 목차 (우측 사이드바 맨 위에서 따라다님)
   - 데스크톱: 사이드바가 sticky이므로 목차도 함께 고정되어 따라옴
   - 모바일/태블릿: 사이드바가 본문 아래로 내려가므로,
     이때는 사이드바 목차를 숨기고 상단 박스형 목차(.toc-box)를 사용
   ===================================================================== */
.toc-side { display: none; }
.toc-side.on {
  display: block;
  background: var(--point-soft);
  border: 1px solid color-mix(in srgb, var(--point) 30%, transparent);
}
.toc-side .side-title { color: var(--point); }
.toc-side .side-title::before { content: "📑 "; }
.toc-side-head {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.toc-side-arrow { font-size: 12px; transition: transform .2s; }
.toc-side.collapsed .toc-side-arrow { transform: rotate(-90deg); }
.toc-side.collapsed .toc-list { display: none; }
.toc-side .toc-list {
  margin-top: 4px;
  max-height: 236px;      /* 대략 8~9개 항목 높이. 넘으면 목차 안에서 스크롤 */
  overflow-y: auto;
  padding-right: 4px;
}
.toc-side .toc-list::-webkit-scrollbar { width: 5px; }
.toc-side .toc-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--point) 35%, transparent); border-radius: 3px;
}
.toc-side .toc-list a {
  display: block; padding: 7px 0 7px 14px; font-size: 13.5px; color: var(--body-text);
  border-left: 3px solid transparent; line-height: 1.5; border-radius: 0 6px 6px 0;
}
.toc-side .toc-list a.lv3 { padding-left: 26px; font-size: 13px; color: var(--muted); }
.toc-side .toc-list a:hover { color: var(--point); background: color-mix(in srgb, var(--point) 8%, transparent); }
.toc-side .toc-list a.active {
  color: var(--point); font-weight: 700;
  border-left-color: var(--point);
  background: color-mix(in srgb, var(--point) 13%, transparent);
}

/* 데스크톱에서는 상단 박스형 목차 숨김 (사이드바 목차가 대신 표시) */
@media (min-width: 1025px) {
  .toc-box { display: none !important; }
}
/* 태블릿/모바일에서는 사이드바 목차 숨김 (상단 박스형이 대신 표시) */
@media (max-width: 1024px) {
  .toc-side { display: none !important; }
}

/* =====================================================================
   추가 2. 다크모드에서 본문 글자색 강제 (인라인 검정색 글 대응)
   - 글 작성 시 검정색을 박아둔 텍스트가 어두운 배경에서 안 보이는 문제 해결
   - 사용자가 의도적으로 칠한 '밝은 색'(빨강/노랑 등)은 건드리지 않음
   ===================================================================== */
html[data-theme="dark"] #article-view,
html[data-theme="dark"] #article-view span,
html[data-theme="dark"] #article-view p,
html[data-theme="dark"] #article-view li,
html[data-theme="dark"] #article-view div,
html[data-theme="dark"] #article-view b,
html[data-theme="dark"] #article-view font {
  color: #c7cdd8 !important;
}
/* 제목/링크/강조는 원래 색 유지 */
html[data-theme="dark"] #article-view h1,
html[data-theme="dark"] #article-view h2,
html[data-theme="dark"] #article-view h3,
html[data-theme="dark"] #article-view h4 { color: var(--ink) !important; }
html[data-theme="dark"] #article-view a { color: var(--point) !important; }
html[data-theme="dark"] #article-view strong { color: #eef1f6 !important; }

/* 예외: 글 안에서 '자체 밝은 배경'을 가진 박스는 색 강제하지 않음
   (정리 박스 .tbd-summary, 인용문 blockquote 등 — 밝은 배경 위 어두운 글씨 유지) */
html[data-theme="dark"] #article-view .tbd-summary,
html[data-theme="dark"] #article-view .tbd-summary *,
html[data-theme="dark"] #article-view blockquote,
html[data-theme="dark"] #article-view blockquote * {
  color: revert !important;
}
html[data-theme="dark"] #article-view .tbd-summary strong,
html[data-theme="dark"] #article-view .tbd-summary h2,
html[data-theme="dark"] #article-view blockquote strong {
  color: #111418 !important;
}
