/* ============================================================
   Consola22 · FAQ contextual V1
   Componente reutilizable para herramientas públicas.
   ============================================================ */

.context-faq {
    margin-top: 54px;
    padding-bottom: 12px;
}

.context-faq .section-heading {
    margin-bottom: 20px;
}

.context-faq-list {
    display: grid;
    gap: 10px;
}

.context-faq-item {
    overflow: hidden;
    border: 1px solid var(--c22-border);
    border-radius: 14px;
    background: var(--c22-surface);
    box-shadow: var(--c22-shadow-sm);
}

.context-faq-item > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 62px;
    padding: 17px 20px;
    color: var(--c22-heading);
    font-size: .96rem;
    font-weight: 780;
    line-height: 1.42;
    cursor: pointer;
    list-style: none;
}

.context-faq-item > summary::-webkit-details-marker {
    display: none;
}

.context-faq-item > summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--c22-border);
    border-radius: 8px;
    color: var(--c22-accent-strong);
    background: var(--c22-surface-soft);
    font-size: 1.08rem;
    font-weight: 780;
    line-height: 1;
}

.context-faq-item[open] > summary::after {
    content: "−";
}

.context-faq-item > summary:hover,
.context-faq-item > summary:focus-visible {
    color: var(--c22-heading);
    outline: none;
}

.context-faq-item > summary:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(34, 199, 214, .32);
}

.context-faq-answer {
    padding: 0 20px 20px;
    border-top: 1px solid var(--c22-border);
    color: var(--c22-muted);
}

.context-faq-answer p {
    max-width: 900px;
    margin: 16px 0 0;
}

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

.context-faq-answer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--c22-accent-strong);
    font-weight: 780;
    text-decoration: none;
}

.context-faq-answer a:hover,
.context-faq-answer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-theme="dark"] .context-faq-item {
    background: #0D1D22;
    border-color: #20373E;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .context-faq-item > summary::after {
    border-color: #29434B;
    background: #10252B;
    color: #73D9E2;
}

html[data-theme="dark"] .context-faq-answer {
    border-top-color: #20373E;
}

@media (max-width: 700px) {
    .context-faq {
        margin-top: 42px;
    }

    .context-faq-item > summary {
        min-height: 58px;
        padding: 15px 16px;
        font-size: .91rem;
    }

    .context-faq-answer {
        padding: 0 16px 17px;
        font-size: .92rem;
    }
}
