/* The outer shell paints the gutters and the space before the footer. */
body.dws-rs-faq-page,
.dws-rs-faq-page :is(.wp-site-blocks, #page, #main-container, #content):has(.dws-rs-faq) {
    background-color: #0a1422;
}

/* The header keeps the white background used on the policy pages. */
.dws-rs-faq-page :is(.wp-site-blocks > header, #masthead, #header) {
    background-color: #fff;
}

/* The entire existing content column is lighter navy, edge to edge. */
.dws-rs-faq-page :is(main, .site-main):has(.dws-rs-faq) {
    background: #0c2845;
    padding-block: clamp(34px, 5vw, 76px);
}

.dws-rs-faq-page :is(.entry-title, .wp-block-post-title, .page-title) {
    color: #2096ea;
    text-align: center;
    text-transform: uppercase;
}

.dws-rs-faq {
    --rs-faq-blue: #0965a8;
    --rs-faq-navy: #152a43;
    --rs-faq-border: #c6daee;
    box-sizing: border-box;
    max-width: 860px;
    width: calc(100% - 32px);
    margin: 12px auto 0;
    padding: clamp(18px, 4.5vw, 54px);
    background: #f4f6f9;
    border: 1px solid #b7d7f5;
    border-top: 3px solid #4b9ff0;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgb(3 14 30 / 24%);
    color: var(--rs-faq-navy);
    font-family: var(--wp--preset--font-family--poppins, Poppins, system-ui, sans-serif);
}

.dws-rs-faq .dws-rs-faq-intro {
    margin: 0 0 24px;
    color: #41536b;
    font-size: clamp(16px, 1.65vw, 19px);
    line-height: 1.6;
}

.dws-rs-faq details {
    margin: 0 0 14px;
    background: #fff;
    border: 1px solid var(--rs-faq-border);
    border-radius: 12px;
    box-shadow: 0 2px 9px rgb(20 52 91 / 7%);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dws-rs-faq details:hover,
.dws-rs-faq details[open] {
    border-color: var(--rs-faq-blue);
    box-shadow: 0 3px 14px rgb(23 85 165 / 12%);
}

.dws-rs-faq details:last-child {
    margin-bottom: 0;
}

.dws-rs-faq summary {
    color: var(--rs-faq-navy);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 11px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
}

.dws-rs-faq summary::-webkit-details-marker {
    display: none;
}

.dws-rs-faq summary:focus-visible {
    outline: 2px solid var(--rs-faq-blue);
    outline-offset: 3px;
}

.dws-rs-faq summary::after {
    content: "";
    flex: 0 0 8px;
    height: 8px;
    margin-left: auto;
    border: solid var(--rs-faq-blue);
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.dws-rs-faq details[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.dws-rs-faq .dws-rs-faq-logo {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
}

.dws-rs-faq .dws-rs-faq-answer {
    margin: 0 20px;
    padding: 13px 0 16px;
    border-top: 1px solid #e1ebf6;
    overflow-wrap: anywhere;
}

.dws-rs-faq .dws-rs-faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

.dws-rs-faq .dws-rs-faq-answer a {
    color: var(--rs-faq-blue);
    text-decoration: underline;
}

@media (max-width: 420px) {
    .dws-rs-faq summary {
        gap: 10px;
        padding: 14px;
        font-size: 14px;
    }

    .dws-rs-faq .dws-rs-faq-answer {
        margin-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dws-rs-faq details,
    .dws-rs-faq summary::after {
        transition: none;
    }
}
