.board-docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
}

.board-doc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.board-doc-item:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.board-doc-thumb {
    width: 90px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.board-doc-thumb svg {
    width: 90px;
    height: 112px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.board-doc-title {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: #333;
    word-break: break-word;
}

.board-docs-empty {
    font-style: italic;
    color: #777;
}

/* ── Filter buttons ── */
.board-docs-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.board-docs-filters button {
    padding: 7px 20px;
    border: 2px solid #2B5EBF;
    background: #fff;
    color: #2B5EBF;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.board-docs-filters button.active,
.board-docs-filters button:hover {
    background: #2B5EBF;
    color: #fff;
}

/* ── Taxonomy badge (shown when displaying all types) ── */
.board-doc-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
}

.board-doc-badge.agendas { background: #EAF3FF; color: #2B5EBF; }
.board-doc-badge.minutes { background: #EDFAED; color: #2A7A2A; }


@media screen and (max-width: 600px) {
    .board-docs-grid {
        gap: 16px;
    }

    .board-doc-item {
        width: 100px;
    }

    .board-doc-thumb,
    .board-doc-thumb svg {
        width: 70px;
        height: 88px;
    }
}
