.oc-faq-section {
    --oc-faq-section-heading: #212529;
    --oc-faq-section-text: #495057;
    --oc-faq-item-heading: #212529;
    --oc-faq-item-text: #495057;
    --oc-faq-item-icon: #495057;
    --oc-faq-item-edge: rgba(33, 37, 41, 0.1);
    --oc-faq-focus: #212529;
}

/* Light text uses solid white: mid-tone backgrounds (primary, success, danger)
   only reach WCAG AA (4.5:1) with fully opaque white. */
.oc-faq-section--dark {
    --oc-faq-section-heading: #ffffff;
    --oc-faq-section-text: #ffffff;
}

.oc-faq-item--dark {
    --oc-faq-item-heading: #ffffff;
    --oc-faq-item-text: #ffffff;
    --oc-faq-item-icon: #ffffff;
    --oc-faq-item-edge: rgba(255, 255, 255, 0.18);
    --oc-faq-focus: #ffffff;
}

.oc-faq-item--light {
    --oc-faq-item-heading: #212529;
    --oc-faq-item-text: #495057;
    --oc-faq-item-icon: #495057;
    --oc-faq-item-edge: rgba(33, 37, 41, 0.1);
    --oc-faq-focus: #212529;
}

.oc-faq-intro {
    max-width: 64rem;
}

.oc-faq-section-heading {
    color: var(--oc-faq-section-heading) !important;
    line-height: 1.2;
}

/* Rich text: the container sets the color and every descendant inherits it, so
   pasted headings, links, tables, etc. can never fall back to theme colors. */
.oc-faq-intro-text {
    color: var(--oc-faq-section-text) !important;
}

.oc-faq-intro-text *,
.oc-faq-answer *,
.oc-faq-footer-message * {
    color: inherit !important;
}

.oc-faq-intro-text a,
.oc-faq-answer a,
.oc-faq-footer-message a {
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
}

.oc-faq-intro-text a:hover,
.oc-faq-answer a:hover,
.oc-faq-footer-message a:hover {
    text-decoration-thickness: 2px !important;
}

.oc-faq-intro-text>*:last-child {
    margin-bottom: 0;
}

.oc-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.oc-faq-item {
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--oc-faq-item-edge);
}

.oc-faq-header {
    margin: 0;
}

.oc-faq-button {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1.5rem 1.75rem;
    align-items: center;
    gap: 1rem;
}

.oc-faq-button:not(.collapsed) {
    background: transparent !important;
}

.oc-faq-button::after {
    display: none !important;
}

/* Visible keyboard focus (the default Bootstrap ring is removed above). */
.oc-faq-button:focus-visible {
    outline: 3px solid var(--oc-faq-focus) !important;
    outline-offset: -3px;
}

.oc-faq-question {
    display: block;
    flex: 1 1 auto;
    color: var(--oc-faq-item-heading) !important;
    font-size: 1.25rem;
    line-height: 1.35;
}

.oc-faq-icon {
    flex: 0 0 auto;
    color: var(--oc-faq-item-icon) !important;
    transition: transform 0.2s ease-in-out;
}

.oc-faq-button:not(.collapsed) .oc-faq-icon {
    transform: rotate(180deg);
}

.oc-faq-answer {
    padding: 0 1.75rem 1.75rem 1.75rem;
    color: var(--oc-faq-item-text) !important;
}

.oc-faq-answer>*:last-child {
    margin-bottom: 0;
}

.oc-faq-footer-message {
    color: var(--oc-faq-section-text) !important;
}

.oc-faq-footer-message>*:last-child {
    margin-bottom: 0;
}

/* Custom background utilities */
.bg-off-white {
    background-color: #f8f7f3 !important;
}

.bg-warm-white {
    background-color: #f7f3ed !important;
}

.bg-cream {
    background-color: #f4efe6 !important;
}

.bg-soft-beige {
    background-color: #e9ddd1 !important;
}

.bg-sand {
    background-color: #ddd0bf !important;
}

.bg-light-sage {
    background-color: #dfe8dd !important;
}

.bg-sage {
    background-color: #b8c6b1 !important;
}

.bg-pale-green {
    background-color: #e5eee3 !important;
}

.bg-mist {
    background-color: #edf1ef !important;
}

.bg-soft-gray {
    background-color: #f1f1ee !important;
}

.bg-forest-green {
    background-color: #173f35 !important;
}

@media (max-width: 767.98px) {
    .oc-faq-button {
        padding: 1.25rem 1.25rem;
    }

    .oc-faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .oc-faq-question {
        font-size: 1.125rem;
    }
}