/* FAQ Page Styles */

/* Dynamic content styling - matches legacy PEN_HELP structure */
.faq-content {
    line-height: 1.7;
}

.faq-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

/* Questions - green color */
.faq-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: hsl(var(--primary));
}

.faq-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--primary));
}

.faq-content p {
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
}

.faq-content a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-content a:hover {
    color: hsl(var(--primary) / 0.8);
}

/* Question list - no box styling on li elements */
.faq-content .question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Don't add boxes to li - just basic styling */
.faq-content .question-list > li {
    margin-bottom: 0.5rem;
}

/* Wrap long text and URLs on mobile */
.faq-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Prevent images from breaking layout on mobile */
.faq-content img {
    max-width: 100%;
    height: auto;
}

/* Answer styling - "A." prefix */
.faq-content .h3,
.faq-content span.h3 {
    font-weight: 600;
    color: hsl(var(--primary));
}

/* Nested lists */
.faq-content ul:not(.question-list) {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-content ul:not(.question-list) li {
    margin-bottom: 0.5rem;
    color: hsl(var(--muted-foreground));
}

.faq-content ul ul {
    margin-top: 0.5rem;
}

/* Images in FAQ content */
.faq-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 0.5rem 0;
}

.faq-content img.fr-fic {
    display: inline-block;
    vertical-align: middle;
}

/* Horizontal rules */
.faq-content hr {
    border: 0;
    border-top: 1px solid hsl(var(--border));
    margin: 2rem 0;
}

/* Back to top links */
.faq-content a[href="#"] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: hsl(var(--primary));
}

/* Anchor targets - ensure they're scrollable with offset */
.faq-content [id],
.faq-content [name] {
    scroll-margin-top: 100px;
}

/* Strong text */
.faq-content strong {
    font-weight: 600;
    color: hsl(var(--foreground));
}

/* Code/special terms */
.faq-content code {
    background: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .faq-content h2 {
        font-size: 1.375rem;
    }

    .faq-content h3 {
        font-size: 1rem;
    }
}
