/* 위키독스형 전자책 화면 — 본문 가독성 우선, 장식 최소화 */
:root {
  --md-primary-fg-color: #1f4e79;
  --md-primary-fg-color--light: #2e6da4;
  --md-primary-fg-color--dark: #163a5a;
  --md-accent-fg-color: #c0504d;
  --md-text-font: "Pretendard", "Malgun Gothic", sans-serif;
  --md-code-font: "D2Coding", "Consolas", monospace;
}

body, .md-typeset { font-family: var(--md-text-font); }
.md-typeset { font-size: 0.86rem; line-height: 1.85; word-break: keep-all; }
.md-typeset h1 { font-weight: 700; color: #1a1a1a; margin-bottom: 0.8em; }
.md-typeset h2 { font-weight: 700; border-bottom: 1px solid #e3e6ea; padding-bottom: 0.25em; margin-top: 1.8em; }
.md-typeset h3 { font-weight: 600; }
.md-typeset code { font-size: 0.82em; }
.md-typeset table:not([class]) { font-size: 0.8rem; }
.md-typeset table:not([class]) th { background: #f1f4f8; }

/* 왼쪽 목차: 책 목차처럼 장 제목을 굵게 */
.md-nav--primary .md-nav__item--section > .md-nav__link,
.md-nav--primary .md-nav__item--nested > .md-nav__link { font-weight: 600; }
.md-nav__link { line-height: 1.5; }

/* 주차·수업 방식 표시 */
.chip { display: inline-block; padding: 0.1em 0.7em; border-radius: 1em; font-size: 0.75rem; background: #eef2f7; color: #1f4e79; font-weight: 600; margin-right: 0.3em; }
.chip.on { background: #e8f3ec; color: #2b6b3f; }
.chip.off { background: #fbecea; color: #9b2d2a; }

/* 실행 결과 블록 */
.md-typeset .result > pre, .md-typeset pre.result { background: #f7f7f2; }
.md-typeset figure img { border: 1px solid #e3e6ea; border-radius: 4px; }
.md-typeset figcaption { font-size: 0.78rem; color: #555; }

/* 수식 한 줄 표기 */
.md-typeset .formula { text-align: center; font-size: 1.05rem; font-family: "Times New Roman", serif; font-style: italic; margin: 1em 0; }
