.home-faq {
    background: var(--surface-section-dark);
    scroll-margin-top: 90px;
}

.home-faq__items {
    --faq-row-padding: clamp(var(--space-4), 3vw, var(--space-6));

    border: 1px solid var(--border-dark);
    border-radius: var(--radius-shell);
    background: var(--surface-section-deep);
}

.home-faq__item + .home-faq__item {
    border-top: 1px solid var(--border-dark);
}

.home-faq__item:first-child {
    border-start-start-radius: inherit;
    border-start-end-radius: inherit;
}

.home-faq__item:last-child {
    border-end-start-radius: inherit;
    border-end-end-radius: inherit;
}

.home-faq__item[open] {
    background: var(--surface-button-secondary);
}

.home-faq__item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--target-size);
    padding: var(--space-4) var(--faq-row-padding);
    border-radius: inherit;
    color: var(--text-on-dark);
    font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
    font-weight: var(--type-control-weight);
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.home-faq__item > summary::-webkit-details-marker {
    display: none;
}

.home-faq__item > summary:hover,
.home-faq__item > summary:focus-visible {
    color: var(--color-on-dark-hover);
    background: var(--surface-nav-active);
}

.home-faq__item > summary:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: calc(-1 * var(--focus-width));
}

.home-faq__indicator {
    flex: 0 0 16px;
    height: 16px;
    color: var(--text-hero-accent);
    background:
        linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
}

.home-faq__item[open] .home-faq__indicator {
    background-size: 14px 2px, 2px 0;
}

.home-faq__answer {
    padding: 0 var(--faq-row-padding) var(--space-5);
}

.home-faq__answer p {
    max-width: 72ch;
    margin: 0;
    color: var(--text-on-dark-muted);
    line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
        .home-faq__item::details-content {
            interpolate-size: allow-keywords;
            block-size: 0;
            overflow: clip;
            transition: block-size var(--motion-control) ease, content-visibility var(--motion-control) allow-discrete;
        }

        .home-faq__item[open]::details-content {
            block-size: auto;
        }
    }
}
