.faq {
    background: #ffffff;
    color: #222222;
    padding-block: clamp(40px, 5vw, 64px);

    /* Enables height: auto animation on modern browsers (Chrome 131+, Firefox 129+). */
    interpolate-size: allow-keywords;
}

.faq__inner {
    max-width: var(--lre-container);
    margin: 0 auto;
    padding-inline: var(--lre-gutter);
}

.faq__header {
    text-align: center;
    margin-bottom: clamp(24px, 2.4vw, 36px);
}

.faq__heading {
    margin: 0;
    font-family: var(--lre-font-serif);
    font-weight: 500;
    font-size: 32px;
    line-height: 32px;
    color: #222222;
}

.faq__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq__item {
    margin-bottom: 10px;
}

.faq__item:last-child {
    margin-bottom: 0;
}

.faq__details {
    background: transparent;
}

.faq__summary {
    background: #f4f4f4;
    margin: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #1f2124;
    font-family: var(--lre-font-sans);
    font-weight: 300;
    font-size: 15px;
    line-height: 24px;
    list-style: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq__summary::-webkit-details-marker {
    display: none;
}

.faq__summary::marker {
    content: '';
    display: none;
}

.faq__summary:hover {
    background: var(--lre-color-taupe);
    color: #ffffff;
}

.faq__summary:hover .faq__icon-line {
    stroke: #ffffff;
}

.faq__summary:focus-visible {
    outline: 2px solid rgba(31, 33, 36, 0.4);
    outline-offset: -2px;
}

.faq__icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    display: block;
    overflow: visible;
}

.faq__icon-line {
    stroke: #1f2124;
    stroke-width: 1.5;
    stroke-linecap: square;
    transform-origin: 8px 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq__details[open] .faq__icon-line--v {
    opacity: 0;
    transform: scaleY(0);
}

.faq__question-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-weight: 500;
}

/* Animate open/close — Chrome 131+, Firefox 129+. Older browsers: snaps open. */
.faq__details::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
}

.faq__details[open]::details-content {
    height: auto;
}

.faq__answer {
    padding: 14px 15px 18px calc(15px + 12px + 12px);
    font-family: var(--lre-font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #222222;
}

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

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

.faq__answer p {
    margin: 0 0 16px;
}

.faq__answer ol,
.faq__answer ul {
    margin: 0 0 16px;
    padding-left: 32px;
}

.faq__answer ol {
    list-style: decimal;
}

.faq__answer ul {
    list-style: disc;
}

.faq__answer li {
    margin-bottom: 0;
}

.faq__answer li strong {
    font-weight: 300;
}

.faq__answer em {
    font-style: italic;
}

.faq__answer a {
    color: inherit;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .faq__details::details-content,
    .faq__icon-bar {
        transition: none;
    }
}

@media (max-width: 600px) {
    .faq__heading {
        font-size: 28px;
        line-height: 32px;
    }
    .faq__summary {
        padding: 14px 12px;
    }
    .faq__answer {
        padding: 12px 12px 14px calc(12px + 12px + 12px);
    }
    .faq__answer ol,
    .faq__answer ul {
        padding-left: 24px;
    }
}
