/* ===================================================
   SONG POSTS ACCORDION STYLING
   Scoped to category-songs + single posts
   =================================================== */

/* Base accordion container */
body.category-songs details,
body.single-post details {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    margin: 0.75rem 0;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

/* Subtle elevation when open */
body.category-songs details[open],
body.single-post details[open] {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Accordion header */
body.category-songs details > summary,
body.single-post details > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.4rem 0.75rem 2.4rem;
    list-style: none;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

/* Remove default markers */
body.category-songs summary::-webkit-details-marker,
body.single-post summary::-webkit-details-marker {
    display: none;
}

/* Remove Elementor injected icons */
body.category-songs details > summary > svg,
body.single-post details > summary > svg,
body.category-songs summary i,
body.category-songs summary span.e-icon,
body.single-post summary i,
body.single-post summary span.e-icon {
    display: none !important;
}

/* Left icon (perfect vertical alignment via flex) */
body.category-songs details > summary::before,
body.single-post details > summary::before {
    content: "+";
    position: absolute;
    left: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
}

/* Switch to minus when open */
body.category-songs details[open] > summary::before,
body.single-post details[open] > summary::before {
    content: "-";
}

/* Clean divider when expanded */
body.category-songs details[open] > summary,
body.single-post details[open] > summary {
    border-bottom: 1px solid #eeeeee;
}

/* Content spacing */
body.category-songs details > *:not(summary),
body.single-post details > *:not(summary) {
    padding: 0 1.4rem 1.2rem 1.4rem;
    line-height: 1.6;
    font-size: 0.97rem;
    color: #4b5563;
}

/* Title spacing */
body.category-songs .entry-title,
body.single-post .entry-title {
    margin-bottom: 1.5rem;
}

/* Responsive video embeds */
body.category-songs iframe,
body.single-post iframe {
    max-width: 100%;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body.category-songs details > summary,
    body.single-post details > summary {
        padding: 0.7rem 1.2rem 0.7rem 2.2rem;
        font-size: 0.98rem;
    }
}
/* Restore paragraph spacing inside accordion */
body.category-songs details p,
body.single-post details p {
    margin-bottom: 1rem;
}

body.category-songs details p:last-child,
body.single-post details p:last-child {
    margin-bottom: 0;
}
