/* Article extras for the documentation pages.
   Loaded after the page's own <style> so it can refine the shared typography.
   Kept separate from docs-shots.css (screenshots) to make the intent obvious. */

/* ---------- FAQ ---------- */
.article-faq {
    margin: 2.75rem 0 0;
    padding: 1.5rem 1.6rem 1.6rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.article-faq > h2 {
    margin: 0 0 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.article-faq h3 {
    position: relative;
    margin: 1.15rem 0 0.35rem;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* Question badge drawn in CSS: no icon font, so it cannot fall back to text. */
.article-faq h3::before {
    content: "?";
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(138, 180, 248, 0.12);
    border: 1px solid rgba(138, 180, 248, 0.32);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.article-faq h3:not(:first-of-type) {
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-faq p {
    margin: 0 0 0 1.75rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #9a9aa0;
}

.article-faq code.inline {
    font-size: 0.82em;
}

/* ---------- Related guides ---------- */
.article-main .docs-links {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.article-main .docs-links li {
    margin: 0;
}

.article-main .docs-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.article-main .docs-links a::after {
    content: "\2192";
    flex: 0 0 auto;
    color: var(--text-secondary);
}

.article-main .docs-links a:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.article-main .docs-links a:hover::after {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .article-faq {
        padding: 1.25rem 1.15rem 1.35rem;
        border-radius: 12px;
    }

    .article-main .docs-links {
        grid-template-columns: 1fr;
    }
}
