/* 챗봇 교안의 본문 페이지(절, 환경설정, 용어집).
   위에 붙어 다니는 바, 가운데 본문 한 장, 아래 이전·다음 카드로 된 문서 모양이다.
   색은 사용자가 준 12색 팔레트에서 나온다: 노랑 #fff100, 파랑 #006bff, 하늘 #08c2ff, 연하늘 #bcf2f6,
   연보라 #e5d9f2, 라벤더 #f5efff, 페리윙클 #cdc1ff, 보라 #a594f9, 연파랑 #d2e0fb, 크림 #fef9d9, 세이지 #dee5d4, 회청 #8eaccd.
   --blurple 은 주된 색(파랑), --magenta 는 포인트(보라)다. 이름은 처음 만들 때의 것을 그대로 둔다.
   흰 글자는 파랑 위에만 올리고, 보라·하늘처럼 옅은 바탕 위의 글자는 짙은 남색(#14284b)으로 쓴다. */

:root {
  --blurple: #006bff;
  --magenta: #a594f9;
  --amber: #fff100;
  --edge: #08c2ff;
  --point: #a594f9;
  --link: #08c2ff;
  --canvas: #0b1630;
  --paper: #10203f;
  --panel: #1a2e55;
  --ink: #ffffff;
  --soft: rgba(255, 255, 255, .8);
  --line: rgba(255, 255, 255, .14);
  --chip: rgba(255, 255, 255, .12);
  --accent-soft: rgba(8, 194, 255, .14);
  --accent-text: #bcf2f6;
  --stripe: rgba(255, 255, 255, .04);
  --bar: rgba(11, 22, 48, .92);
  --on-magenta: #14284b;
  --display: "Hanken Grotesk", "Pretendard Variable", Pretendard, "Malgun Gothic", system-ui, sans-serif;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --mono: "D2Coding", "Nanum Gothic Coding", "Cascadia Code", Consolas, "Malgun Gothic", monospace;
  color-scheme: dark;
}

/* 밝은 화면: 라벤더 바탕에 흰 종이. 코드 상자와 색이 깔린 면은 그대로 둔다 */
:root[data-theme="light"] {
  --blurple: #006bff;
  --edge: #006bff;
  --point: #5b45d1;   /* 보라를 짙게: 밝은 바탕에서 작은 글자로도 읽히게 */
  --canvas: #f5efff;
  --paper: #ffffff;
  --panel: #e5d9f2;
  --ink: #14284b;
  --soft: rgba(20, 40, 75, .8);
  --line: rgba(20, 40, 75, .16);
  --chip: rgba(20, 40, 75, .07);
  --accent-soft: #d2e0fb;
  --accent-text: #0050c8;
  --link: #0058d6;
  --stripe: #fef9d9;
  --bar: rgba(255, 255, 255, .94);
  color-scheme: light;
}

/* 위쪽 바: 사용자가 준 네 색 견본(짙은 남색 #293681, 파랑 #4274d9, 옅은 하늘 #95ccdd, 아주 옅은 청록 #d0e7e6)으로
   밝은 화면과 어두운 화면 모두 같게 칠한다. 바 안에서만 토큰을 짙은 바탕에 맞는 값으로 바꾼다.
   흰 글자는 남색 위(명암비 10.8)에만, 단추는 옅은 청록 바탕에 남색 글자(8.4)로 둔다 */
