/*
 * FAQ: native details/summary accordion (works without JavaScript), styled like the
 * site's original FAQ element: kicker above a bold headline, uppercase questions with
 * plus/minus, the open question in the page colour scheme, indented answers.
 * Headings are styled by class/position only, so their level (H1–H6) can change freely.
 */

/* Intro headline: subheader as small kicker above the large headline */
.pk-faq__intro header {
    display: flex;
    flex-direction: column;
}

.pk-section .pk-faq__intro .frame > header > :first-child {
    font-family: Montserrat-Black, sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--pk-ink);
    margin: 0;
}

.pk-section .pk-faq__intro .frame > header > :nth-child(2) {
    order: -1;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #b5b5b7;
    margin: 0 0 .5rem;
}

@media (min-width: 42rem) {
    .pk-section .pk-faq__intro .frame > header > :first-child {
        font-size: 3rem;
    }
}

.pk-faq__intro + .pk-faq {
    margin-top: 3rem;
}

/* Questions */
.pk-faq__question {
    display: flex;
    align-items: baseline;
    padding: .75rem 0;
    cursor: pointer;
    list-style: none;
}

.pk-faq__question::-webkit-details-marker {
    display: none;
}

.pk-faq__question::before {
    content: "\f067";
    flex: none;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.125rem;
    margin-right: .5rem;
    color: var(--pk-ink);
}

.pk-section .pk-faq__question-text {
    font-family: Montserrat-SemiBold, sans-serif;
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0;
}

/* Open: colour of the page scheme (theme-color-1 on the summary), minus sign in the same colour */
.pk-faq__item[open] > .pk-faq__question::before {
    content: "\f068";
    color: inherit;
}

.pk-section .pk-faq__item[open] .pk-faq__question-text {
    color: inherit;
}

/* Closed: ink colour, lighter on hover */
.pk-section .pk-faq__item:not([open]) .pk-faq__question-text {
    color: var(--pk-ink);
}

.pk-section .pk-faq__item:not([open]) > .pk-faq__question:hover .pk-faq__question-text,
.pk-faq__item:not([open]) > .pk-faq__question:hover::before {
    color: #b5b5b7;
}

/* Answers */
.pk-faq__answer {
    padding: .5rem 0 1.5rem 1.75rem;
}

.pk-faq__answer p,
.pk-faq__answer li {
    font-size: 1rem;
    line-height: 1.75em;
}
