/* ============= ROCm Extras tab =============
   Cards, tables and the Downloads modal reuse 18-nightly-tests.css and the
   shared rd-* modal classes — only the banner line for the selected extra,
   the artifact chips and the install modal's build facts are specific to
   this tab (js/33-rocm-extras.js). */

/* Extra tabs: the Multi-Arch segmented control (.ma-view-switch /
   .ma-view-btn), wrapped so many extras still fit. */
.re-tabs { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 0 0 var(--space-4, 16px); }
.re-tab-count {
    font-size: var(--text-xs, 0.72rem); font-weight: 600;
    padding: 1px 7px; border-radius: var(--radius-pill, 999px);
    background: rgba(255, 255, 255, 0.08); color: inherit;
}
.re-tab.is-active .re-tab-count { background: rgba(255, 255, 255, 0.22); }
.re-tab.is-empty:not(.is-active) { opacity: 0.55; }
/* Unlike the Multi-Arch switch, the label is the whole tab: keep it on phones. */
@media (max-width: 600px) { .re-tab span { display: inline; } }

.re-about { margin-bottom: 4px; }
.re-about-links a { color: var(--accent-light, #818cf8); text-decoration: none; }
.re-about-links a:hover { text-decoration: underline; }

.re-artifacts { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.re-artifacts-row { margin-left: 6px; vertical-align: middle; }
.re-artifact-chip {
    display: inline-flex; align-items: center; gap: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: var(--text-xs, 0.72rem);
    color: var(--text-secondary);
    background: var(--bg-overlay, rgba(255,255,255,0.06));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill, 999px);
    padding: 1px 8px;
    text-decoration: none;
    white-space: nowrap;
}
.re-artifact-chip i, .re-artifact-chip svg.lucide { width: 11px; height: 11px; }
.re-artifact-chip:hover { color: var(--primary-light, #818cf8); border-color: rgba(129,140,248,0.45); }
.re-artifact-more { font-size: var(--text-xs, 0.72rem); color: var(--text-muted); }
/* Suites that produced no test results (qa-forge result_status='infra'). */
.re-infra {
    display: inline-flex; align-items: center;
    margin-left: 6px; vertical-align: middle;
    font-size: var(--text-xs, 0.72rem);
    color: var(--danger, #ef4444);
    background: var(--danger-light, rgba(239, 68, 68, 0.15));
    border: 1px solid var(--danger, #ef4444);
    border-radius: var(--radius-pill, 999px);
    padding: 1px 8px;
    white-space: nowrap;
}

#release-downloads-body .re-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.78rem; }
#release-downloads-body .re-fact-k { color: var(--text-muted); }
#release-downloads-body .re-fact code { color: var(--text-primary); }
#release-downloads-body .re-artifacts-table td.rd-arch { width: auto; white-space: nowrap; }
