/* ============================================================================
   course-widgets/reconstitution-calculator.css -- widget #27 (EDUCATION-ONLY)

   reconstitution math teaching tool. theme-token colors ONLY (the fix): every
   color comes from --cw-* tokens, no callout/off-palette hues.
   ============================================================================ */

.cw-rc { display: block; font-size: 0.9rem; color: var(--cw-text); }

.cw-rc-note {
    font-size: 0.75rem;
    color: var(--cw-muted);
    font-style: italic;
    line-height: 1.5;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: var(--cw-accent-soft);
    border: 1px solid var(--cw-border);
}

.cw-rc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--cw-gap);
    margin-bottom: var(--cw-gap);
}
.cw-rc-field { display: flex; flex-direction: column; gap: 6px; }
.cw-rc-label { font-size: 0.78rem; font-weight: 600; color: var(--cw-muted); }
.cw-rc-input {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--cw-text);
    background: var(--cw-bg);
    border: 1px solid var(--cw-border);
    border-radius: 10px;
    box-sizing: border-box;
}
.cw-rc-input:focus-visible { outline: 2px solid var(--cw-accent); outline-offset: 1px; border-color: var(--cw-accent); }

.cw-rc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--cw-gap);
    margin-bottom: var(--cw-gap);
}
.cw-rc-stat {
    padding: 16px 12px;
    text-align: center;
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
}
.cw-rc-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--cw-accent); line-height: 1.1; }
.cw-rc-stat-label { margin-top: 6px; font-size: 0.74rem; color: var(--cw-muted); line-height: 1.3; }

.cw-rc-explain {
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--cw-text);
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-left: 3px solid var(--cw-accent);
    border-radius: var(--cw-radius);
}
.cw-rc-explain strong { color: var(--cw-text); }
