/* FAQ: heading above a full-width list of ruled disclosure rows (condensed uppercase questions, primary +/− toggle).
 * Home sits on the alternate surface; detail pages use the same rows. */
.ocf-faq { background: var(--cardinal-bg-alt); }

.ocf-faq-layout { display: block; }

.ocf-faq-header { margin-bottom: calc(var(--ocf-grid-gap) * 1.333); }
.ocf-faq-header .heading-2 { max-width: var(--ocf-section-heading-width); }

.ocf-faq-list {
    display: flex;
    flex-direction: column;
}

.ocf-faq-disclosure {
    padding: calc(var(--ocf-space-unit) * 1.5) 0;
    border-bottom: var(--card-border-width) solid var(--ocf-border);
}

.ocf-faq-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--ocf-grid-gap) * 1);
    color: var(--ocf-heading);
    cursor: pointer;
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: var(--font-h3-size);
    font-weight: var(--ocf-font-h3-weight);
    letter-spacing: 0.01em;
    line-height: 1.17;
    list-style: none;
    text-transform: uppercase;
}

.ocf-faq-disclosure summary::-webkit-details-marker { display: none; }

.ocf-faq-disclosure summary::after {
    content: '';
    flex-shrink: 0;
    width: calc(var(--ocf-space-unit) * 1.25);
    height: calc(var(--ocf-space-unit) * 1.25);
    background:
        linear-gradient(var(--ocf-primary), var(--ocf-primary)) center / 100% calc(var(--card-border-width) * 2) no-repeat,
        linear-gradient(var(--ocf-primary), var(--ocf-primary)) center / calc(var(--card-border-width) * 2) 100% no-repeat;
}

.ocf-faq-disclosure[open] summary::after {
    background: linear-gradient(var(--ocf-primary), var(--ocf-primary)) center / 100% calc(var(--card-border-width) * 2) no-repeat;
}

.ocf-faq-disclosure summary:hover { color: var(--ocf-link); }

.ocf-faq-disclosure > div {
    max-width: calc(var(--ocf-space-unit) * 50);
    padding-top: calc(var(--ocf-space-unit) * 0.75);
    color: var(--ocf-body);
    font-size: calc(var(--font-body-size) * 0.889);
    line-height: 1.625;
}

.ocf-faq-disclosure p { margin: 0; }
.ocf-faq-disclosure p + p { margin-top: calc(var(--ocf-space-unit) * 0.75); }

@media (max-width: 767px) {
    .ocf-faq-disclosure { padding-block: calc(var(--ocf-space-unit) * 1.125); }
    .ocf-faq-disclosure summary { font-size: calc(var(--font-h3-size) * 0.833); }
}

/* OCF_AGENT_BLOCK:dark-theme-faq-white-copy START */
/* Dark-mode FAQ sits on the navy alternate surface, so use white copy and soft white dividers. */
html[data-theme="dark"] .ocf-faq {
    --ocf-heading: #FFFFFF;
    --ocf-body: #FFFFFF;
    --ocf-link: #FFFFFF;
    --ocf-label: #FFFFFF;
    color: #FFFFFF;
}

html[data-theme="dark"] .ocf-faq .ocf-faq-disclosure {
    border-bottom-color: rgba(255, 255, 255, 0.55);
}
/* OCF_AGENT_BLOCK:dark-theme-faq-white-copy END */

/* OCF_AGENT_BLOCK:faq-home-semantic-headings-links START */
.ocf-faq--home .ocf-faq-disclosure summary h3 {
    min-width: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
}

.ocf-faq--home .ocf-faq-disclosure > div a,
.ocf-faq--home .ocf-faq-disclosure > div a:visited,
.ocf-faq--home .ocf-faq-disclosure > div a:hover,
.ocf-faq--home .ocf-faq-disclosure > div a:focus-visible,
.ocf-faq--home .ocf-faq-disclosure > div a:active {
    color: #FFD400;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}
/* OCF_AGENT_BLOCK:faq-home-semantic-headings-links END */
