/* ── Documents section ───────────────────────────────────────────────────── */
.documents-section {
    background: var(--section-bg-alt, #f8f9fa);
}

/* Card */
.doc-download-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doc-download-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Card top: icon + text */
.doc-card-header {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1rem;
    gap: 1rem;
    flex: 1;
}

.doc-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #dc3545;
}

.doc-card-meta {
    flex: 1;
    min-width: 0;
}

.doc-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    line-height: 1.35;
    color: #1a1a2e;
}

.doc-card-desc {
    font-size: 0.81rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.45;
}

/* Card bottom: action buttons */
.doc-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.doc-card-actions .btn {
    flex: 0 0 auto;
    font-size: 0.82rem;
    white-space: nowrap;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (max-width: 575px) {
    .doc-card-actions .btn {
        flex: 1;
    }
}

/* Normative references */
.normative-refs-toggle {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s;
}

.normative-refs-toggle:hover,
.normative-refs-toggle:focus {
    color: #495057;
    text-decoration: none;
}

.normative-ref-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.82rem;
}

.normative-ref-item:last-child {
    border-bottom: none;
}

.normative-ref-item a {
    color: #343a40;
}

.normative-ref-item a:hover {
    color: #0d6efd;
}
