/* wordpress-plugin/focus-wales-feed/assets/fwf.css
 * Minimal, theme-agnostic styling -- no font imports, inherits the theme's
 * typography and colours by default.
 */

.fwf-delegates {
    font: inherit;
    color: inherit;
}

.fwf-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em 1em;
    margin-bottom: 1em;
}

.fwf-filter-label {
    font-weight: 600;
    margin-right: 0.25em;
}

.fwf-filter-select {
    font: inherit;
    padding: 0.25em 0.5em;
}

.fwf-count {
    margin: 0 0 0 auto;
    font-size: 0.9em;
    opacity: 0.75;
}

.fwf-empty,
.fwf-no-matches {
    font-style: italic;
    opacity: 0.75;
}

.fwf-delegate-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
    gap: 0.75em;
}

.fwf-delegate {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 0.75em 1em;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.fwf-delegate.hidden,
.fwf-delegate[hidden],
.fwf-no-matches[hidden] {
    display: none;
}

.fwf-name {
    font-weight: 600;
}

.fwf-company {
    opacity: 0.85;
}

.fwf-meta {
    font-size: 0.85em;
    opacity: 0.65;
}

@media (max-width: 480px) {
    .fwf-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .fwf-count {
        margin-left: 0;
    }
}
