/* 글 상세(/board/view/articles/*) 전용 게시글 스타일.
   _skin/articles/view.php 에서만 불러온다. app.css 는 모든 페이지가 받으므로 여기 두지 않는다.
   정본: writing-production/docs/02-글/화면포맷/01-게시글-예시-하늘의열글자.html 의 [2] 구역.
   시안을 고치면 이 파일도 함께 고친다(article-check.py --site-css 가 빠진 클래스를 잡는다).
   뺀 것: 2-1a 본문색(app.css .article-body 에 반영), 2-2 시안 안내.
   2-14 용어 팝오버는 static/js/article-terms.js 가 틀을 만들고 글 끝 용어 블록에서 내용을 읽는다(2026-09-27). */

/* 스크린리더 전용 라벨 — 그림 표의 caption 등 */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --- 2-3. 머리말 보강 --------------------------------------------------- */
.cd-a-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cd-a-kicker .cd-a-series {
  padding: 2px 11px; border: 1px solid var(--line-strong); border-radius: 9999px;
  font-size: 13px; font-weight: 600; color: var(--primary);
}
.article-summary strong { letter-spacing: 0.02em; }

/* --- 2-4. 목차 ---------------------------------------------------------- */
.cd-a-toc { margin: 26px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cd-a-toc > summary {
  list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--primary);
}
.cd-a-toc > summary::-webkit-details-marker { display: none; }
.cd-a-toc > summary::before { content: "▸"; font-size: 12px; transition: transform 0.2s; }
.cd-a-toc[open] > summary::before { transform: rotate(90deg); }
.cd-a-toc > summary .cd-a-cnt { margin-left: auto; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.cd-a-toc ol { margin: 0; padding: 0 18px 16px 34px; font-size: 15px; }
.cd-a-toc li { padding: 3px 0; }
.cd-a-toc a { color: var(--text); text-decoration: none; }
.cd-a-toc a:hover, .cd-a-toc a:focus-visible { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* --- 2-5. 사례 인용 (이야기로 읽기) ------------------------------------ */
.cd-a-case-note { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.cd-a-case { margin: 0 0 18px; padding: 2px 0 2px 16px; border-left: 2px solid var(--line-strong); }
.cd-a-case p:last-child { margin-bottom: 0; }

/* --- 2-6. 본문 소제목 --------------------------------------------------- */
.article-body h3 {
  margin: 30px 0 10px; font-size: 19px; line-height: 1.45;
  color: var(--text); font-weight: 700;
}
.article-body h2 { scroll-margin-top: 84px; }

/* --- 2-7. 용어 표시 ----------------------------------------------------- */
.cd-a-term {
  color: #24231f; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 0 2px 1px; border-radius: 3px;
  /* 글자는 제목과 같은 진한 검정. 구분은 금색 형광펜 띠·밑줄·점이 맡는다 */
  background: linear-gradient(transparent 45%, rgba(201, 165, 92, 0.5) 45%);
  box-shadow: inset 0 -3px 0 #b8862b;
  transition: background-color .15s, box-shadow .15s;
}
.cd-a-term::after {
  content: ""; display: inline-block; width: 7px; height: 7px;
  margin: 0 1px 8px 3px; border-radius: 50%; background: #9a6d1c; vertical-align: middle;
}
.cd-a-term:hover, .cd-a-term:focus-visible { color: #000; background-color: rgba(201, 165, 92, 0.24); box-shadow: inset 0 -2px 0 #7a5a1e; }
.cd-a-term:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cd-a-term[aria-expanded="true"] { color: #000; background-color: rgba(201, 165, 92, 0.32); box-shadow: inset 0 -2px 0 #7a5a1e; }

/* --- 2-8. 도표: 열 글자와 열두 글자 ------------------------------------ */
.cd-a-fig { margin: 26px 0; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.cd-a-fig-tit { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--primary); }
.cd-a-fig-sub { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.cd-a-row { margin-bottom: 14px; }
.cd-a-row-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.cd-a-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cd-a-chips.is-12 { grid-template-columns: repeat(6, 1fr); }
.cd-a-chip {
  display: flex; align-items: center; justify-content: center; min-height: 38px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--text);
}
.cd-a-chip.is-earth { background: rgba(201, 165, 92, 0.18); border-color: #c9a55c; color: #7a5a1e; }
.cd-a-pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cd-a-pair {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 0; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  font-family: var(--serif); font-size: 15px; line-height: 1.25; color: var(--text);
}
.cd-a-pair span { font-size: 15px; }
.cd-a-pair.is-void { border-style: dashed; border-color: var(--primary); background: var(--quote-bg); }
.cd-a-pair.is-void b { color: var(--line-strong); font-weight: 400; }
.cd-a-pair.is-void span { color: var(--primary); font-weight: 700; }
.cd-a-legend { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.cd-a-legend b { color: var(--primary); }
@media (min-width: 520px) {
  .cd-a-chips { grid-template-columns: repeat(10, 1fr); }
  .cd-a-chips.is-12 { grid-template-columns: repeat(12, 1fr); }
  .cd-a-pairs { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 720px) {
  .cd-a-fig { padding: 22px 24px; }
  .cd-a-pairs { grid-template-columns: repeat(12, 1fr); }
}

/* --- 2-9. 이 글에 나온 말 (글마다 싣는 용어 설명) ---------------------- */
.cd-a-terms { margin: 36px 0 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.cd-a-terms-tit { margin: 0 0 6px !important; font-size: 17px !important; font-weight: 700; color: var(--primary) !important; }
.cd-a-terms-hint { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.cd-a-terms-item { padding: 14px 0 16px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.cd-a-terms-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cd-a-terms-item h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--primary); }
.cd-a-terms-item p { margin: 0; font-size: 15.5px; }
.cd-a-terms-one { font-weight: 500; color: var(--text); }
.cd-a-terms-detail { margin-top: 6px !important; color: #4b4842; }
.cd-a-terms-say { margin-top: 10px !important; padding-left: 12px; border-left: 2px solid #c9a55c; color: var(--muted); }
/* 본문 용어 링크로 내려왔을 때 어느 항목인지 바로 보이게 한다 */
.cd-a-terms-item:target { margin: 0 -14px; padding-left: 14px; padding-right: 14px; background: var(--quote-bg); border-left: 3px solid var(--primary); border-radius: 8px; }

/* --- 2-10. 깊이 읽기 --------------------------------------------------- */
.cd-a-deep { margin: 36px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cd-a-deep > summary {
  list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 17.5px; font-weight: 700; color: var(--primary);
}
.cd-a-deep > summary::-webkit-details-marker { display: none; }
.cd-a-deep > summary::before { content: "▸"; font-size: 13px; transition: transform 0.2s; }
.cd-a-deep[open] > summary::before { transform: rotate(90deg); }
.cd-a-deep > summary .cd-a-hint {
  margin-left: auto; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap;
}
.cd-a-deep-body { padding: 18px 18px 22px; border-top: 1px solid var(--line); }
.cd-a-deep-body > h3:first-child { margin-top: 0; }
@media (min-width: 720px) {
  .cd-a-deep > summary { padding: 18px 24px; font-size: 19px; }
  .cd-a-deep-body { padding: 20px 24px 26px; }
}

.cd-a-classic {
  margin: 14px 0 18px; padding: 14px 16px; background: var(--quote-bg);
  border-radius: 10px; font-family: var(--serif); font-size: 16px; line-height: 1.7;
}
.cd-a-classic .cd-a-src { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; color: var(--muted); }

.cd-a-tablewrap { overflow-x: auto; margin: 12px 0 18px; -webkit-overflow-scrolling: touch; }
.cd-a-tablewrap table { border-collapse: collapse; width: 100%; min-width: 320px; background: #fff; font-size: 15px; }
.cd-a-tablewrap th {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap;
}
.cd-a-tablewrap td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cd-a-tablewrap tr:last-child td { border-bottom: 0; }
/* 단계 띠 — 순서를 가르치는 글의 지도. 요약 아래에 두고 각 단계는 해당 절로 이어진다 */
.cd-a-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; max-width: 620px; margin: 18px auto 8px; padding: 0; list-style: none; counter-reset: step; }
.cd-a-steps li { position: relative; counter-increment: step; text-align: center; }
.cd-a-steps li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 6px;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; }
.cd-a-steps li + li::after { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.cd-a-steps a, .cd-a-steps span { display: inline-block; padding: 2px 4px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); text-decoration: none; word-break: keep-all; }
.cd-a-steps a:hover { color: var(--primary); text-decoration: underline; }
/* 관계 목록 — 한 문단에 용어가 몰릴 때 줄로 푼다. 줄마다 굵은 머리 + 설명 */
.cd-a-points { margin: 12px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.cd-a-points li { padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 10px; background: var(--surface); line-height: 1.65; }
.cd-a-points li > strong:first-child { display: block; margin-bottom: 2px; color: var(--primary); }
@media (max-width: 420px) { .cd-a-steps a, .cd-a-steps span { font-size: 12.5px; } .cd-a-points li { padding: 11px 13px; } }
/* 오행 바퀴 — 다섯 원을 오각형(위 나무부터 시계 방향 불·흙·쇠·물)에 놓고 화살표로 잇는다.
   기본은 옆으로 도는 상생 고리, is-geuk 는 하나 건너 찌르는 상극 별. is-focus 면 w-hl 선만 진하게. 원 하나만 별 방향이면 w-geuk.
   300px 고정 — 모바일 390px 에도 들어간다. 원 안 글은 <b>큰 글자</b> + 작은 풀이 한 줄 */
.cd-a-wheel { position: relative; width: 300px; height: 280px; margin: 8px auto 4px; padding: 0; list-style: none; --wl: var(--primary); --len: 56px; }
.cd-a-wheel.is-geuk { --wl: #b4553f; --len: 136px; }
.cd-a-wheel li { position: absolute; display: grid; place-content: center; width: 60px; height: 60px; border: 2px solid var(--c); border-radius: 50%;
  background: color-mix(in srgb, var(--t, var(--c)) 14%, #fff); color: var(--c); font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; word-break: keep-all; }
.cd-a-wheel li b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.1; }
.cd-a-wheel li::before, .cd-a-wheel li::after { content: ""; position: absolute; left: 28px; transform-origin: 0 50%; }
.cd-a-wheel li::before { top: 27px; width: var(--len); height: 2px; background: var(--wl); transform: rotate(var(--rot)) translateX(33px); }
.cd-a-wheel li::after { top: 23px; border-left: 10px solid var(--wl); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transform: rotate(var(--rot)) translateX(calc(33px + var(--len))); }
.cd-a-wheel li:nth-child(1) { left: 120px; top: 0; --rot: 36deg; }
.cd-a-wheel li:nth-child(2) { left: 225px; top: 76px; --rot: 108deg; }
.cd-a-wheel li:nth-child(3) { left: 185px; top: 199px; --rot: 180deg; }
.cd-a-wheel li:nth-child(4) { left: 55px; top: 199px; --rot: 252deg; }
.cd-a-wheel li:nth-child(5) { left: 15px; top: 76px; --rot: 324deg; }
.cd-a-wheel.is-geuk li:nth-child(1) { --rot: 72deg; }
.cd-a-wheel.is-geuk li:nth-child(2) { --rot: 144deg; }
.cd-a-wheel.is-geuk li:nth-child(3) { --rot: 216deg; }
.cd-a-wheel.is-geuk li:nth-child(4) { --rot: 288deg; }
.cd-a-wheel.is-geuk li:nth-child(5) { --rot: 0deg; }
.cd-a-wheel.is-focus li:not(.w-hl)::before, .cd-a-wheel.is-focus li:not(.w-hl)::after { opacity: .22; }
.cd-a-wheel li.w-hl::before { top: 26px; height: 4px; }
.cd-a-wheel li.w-me { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary); }
/* 화살표 이름표 — 원 안의 <i> 가 그 원에서 나가는 화살표 위에 뜬다. 자리는 원 중심(30,30) 기준으로 계산했다 */
.cd-a-wheel li i { position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 0 4px; border-radius: 6px; background: var(--surface, #fffdf8);
  font-family: var(--sans, inherit); font-size: 12px; font-style: normal; font-weight: 700; line-height: 1.5; color: var(--wl); white-space: nowrap; }
.cd-a-wheel li:nth-child(1) i { left: 91px; top: 57px; }
.cd-a-wheel li:nth-child(2) i { left: 23px; top: 96px; }
.cd-a-wheel li:nth-child(3) i { left: -35px; top: 44px; }
.cd-a-wheel li:nth-child(4) i { left: -3px; top: -27px; }
.cd-a-wheel li:nth-child(5) i { left: 74px; top: -19px; }
.cd-a-wheel.is-geuk li:nth-child(1) i { left: 49px; top: 89px; }
.cd-a-wheel.is-geuk li:nth-child(2) i { left: -20px; top: 66px; }
.cd-a-wheel.is-geuk li:nth-child(3) i { left: -20px; top: -6px; }
.cd-a-wheel.is-geuk li:nth-child(4) i { left: 49px; top: -29px; }
.cd-a-wheel.is-geuk li:nth-child(5) i { left: 92px; top: 30px; }
/* 한 장에 생극 섞기 — 고리(기본) 바퀴에서 w-geuk 를 단 원만 선을 별 방향(하나 건너)으로 긋는다. 생극제화 한 바퀴를 한 장에 그릴 때.
   원마다 선은 여전히 하나다. 예: 2026-09-22-06 그림 4 */
.cd-a-wheel li.w-geuk { --wl: #b4553f; --len: 136px; }
.cd-a-wheel li.w-geuk:nth-child(1) { --rot: 72deg; }
.cd-a-wheel li.w-geuk:nth-child(2) { --rot: 144deg; }
.cd-a-wheel li.w-geuk:nth-child(3) { --rot: 216deg; }
.cd-a-wheel li.w-geuk:nth-child(4) { --rot: 288deg; }
.cd-a-wheel li.w-geuk:nth-child(5) { --rot: 0deg; }
.cd-a-wheel li.w-geuk:nth-child(1) i { left: 49px; top: 89px; }
.cd-a-wheel li.w-geuk:nth-child(2) i { left: -20px; top: 66px; }
.cd-a-wheel li.w-geuk:nth-child(3) i { left: -20px; top: -6px; }
.cd-a-wheel li.w-geuk:nth-child(4) i { left: 49px; top: -29px; }
.cd-a-wheel li.w-geuk:nth-child(5) i { left: 92px; top: 30px; }
/* 나침반 — 나를 가운데 두고 나와 맺는 네 방향. 순서: 위(나를 살림)·왼쪽(나를 누름)·가운데(나)·오른쪽(내가 살림)·아래(내가 누름).
   화살표는 기운이 가는 방향: 위→나, 왼쪽→나, 나→오른쪽, 나→아래 */
.cd-a-compass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". up ." "lf me rt" ". dn ."; gap: 28px 26px;
  max-width: 460px; margin: 14px auto 6px; padding: 0; list-style: none; }
.cd-a-compass li { position: relative; padding: 10px 6px 9px; border: 2px solid var(--c); border-radius: 12px; background: color-mix(in srgb, var(--t, var(--c)) 12%, #fff);
  font-size: 12.5px; line-height: 1.4; text-align: center; color: var(--text); word-break: keep-all; }
.cd-a-compass li b { display: block; font-size: 17px; color: var(--c); }
.cd-a-compass li small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--c); }
.cd-a-compass li::after { position: absolute; font-size: 20px; font-weight: 700; line-height: 1; color: var(--muted); }
.cd-a-compass li:nth-child(1) { grid-area: up; } .cd-a-compass li:nth-child(1)::after { content: "↓"; left: 50%; bottom: -25px; transform: translateX(-50%); }
.cd-a-compass li:nth-child(2) { grid-area: lf; } .cd-a-compass li:nth-child(2)::after { content: "→"; right: -24px; top: 50%; transform: translateY(-50%); }
.cd-a-compass li:nth-child(3) { grid-area: me; align-self: center; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary); }
.cd-a-compass li:nth-child(4) { grid-area: rt; } .cd-a-compass li:nth-child(4)::after { content: "→"; left: -24px; top: 50%; transform: translateY(-50%); }
.cd-a-compass li:nth-child(5) { grid-area: dn; } .cd-a-compass li:nth-child(5)::after { content: "↓"; left: 50%; top: -25px; transform: translateX(-50%); }
@media (max-width: 420px) { .cd-a-compass { gap: 26px 20px; } .cd-a-compass li { font-size: 11.5px; } .cd-a-compass li:nth-child(2)::after { right: -19px; } .cd-a-compass li:nth-child(4)::after { left: -19px; } }
/* 명식 카드 — 여덟 글자 표. 오행은 색과 글자(나무·불·흙·쇠·물)로 함께 알린다 */
.cd-a-ms { width: 100%; max-width: 680px; margin: 4px auto 0; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.cd-a-ms th, .cd-a-ms td { text-align: center; }
.cd-a-ms thead th { padding: 0 0 2px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.cd-a-ms thead th small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.cd-a-ms thead th.ms-me-h { color: var(--primary); }
.cd-a-ms thead td { width: 44px; padding: 0; background: none; border: 0; box-shadow: none; }
.cd-a-ms tbody th { width: 44px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.cd-a-ms td { padding: 12px 2px 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; vertical-align: top; }
.cd-a-ms td.ms-me { border-color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
/* 기운 색 — 내 사주 위젯(saju-widget.js)과 같은 규칙. --c 는 글자색, 칸 바탕·테두리는 그 색을 --ms-tint·--ms-edge 만큼 섞는다.
   물의 남색은 옅게 섞으면 쇠(회색)와 같아 보여 바탕(--t)만 맑은 파랑을 섞는다. color-mix 를 못 쓰는 브라우저는 흰 바탕 그대로 */
.cd-a-ms, .cd-a-ms-count { --ms-tint: 17%; --ms-edge: 55%; }
.ms-wood { --c: #2e7a5c; } .ms-fire { --c: #c2412f; } .ms-earth { --c: #b07a1e; } .ms-metal { --c: #7b7b7b; } .ms-water { --c: #22364d; --t: #3a6ea5; }
.cd-a-ms td:is(.ms-wood, .ms-fire, .ms-earth, .ms-metal, .ms-water) {
  background: color-mix(in srgb, var(--t, var(--c)) var(--ms-tint), #fff); border-color: color-mix(in srgb, var(--t, var(--c)) var(--ms-edge), #fff); }
.cd-a-ms td.ms-me { border-color: var(--primary); }
.ms-hanja { display: block; font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.15; }
.ms-read { display: block; margin-top: 4px; font-size: 13px; color: var(--text); white-space: nowrap; }
.ms-ani { display: block; font-size: 11.5px; color: var(--muted); }
.ms-ten { display: inline-block; margin-top: 7px; padding: 2px 9px; border-radius: 9999px; background: rgba(255,255,255,.88); box-shadow: 0 0 0 1px rgba(36,35,31,.08); font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; }
.ms-me .ms-ten { background: var(--primary); color: #fff; }
.cd-a-ms td .ms-hanja, .ms-read em { color: var(--c); }
.ms-read em { font-style: normal; font-weight: 700; }
/* 오행 개수 — 다섯 칸을 같은 폭으로, 위에 이름(기운 색)·아래에 개수. 0개는 점선 칸과 흐린 숫자 */
.cd-a-ms-count { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 668px; margin: 12px auto 0; padding: 0; list-style: none; }
.cd-a-ms-count li { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 8px; border: 1px solid color-mix(in srgb, var(--t, var(--c)) var(--ms-edge), #fff);
  border-top: 3px solid var(--c); border-radius: 10px; background: color-mix(in srgb, var(--t, var(--c)) var(--ms-tint), #fff);
  font-size: 13px; font-weight: 600; color: var(--c); white-space: nowrap; }
.cd-a-ms-count b { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.cd-a-ms-count .ms-zero { border: 1px dashed color-mix(in srgb, var(--t, var(--c)) var(--ms-edge), #fff); padding-top: 9px; background: transparent; }
.cd-a-ms-count .ms-zero b { color: var(--line-strong, #bcb4a8); }
@media (max-width: 420px) {
  .cd-a-ms { border-spacing: 4px; }
  .cd-a-ms thead td, .cd-a-ms tbody th { width: 30px; }
  .cd-a-ms tbody th { font-size: 11.5px; }
  .ms-hanja { font-size: 27px; }
  .ms-read { font-size: 12px; }
  .ms-ten { padding: 2px 7px; font-size: 11.5px; }
  .cd-a-ms-count { gap: 4px; }
  .cd-a-ms-count li { font-size: 11.5px; }
  .cd-a-ms-count b { font-size: 18px; }
}

/* --- 2-11. 이 해석의 한계 ---------------------------------------------- */
.cd-a-limits { margin: 36px 0 0; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.cd-a-limits h2 { margin: 0 0 10px !important; font-size: 17px !important; color: var(--primary) !important; }
.cd-a-limits p { margin: 0 0 8px; font-size: 15.5px; }
.cd-a-limits p:last-child { margin-bottom: 0; }

/* --- 2-14. 용어 팝오버 / 모바일 바텀시트 ------------------------------- */
.cd-a-pop-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(36, 35, 31, 0.42);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.cd-a-pop-backdrop.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 601px) { .cd-a-pop-backdrop { display: none; } }

.cd-a-pop {
  position: fixed; z-index: 80; display: none;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(36, 35, 31, 0.22);
  font-size: 15.5px; line-height: 1.7;
}
.cd-a-pop.is-open { display: block; }
.cd-a-pop-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 0; }
.cd-a-pop-tit { margin: 0; font-family: var(--serif); font-size: 17.5px; font-weight: 700; color: var(--primary); }
.cd-a-pop-close {
  flex: none; margin-left: auto; width: 34px; height: 34px; margin-top: -4px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9999px; background: none; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.cd-a-pop-close:hover { background: var(--soft); color: var(--text); }
.cd-a-pop-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.cd-a-pop-body { padding: 8px 16px 16px; max-height: 58vh; overflow-y: auto; overscroll-behavior: contain; }
.cd-a-pop-desc { margin: 0; }
.cd-a-pop-say {
  margin: 12px 0 0; padding-left: 12px; border-left: 2px solid #c9a55c;
  font-size: 14.5px; line-height: 1.7; color: var(--muted);
}
.cd-a-pop-more {
  display: inline-block; margin-top: 14px; color: var(--primary);
  font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* 모바일: 화면 아래에서 올라오는 시트 */
@media (max-width: 600px) {
  .cd-a-pop {
    left: 0; right: 0; bottom: 0; top: auto !important;
    width: 100%; max-width: none;
    border-width: 1px 0 0; border-radius: 18px 18px 0 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform 0.24s ease-out;
  }
  .cd-a-pop.is-open { transform: translateY(0); }
  .cd-a-pop::before {
    content: ""; display: block; width: 40px; height: 4px; margin: 10px auto 0;
    border-radius: 9999px; background: var(--line-strong);
  }
  .cd-a-pop-head { padding-top: 12px; }
  .cd-a-pop-body { padding: 8px 20px 6px; }
  .cd-a-pop-head { padding-left: 20px; padding-right: 14px; }
}
/* 데스크톱: 용어 옆에 붙는 카드 */
@media (min-width: 601px) {
  .cd-a-pop { width: 340px; max-width: calc(100vw - 32px); }
}
body.cd-a-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cd-a-pop, .cd-a-pop-backdrop, .cd-a-toc > summary::before, .cd-a-deep > summary::before { transition: none; }
  .cd-a-pop { transform: none !important; }
}
@media print {
  .site-header, .site-footer, .kakao-chat-fab, .cd-cmt, .article-footer-nav { display: none !important; }
  .cd-a-deep[open] .cd-a-deep-body { display: block !important; }
}
