/*
 * Frequently asked questions.
 *
 * The accordion is <details>/<summary>, so most of the work here is undoing
 * the browser's default marker and making a summary look like a heading you
 * can press.
 */

.faq-hero {
    background: linear-gradient(160deg, #fdf2f2 0%, #ffffff 65%);
    padding: 32px 0 44px;
}

.faq-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.faq-breadcrumb a { color: #6b7280; text-decoration: none; }
.faq-breadcrumb a:hover { color: var(--primary-red); }
.faq-breadcrumb span { margin: 0 0.35rem; }
.faq-breadcrumb span[aria-current] { margin-left: 0; color: #111827; }

.faq-hero h1 {
    font-size: clamp(1.95rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 0.9rem;
}

.faq-hero__lead {
    max-width: 42rem;
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.75;
    color: #4b5563;
}

.faq-body { padding: 56px 0 72px; }

/* --------------------------------------------------------------- the list */

.faq-item {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    /* So an inbound #f9 does not land under the sticky header. */
    scroll-margin-top: 6rem;
}

.faq-item[open] { border-color: #f3d0d0; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07); }

.faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem 1.4rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    cursor: pointer;
    list-style: none;
}

/* The default disclosure triangle, in both engines. */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-item summary:hover { color: var(--primary-red); }

.faq-item summary i {
    flex: 0 0 auto;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--primary-red);
    transition: transform 0.2s ease;
}

.faq-item[open] summary i { transform: rotate(180deg); }

.faq-item__answer {
    padding: 0 1.4rem 1.35rem;
    border-top: 1px solid #f1f3f5;
}

.faq-item__answer p {
    margin: 1rem 0 0;
    font-size: 0.96rem;
    line-height: 1.8;
    color: #4b5563;
}

.faq-item__answer a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------------------------------------------------------- the jump list */

.faq-jump {
    position: sticky;
    top: 1.5rem;
    padding: 1.5rem 1.6rem;
    background: #f8f9fb;
    border: 1px solid #eceef1;
    border-radius: 16px;
}

.faq-jump h2 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.9rem;
}

.faq-jump ol {
    counter-reset: faq;
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-jump li {
    counter-increment: faq;
    padding: 0.4rem 0;
    border-top: 1px solid #eceef1;
}

.faq-jump li:first-child { border-top: 0; }

.faq-jump a {
    display: block;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #374151;
    text-decoration: none;
}

.faq-jump a::before {
    content: counter(faq) ". ";
    color: #9ca3af;
}

.faq-jump a:hover { color: var(--primary-red); }

/* ---------------------------------------------------------------- the cta */

.faq-more {
    margin-top: 2.5rem;
    padding: 1.85rem 2rem;
    background: linear-gradient(160deg, #fdf2f2 0%, #ffffff 70%);
    border: 1px solid #f3d0d0;
    border-radius: 16px;
}

.faq-more h2 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.faq-more p {
    max-width: 40rem;
    margin: 0 0 1.35rem;
    font-size: 0.97rem;
    line-height: 1.75;
    color: #4b5563;
}

.faq-more__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.faq-more__secondary {
    font-weight: 600;
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.faq-more__secondary:hover { color: var(--primary-red); }

/* ----------------------------------------------------------- small screens */

@media (max-width: 991.98px) {
    .faq-body { padding-top: 40px; }

    /* Stacked, a thirteen item index above the answers is a screen of links
       before anything is answered. */
    .faq-jump { position: static; }
    .faq-jump ol { columns: 2; column-gap: 1.5rem; }
}

@media (max-width: 575.98px) {
    .faq-jump ol { columns: 1; }
    .faq-item summary { padding: 1rem 1.15rem; font-size: 0.97rem; }
    .faq-item__answer { padding: 0 1.15rem 1.15rem; }
    .faq-more { padding: 1.5rem 1.35rem; }
}
