/* ========== 매뉴얼 페이지 레이아웃 ========== */
.manual-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    align-items: start;
}

/* ========== 좌측 사이드바 ========== */
.manual-sidebar {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.manual-sidebar-head {
    padding: 0 20px 16px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 12px;
}
.manual-platform-badge {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.manual-sidebar-title {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.manual-nav { display: flex; flex-direction: column; }
.manual-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.manual-nav-item:hover {
    background: #f9fafb;
    color: #111827;
}
.manual-nav-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    border-left-color: #2563eb;
    font-weight: 600;
}
.manual-nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}
.manual-nav-item.is-active .manual-nav-num {
    background: #2563eb;
    color: #fff;
}
.manual-nav-icon { font-size: 16px; }
.manual-nav-text { flex: 1; }

/* ========== 본문 ========== */
.manual-content { min-width: 0; }

.manual-breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}
.manual-breadcrumb a { color: #6b7280; text-decoration: none; }
.manual-breadcrumb a:hover { color: #2563eb; }
.manual-breadcrumb .sep { margin: 0 6px; color: #d1d5db; }

.manual-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.manual-chapter-badge {
    display: inline-block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}
.manual-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}

.manual-body { font-size: 15px; line-height: 1.75; color: #374151; }
.manual-body h2 {
    font-size: 22px;
    color: #111827;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}
.manual-body h3 {
    font-size: 17px;
    color: #1f2937;
    margin: 24px 0 12px;
}
.manual-body p { margin: 12px 0; }
.manual-body a { color: #2563eb; text-decoration: none; }
.manual-body a:hover { text-decoration: underline; }
.manual-body ul, .manual-body ol { padding-left: 24px; margin: 12px 0; }
.manual-body li { margin: 6px 0; }
.manual-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #db2777;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.manual-body strong { color: #111827; font-weight: 600; }

.manual-lead {
    font-size: 16px;
    color: #4b5563;
    background: #f9fafb;
    padding: 14px 18px;
    border-left: 3px solid #2563eb;
    border-radius: 0 6px 6px 0;
    margin: 0 0 24px;
}

/* 단계별 박스 (번호 강조) */
.manual-steps {
    counter-reset: manual-step;
    list-style: none;
    padding-left: 0;
}
.manual-steps > li {
    counter-increment: manual-step;
    position: relative;
    padding: 12px 16px 12px 52px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 8px 0;
}
.manual-steps > li::before {
    content: counter(manual-step);
    position: absolute;
    left: 14px; top: 12px;
    width: 26px; height: 26px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* 콜아웃 (팁/경고) */
.manual-callout {
    padding: 14px 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}
.manual-callout-tip {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    color: #1e40af;
}
.manual-callout-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* 스크린샷 */
.manual-screenshot {
    margin: 20px 0;
    text-align: center;
}
.manual-screenshot img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.manual-screenshot-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 14px;
}

/* 이전/다음 페이저 */
.manual-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.manual-pager-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.manual-pager-link:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,0.1);
    transform: translateY(-1px);
}
.manual-pager-next { text-align: right; }
.manual-pager-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}
.manual-pager-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* 모바일 토글 */
.manual-mobile-toggle {
    display: none;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
}

/* 반응형 */
@media (max-width: 900px) {
    .manual-wrap {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px;
    }
    .manual-mobile-toggle { display: flex; }
    .manual-sidebar {
        position: static;
        display: none;
        margin-bottom: 16px;
    }
    .manual-sidebar.is-open { display: block; }
    .manual-title { font-size: 24px; }
    .manual-pager {
        grid-template-columns: 1fr;
    }
}
/* ========== 인덱스 페이지 (플랫폼 선택) ========== */
.manual-index-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.manual-index-header {
    text-align: center;
    margin-bottom: 40px;
}
.manual-index-header h1 {
    font-size: 32px;
    color: #111827;
    margin: 0 0 12px;
}
.manual-index-header p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.manual-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.manual-platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.manual-platform-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.1);
}
.manual-platform-icon {
    font-size: 48px;
    line-height: 1;
}
.manual-platform-name {
    font-size: 18px;
    font-weight: 700;
}
.manual-platform-desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* 엠프티 (준비 중) */
.manual-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
}
.manual-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.manual-empty h2 {
    color: #111827;
    margin: 0 0 12px;
}
.manual-empty .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

/* 사이드바 푸터 (플랫폼 전환) */
.manual-sidebar-foot {
    margin-top: 20px;
    padding: 16px 20px 0;
    border-top: 1px solid #f3f4f6;
}
.manual-sidebar-foot-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 600;
}
.manual-platform-switch {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.manual-platform-switch-item {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    padding: 6px 0;
}
.manual-platform-switch-item:hover {
    color: #2563eb;
}

/* 마크다운 본문 강화 */
.markdown-body blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    color: #1e40af;
    border-radius: 0 6px 6px 0;
}
.markdown-body blockquote p { margin: 0; }
.markdown-body pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 14px 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}
.markdown-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 16px 0;
}
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.markdown-body th, .markdown-body td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.markdown-body th {
    background: #f9fafb;
    font-weight: 600;
}
.manual-platform-icon img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

