@import url("_xp_design.css");
.content-title-area { display: none; }

/* ── 사용가이드 전용: 챕터 사이드바 목차 (새 디자인 토큰 사용) ── */
.xp-scope .xz-guide-meta { max-width: var(--site-w); margin: 0 auto; padding: 0 var(--gutter) 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.xp-scope .xz-guide-meta .stat { font-size: 11px; letter-spacing: 0.14em; color: var(--text-mute); text-transform: uppercase; font-weight: 600; }
.xp-scope .xz-guide-meta .stat b { color: var(--text); font-weight: 700; margin-left: 6px; letter-spacing: normal; }

.xp-scope .xz-guide-shell { max-width: var(--site-w); margin: 0 auto; padding: 0 var(--gutter) 100px; display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.xp-scope .xz-guide-shell > * { min-width: 0; }

.xp-scope .xz-guide-toc { position: sticky; top: 96px; }
.xp-scope .xz-guide-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.xp-scope .xz-guide-toc-list li a { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text-mute); text-decoration: none; font-size: 0.86rem; transition: background 0.15s ease, color 0.15s ease; }
.xp-scope .xz-guide-toc-list li a .n { font-size: 0.72rem; font-weight: 700; color: var(--text-mute); opacity: 0.7; min-width: 18px; }
.xp-scope .xz-guide-toc-list li a:hover { background: var(--surface); color: var(--text); }
.xp-scope .xz-guide-toc-list li a.active { background: var(--surface); color: var(--accent-hi); }
.xp-scope .xz-guide-toc-list li a.active .n { color: var(--accent-hi); opacity: 1; }

.xp-scope .xz-chapter { scroll-margin-top: 90px; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--border); }
.xp-scope .xz-chapter:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.xp-scope .xz-chapter-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-hi); text-transform: uppercase; margin-bottom: 14px; }
.xp-scope .xz-chapter-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-hi); display: inline-block; }
.xp-scope .xz-chapter h2 { font-size: 1.55rem; font-weight: 600; color: var(--text); margin: 0 0 14px; word-break: keep-all; }
.xp-scope .xz-chapter > p.lead { font-size: 0.98rem; color: var(--text-mute); line-height: 1.75; margin: 0 0 26px; word-break: keep-all; max-width: 640px; }
.xp-scope .xz-chapter h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 30px 0 12px; }

.xp-scope .xz-steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: xzstep; }
.xp-scope .xz-steps li { counter-increment: xzstep; position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 0.92rem; color: var(--text-mute); line-height: 1.6; }
.xp-scope .xz-steps li::before { content: counter(xzstep); position: absolute; left: 0; top: 0.05em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.xp-scope .xz-steps li strong { color: var(--text); }

.xp-scope .xz-guide-content table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 0.88rem; }
.xp-scope .xz-guide-content th, .xp-scope .xz-guide-content td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-mute); vertical-align: top; word-break: keep-all; overflow-wrap: break-word; }
.xp-scope .xz-guide-content th { color: var(--text); font-weight: 700; background: var(--surface); }
.xp-scope .xz-guide-content tr:last-child td { border-bottom: none; }
.xp-scope .xz-guide-content { min-width: 0; }

.xp-scope .xz-callout { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; padding: 16px 22px; margin: 22px 0; font-size: 0.88rem; color: var(--text-mute); line-height: 1.65; word-break: keep-all; }
.xp-scope .xz-callout .label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent-hi); text-transform: uppercase; margin-bottom: 6px; }
.xp-scope .xz-callout.warning { border-left-color: #e2a03f; }
.xp-scope .xz-callout.warning .label { color: #e2a03f; }

.xp-scope .xz-chapter ul.plain { margin: 0 0 20px; padding-left: 20px; color: var(--text-mute); font-size: 0.92rem; line-height: 1.7; }
.xp-scope .xz-chapter ul.plain li { margin-bottom: 6px; word-break: keep-all; }
.xp-scope .xz-chapter code { background: var(--surface); padding: 2px 7px; border-radius: 5px; font-size: 0.86em; overflow-wrap: anywhere; }
.xp-scope .xz-chapter, .xp-scope .xz-steps li, .xp-scope .xz-callout, .xp-scope .xz-chapter ul.plain li { overflow-wrap: break-word; }

.xp-scope .xz-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.xp-scope .xz-chip-row span { font-size: 0.82rem; color: var(--text-mute); background: var(--surface); padding: 6px 14px; border-radius: 20px; }

@media (max-width: 900px) {
    .xp-scope .xz-guide-shell { grid-template-columns: 1fr; gap: 8px; padding: 0 16px 80px; }
    .xp-scope .xz-guide-toc { position: static; order: -1; margin-bottom: 32px; }
    .xp-scope .xz-guide-toc-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .xp-scope .xz-guide-toc-list li { flex: none; }
    .xp-scope .xz-guide-toc-list li a { white-space: nowrap; border: 1px solid var(--border); border-radius: 20px; padding: 7px 14px; }
    .xp-scope .xz-guide-meta { gap: 24px; padding: 0 16px 24px; }
}
@media (max-width: 768px) {
    .xp-scope .xz-chapter h2 { font-size: 1.28rem; }
}
