/* schema-faq.css
 * Styles for the FAQ section rendered from _schema_faq post meta.
 * The JSON-LD <script> is injected separately in <head>.
 */

.schema-faq-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.schema-faq-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Keep the FAQ heading at regular text color (the article h2 rule forces accent),
   while still showing the accent-block bar. */
.single-article .schema-faq-title {
    color: var(--color-text);
}

.schema-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schema-faq-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.schema-faq-item:last-child {
    border-bottom: none;
}

.schema-faq-question-wrap {
    padding: 0.25rem 0;
}

.schema-faq-question-wrap summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schema-faq-question-wrap summary::-webkit-details-marker {
    display: none;
}

.schema-faq-question-wrap summary::before {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}

.schema-faq-question-wrap[open] summary::before {
    content: "−";
    color: var(--color-text-muted);
}

.schema-faq-answer {
    padding-top: 0.5rem;
    padding-left: 1.75rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.schema-faq-answer a {
    color: var(--color-accent);
    text-decoration: underline;
}

.schema-faq-answer strong {
    color: var(--color-text);
}
