/*
 * section.css — a part of a page with a heading of its own, over a panel that has its frame
 * (a link list, a table, the agenda): the section itself has none, so no frame sits in a frame.
 *
 * <section class="app-section" aria-labelledby>
 *   <header class="app-section-header">
 *     <h2 class="app-section-title" id>Nicht zugewiesen</h2>
 *     <div class="app-section-actions">[a badge, a link: Alle anzeigen]</div>
 *   </header>
 *   [one panel]
 * </section>
 *
 * The heading row is the card's, without the card: the title in heading size at the start,
 * what belongs to it (a count, "Alle anzeigen") at the end. A card is for content that has no
 * frame of its own (fields, a description list); a section is for a panel that has one.
 */
@layer components {
    .app-section {
        display: flex;
        flex-direction: column;
        gap: var(--app-space-section-head);
        min-inline-size: 0;
    }

    .app-section-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--app-space-header-row) var(--app-space-header-x);
        min-block-size: var(--app-control-height);
    }

    .app-section-title {
        min-inline-size: 0;
        color: var(--app-color-text);
        font-family: var(--app-font-display);
        font-size: var(--app-text-heading-size);
        font-weight: var(--app-text-heading-weight);
        line-height: var(--app-text-heading-leading);
    }

    .app-section-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--app-space-actions);
    }

    .app-section-actions:empty {
        display: none;
    }
}