.topbar,
:root[data-theme="light"] .topbar {
  --bar: #293681;
  --panel: #d0e7e6;
  --ink: #ffffff;
  --soft: #d0e7e6;
  --line: #4274d9;
  --accent-text: #95ccdd;
  --blurple: #4274d9;
}
:root .topbar { border-bottom: 3px solid #4274d9; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root .topbar .btn, :root .topbar .theme-toggle, :root .topbar .menu-toggle { color: #293681; }
:root .topbar .btn:hover { background: #95ccdd; color: #293681; }
:root .topbar .theme-toggle:hover, :root .topbar .menu-toggle:hover { background: #95ccdd; }
:root .topbar .tt-icon { border-color: #293681; box-shadow: inset 7px 0 0 #293681; }
:root .topbar .menu-toggle span { background: #293681; }
:root .topbar .progress span { background: linear-gradient(90deg, #4274d9, #95ccdd, #d0e7e6); }
/* 어두운 화면에서 펼쳐지는 메뉴는 본문의 어두운 색으로 되돌린다 */
:root:not([data-theme="light"]) .topbar .menu-panel { --ink: #ffffff; --soft: rgba(255, 255, 255, .8); --line: rgba(255, 255, 255, .14); --panel: #1a2e55; --accent-text: #bcf2f6; --blurple: #006bff; }
/* 바에서 펼쳐지는 전체 메뉴는 본문처럼 밝게 되돌린다 */
:root[data-theme="light"] .menu-panel {
  --ink: #14284b;
  --line: rgba(20, 40, 75, .16);
  --accent-text: #0050c8;
  --blurple: #006bff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.75 var(--font); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--canvas); padding: 8px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }

/* ---------- 위쪽 바 ---------- */

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 64px; padding: 10px 24px; background: var(--bar); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); font: 800 20px/1 var(--display); text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--blurple); }
.brand-mark path { stroke: #fff; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.topbar .ch { color: var(--accent-text); font-weight: 600; }
.topbar .meta { margin-left: auto; color: var(--soft); font-size: 13px; }
.topbar .nav-btns { display: flex; gap: 6px; }
.topbar .btn { padding: 6px 14px; border-radius: 10px; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.topbar .btn:hover { background: var(--blurple); color: #fff; text-decoration: none; }
.topbar .btn.disabled { opacity: .35; pointer-events: none; }
.maker { flex: none; color: var(--ink); font: 700 14px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.theme-toggle { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9999px; background: var(--panel); display: grid; place-items: center; }
.tt-icon { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); box-shadow: inset 7px 0 0 var(--ink); }
.tt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blurple), var(--amber), var(--magenta)); border-radius: 0 9999px 9999px 0; }

/* 더보기 메뉴 */
.menu-toggle { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: var(--panel); display: grid; place-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--blurple); }
.menu-toggle:hover span, .menu-toggle[aria-expanded="true"] span { background: #fff; }
.menu-panel { position: absolute; top: calc(100% + 8px); right: 16px; z-index: 20; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.menu-panel[hidden] { display: none; }
.menu-panel a { display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.menu-panel a:hover { background: var(--accent-soft); text-decoration: none; }
.menu-panel a[aria-current] { background: var(--blurple); color: #fff; }
.menu-panel .n { flex: none; width: 5.2em; color: var(--accent-text); font: 800 12px/1.6 var(--display); letter-spacing: .02em; }
.menu-panel a[aria-current] .n { color: #fff; }

/* ---------- 본문 ---------- */

.page { max-width: 980px; min-height: 100vh; margin: 0 auto; padding: 0 0 56px; background: var(--paper); }
.content { padding: 28px 44px 10px; }

.chip-nav { margin: 0 0 24px; padding: 14px 16px; background: var(--panel); border-radius: 16px; }
.chip-nav b { display: block; margin-bottom: 8px; color: var(--accent-text); font-size: 13px; }
.chip-nav a { display: inline-block; margin: 3px 8px 3px 0; padding: 4px 12px; background: var(--chip); border-radius: 14px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.chip-nav a:hover { background: var(--blurple); color: #fff; text-decoration: none; }
.chip-nav a.cur { background: var(--blurple); color: #fff; font-weight: 700; }

.md .chapter-name { margin: 0 0 2px; color: var(--soft); font-size: 14px; font-weight: 600; }
.md h1 { margin: 6px 0 20px; padding-bottom: 10px; border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--blurple), var(--amber), var(--magenta)) 1; color: var(--ink); font: 800 30px/1.35 var(--display); text-wrap: balance; }
.md h2, .md h3 { margin: 1.5em 0 .6em; padding: 6px 14px; border-left: 5px solid var(--edge); border-radius: 0 10px 10px 0; background: var(--accent-soft); font: 700 21px/1.5 var(--display); }
.md h3 { font-size: 19px; }
/* 실습을 "#### 1단계. 제목" 으로 나눈 과목에서 단계가 잘 보이도록 띠로 둔다 */
.md h4 { margin: 1.6em 0 .6em; padding: 8px 14px; border-radius: 10px; background: var(--panel); border-left: 6px solid var(--point); font-size: 16.5px; }
.md p { margin: 0 0 14px; }
.md ul, .md ol { margin: 0 0 16px; padding-left: 24px; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--soft); }
.md strong { font-weight: 700; }
.md :not(pre) > code { padding: 1px 6px; background: var(--chip); border-radius: 6px; color: var(--ink); font: 13.5px var(--mono); }
.sec { scroll-margin-top: 84px; }
.intro { margin-bottom: 8px; }

/* 코드: 화면 밝기와 상관없이 어두운 상자 */
.code { margin: 0 0 16px; background: #0b1630; border-radius: 14px; overflow: hidden; color: #fff; }
.code figcaption { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 0 18px; }
.code .lang { color: rgba(255, 255, 255, .74); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.copy { padding: 3px 12px; border: 0; border-radius: 6px; background: #1a2e55; color: #fff; font-size: 12px; font-weight: 500; }
.copy:hover { background: var(--blurple); }
.code pre { margin: 0; padding: 10px 18px 16px; overflow-x: auto; }
.code pre code { font: 13.5px/1.65 var(--mono); color: #fff; white-space: pre; overflow-wrap: normal; word-break: normal; tab-size: 4; }
/* 코드 글꼴의 합자(!= 를 ≠ 로, >= 를 ≥ 로 이어 그리는 것)를 끈다. 적은 그대로 보여야 따라 칠 수 있다.
   위의 font: 한 줄이 합자를 기본값으로 되돌리므로, 같은 선택자를 적어 이 줄이 뒤에서 덮어쓰게 한다 */
.code pre code, .md :not(pre) > code, code, pre, kbd, samp { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.code-output { background: #18264a; }
.t-com { color: rgba(255, 255, 255, .55); }
.t-str, .t-num, .t-const { color: #fff100; }
.t-kw { color: #cdc1ff; }
.t-fn { font-weight: 700; }

/* 표 */
.table-wrap { margin: 14px 0; overflow-x: auto; border-radius: 12px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
/* 표 머리: 짙은 파랑(#0050c8) 바탕에 흰 글자. 밝은 화면과 어두운 화면 모두 같은 색이다 */
th { background: #0050c8; color: #fff; font-weight: 700; white-space: nowrap; border-bottom-color: #0050c8; }
thead th + th { border-left: 1px solid rgba(255, 255, 255, .22); }
.md th :not(pre) > code, th code { background: rgba(255, 255, 255, .18); color: #fff; }
th a { color: #fff100; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(2n) td { background: var(--stripe); }
tr:target td { background: rgba(255, 241, 0, .35); }
tr[id] { scroll-margin-top: 90px; }

/* 먼저 큰 그림부터: 파랑 그라디언트 패널, 아래에 노랑 받침 */
.sec-easy .wrap { padding: 20px 24px 8px; border-radius: 20px; background: linear-gradient(135deg, #0047b3 0%, #006bff 62%, #2a80ff 100%); border-bottom: 5px solid #fff100; color: #fff; }
.sec-easy p { font-size: 17.5px; font-weight: 500; line-height: 1.65; }
.sec-easy :not(pre) > code { background: rgba(0, 0, 0, .28); color: #fff; }
.sec-easy a { color: #fff; text-decoration: underline; }

/* 용어 */
.md ul.term-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.term-list li { display: grid; grid-template-columns: minmax(8em, 15em) 1fr; gap: 4px 20px; margin: 0; padding: 10px 14px; background: var(--panel); border-radius: 12px; }
.term-list .term { font-weight: 700; }
.term-list .term a { color: var(--ink); border-bottom: 2px solid var(--edge); }
.term-list .term a:hover { text-decoration: none; border-bottom-color: var(--magenta); }
.term-list .def { color: var(--soft); }

/* 예시 풀이, 정답 */
details { margin: 10px 0 18px; padding: 10px 16px; border-radius: 12px; background: var(--panel); }
details summary { cursor: pointer; color: var(--link); font-weight: 700; }
details[open] summary { margin-bottom: 10px; }
.reveal-body > :last-child { margin-bottom: 4px; }

/* 확인문제 */
.quiz { display: grid; gap: 14px; }
.q { padding: 18px 20px; border-radius: 16px; background: var(--panel); }
.q-text { margin-bottom: 12px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.q-num, .short-q::before { display: inline-block; margin-right: 10px; padding: 0 10px; border-radius: 12px; background: var(--magenta); color: var(--on-magenta); font-size: 13px; font-weight: 700; line-height: 1.7; vertical-align: 1px; }
.opts { display: grid; gap: 6px; }
.opt { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--paper); text-align: left; line-height: 1.5; }
.opt:hover:not(:disabled) { background: var(--blurple); color: #fff; }
.opt-key { flex: none; font: 800 14px/1 var(--display); }
.opt.is-correct { background: var(--blurple); color: #fff; }
.opt.is-correct code, .opt:hover:not(:disabled) code { color: #fff; }
.opt.is-wrong { opacity: .5; }
.opt.is-wrong .opt-text { text-decoration: line-through; }
.opt:disabled { cursor: default; color: var(--ink); }
.opt.is-correct:disabled { color: #fff; }
.q-feedback { min-height: 1.5em; margin: 10px 0 0; font-size: 14.5px; font-weight: 600; }
.q-feedback.no { color: var(--soft); }
.quiz-score { margin: 0; font: 700 18px/1.4 var(--display); }
.md ol.short { list-style: none; padding: 0; counter-reset: short; display: grid; gap: 14px; }
.short li { counter-increment: short; margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--panel); }
.short-q { font-weight: 600; }
.short-q::before { content: "S" counter(short); }
.short details { margin: 10px 0 0; padding: 8px 14px; background: var(--chip); }

/* 용어집 찾기 */
.gloss-search { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.gloss-search input { flex: 1; max-width: 420px; height: 40px; padding: 0 16px; border: 2px solid transparent; border-radius: 14px; background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; }
.gloss-search input::placeholder { color: var(--soft); }
.gloss-search input:focus { outline: none; border-color: var(--blurple); }
#gloss-count { color: var(--soft); font-size: 14px; }

/* ---------- 첫 화면: 표지, STEP, 장 상자 ---------- */

.home-bar .maker { margin-left: auto; }
.cover { padding: 10px 2px 28px; border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--blurple), var(--amber), var(--magenta)) 1; }
.hero-art { margin: 0 auto; max-width: 860px; }
.hero-art img { display: block; width: 100%; height: auto; }
/* 첫 화면의 "과정의 흐름" 인포그래픽. 그림 자체가 라벤더 바탕이라 틀 없이 넓게 둔다 */
.flow-art { margin: 10px 0 0; }
.flow-art img { display: block; width: 100%; height: auto; border-radius: 18px; }
.flow-art figcaption { margin-top: 6px; color: var(--soft); font-size: 13px; text-align: right; }
.part { margin: 34px 0 4px; padding: 0 2px; scroll-margin-top: 84px; }
.part .no { color: var(--point); font: 800 13px/1.6 var(--display); letter-spacing: .06em; }
.part .t { font: 800 20px/1.45 var(--display); }
.part .part-link { margin-left: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.lesson { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; scroll-margin-top: 84px; }
.lesson-head { padding: 12px 18px; background: var(--panel); }
.lesson-head .no { color: var(--accent-text); font: 800 13px/1.6 var(--display); }
.lesson-head .t { font-size: 18px; font-weight: 700; line-height: 1.45; }
.lesson-head .t a { color: var(--ink); }
.lesson-desc { margin: 0; padding: 12px 18px; color: var(--soft); font-size: 14.5px; }
.md ol.sec-list { list-style: none; margin: 0; padding: 8px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px; }
.sec-list li { margin: 0; }
.sec-list a { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.sec-list a:hover { background: var(--accent-soft); text-decoration: none; }
.sec-list .n { flex: none; color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.notes { margin-top: 12px; color: var(--soft); }
.notes p { font-size: 15.5px; }

/* ---------- 아래쪽 ---------- */

.pager { display: flex; gap: 12px; padding: 18px 44px 30px; }
.pager > a, .pager > span { flex: 1 1 0; padding: 14px 18px; border-radius: 16px; background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.pager a:hover { background: var(--blurple); color: #fff; text-decoration: none; }
.pager a:hover .lbl { color: #fff; }
.pager .nxt { text-align: right; }
.pager .lbl { display: block; margin-bottom: 3px; color: var(--soft); font-size: 11px; }
.pager .off { opacity: .35; }
.foot { margin: 26px 44px 0; padding: 24px 0 8px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; line-height: 1.7; text-align: center; }
.foot b { display: block; color: var(--ink); font: 800 16px/1.6 var(--display); letter-spacing: .02em; }

@media (max-width: 720px) {
  .content { padding: 20px 16px; }
  .pager { flex-direction: column; padding: 14px 16px; }
  .topbar { gap: 8px; padding: 8px 14px; }
  .topbar .meta, .topbar .ch { display: none; }
  /* 좁은 화면: 첫 줄에 로고와 오른쪽 단추들, 둘째 줄에 이전·목차·다음 */
  .topbar .maker { order: 1; margin-left: auto; }
  .topbar .theme-toggle { order: 2; }
  .topbar .menu-toggle { order: 3; }
  .topbar .nav-btns { order: 4; flex: 1 0 100%; }
  .topbar .nav-btns .btn { flex: 1; text-align: center; }
  .brand { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; padding: 7px; }
  .foot { margin: 20px 16px 0; }
  .md h1 { font-size: 24px; }
  .md h2, .md h3 { font-size: 18px; }
  .term-list li { grid-template-columns: 1fr; }
  .md ol.sec-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar.home-bar .maker { display: block; }
  .topbar.home-bar .theme-toggle { margin-left: 0; }
  .topbar .maker { display: none; }
  .topbar .theme-toggle { margin-left: auto; }
  .topbar .btn { padding: 6px 10px; }
}

@media print {
  .topbar, .pager, .chip-nav, .copy, .skip, .menu-panel { display: none !important; }
  body, .page, .code, .q, .short li, .table-wrap, .term-list li, .sec-easy .wrap, details { background: #fff !important; color: #000 !important; }
  .code pre code, .term-list .def { color: #000; white-space: pre-wrap; }
  .code, .q, .table-wrap { border: 1px solid #ccc; break-inside: avoid; }
  details > .reveal-body { display: block; }
}

/* 아주 좁은 화면에서는 첫 화면에서도 만든 곳 글자를 숨겨 단추가 한 줄에 들어가게 한다 */
@media (max-width: 400px) {
  .topbar.home-bar .maker { display: none; }
  .topbar.home-bar .theme-toggle { margin-left: auto; }
}

/* 수업 자료 그림, 실행 결과 그림 */
.md figure.shot { margin: 6px 0 18px; }
.md figure.shot img { display: block; max-width: 100%; height: auto; margin: 0; background: #fff; border-radius: 12px; }
@media print { .md figure.shot { break-inside: avoid; } }

/* 실습 맨 위의 "관련 수업 자료" 줄 */
.md p.src-ref { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--edge); border-radius: 8px; background: var(--panel); font-size: 14px; line-height: 1.7; }
.md p.src-ref a.xref { font-weight: 700; }

/* 다이어그램은 흰 바탕에 테두리 없이 둔다. 실행 결과 그래프(assets/img/nb/)만 밝은 화면에서 옅은 테두리로 종이와 구분한다 */
:root[data-theme="light"] .md figure.shot img[src*="/nb/"] { border: 1.5px solid var(--line); }

/* 아직 원고가 없는 장: 흐린 글자, 누를 수 없음 */
.lesson.planned { border-style: dashed; }
.lesson.planned .lesson-head, .lesson.planned .sec-list { opacity: .45; }
.lesson.planned .soon { margin-left: 6px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.sec-list .row { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; color: var(--ink); font-size: 14.5px; line-height: 1.5; }

/* 체크리스트: 원고의 "- [ ] 항목" 목록. 스스로 점검할 때 눌러 표시한다(저장하지 않는다) */
.md .checklist, .checklist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.checklist li { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; cursor: pointer; line-height: 1.6; }
.checklist input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blurple); cursor: pointer; }
.checklist input:checked + span { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--line); }
.checklist li:has(input:checked) { background: var(--accent-soft); }

