/* DataFirefly FAQ IA — frontend styles */

.dffaqai-block {
    margin: 2em 0;
    padding: 0;
    font-family: inherit;
}

.dffaqai-title {
    margin: 0 0 1em;
    padding: 0;
    font-size: 1.5em;
    line-height: 1.2;
    font-weight: 600;
}

.dffaqai-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e5e5;
}

.dffaqai-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

.dffaqai-question {
    width: 100%;
    margin: 0;
    padding: 1em 0;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.dffaqai-question:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.dffaqai-question--static {
    padding: 1em 0 0.5em;
}

.dffaqai-question-text {
    flex: 1 1 auto;
}

.dffaqai-toggle {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    position: relative;
    transition: transform 0.2s ease;
}

.dffaqai-toggle::before,
.dffaqai-toggle::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.dffaqai-toggle::before {
    top: 6px;
    left: 0;
    right: 0;
    height: 2px;
}

.dffaqai-toggle::after {
    top: 0;
    bottom: 0;
    left: 6px;
    width: 2px;
    transition: transform 0.2s ease;
}

.dffaqai-question[aria-expanded="true"] .dffaqai-toggle::after {
    transform: scaleY(0);
}

.dffaqai-answer {
    padding: 0 0 1em;
    line-height: 1.6;
    color: inherit;
}

.dffaqai-answer p {
    margin: 0 0 0.75em;
}

.dffaqai-answer p:last-child {
    margin-bottom: 0;
}

.dffaqai-accordion .dffaqai-answer[hidden] {
    display: none;
}
