/* ==========================================================================
   FAQ Page - Documentation Style
   ========================================================================== */

/* --- Main Layout --- */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .faq-layout {
        grid-template-columns: 240px 1fr;
        gap: 3rem;
    }
}

/* --- Sidebar --- */
.faq-sidebar {
    position: sticky;
    top: 7rem; /* Height of header + some padding */
    align-self: start;
}

.sidebar-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: var(--slate-300, #cbd5e1);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: var(--panel-border, #222222);
    color: white;
}

.sidebar-link.active {
    color: var(--primary-accent, #8B5CF6);
    background-color: rgba(139, 92, 246, 0.1);
    border-left-color: var(--primary-accent, #8B5CF6);
    font-weight: 600;
}


/* --- Content Area --- */
.faq-content {
    min-width: 0; /* Prevents overflow issues in grid layouts */
}

.faq-category {
    padding-top: 2rem;
    border-top: 1px solid var(--panel-border, #222222);
}

.faq-category:first-child {
    padding-top: 0;
    border-top: none;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--panel-border, #222222);
}

.faq-question-doc h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #F1F5F9);
    margin-bottom: 0.75rem;
}

.faq-question-doc p, .faq-question-doc ul {
    color: #94a3b8; /* slate-400 */
    line-height: 1.7;
    font-size: 1rem;
}

.faq-question-doc a {
    color: var(--primary-accent, #8B5CF6);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-question-doc a:hover {
    color: #a78bfa; /* indigo-400 */
    text-decoration: underline;
}

.faq-question-doc ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
