/*
 * CPU axis not modelled — the upper-bound notice.
 *
 * Styled as a NOTICE, not a warning: nothing is broken and the fps figure on the
 * page is real. What is missing is one dimension of it. A red alert would read as
 * "these numbers are wrong", which is a different and untrue claim.
 *
 * The weak-CPU line gets the emphasis, because that is the sentence a visitor with
 * an entry-level processor actually needs — an upper bound is least useful to
 * exactly the person who most needs an answer.
 *
 * Tokens only, per the no-hardcoded-colours rule; --info/--warning carry their own
 * light/dark values from theme-vars.css so no html.dark override is needed here.
 */

.fps-cpu-axis,
.fps-result__cpu-axis {
    display: flex;
    flex-direction: column;
    gap: clamp(0.35rem, 1vw, 0.6rem);
    padding: clamp(0.85rem, 2.5vw, 1.25rem);
    margin-block: clamp(0.75rem, 2vw, 1.25rem);
    border: 1px solid var(--border);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1vw + 0.5rem, 0.95rem);
    line-height: 1.55;
}

.fps-cpu-axis__title,
.fps-result__cpu-axis-title {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.05rem);
}

.fps-cpu-axis__body,
.fps-cpu-axis__note,
.fps-result__cpu-axis-body {
    margin: 0;
}

.fps-cpu-axis__note {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* The line that does the real work for a visitor on a weak processor. */
.fps-cpu-axis__weak,
.fps-result__cpu-axis-weak {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

/* Upper-bound chip in the result hero, where the 1% low used to sit. */
.fps-result__upper-bound {
    display: flex;
    align-items: center;
}

.fps-result__upper-bound-label {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full, 9999px);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}

/*
 * The inert CPU selector. Deliberately still legible — the point is that the
 * visitor can SEE which processor is selected and see that it does not drive the
 * number, not that the control vanishes and leaves him wondering.
 */
.hardware-dropdown--inert .dropdown-trigger {
    opacity: 0.6;
    cursor: not-allowed;
}

.fps-field__inert-note {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}
