/* ACA FAQ Injector — Front-end styles
   Modelled after Joytify's TL;DR card:
   outer blue-grey shell → inner white card → heading → accordion items → disclaimer
   Scoped entirely to .aca-faq-block — never touches Yoast's .schema-faq elsewhere.
*/

/* ── Outer shell (mirrors TL;DR blue-grey container) ─────────── */
.aca-faq-block {
    margin: 2em 0;
    background: #cdd5df;          /* same cool blue-grey as screenshot */
    border-radius: 10px;
    padding: 14px;
    font-family: inherit;
}

/* ── Inner white card ──────────────────────────────────────────── */
.aca-faq-block .aca-faq-card {
    background: #ffffff;
    border-radius: 7px;
    padding: 22px 24px 18px;
}

/* ── "FAQs" heading — same weight/size as "TL;DR" ─────────────── */
.aca-faq-block .aca-faq-heading {
    font-size: 1.35em;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px 0;
    padding: 0;
    border: none;
    background: none;
    line-height: 1.2;
}

/* ── FAQ list wrapper ──────────────────────────────────────────── */
.aca-faq-block .aca-faq-list {
    margin: 0;
    padding: 0;
}

/* ── Each Q+A item ─────────────────────────────────────────────── */
.aca-faq-block .aca-faq-item {
    border-top: 1px solid #e5e7eb;
}
.aca-faq-block .aca-faq-item:last-child {
    border-bottom: 1px solid #e5e7eb;
}

/* ── Question button ───────────────────────────────────────────── */
.aca-faq-block .aca-faq-question {
    text-transform: none;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #1a1a2e;
    font-family: inherit;
    font-size: 0.975em;
    font-weight: 700;
    line-height: 1.45;
    transition: opacity 0.15s ease;
}
.aca-faq-block .aca-faq-question:hover { opacity: 0.75; }
.aca-faq-block .aca-faq-question:focus-visible {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Question text ─────────────────────────────────────────────── */
.aca-faq-block .aca-faq-question-text { flex: 1; }

/* ── Circle chevron icon — matches Beebom ─────────────────────── */
.aca-faq-block .aca-faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, border-color 0.15s ease;
}
.aca-faq-block .aca-faq-icon::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg) translateY(-2px);
}
.aca-faq-block .aca-faq-question[aria-expanded="true"] .aca-faq-icon {
    transform: rotate(180deg);
    border-color: #4b5563;
}

/* ── Answer panel ──────────────────────────────────────────────── */
.aca-faq-block .aca-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease, padding-bottom 0.2s ease;
    padding: 0;
}
/* Override hidden attribute with CSS max-height transition */
.aca-faq-block .aca-faq-answer[hidden] {
    display: block !important;
    max-height: 0 !important;
    padding-bottom: 0 !important;
}
.aca-faq-block .aca-faq-answer:not([hidden]) {
    max-height: 800px;
    padding-bottom: 14px;
}

/* ── Answer text ───────────────────────────────────────────────── */
.aca-faq-block .aca-faq-answer p {
    margin: 0;
    color: #374151;
    font-size: 0.94em;
    line-height: 1.65;
    font-weight: 400;
}


/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .aca-faq-block { padding: 10px; }
    .aca-faq-block .aca-faq-card { padding: 16px 16px 14px; }
    .aca-faq-block .aca-faq-question { font-size: 0.93em; padding: 13px 0; }
    .aca-faq-block .aca-faq-icon { width: 22px; height: 22px; }
}
