{# Container #}
.gha__accordions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gha__accordions .accordion {
    /* border-bottom: 2px solid #bebebe; */
    background: #1b3161;
    /* background: linear-gradient(to right, #2d4a73, #1b3161 60%); */
    border-radius: 1rem;
}

/* Hide browser-native triangle marker, use summary as flex row */
.gha__accordions summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-size: 120%;
    font-weight: 600;
    gap: 1rem;
}

.gha__accordions summary::-webkit-details-marker {
    display: none;
}

{# Toggle Icon #}
.gha__accordions summary .menu__child-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #56bac4;
    line-height: 0;
    flex-shrink: 0;
}

.gha__accordions summary .menu__child-toggle-icon svg {
    transition: transform 0.2s ease-in-out;
}

.gha__accordions details[open] summary .menu__child-toggle-icon svg {
    transform: rotate(180deg);
}

{# Content #}
/* Grid animation trick — collapses to 0 height without display:none */
.gha__accordions .content {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0 1.5rem;
    transition: grid-template-rows 0.3s ease, padding 0.3s ease;
}

.gha__accordions .inner {
    overflow: hidden;
    margin: 0;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.gha__accordions details[open] + .content .inner {
    opacity: 1;
}

.gha__accordions .content *:last-child {
    margin-bottom: 0;
}

.gha__accordions details[open] + .content {
    grid-template-rows: 1fr;
    padding: 1rem 0;
    border-top: 1px solid #1573d7;
}

@media (max-width: 768px) {
    .gha__accordions summary {
        padding: 0.75rem 1rem;
    }

    .gha__accordions .content {
        margin: 0 1rem;
    }
}

@media (prefers-reduced-motion) {
    .gha__accordions .content,
    .gha__accordions .inner {
        transition: none;
    }
}