/*
 * PokeTeamOn M5.6 R5.
 * Narrow presentation-only consolidation.
 * No MutationObserver and no layout-wide selectors.
 */

/* EXPLAIN toggle parity: pure CSS only, no DOM mutation. */
details[data-m55-explain-details] > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;

    padding: 0.72rem 0.9rem;
    border: 1px solid #DDD6FE;
    border-radius: 0.85rem;
    background: #F5F3FF;
    color: #6D28D9;
    cursor: pointer;
    list-style: none;
}

details[data-m55-explain-details] > summary::-webkit-details-marker {
    display: none;
}

details[data-m55-explain-details] > summary::marker {
    content: "";
}

details[data-m55-explain-details] > summary::after {
    content: "+";
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #DDD6FE;
    border-radius: 999px;
    background: #FFFFFF;
    color: #7C3AED;

    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

details[data-m55-explain-details][open] > summary::after {
    content: "−";
}

/* R2 chevron is visually superseded by the explicit +/- indicator. */
details[data-m55-explain-details] > summary .m56r2-main-explain-chevron {
    display: none !important;
}

/* Consolidated repeated template content. */
.m56r5-coverage-group {
    margin-top: 0.8rem;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
    background: rgba(248, 250, 252, 0.9);
}

.m56r5-coverage-group > strong {
    display: block;
    margin-bottom: 0.35rem;
}

.m56r5-coverage-group > p {
    margin: 0 0 0.55rem;
    color: #64748b;
}

.m56r5-coverage-group ul {
    margin: 0;
    padding-left: 1.15rem;
}

.m56r5-coverage-group li + li {
    margin-top: 0.35rem;
}

.m56r5-consolidated-source {
    display: none !important;
}

@media (max-width: 640px) {
    details[data-m55-explain-details] > summary {
        width: 100%;
    }
}
