/*
 * FAQ-accordion — generisk shortcode-stil
 *
 * Visuellt identisk med .sp-aip-faq-* men eget klassnamn så modulen kan
 * användas oberoende av landningssidor-CSS:en.
 *
 * Sektioner:
 *  0. FOUC-skydd
 *  1. Wrapper + typografi
 *  2. Rubrik
 *  3. Item (details + summary)
 *  4. Svar
 *  5. Mobil
 */


/* ============================================================
 * 0. FOUC-SKYDD
 * ============================================================ */

.sp-faq {
    opacity: 1 !important;
    transition: opacity 0.15s ease;
}


/* ============================================================
 * 1. WRAPPER + TYPOGRAFI
 * ============================================================ */

.sp-faq,
.sp-faq * {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.sp-faq-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
}

.sp-faq {
    max-width: 800px;
    margin: 0 auto;
    color: #4D524D;
}


/* ============================================================
 * 2. RUBRIK
 * ============================================================ */

.sp-faq-header {
    margin-bottom: 24px;
}

.sp-faq-title {
    position: relative;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #2c2c2c !important;
    margin: 0 0 12px !important;
    padding-top: 18px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    letter-spacing: -0.2px !important;
}

/* Liten grön accent-linje ovanför rubriken — matchar content-blocks. */
.sp-faq-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3d5f42;
    border-radius: 2px;
}

/* Wrappern behöver margin för avstånd mellan FAQ-sektion och tidigare innehåll */
.sp-faq {
    margin-top: 56px;
}


/* ============================================================
 * 3. ITEM (details + summary)
 * ============================================================ */

.sp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-faq-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.sp-faq-item[open] {
    border-color: #c8b78a;
}

.sp-faq-fraga {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    min-height: 44px;
    font-size: 17px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.4;
    user-select: none;
}

.sp-faq-fraga::-webkit-details-marker { display: none; }
.sp-faq-fraga::marker { content: ""; }

.sp-faq-fraga-text {
    flex: 1;
}

.sp-faq-fraga-ikon {
    flex-shrink: 0;
    color: #49412A;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.sp-faq-item[open] .sp-faq-fraga-ikon {
    transform: rotate(180deg);
}

.sp-faq-fraga:focus-visible {
    outline: 2px solid #49412A;
    outline-offset: -2px;
}

.sp-faq-fraga:focus:not(:focus-visible) {
    outline: none;
}


/* ============================================================
 * 4. SVAR
 * ============================================================ */

.sp-faq-svar {
    padding: 0 22px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #4D524D;
}

.sp-faq-svar p {
    margin: 0 0 10px;
}

.sp-faq-svar p:last-child {
    margin-bottom: 0;
}

.sp-faq-svar a {
    color: #3d5f42;
    font-weight: 600;
}


/* ============================================================
 * 5. MOBIL
 * ============================================================ */

@media (max-width: 600px) {
    .sp-faq-title { font-size: 24px; }
    .sp-faq-fraga {
        padding: 16px 18px;
        font-size: 16px;
    }
    .sp-faq-svar {
        padding: 0 18px 16px;
        font-size: 15px;
    }
}
