/* Context Fit summary — STEP 13R presentation simplification.
   The upper Qwen Hardware Fit card now carries a COMPACT full-width context
   summary only; the detailed per-context matrix lives in the Measured
   Context Performance section (context-evidence-v0.1.css). No overflow, no
   narrow right column, no duplicated measurement rows. */

.cf-context-fit {
    flex-basis: 100%;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #d8d8d8;
    color: inherit;
    min-width: 0;
    max-width: 100%;
}

/* Compact summary: single wrapped line, full card width. */
.cf-context-fit__summary--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    min-width: 0;
    max-width: 100%;
}

.cf-context-fit__summary--compact .cf-context-fit__summary-label {
    color: #666;
    font-size: 1.05rem;
}

.cf-context-fit__summary--compact .cf-context-fit__summary-contexts {
    font-weight: 700;
    font-size: 1.05rem;
}

.cf-context-fit__summary--compact .cf-context-fit__summary-note {
    color: #666;
    font-size: 1.05rem;
}

/* Legacy detailed rows are no longer rendered in the upper card.
   Keep the rule out of the tree so a stale cached copy cannot force a
   min-content grid width. */
.cf-context-fit__row,
.cf-context-fit__details,
.cf-context-fit__details-body {
    display: none;
}

@media (max-width: 480px) {
    .cf-context-fit,
    .cf-context-fit * {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}
