/*
 * The Roles tab (docs/adr/0122): the picked slot's role and the choices, in
 * a sheet like the squad builder's (pitch.css's .slot-picker), then every
 * role by position.
 */
.role-picked {
    margin-bottom: 0.75rem;
}

.role-choices {
    display: grid;
    gap: 0.375rem;
}

.role-choice {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border: 0.125rem solid var(--black);
    border-radius: 0.375rem;
    background-color: var(--white);
    color: var(--black);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.role-choice:hover,
.role-choice:focus-visible {
    box-shadow: var(--box-shadow);
}

/* The slot's role: yellow, as what's selected is (docs/adr/0113). */
.role-choice[aria-pressed="true"] {
    background-color: var(--tertiary);
    box-shadow: var(--box-shadow);
}

.role-choice__words {
    display: grid;
    gap: 0.125rem;
}

.role-choice__name {
    font-weight: 700;
}

.role-choice__description {
    font-size: 0.875rem;
}

.role-guide {
    margin-top: 2.5rem;
}

.role-guide__heading {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.role-guide__position {
    border-top: 0.0625rem solid var(--border);
}

.role-guide__position:last-child {
    border-bottom: 0.0625rem solid var(--border);
}

.role-guide__summary {
    padding: 0.625rem 0.25rem;
    list-style: none;
    cursor: pointer;
}

.role-guide__summary::-webkit-details-marker {
    display: none;
}

.role-guide__name {
    display: inline;
    font-size: 1rem;
}

/* A role: where it plays, beside what it does. */
.role-guide__role {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* As many side by side as fit. */
.role-guide__roles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
    padding: 0.25rem 0.25rem 1rem;
}
