/*
 * The FAQ page (faq-page.php). No Zebra has not drawn it: the checkout's dark title band over the
 * light surface, and the questions as a ruled list that opens one answer at a time.
 *
 * On top of room-v2.css (tokens, reset, buttons, header, footer, .rh-prose).
 */

.rh-faq-hero {
    padding: 160px var(--rh-edge) 72px;
    background: var(--rh-obsidian);
    color: var(--rh-pergament);
}

.rh-faq-title {
    font: 400 64px/1.1 var(--rh-serif);
}

.rh-faq-lead {
    max-width: 720px;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.5;
}

.rh-faq {
    padding: 64px var(--rh-edge) 136px;
    background: var(--rh-pergament);
}

.rh-faq-box {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 880px;
}

.rh-faq-topic {
    margin-bottom: 16px;
    font: 400 40px/1.1 var(--rh-serif);
}

.rh-faq-list {
    border-top: 1px solid rgba(15, 19, 24, .2);
}

.rh-faq-item {
    border-bottom: 1px solid rgba(15, 19, 24, .2);
}

/* A link to one question lands below the header that lies over the page. */
.rh-faq-item {
    scroll-margin-top: 120px;
}

.rh-faq-q {
    position: relative;
    display: block;
    padding: 24px 56px 24px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}

.rh-faq-q::-webkit-details-marker {
    display: none;
}

/* A plus that turns into a minus. */
.rh-faq-q::before,
.rh-faq-q::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 16px;
    height: 2px;
    background: var(--rh-brass);
    transition: transform .2s;
}

.rh-faq-q::after {
    transform: rotate(90deg);
}

.rh-faq-item[open] .rh-faq-q::after {
    transform: rotate(0deg);
}

.rh-faq-q:focus-visible {
    outline: 2px solid var(--rh-brass);
    outline-offset: 2px;
}

.rh-faq-a {
    max-width: 720px;
    padding: 0 0 32px;
    line-height: 1.5;
}

.rh-faq-a ul,
.rh-faq-a ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.rh-faq-a a {
    color: inherit;
    text-decoration-color: var(--rh-brass);
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .rh-faq-hero {
        padding: 120px var(--rh-edge) 56px;
    }

    .rh-faq-title {
        font-size: 48px;
    }

    .rh-faq {
        padding: 32px var(--rh-edge) 96px;
    }

    .rh-faq-box {
        gap: 48px;
    }

    .rh-faq-topic {
        font-size: 32px;
    }

    .rh-faq-q {
        padding: 20px 40px 20px 0;
        font-size: 18px;
    }

    .rh-faq-q::before,
    .rh-faq-q::after {
        right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rh-faq-q::before,
    .rh-faq-q::after {
        transition: none;
    }
}
