/* The original tablet/mobile composition flows normally. */
.faq-backdrop, .faq-heading { display: contents; }

/* Figma 160:39: neutral at the top, warming to pale yellow over the pattern.
   Keep the color blend inside the backdrop so it cannot tint the character. */
.faq-background {
    background: #fff;
    isolation: isolate;
}
.faq-background > img {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.faq-background::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(178.678112deg, #fff 35.974%, #f4ed84 105.05%);
    mix-blend-mode: color;
}
.faq-background::after {
    z-index: 2;
    background: linear-gradient(178.168829deg, #fff 37.543%, rgb(244 237 132 / 0) 98.922%);
}

/* The artwork and heading stay in view while the document scrolls the answers.
   Clipping, rather than an overflow scroll container, preserves sticky bounds. */
@media (min-width:1200px) {
    .faq {
        display: grid;
        padding: 0;
        min-height: 0;
        overflow: clip;
    }
    .faq-backdrop {
        display: block;
        grid-area: 1 / 1;
        position: sticky;
        top: var(--navigation-height);
        height: calc(100svh - var(--navigation-height));
        align-self: start;
        overflow: clip;
        isolation: isolate;
        z-index: 0;
    }
    .faq-layout {
        grid-area: 1 / 1;
        align-items: start;
        min-height: calc(100svh - var(--navigation-height));
    }
    .faq-mirai {
        transform: scale(.9);
        transform-origin: center top;
    }
    .faq-list { padding: 135px 0 93px; }
    /* Add to the navigation's 24px anchor padding so a FAQ jump preserves
       the original 135px breathing room and aligns the heading with card 1. */
    #faq-title { scroll-margin-top: 111px; }
    .faq-heading {
        display: block;
        position: sticky;
        top: var(--navigation-height);
        height: calc(100svh - var(--navigation-height));
        padding-top: 135px;
        align-self: start;
    }
}
