/* ONE status source (ADR 0048 amendment 2026-11-18): the status chips the
   Insights aircraft summary and the Maintenance overview's "needs
   attention" share with the health report PDF's first page. The tone
   colours are the PDF's tier classes (static/css/health_report.css .t-bnf
   … .t-ok — tests/test_status_summary_pdf.py keeps them identical). The
   colour never stands alone: every chip prints its words. Nothing here may
   widen a 390 px phone: long text wraps. */

.ss-chip { display: inline-block; padding: 1px 8px; border-radius: 4px; border: 1px solid transparent;
           font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; text-decoration: none; }
a.ss-chip:hover { text-decoration: underline; }
a.ss-chip:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ss-badge { font-size: 13px; padding: 2px 10px; }
.ss-tone-bnf { background: #fdecec; color: #a11d1d; border-color: #e7a3a3; }
.ss-tone-nm { background: #fff4de; color: #7a4a00; border-color: #e8c27a; }
.ss-tone-mon { background: #e8f0fb; color: #1d4f91; border-color: #a9c3e8; }
.ss-tone-na { background: #eef0f3; color: #4a5565; border-color: #c8ced8; }
.ss-tone-ok { background: #eaf5eb; color: #24672a; border-color: #a9d3ad; }
/* a zero count: muted words and fill, still 4.5:1 (no opacity — review
   2026-11-18: opacity .55 failed AA) */
.ss-chip.ss-zero { background: #f4f5f7; color: #5b6676; border-color: #d5dae2; font-weight: 600; }
/* the worst open tier IS the status: it stands out (no separate badge) */
.ss-chip.ss-worst { font-size: 13px; padding: 2px 10px; box-shadow: 0 0 0 1px currentColor; }
.ss-status-label { font-size: 12px; color: #556; font-weight: 600; }

.ss-tiers { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.ss-pending { color: #667; font-size: 13px; }

/* Insights: the aircraft summary card above the health section */
.ss-card { display: grid; gap: var(--space-2) var(--space-4); grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.ss-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-3); min-width: 0; }
.ss-tail { margin: 0; font-size: 20px; font-weight: 700; color: #1b2a44; }
.ss-facts { margin: 0; color: #556; font-size: 13px; overflow-wrap: anywhere; }
.ss-status { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); }
.ss-actions-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ss-report-btn { font: inherit; font-size: 13px; min-height: 32px; padding: 4px 12px; border: 1px solid #c9ced8;
                 border-radius: var(--radius-md); background: #fff; color: #223; cursor: pointer; white-space: nowrap; }
.ss-report-btn:hover { background: #eef4ff; border-color: var(--color-accent); }
.ss-report-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ss-report-btn:disabled { cursor: progress; opacity: 0.7; }

.ss-items { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; border-top: 1px solid #eef0f4; }
.ss-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--space-2); padding: 6px 0;
           border-bottom: 1px solid #eef0f4; font-size: 13px; color: #223; }
.ss-item-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; border: 1px solid transparent; }
/* the dot is the tone's ink (its pale fill would vanish at 10 px) */
.ss-item-dot.ss-tone-bnf { background: #c62828; }
.ss-item-dot.ss-tone-nm { background: #ef6c00; }
.ss-item-dot.ss-tone-mon { background: #1565c0; }
.ss-item-dot.ss-tone-na { background: #8a94a6; }
.ss-item-body { min-width: 0; overflow-wrap: anywhere; }
.ss-item-title { font-weight: 600; color: #1b2a44; text-decoration: none; }
a.ss-item-title:hover { text-decoration: underline; }
a.ss-item-title:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ss-item-todo { color: #334; }
.ss-item-sub { color: #667; font-size: 12px; }
.ss-more, .ss-none { grid-column: 1 / -1; margin: 0; color: #556; font-size: 13px; }
.ss-due { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #334; overflow-wrap: anywhere; }
.ss-due-label { font-weight: 600; color: #445; }
.ss-due a { color: inherit; }

@media (max-width: 768px) {
    .ss-card { grid-template-columns: minmax(0, 1fr); }
    .ss-actions-col { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .ss-tail { font-size: 18px; }
}

/* Maintenance overview: the "needs attention" line */
.ss-attention { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-2); }
.ss-attention-text { font-weight: 600; color: #223; }
.ss-attention-ok .ss-attention-text { color: #24672a; }
