/* ===== RESOURCE ARTICLE – SHARED ===== */


.rapport-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.rapport-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-background-200);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-action-500);
}

.download-block {
    text-align: center;
    padding: 32px 0;
}

.download-block .btn.disabled {
    opacity: .5;
    pointer-events: none;
    cursor: not-allowed;
}

.download-mention {
    font-size: .8rem;
    color: var(--color-text-subtle);
    margin-top: 10px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.kpi-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.kpi-card {
    background: var(--color-background-300);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-content-600);
    line-height: 1;
    margin-bottom: 8px;
}

.kpi-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.kpi-source {
    font-size: .7rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.3;
}

.reco-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    line-height: 1.5;
}

.reco-table thead tr {
    background: var(--color-background-200);
    text-align: left;
}

.reco-table th {
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--color-background-300);
    white-space: nowrap;
}

.reco-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-background-200);
    vertical-align: top;
}

.reco-table .reco-num {
    font-weight: 700;
    color: var(--color-action-500);
    text-align: center;
    width: 40px;
}

.mps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mps-card {
    background: var(--color-content-700);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.mps-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-background-50);
    margin-bottom: 12px;
    line-height: 1.3;
}

.mps-card p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .kpi-grid,
    .kpi-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mps-grid {
        grid-template-columns: 1fr;
    }

    .reco-table {
        font-size: .8rem;
    }

    .reco-table th,
    .reco-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 640px) {
    .kpi-grid,
    .kpi-grid--3 {
        grid-template-columns: 1fr;
    }

    .rapport-meta {
        gap: 8px;
    }
}

/* ===== Table column highlight ===== */
.article-table .col-highlight {
    background: var(--color-background-300);
}

/* ===== CCMU STEPPER (uses .steps system) ===== */
.steps-ccmu {
    grid-template-columns: repeat(5, 1fr);
    margin: 32px 0;
}

/* Color overrides for CCMU step-numbers */
.step-number--green { background: var(--color-positive-100); }
.step-number--green.active { background: var(--color-positive-500); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.step-number--orange { background: var(--color-warning-100); }
.step-number--orange.active { background: var(--color-warning-700); box-shadow: 0 0 0 4px rgba(230, 126, 34, .2); }
.step-number--red { background: var(--color-important-100); }
.step-number--red.active {  background: var(--color-important-700); box-shadow: 0 0 0 4px rgba(239, 68, 68, .2); }

/* Force SVG to fit inside step-ico */
.steps-ccmu .step-ico svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Progress bar color: green → orange → red gradient */
.steps-ccmu::after {
    background: linear-gradient(to right, var(--color-positive-500) 0%, var(--color-positive-500) 35%, #e67e22 50%, var(--color-important-500) 75%);
}

/* CCMU tags */
.ccmu-tag {
    display: inline-block;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
}

.ccmu-tag--green { background: var(--color-positive-100); color: var(--color-positive-700); margin-bottom: 12px; }
.ccmu-tag--orange { background: #fef3c7; color: #92400e;  margin-bottom: 12px; }
.ccmu-tag--red { background: #fee2e2; color: #991b1b;  margin-bottom: 12px; }

/* ===== CCMU stepper mobile ===== */
@media (max-width: 768px) {
    .steps-ccmu {
        grid-template-columns: 1fr;
    }

    .steps-ccmu::after {
        background: linear-gradient(to bottom, var(--color-positive-500) 0%, var(--color-positive-500) 35%, #e67e22 50%, var(--color-important-500) 75%);
    }
}

/* ===== Article table mobile → cards ===== */
@media (max-width: 768px) {
    .article-table--cards thead {
        display: none;
    }

    .article-table--cards,
    .article-table--cards tbody,
    .article-table--cards tr,
    .article-table--cards td {
        display: block;
        width: 100%;
    }

    .article-table--cards tr {
        margin-bottom: 16px;
        background: var(--color-background-200);
        border-radius: var(--radius-lg);
        padding: 16px;
    }

    .article-table--cards td {
        padding: 4px 0;
        border-bottom: none;
    }

    .article-table--cards td:first-child {
        font-size: .85rem;
        color: var(--color-action-500);
        margin-bottom: 8px;
    }

    .article-table--cards td::before {
        content: attr(data-label);
        display: block;
        font-size: .7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--color-text-muted);
        margin-bottom: 2px;
    }

    .article-table--cards td:first-child::before {
        display: none;
    }
}
