/*
Purpose:
    Style individual expandable item cards across FlipOut DTSP.

Inputs:
    Card controls generated by list-collapse.js.

Outputs:
    Cards showing only the item name while collapsed and details when expanded.

Requirements:
    Shared normal-site and Administration shells.

Goal:
    Keep item collections compact while leaving every item individually visible.

Section:
    Shared individual-card collapse component.
*/

.card-collapse-toggle {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    grid-column:
        1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.card-collapse-name {
    min-width: 0;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
}

.card-collapse-icon {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 900;
}

.game-card .card-collapse-name {
    font-size: 1.3rem;
}

.card-collapse-toggle:focus-visible {
    outline:
        2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 5px;
}

.card-collapse-source-title {
    display: none !important;
}

.card-collapse-expanded
    .card-collapse-toggle {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom:
        1px solid rgba(255,255,255,.1);
}

.list-create-panel-after {
    margin-top: 24px;
}
/*
Section:
    Public Games collapsed-state correction.
*/

.game-library .game-card [hidden] {
    display: none !important;
}

