/* Comics library (comics/library.html). The page is base.css's stage,
   band and filter strip; here only the chips, the scene and pose cards. */
.cm-chip {
    font: 700 0.875rem/1.4 'Roboto', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-surface);
    background: var(--cream);
    border: 2px solid var(--dark-surface);
    padding: 2px 9px;
    text-decoration: none;
    white-space: nowrap;
}

.cm-chip:hover {
    background: var(--surface);
}

.cm-chip.active {
    color: var(--accent-gold);
    background: var(--bg-footer);
}

.cm-looks {
    margin: 0 0 0.6rem;
    font: 400 0.9375rem/1.4 'Roboto', sans-serif;
    color: var(--dark-surface);
}

.cm-tiles,
.cm-scenes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.cm-tiles {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.cm-scenes {
    grid-template-columns: repeat(2, 1fr);
}

.cm-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: var(--surface);
    border: 2px solid var(--dark-surface);
    padding: 0.6rem 0.4rem;
    text-align: center;
}

.cm-scenes .cm-tile {
    padding: 0 0 0.6rem;
}

.cm-scenes img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 2px solid var(--dark-surface);
    margin-bottom: 0.2rem;
}

.cm-name {
    font: 700 0.875rem/1.25 'Roboto', sans-serif;
    color: var(--dark-surface);
    overflow-wrap: anywhere;
}

.cm-meta {
    font: 400 0.8125rem/1.3 'Roboto', sans-serif;
    color: var(--dark-surface);
    padding: 0 0.4rem;
}

@media (max-width: 480px) {
    .cm-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .cm-scenes {
        grid-template-columns: 1fr;
    }
}

/* Comics (comic_list.html, comic_detail.html): one card per comic, its
   panels under each other at the card's width; staff's APPROVE and DEL
   under a comic that waits. */
.cm-comic {
    background: var(--surface);
    border: 2px solid var(--dark-surface);
    padding: 0.6rem;
    margin-bottom: 0.8rem;
}

.cm-comic-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.cm-comic-title {
    margin: 0;
    font: 700 1.125rem/1.25 'Roboto', sans-serif;
    color: var(--dark-surface);
}

a.cm-comic-head {
    text-decoration: none;
}

.cm-back {
    text-decoration: none;
}

.cm-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.cm-actions form {
    margin: 0;
}

.cm-actions .band-chip {
    cursor: pointer;
}

.cm-comic-head .cm-meta {
    padding: 0;
    white-space: nowrap;
}

.cm-panel {
    display: block;
    width: 100%;
    height: auto;
}

.cm-panel + .cm-panel {
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .cm-comic {
        padding: 0.4rem;
    }
}
