/* ComputeFit — Generic Measured Evidence Explorer v0.1 (candidate styles).
   New classes only; no existing rule is modified. Reuses the theme's CSS
   custom properties and the existing .cf-context / .cf-checker__field /
   .cf-evidence vocabulary so the explorer matches the page language. */

/* --- Compact Model Result Card measured summary (badges only) --- */
.cf-fit-card__facts-row--measured-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 12px;
    padding: 4px 0 0;
}

.cf-fit-card__facts-row--measured-summary span {
    color: var(--color-secondary-text, #666);
    font-size: 1.0rem;
}

.cf-fit-card__view-evidence {
    display: inline-block;
    margin: 8px 0 0;
    padding: 5px 12px;
    border: 1px solid var(--color-border, #d8d8d8);
    border-radius: 999px;
    background: transparent;
    color: var(--color-primary-text, #15171a);
    font: inherit;
    font-size: 1.0rem;
    font-weight: 700;
    cursor: pointer;
}

.cf-fit-card__view-evidence:hover {
    background: var(--color-lighter-gray, #f6f6f6);
}

/* --- Action row (TESTED card): View button + independent guide link ---
   Both controls sit in one row inside the card. The guide is a real link
   (own focus target, keyboard accessible) and never wraps the button. */
.cf-fit-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--color-border, #ececec);
}

.cf-fit-card__actions .cf-fit-card__view-evidence {
    margin: 0;
}

.cf-fit-card__guide {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 5px 4px;
    text-decoration: none;
    color: var(--color-accent, #3b5bfd);
    font-size: 1.0rem;
}

.cf-fit-card__guide:hover {
    text-decoration: underline;
}

.cf-fit-card__guide-label {
    font-weight: 700;
}

.cf-fit-card__guide-arrow {
    font-weight: 700;
}

/* --- ONE Generic Measured Evidence Explorer --- */
.cf-measured-explorer-root {
    grid-column: 1 / -1;
    margin-top: 4px;
    min-width: 0;
}

.cf-me-explorer {
    border-top: 1px solid var(--color-border, #d8d8d8);
}

.cf-me-explorer__model {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 8px;
}

.cf-me-explorer__model-label {
    color: var(--color-secondary-text, #666);
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}

.cf-me-explorer__model-select {
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 8px;
    border: 1px solid var(--color-border, #d8d8d8);
    border-radius: 4px;
    background: transparent;
    color: var(--color-primary-text, #15171a);
    max-width: 100%;
}

.cf-me-explorer__model strong {
    font-size: 1.5rem;
    letter-spacing: -.02em;
    color: var(--color-primary-text, #15171a);
}

/* Selected TESTED card (card <-> explorer model selector sync). */
.cf-fit-card--selected {
    outline: 2px solid var(--color-accent, #3b5bfd);
    outline-offset: 2px;
    border-radius: 6px;
}

.cf-me-explorer__selectors {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
    margin: 0 0 10px;
}

.cf-me-explorer__selectors .cf-checker__field {
    flex: 0 1 auto;
    min-width: 150px;
}

@media (max-width: 480px) {
    .cf-me-explorer__selectors,
    .cf-me-explorer__selectors .cf-checker__field {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cf-me-explorer-root,
    .cf-me-explorer,
    .cf-me-explorer * {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}
