/* --- Layout --- */
        .container { max-width: 1200px; margin: 0 auto; padding: 24px; }

        /* --- Confidential Banner --- */
        .confidential-banner { background: #1e3a8a; border-radius: 6px; padding: 10px 16px; max-width: 900px; margin: 50px auto 24px auto; text-align: center; font-size: 0.75rem; font-weight: 600; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; }

        /* --- Guide Header --- */
        .guide-header { max-width: 900px; margin: 0 auto 40px auto; }
        .guide-header h1 { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
        .guide-subtitle { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.5; }
        .guide-meta { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
        .guide-tag { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; background: #dbeafe; color: #1e40af; }
        .guide-tag.green { background: #d1fae5; color: #065f46; }
        .guide-tag.amber { background: #fef3c7; color: #92400e; }

        /* --- Guide Content (compact spacing) --- */
        .guide-content { max-width: 900px; margin: 0 auto; line-height: 1.7; }
        .guide-content p { margin-bottom: 12px; color: var(--text-primary); font-size: 13px; }
        .guide-content h2 { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); margin: 40px 0 16px 0; padding-top: 16px; border-top: 1px solid var(--border-color); }
        .guide-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
        .guide-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin: 20px 0 8px 0; }
        .guide-content h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 16px 0 6px 0; }
        .guide-content ul, .guide-content ol { margin: 8px 0; padding-left: 24px; font-size: 13px; color: var(--text-primary); }
        .guide-content li { margin-bottom: 4px; line-height: 1.7; }
        .guide-content strong { color: var(--text-primary); }

        /* --- Key Concept Box --- */
        .key-concept { background: var(--bg-secondary, #f3f4f6); border-left: 4px solid var(--transcend-blue); border-radius: 6px; padding: 16px 20px; margin: 16px 0; }
        .key-concept h3 { margin: 0 0 8px 0; color: var(--text-primary); }
        .key-concept p { margin: 0 0 8px 0; color: var(--text-secondary); font-size: 13px; }
        .key-concept p:last-child { margin-bottom: 0; }

        /* --- Warning Box --- */
        .warning-box { background: #fff0f0; border: 1px solid #ffcccc; border-radius: 6px; padding: 16px 20px; margin: 16px 0; }
        .warning-box h3, .warning-box h4 { color: #8b2d2d; margin: 0 0 8px 0; }
        .warning-box p { color: #5a2020; font-size: 13px; margin-bottom: 8px; }
        .warning-box p:last-child { margin-bottom: 0; }

        /* --- Success Box --- */
        .success-box { background: #e8f4e8; border: 1px solid #b8dbb8; border-radius: 6px; padding: 16px 20px; margin: 16px 0; }
        .success-box h3, .success-box h4 { color: #2d5a2d; margin: 0 0 8px 0; }
        .success-box p { color: #2d5a2d; font-size: 13px; margin-bottom: 8px; }

        /* --- Do/Don't --- */
        .do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
        .do-box { background: #e8f4e8; border-radius: 6px; padding: 16px 20px; }
        .do-box h4 { color: #2d5a2d; margin: 0 0 8px 0; font-size: 0.9rem; }
        .dont-box { background: #fff5f5; border-radius: 6px; padding: 16px 20px; }
        .dont-box h4 { color: #8b2d2d; margin: 0 0 8px 0; font-size: 0.9rem; }
        .do-box ul, .dont-box ul { padding-left: 18px; margin: 0; }
        .do-box li, .dont-box li { font-size: 13px; margin-bottom: 4px; }

        /* --- Tables --- */
        .guide-table { width: 100%; border-collapse: collapse; margin: 12px 0; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; font-size: 13px; }
        .guide-table th { background: var(--bg-secondary, #f3f4f6); padding: 8px 12px; text-align: left; font-size: 0.85rem; font-weight: 600; }
        .guide-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-color); }
        .guide-table .category { color: var(--transcend-blue); font-weight: 600; }

        /* --- Code Block --- */
        .code-block { background: #e8e0ff; border-radius: 4px; padding: 12px 16px; margin: 12px 0; font-family: 'Monaco', 'Menlo', monospace; font-size: 0.85rem; color: #4a2d6d; line-height: 1.6; white-space: pre-wrap; overflow-x: auto; }
        .code-block.dark { background: #1a1a2e; color: #e0e0e0; }

        /* --- Diagnostic Flow --- */
        .diagnostic-flow { display: flex; flex-direction: column; gap: 0; margin: 16px 0; }
        .diagnostic-step { display: flex; gap: 16px; padding: 16px 20px; background: white; border: 1px solid var(--border-color); position: relative; align-items: flex-start; }
        .diagnostic-step:first-child { border-radius: 8px 8px 0 0; }
        .diagnostic-step:last-child { border-radius: 0 0 8px 8px; }
        .diagnostic-step:only-child { border-radius: 8px; }
        .step-number { width: 32px; height: 32px; min-width: 32px; background: var(--transcend-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; }
        .step-content h4 { margin: 0 0 4px 0; font-size: 0.95rem; }
        .step-content p { margin: 0; font-size: 13px; color: var(--text-secondary); }

        /* --- Method Box --- */
        .method-box { border-radius: 8px; padding: 16px 20px; margin: 12px 0; }
        .method-box h3 { margin: 0 0 8px 0; }
        .method-box p { font-size: 13px; margin-bottom: 8px; }
        .method-box p:last-child { margin-bottom: 0; }
        .method-box.green { background: #e8f4e8; }
        .method-box.blue { background: #e8f0f8; }
        .method-box.amber { background: #fff8e8; }
        .method-box.purple { background: #f5f0ff; }
        .method-box.pink { background: #fff0f5; }

        /* --- Case Study --- */
        .case-study { background: #fffbeb; border: 2px solid #fbbf24; border-radius: 8px; padding: 20px; margin: 16px 0; }
        .case-study h3 { color: #92400e; margin: 0 0 12px 0; }
        .case-study p { font-size: 13px; color: #78350f; margin-bottom: 8px; }
        .case-study .anti-pattern { background: #fff5f5; border-radius: 6px; padding: 12px 16px; margin-top: 12px; }
        .case-study .anti-pattern h4 { color: #8b2d2d; margin: 0 0 6px 0; font-size: 0.9rem; }
        .case-study .anti-pattern p { color: #5a2020; }
        .case-study .fix { background: #e8f4e8; border-radius: 6px; padding: 12px 16px; margin-top: 8px; }
        .case-study .fix h4 { color: #2d5a2d; margin: 0 0 6px 0; font-size: 0.9rem; }
        .case-study .fix p { color: #2d5a2d; }
        .impact-tag { display: inline-block; background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-top: 4px; }

        /* --- Metric Row --- */
        .metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
        .metric-box { border-radius: 8px; padding: 16px 20px; }
        .metric-box h4 { margin: 0 0 8px 0; font-size: 0.95rem; }
        .metric-box p { font-size: 13px; margin-bottom: 4px; }
        .metric-box.leading { background: #ecfdf5; border: 2px solid #10b981; }
        .metric-box.leading h4 { color: #065f46; }
        .metric-box.lagging { background: #fef3c7; border: 2px solid #f59e0b; }
        .metric-box.lagging h4 { color: #92400e; }

        /* --- Action Items --- */
        .action-items { background: var(--bg-secondary, #f3f4f6); border-radius: 8px; padding: 20px; margin: 24px 0; }
        .action-items h2 { margin: 0 0 16px 0 !important; padding: 0 !important; border: none !important; }
        .action-items ol { padding-left: 24px; }
        .action-items li { margin-bottom: 6px; font-size: 13px; }

        /* --- Formula highlight --- */
        .formula { background: #f0f4ff; border: 1px solid #c7d2fe; border-radius: 6px; padding: 16px 20px; margin: 12px 0; font-family: 'Monaco', 'Menlo', monospace; font-size: 0.9rem; color: #1e3a5f; }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            body { padding: 16px; }
            .header { flex-direction: column; gap: 16px; text-align: center; }
            .guide-header h1 { font-size: 1.5rem; }
            .metric-row, .do-dont { grid-template-columns: 1fr; }
        }

body {
    overflow-x: hidden;
}

.executive-summary,
.access-summary,
.source-freshness {
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
    padding: 20px 0;
}

.executive-summary h2 {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.access-summary,
.product-route-groups {
    display: grid;
    gap: 16px;
}

.access-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-route-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0;
}

.product-route-groups a {
    border-top: 3px solid var(--transcend-blue);
    color: var(--text-primary);
    padding-top: 12px;
    text-decoration: none;
}

.product-route-groups strong,
.product-route-groups span,
.access-label,
.source-label {
    display: block;
}

.product-route-groups strong {
    margin-bottom: 6px;
}

.product-route-groups span,
.access-summary span:last-child,
.source-freshness p,
.auth-copy-muted,
.comments-empty-help,
.footer-note {
    color: var(--text-secondary);
}

.access-label,
.source-label {
    color: var(--transcend-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.guide-table {
    table-layout: fixed;
}

.guide-table th,
.guide-table td {
    overflow-wrap: anywhere;
    vertical-align: top;
}

.auth-copy {
    margin: 20px 0;
}

.comments-empty-help {
    font-size: 12px;
    margin-top: 8px;
}

.footer-note {
    margin-top: 8px;
}

.nested-list {
    margin-bottom: 0;
    margin-top: 6px;
}

.insight-spaced {
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .product-route-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .guide-header h1 {
        font-size: 1.5rem;
    }

    .access-summary,
    .product-route-groups,
    .metric-row,
    .do-dont {
        grid-template-columns: 1fr;
    }

    .method-box,
    .case-study,
    .warning-box,
    .success-box,
    .key-concept {
        min-width: 0;
    }
}
