.block-faq {
    padding: var(--wp--preset--spacing--80) var(--wp--style--root--padding-right) var(--wp--preset--spacing--80) var(--wp--style--root--padding-left);
}

.block-faq__inner {
    max-width: var(--wp--style--global--wide-size, 1500px);
    margin: 0 auto;
}

.block-faq__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    align-items: start;
}

/* Stack the columns on smaller screens */
@media (max-width: 782px) {
    .block-faq__columns {
        grid-template-columns: 1fr;
        gap: 2.5em;
    }
}

/* Left column */
.block-faq__left > * {
    max-width: 25rem;
}

/* Sticky left column while scrolling through the questions (as in Focus areas) */
@media (min-width: 783px) {
    .block-faq__left {
        position: sticky;
        top: 150px;
        align-self: start;
    }
}

.block-faq__title {
    font-family: var(--wp--preset--font-family--arizona-flare);
    font-size: var(--wp--preset--font-size--xx-large);
    letter-spacing: var(--arizona-tracking-l);
    font-weight: 500;
    line-height: 1.02;
    margin: 0 0 1rem;
}

.block-faq__description {
    font-size: var(--wp--preset--font-size--normal);
    line-height: var(--body-line-height);
    margin: 0;
    opacity: 0.75;
}

/* Right column */
.block-faq__right {
    display: flex;
    flex-direction: column;
}

/* Card */
.block-faq__card {
    border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    position: relative;
    overflow: hidden;
}

/* Directional hover (Osmo): a tile slides in from the top or bottom, behind
   the question (and the answer when open) */
.block-faq__hover-tile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--wp--preset--color--accent-2); /* light grey */
    pointer-events: none;
}

[data-directional-hover-tile].block-faq__hover-tile {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-100%);
    will-change: transform;
}

.block-faq__question,
.block-faq__answer {
    position: relative;
    z-index: 1;
}

/* Inner spacing so the text doesn't touch the edge of the tile */
.block-faq__question {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.block-faq__answer-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Off on mobile/tablet and on touch devices */
@media (hover: none), (max-width: 991px) {
    .block-faq__hover-tile {
        display: none;
    }

    /* No tile, so no inner spacing needed: text aligns with the page again */
    .block-faq__question {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .block-faq .block-faq__answer-content {
        padding-left: 0;
        padding-right: 0;
    }
}

.block-faq__card:last-of-type {
    border-bottom: none;
}

/* Question button */
.block-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: clamp(16px, 2vw, 24px) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: currentColor;
    font-family: var(--wp--preset--font-family--switzer);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
    line-height: 1.14;
}

.block-faq__question:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Icon */
.block-faq__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

/* Answer */
.block-faq__answer {
    overflow: hidden;
}

.block-faq__answer-content {
    /* Same 1rem side padding as the question, so the answer lines up with it */
    padding: 0 1rem clamp(16px, 2vw, 24px);
    font-size: var(--wp--preset--font-size--normal);
    line-height: var(--body-line-height);
    opacity: 0.75;
}

.block-faq__answer-content > *:first-child {
    margin-top: 0;
}

.block-faq__answer-content > *:last-child {
    margin-bottom: 0;
}

