/* 음악 개념 노드 화면 (2026-11-25) */
/* 편집 화면: 커서가 없는 줄의 주석(<!-- 자동 -->, %%책|쪽%%)을 숨긴다 */
.markdown-source-view.mod-cm6 .cm-line:not(.cm-active) .cm-comment,
.markdown-source-view.mod-cm6 .cm-line:not(.cm-active) .cm-comment-start,
.markdown-source-view.mod-cm6 .cm-line:not(.cm-active) .cm-comment-end { display: none; }

/* 길잡이 칸 */
body .callout[data-callout="compass"] { --callout-color: 110, 150, 230; --callout-icon: lucide-compass;
  background-color: rgba(110, 150, 230, 0.10) !important; border: 1px solid rgba(110, 150, 230, 0.35) !important; border-radius: 10px !important; padding: 0.7em 1em !important; }
body .callout[data-callout="compass"] .callout-title, body .callout[data-callout="compass"] .callout-title-inner { font-weight: 600; color: rgb(140, 175, 245) !important; }
body .callout[data-callout="compass"] .callout-content ul { list-style: none; padding-left: 0.2em; margin: 0.3em 0 0; }
body .callout[data-callout="compass"] .callout-content li { margin: 0.3em 0; }
body .callout[data-callout="compass"] .callout-content li::before, body .callout[data-callout="compass"] .list-bullet { display: none; }

/* 노드 본문 */
.music-node h1 { font-size: 1.7em; margin-bottom: 0.4em; }
.music-node h2 { font-size: 1.05em; color: var(--text-muted); letter-spacing: 0.02em; border-bottom: 1px solid var(--background-modifier-border); padding-bottom: 0.2em; margin-top: 1.8em; }
.music-node h3 { font-size: 0.95em; font-weight: 600; color: var(--text-accent); border-left: 3px solid var(--text-accent); padding-left: 0.5em; margin-top: 1.2em; }
.music-node li code { font-size: 0.75em; color: var(--text-muted); background: var(--background-modifier-hover); border-radius: 8px; padding: 0 0.45em; margin-left: 0.3em; }
.music-node .markdown-preview-section > div:has(> ul) li { margin-bottom: 0.35em; }

/* ===== 2026-11-26 직관화 ===== */
/* 길잡이 칸 링크를 눌리는 칩으로 */
body .callout[data-callout="compass"] .callout-content a.internal-link {
  display: inline-block; text-decoration: none; color: var(--text-normal);
  background: rgba(110,150,230,0.16); border: 1px solid rgba(110,150,230,0.35);
  border-radius: 999px; padding: 0 0.6em; margin: 0.12em 0.1em; font-size: 0.92em; line-height: 1.7; }
body .callout[data-callout="compass"] .callout-content a.internal-link:hover { background: rgba(110,150,230,0.32); }
body .callout[data-callout="compass"] .callout-content li strong { display: inline-block; min-width: 4.6em; color: rgb(140,175,245); }
body .callout[data-callout="compass"] .callout-title { font-size: 0.85em; opacity: 0.85; }
.mk-meta { font-size: 0.78em; color: var(--text-faint); }
/* 같은 칩 안의 가운뎃점 숨김 효과: 칩 사이 구분점은 흐리게 */
body .callout[data-callout="compass"] .callout-content li { color: var(--text-faint); }

/* 책 첫 줄 상자 */
body .callout[data-callout="core"] { --callout-color: 200, 170, 90; --callout-icon: lucide-book-open;
  background: rgba(200,170,90,0.08) !important; border: none !important; border-left: 3px solid rgba(200,170,90,0.7) !important;
  border-radius: 6px !important; padding: 0.6em 1em !important; }
body .callout[data-callout="core"] .callout-title { font-size: 0.8em; color: var(--text-muted) !important; font-weight: 500; }
body .callout[data-callout="core"] .callout-content { font-size: 1.05em; line-height: 1.65; color: var(--text-normal); }

/* 거쳐 오는 길 링크 */
.music-node .markdown-preview-section a.internal-link { text-decoration: none; }

