/* ============= Nightly Trends tab =============
   The charts reuse the Multi-Arch Trends primitives (.mat-trends-grid,
   .summary-trend-card, .mat-trend-canvas-wrap) — only the per-arch totals
   strip and the per-platform breakdown table are specific to this tab. */

/* Per-arch totals: one card per GPU arch, auto-fitting so 3 arches sit on one
   row on a laptop and collapse gracefully as more arches are added. */
.ntr-arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 16px 0 4px;
}

.ntr-arch-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ntr-arch-head {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

/* Colour chip tying the card to its line in the charts above (inline
   background comes from the same palette the datasets use). */
.ntr-arch-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ntr-arch-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary, #ddd);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.ntr-arch-meta {
    font-size: 0.7rem;
    color: var(--text-secondary, #888);
    margin-left: auto;
}

.ntr-arch-nums {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

/* Each figure stacks its value over a caption, so the row reads as
   "N failed / N tests run / N% fail rate" without extra labels. */
.ntr-num {
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary, #ddd);
    font-variant-numeric: tabular-nums;
}

.ntr-num small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary, #888);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ntr-num-fail {
    color: var(--danger, #ef4444);
}

.ntr-platform-wrap {
    margin-top: 18px;
}

.ntr-platform-table {
    font-size: 0.78rem;
}

.ntr-cell-fail {
    color: var(--danger, #ef4444);
    font-weight: 700;
}

@media (max-width: 720px) {
    .ntr-arch-grid { grid-template-columns: 1fr; }
    .ntr-arch-nums { gap: 12px; }
}
