.bdm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.bdm-card,
.bdm-document-panel {
    padding: 24px;
    border: 1px solid #dfe5ec;
    border-top: 4px solid #c9a227;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(7, 30, 61, .07);
}

.bdm-card h3 {
    margin: 13px 0 9px;
    color: #071e3d;
    font-size: 17px;
    line-height: 1.45;
}

.bdm-card p {
    color: #637186;
    font-size: 12px;
    line-height: 1.7;
}

.bdm-type {
    display: inline-block;
    padding: 5px 9px;
    color: #071e3d;
    border-radius: 5px;
    background: #f0d778;
    font-size: 10px;
    font-weight: 800;
}

.bdm-card-meta,
.bdm-document-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    color: #6c7888;
    font-size: 11px;
}

.bdm-card-actions {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.bdm-card-actions a,
.bdm-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: #fff;
    border-radius: 6px;
    background: #0b294d;
    font-size: 11px;
    font-weight: 700;
}

.bdm-card-actions a:last-child,
.bdm-download-button {
    color: #071e3d;
    background: #c9a227;
}

.bdm-pdf-viewer {
    height: min(78vh, 850px);
    margin: 22px 0;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #eef2f6;
}

.bdm-pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.bdm-download-button {
    margin-top: 20px;
}

.bdm-notice {
    padding: 20px;
    border-left: 4px solid #c9a227;
    background: #f6f8fb;
}

@media (max-width: 900px) {
    .bdm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .bdm-grid {
        grid-template-columns: 1fr;
    }
    .bdm-pdf-viewer {
        height: 65vh;
    }
}

