/*
 * The list of gigs.
 */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-block: var(--space-3);
}

.topbar-inner > h1 {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 32rem) {
    .topbar-inner > h1 {
        font-size: var(--text-xl);
    }

    .wide-only {
        display: none;
    }

    #new-set-button {
        min-width: var(--tap);
        padding-inline: 0;
    }
}

/* Something the app wants to say about the state of the world rather than about
   any one set. */
.notice {
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-2);
    background-color: var(--surface-2);
    color: var(--text-2);
    font-size: var(--text-sm);
}

/* THE CARDS */

#set-list {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    padding-bottom: var(--space-7);
}

.set-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    height: 100%;
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    background-color: var(--surface-2);
    box-shadow: var(--shadow-1);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.set-card:hover {
    border-color: var(--brand-quiet);
    box-shadow: var(--shadow-2);
    transform: translateY(-1px);
}

.set-card-title {
    font-size: var(--text-lg);
    overflow-wrap: break-word;
}

.set-card-description {
    color: var(--text-2);
    font-size: var(--text-sm);
    overflow-wrap: break-word;
}

/* How much is in it sits at the bottom whatever length the rest came out. */
.set-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-1);
}
