.pn-faq {
    background: #fcf8f1;
}

.pn-faq-editor {
    padding-block: 36px;
}

.pn-faq-layout {
    display: grid;
    grid-template-columns: minmax(200px, 0.65fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
    padding-block: 64px;
}

.pn-faq-index {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 8px;
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
}

.pn-faq-index a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    color: var(--foreground, #493726);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.pn-faq-index a span {
    color: var(--primary, #a15e39);
    font-size: 11px;
}

.pn-faq-index a:hover {
    background: #f1e8d9;
}

.pn-faq-group {
    padding: 32px;
    border: 1px solid rgba(110, 66, 43, 0.12);
    border-radius: 26px;
    background: #f1e8d9;
    scroll-margin-top: 140px;
}

.pn-faq-group + .pn-faq-group {
    margin-top: 32px;
}

.pn-faq-group:nth-child(3n + 2) {
    background: #e8eddf;
}

.pn-faq-group:nth-child(3n) {
    background: #f3dfd4;
}

.pn-faq-group h2,
.pn-faq-cta h2 {
    margin: 0 0 20px;
    font-family: var(--font-display, "Fraunces", Georgia, serif);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.2;
}

.pn-faq-group-intro {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.8;
}

.pn-faq-questions {
    display: grid;
    gap: 10px;
}

.pn-faq-question {
    overflow: hidden;
    border: 1px solid rgba(110, 66, 43, 0.12);
    border-radius: 16px;
    background: #fffaf0;
}

.pn-faq-question summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.pn-faq-question summary::-webkit-details-marker {
    display: none;
}

.pn-faq-plus {
    flex-shrink: 0;
    font-size: 25px;
    font-weight: 400;
    color: var(--primary, #a15e39);
    transition: transform 160ms ease;
}

.pn-faq-question[open] .pn-faq-plus {
    transform: rotate(45deg);
}

.pn-faq-answer {
    padding: 0 22px 22px;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.pn-faq-answer p {
    margin: 0 0 16px;
}

.pn-faq-answer > :last-child {
    margin-bottom: 0;
}

.pn-faq-answer ul,
.pn-faq-answer ol {
    padding-left: 22px;
    list-style: revert;
}

.pn-faq-answer a {
    color: inherit;
    text-decoration: underline;
}

.pn-faq-index a:focus-visible,
.pn-faq-question summary:focus-visible {
    outline: 2px solid var(--primary, #a15e39);
    outline-offset: -3px;
}

.pn-faq-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 80px;
}

.pn-faq-cta p {
    line-height: 1.8;
}

@media (max-width: 767px) {
    .pn-faq-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 40px;
    }

    .pn-faq-index {
        position: static;
        display: flex;
        flex-wrap: wrap;
        max-height: none;
        overflow: visible;
    }

    .pn-faq-index .pn-page-eyebrow {
        width: 100%;
    }

    .pn-faq-index a {
        border: 1px solid rgba(110, 66, 43, 0.14);
    }

    .pn-faq-group {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .pn-faq-question summary {
        padding: 18px;
    }

    .pn-faq-answer {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pn-faq-plus {
        transition: none;
    }
}
