/* FAQ accordion (partials/faq-list). Logical properties cover right to left. */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    interpolate-size: allow-keywords;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
    transition: border-color .25s ease, background-color .25s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, .3);
}

.faq-item[open] {
    border-color: rgba(201, 243, 29, .55);
    background: linear-gradient(135deg, rgba(201, 243, 29, .08), rgba(255, 255, 255, .025) 60%);
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 18px;
    list-style: none;
    cursor: pointer;
}

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

.faq-item summary:focus-visible {
    outline: 2px solid #c9f31d;
    outline-offset: 2px;
}

.faq-number {
    flex: 0 0 28px;
    font-size: 13px;
    color: #8c8c8c;
}

.faq-item[open] .faq-number {
    color: #c9f31d;
}

.faq-item h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
}

/* Plus sign that turns into a minus. */
.faq-icon {
    position: relative;
    flex: 0 0 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    transition: background-color .25s ease, border-color .25s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: transform .3s ease, background-color .25s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon {
    border-color: #c9f31d;
    background: #c9f31d;
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
    background: #151515;
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
    margin: 0;
    padding-block: 0 24px;
    padding-inline: 68px 76px;
    font-size: 16px;
    line-height: 28px;
    color: #c4c4c4;
}

/* Smooth open and close where supported; other browsers switch instantly. */
.faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .35s ease, content-visibility .35s allow-discrete;
}

.faq-item[open]::details-content {
    block-size: auto;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-icon,
    .faq-icon::before,
    .faq-icon::after,
    .faq-item::details-content {
        transition: none;
    }
}

@media screen and (max-width: 768px) {
    .faq-item summary {
        gap: 12px;
        padding: 16px;
    }

    .faq-number {
        display: none;
    }

    .faq-item h3 {
        font-size: 16px;
        line-height: 26px;
    }

    .faq-item p {
        padding-inline: 16px;
        padding-block: 0 18px;
        font-size: 15px;
        line-height: 26px;
    }
}
