/* --- Calculator widget (shared by any article's "Try it yourself"
   section - currently how-to-splash-limited.md and
   make-your-first-cube.md, both loading this file directly). The
   "splash-calc" class prefix is a holdover from where this pattern was
   first built, not a sign it's specific to that one article - it's a
   generic panel/input-grid/table widget shell, reused as-is. --- */

.splash-calc-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.splash-calc-panel h3 {
    margin-top: 0;
}

.splash-calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.splash-calc-row label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.splash-calc-row input,
.splash-calc-row select {
    width: 100%;
    padding: 6px 8px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 0.9rem;
}

.splash-calc-row input:focus,
.splash-calc-row select:focus {
    border-color: var(--gold);
}

.splash-calc .status-msg {
    color: var(--text-muted);
}

.splash-calc-table th:not(:first-child),
.splash-calc-table td:not(:first-child) {
    text-align: right;
}

.splash-calc-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}