/* 악기 속성표: 본문 폭 안에 맞추기 */
.music-node table { width: 100%; table-layout: fixed; font-size: 0.8em; }
.music-node table th:first-child, .music-node table td:first-child { width: 4.8em; }
.music-node table td, .music-node table th { vertical-align: top; word-break: keep-all; overflow-wrap: anywhere; }

/* 빈 ③·④ 소제목은 흐리게 */
.music-node h3[data-heading^="③"], .music-node h3[data-heading^="④"] { opacity: 0.55; font-size: 0.85em; }

/* 홈 */
.music-home .bases-embed, .music-home .internal-embed.bases-embed { max-height: 70vh; }
body .callout[data-callout="compass"] .callout-content > p:last-child,
body .callout[data-callout="core"] .callout-content > p:last-child { margin-bottom: 0; }
body .callout[data-callout="compass"] .callout-content > p { margin-top: 0.6em; }

/* 책 말 줄 아래 메모 (2026-11-27): 책의 말이 아니라 Aside가 붙인 표시. 책 말보다 작고 흐리게, 화살표로 딸린 줄임을 보인다 */
.music-node li > ul { margin-top: 0.15em; margin-bottom: 0.25em; }
.music-node li > ul > li { font-size: 0.86em; color: var(--text-muted); list-style-type: "↳ "; margin-bottom: 0.1em; }
.music-node .HyperMD-list-line-2 { font-size: 0.86em; color: var(--text-muted); }


