/* FAQs */

.faqs {
    padding: 48px clamp(28px, 5vw, 96px) 80px;
    background: #fff;
    color: #171717;
}

.faqs__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: 100%;
    margin: 0;
    align-items: start;
    gap: clamp(64px, 8vw, 150px);
}

/* Left-hand introduction */

.faqs__intro {
    min-width: 0;
    max-width: 580px;
    padding-top: 12px;
    text-align: left;
}

.faqs h2 {
    margin: 0;
    font-size: clamp(42px, 4.2vw, 68px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.faqs__highlight {
    text-decoration-line: underline;
    text-decoration-color: var(--colour-yellow);
    text-decoration-thickness: 4px;
    text-underline-offset: 0.14em;
    text-decoration-skip-ink: auto;
}

.faqs__copy {
    max-width: 480px;
    margin-top: 36px;
}

.faqs__copy p {
    margin: 0;
    color: #626262;
    font-size: 17px;
    line-height: 1.85;
}

.faqs__copy p + p {
    margin-top: 20px;
}

.faqs__link {
    display: inline-flex;
    min-height: 48px;
    margin-top: 24px;
    padding-block: 10px;
    align-items: center;
    font-size: 14px;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: #b18c00;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

/* Right-hand accordion */

.faqs__accordion {
    min-width: 0;
    border-top: 1px solid #dedede;
}

.faq-item {
    border-bottom: 1px solid #dedede;
    transition: border-bottom-color 180ms ease;
}

.faq-item__question {
    display: flex;
    min-height: 88px;
    padding: 24px 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    cursor: pointer;
    touch-action: manipulation;
}

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

.faq-item__question::marker {
    content: "";
}

.faq-item__question > span:first-child {
    min-width: 0;
    font-size: clamp(20px, 1.55vw, 25px);
    font-weight: 550;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.faq-item__toggle {
    flex: 0 0 auto;
    color: #686868;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.faq-item__opened {
    display: none;
}

.faq-item[open] {
    border-bottom-color: var(--colour-yellow);
}

.faq-item[open] .faq-item__closed {
    display: none;
}

.faq-item[open] .faq-item__opened {
    display: inline;
}

.faq-item[open] .faq-item__question {
    padding-bottom: 16px;
}

.faq-item__answer {
    max-width: 650px;
    padding: 0 0 28px;
}

.faq-item__answer p {
    margin: 0;
    color: #626262;
    font-size: 16px;
    line-height: 1.85;
}

.faq-item:focus-within {
    border-bottom-color: var(--colour-yellow);
}

@media (hover: hover) and (pointer: fine) {
    .faq-item:hover {
        border-bottom-color: var(--colour-yellow);
    }

    .faqs__link:hover {
        text-decoration-color: #171717;
    }
}

/* Tablet */

@media (min-width: 768px) and (max-width: 1099px) {
    .faqs {
        padding: 40px 40px 72px;
    }

    .faqs__inner {
        gap: 40px;
    }

    .faqs h2 {
        font-size: 44px;
    }

    .faqs__copy p {
        font-size: 16px;
    }

    .faq-item__question {
        gap: 16px;
    }

    .faq-item__question > span:first-child {
        font-size: 20px;
    }

    .faq-item__toggle {
        font-size: 10px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .faqs {
        padding: 32px 24px 64px;
    }

    .faqs__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .faqs__intro {
        max-width: 560px;
        padding-top: 0;
    }

    .faqs h2 {
        font-size: clamp(38px, 7vw, 52px);
        line-height: 1.22;
    }

    .faqs__highlight {
        text-decoration-thickness: 3px;
    }

    .faqs__copy {
        max-width: 520px;
        margin-top: 28px;
    }

    .faqs__copy p {
        font-size: 16px;
        line-height: 1.8;
    }

    .faqs__copy p + p {
        margin-top: 16px;
    }

    .faqs__link {
        margin-top: 18px;
    }

    .faq-item__question {
        min-height: 80px;
        padding-block: 22px;
        gap: 18px;
    }

    .faq-item__question > span:first-child {
        font-size: 20px;
        line-height: 1.4;
    }

    .faq-item__toggle {
        font-size: 10px;
    }

    .faq-item__answer {
        padding-bottom: 24px;
    }

    .faq-item__answer p {
        font-size: 16px;
        line-height: 1.8;
    }
}

@media (max-width: 359px) {
    .faqs {
        padding-inline: 20px;
    }

    .faqs h2 {
        font-size: 35px;
    }

    .faq-item__question {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

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