/* Japanresor FAQ — gråskala-styling som matchar temats #222/#444/#999. */

.japanresor-faq {
    margin: 1.5rem 0;
}

.japanresor-faq__heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 1.5rem;
    line-height: 1.25;
}

/* Mobil: alltid en kolumn, oavsett om det är cols-1 eller cols-2. */
.japanresor-faq__list,
.japanresor-faq__split,
.japanresor-faq__col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.japanresor-faq__col {
    min-width: 0;
}

/* Desktop: frågorna jämnt fördelade på två kolumner. */
@media (min-width: 768px) {
    .japanresor-faq--cols-2 .japanresor-faq__split {
        flex-direction: row;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .japanresor-faq--cols-2 .japanresor-faq__col {
        flex: 1 1 0;
    }
}

/* FAQ-kort. */
.japanresor-faq__item {
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    transition: background-color 0.15s ease;
}

.japanresor-faq__item[open] {
    background: #ececec;
}

/* Summary = klickbar rubrikrad. */
.japanresor-faq__question {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #222;
    transition: background-color 0.15s ease;
}

.japanresor-faq__question::-webkit-details-marker {
    display: none;
}

.japanresor-faq__item:not([open]) .japanresor-faq__question:hover {
    background: #ececec;
}

.japanresor-faq__question:focus-visible {
    outline: 2px solid #999;
    outline-offset: 2px;
    border-radius: 6px;
}

/* H3 inuti summary — neutralisera defaults så den ärver summary-styling. */
.japanresor-faq__question-text {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    flex: 1;
    min-width: 0;
}

/* Plus/minus-ikon. */
.japanresor-faq__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
    color: #555;
}

.japanresor-faq__icon::before,
.japanresor-faq__icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.japanresor-faq__icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.japanresor-faq__icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.japanresor-faq__item[open] .japanresor-faq__icon::after {
    transform: translateX(-50%) scaleY(0);
}

/* Svar. */
.japanresor-faq__answer {
    padding: 0 1.25rem 1.25rem;
    color: #444;
    line-height: 1.65;
}

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