/* 작품 페이지: 관현악 텍스처 색 칸 (2026-12-04) */
.tx { margin: 0.6em 0 1em; font-size: 13px; }
.tx-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; }
.tx-leg b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.tx-sub { font-size: 11.5px; color: var(--text-muted); margin-bottom: 10px; }
.tx-secs { display: flex; margin-left: 76px; font-size: 11px; margin-bottom: 3px; }
.tx-sec { border-left: 2px solid var(--text-normal); padding-left: 3px; white-space: nowrap; overflow: hidden; }
.tx-sec span { color: var(--text-faint); margin-left: 3px; font-size: 10px; }
.tx-sec.tx-gap { border-left-color: transparent; }
.tx-grid { position: relative; }
.tx-lines { position: absolute; top: 0; bottom: 0; left: 76px; right: 0; pointer-events: none; z-index: 1; }
.tx-vl { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text-normal); opacity: 0.55; }
.tx-grp { font-size: 10.5px; color: var(--text-faint); margin: 7px 0 2px; }
.tx-row { display: flex; align-items: center; height: 17px; }
.tx-nm { width: 76px; flex: none; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-bar { flex: 1; display: grid; gap: 1px; height: 14px; }
.tx-bar i { display: block; border-radius: 1px; }
.tx-m { background: #d6336c; } .tx-h { background: #4dabf7; } .tx-r { background: #f59f00; }
.tx-s { background: #ffd8a8; } .tx-d { background: #9775fa; } .tx-x { background: #adb5bd; }
.tx-e { background: var(--background-modifier-border, #eee); }

.tx-p { background: #f3b6cb; }
/* 주제·조 흐름 띠 (2026-12-04) */
.fl { margin: 0.6em 0 0.4em; font-size: 13px; }
.fl .tx-secs { margin-left: 0; }
.fl-wrap { position: relative; }
.fl-wrap .tx-lines { left: 0; }
.fl-strip { display: flex; height: 28px; gap: 1px; border-radius: 5px; overflow: hidden; }
.fl-seg { min-width: 1px; color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.fl-seg.fl-none { background: var(--background-modifier-border, #eee); }
.fl-seg.fl-mv { color: #555; text-shadow: none; background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,.08) 4px 6px); }
.fl-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-faint); margin: 2px 0 6px; }
.fl-det { margin-top: 8px; font-size: 12.5px; }
.fl-det summary { cursor: pointer; color: var(--text-muted); }
.fl-li { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; border-bottom: 1px solid var(--background-modifier-border, #eee); }
.fl-li b { flex: none; width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fl-b { flex: none; width: 64px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
/* 음역 막대 (2026-12-04) */
.rg { margin: 0.6em 0 0.8em; font-size: 13px; }
.rg-axis { position: relative; height: 14px; margin-left: 76px; font-size: 10px; color: var(--text-faint); }
.rg-axis span { position: absolute; transform: translateX(-50%); }
.rg-row { display: flex; align-items: center; height: 17px; }
.rg-nm { width: 76px; flex: none; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-bar { flex: 1; position: relative; height: 12px; }
.rg-oc { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--background-modifier-border, #eee); }
.rg-full { position: absolute; top: 5px; height: 2px; background: #adb5bd; border-radius: 1px; }
.rg-core { position: absolute; top: 1px; height: 10px; background: #4dabf7; border-radius: 3px; }
.rg-lf, .rg-lc { display: inline-block; vertical-align: middle; margin-right: 4px; width: 16px; }
.rg-lf { height: 2px; background: #adb5bd; } .rg-lc { height: 10px; background: #4dabf7; border-radius: 3px; }
/* 본문 첫 줄이 # 제목이면 자동 제목을 숨김 (제목 두 번 방지) */
.markdown-preview-sizer:has(> .mod-header + .el-h1) > .mod-header .page-header,
.markdown-preview-sizer:has(> .mod-header + .mod-frontmatter + .el-h1) > .mod-header .page-header { display: none; }

/* 역할 비율 막대·동기 (2026-12-04) */
.rt-bar { flex: 1; display: flex; height: 14px; gap: 1px; border-radius: 3px; overflow: hidden; }
.rt-bar i { display: block; font-style: normal; font-size: 9.5px; line-height: 14px; color: #fff; text-align: center; overflow: hidden; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.rt-bar i.tx-s { color: #7a5a2a; text-shadow: none; }
.mot-leg { margin-top: 6px; font-size: 12px; }
/* 개념 노드 단계 칩 (2026-12-04) */
.mk-steps { display: inline-flex; gap: 3px; align-items: center; margin-right: 6px; font-size: 11px; }
.mk-steps b { font-weight: 500; padding: 0 7px; border-radius: 9px; background: var(--background-modifier-border, #eee); color: var(--text-faint, #999); line-height: 18px; }
.mk-steps b.on { background: #4dabf7; color: #fff; }
.mk-steps b.next { box-shadow: inset 0 0 0 1px #4dabf7; color: #4dabf7; background: transparent; }
/* 지도 진행 막대 (2026-12-04) */
.mk-prog { display: inline-flex; width: 90px; height: 7px; border-radius: 4px; overflow: hidden; vertical-align: middle; margin: 0 6px; background: var(--background-modifier-border, #eee); }
.mk-prog i { display: block; } .mk-prog .s0 { background: var(--background-modifier-border, #e9ecef); } .mk-prog .s1 { background: #a5d8ff; } .mk-prog .s2 { background: #4dabf7; } .mk-prog .s3 { background: #1c7ed6; } .mk-prog .s4 { background: #2f9e44; }

/* 문화층 규칙 칸 (2026-12-04) */
.rl { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 9px; line-height: 18px; color: #fff; margin-right: 2px; }
.rl-금지 { background: #e03131; } .rl-피함 { background: #f08c00; } .rl-허용 { background: #2f9e44; } .rl-권장 { background: #1c7ed6; }
.rl-v { padding: 0 6px; border-radius: 8px; background: var(--background-modifier-border, #eee); color: var(--text-muted, #666); }
.rl-v-충돌 { background: #ffe3e3; color: #c92a2a; } .rl-v-정도차 { background: #fff3bf; color: #946c00; } .rl-v-일치 { background: #d3f9d8; color: #2b8a3e; }
.rl-v-조건부 { background: #e7f5ff; color: #1971c2; }

/* 보편 개념 허브 (2026-12-04) */
.hub-ax { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 10px; background: #f3f0ff; color: #6741d9; }
.hub-meta { font-size: 12px; color: var(--text-faint, #999); margin-left: 6px; }
.hub-up { display: inline-block; font-size: 12px; padding: 1px 10px; border-radius: 10px; background: #f3f0ff; color: #6741d9; margin: 2px 0 6px; }
.hub-up a { color: #6741d9; font-weight: 600; }
.music-hub h2 { font-size: 1.1em; border-bottom: 1px solid var(--background-modifier-border, #eee); padding-bottom: 0.2em; margin-top: 1.6em; }

/* 2026-12-04 사이트 개편: 첫 화면·음악의 축 9칸, 다른 길 알약, 축 페이지 주제 접힘 */
.callout[data-callout="axes"] { --callout-color: 110, 150, 230; background: transparent !important; border: none !important; padding: 0 !important; }
.callout[data-callout="axes"] > .callout-title { font-size: 0.85em; color: var(--text-muted, #888) !important; padding: 0 0 6px; }
.callout[data-callout="axes"] > .callout-title .callout-icon { display: none; }
.callout[data-callout="axes"] ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; list-style: none; padding: 0 !important; margin: 0; }
.callout[data-callout="axes"] li { margin: 0 !important; padding: 10px 12px; border-radius: 10px; background: rgba(110, 150, 230, 0.08); border: 1px solid rgba(110, 150, 230, 0.25); line-height: 1.35; }
.callout[data-callout="axes"] li:hover { border-color: rgba(110, 150, 230, 0.7); }
.callout[data-callout="axes"] li::before, .callout[data-callout="axes"] .list-bullet { display: none !important; }
.callout[data-callout="axes"] li > a, .callout[data-callout="axes"] li > p > a { font-weight: 600; font-size: 1.05em; text-decoration: none; }
.callout[data-callout="axes"] li small { font-size: 0.78em; opacity: 0.75; }
.callout[data-callout="axes"] .ax-n { font-size: 0.75em; color: rgb(90, 130, 220); }
.callout[data-callout="paths"] { background: transparent !important; border: none !important; padding: 0 !important; margin-top: 1.2em; }
.callout[data-callout="paths"] > .callout-title { font-size: 0.85em; color: var(--text-muted, #888) !important; padding: 0 0 6px; }
.callout[data-callout="paths"] > .callout-title .callout-icon { display: none; }
.callout[data-callout="paths"] ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; margin: 0; }
.callout[data-callout="paths"] li { margin: 0 !important; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--background-modifier-border, #ddd); font-size: 0.9em; }
.callout[data-callout="paths"] li::before, .callout[data-callout="paths"] .list-bullet { display: none !important; }
.callout[data-callout="paths"] li a { text-decoration: none; }
.callout[data-callout="topic"] { --callout-color: 120, 120, 120; --callout-icon: lucide-folder; background: transparent !important; border: 1px solid var(--background-modifier-border, #e5e5e5) !important; border-radius: 8px !important; padding: 6px 12px !important; margin: 6px 0 !important; }
.callout[data-callout="topic"] > .callout-title { font-weight: 600; }
.callout[data-callout="topic"] .callout-content { line-height: 1.9; }
.music-axis table td:nth-child(2) { font-size: 0.85em; opacity: 0.85; }

/* 2026-12-04 개별 페이지 개편 */
.callout[data-callout="music"] { --callout-color: 120, 120, 120; --callout-icon: lucide-music; background: transparent !important; border: 1px solid var(--background-modifier-border, #e5e5e5) !important; border-radius: 8px !important; }
.callout[data-callout="memo"] { --callout-color: 150, 150, 150; }
.music-axis table th:last-child, .music-axis table td:last-child { white-space: nowrap; }
/* 공개 사이트 전용: 관리용 판정 메모 숨김, 비어 있는 ③·④ 칸 제목 숨김 */
.callout[data-callout="memo"] { display: none !important; }
div:has(> h3[data-heading="③ 손·귀"]):has(+ div > h3), div:has(> h3[data-heading="④ 씀"]):last-child, div:has(> h3[data-heading="④ 씀"]):has(+ div.mod-footer) { display: none; }
