/* Расчёты по уравнению реакции (stoich.js) и массовая доля в растворе (solution.js) */
.stoich-calc, .solution-calc { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: 1rem; margin: 1rem 0 1.5rem; background: var(--bs-tertiary-bg); }
.stoich-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.stoich-form .stoich-input { flex: 1 1 18rem; max-width: 36rem; font-size: 1.1rem; }
.stoich-examples { font-size: .9rem; color: var(--bs-secondary-color); margin-bottom: .75rem; }
.stoich-examples .stoich-example { padding: 0 .35rem; vertical-align: baseline; font-size: .9rem; }
.stoich-eq { font-size: 1.3rem; margin: .25rem 0 .5rem; overflow-wrap: anywhere; }
.stoich-table { margin: 0 0 .5rem; background: transparent; max-width: 40rem; }
.stoich-table th, .stoich-table td { background: transparent; vertical-align: middle; font-variant-numeric: tabular-nums; }
.stoich-given { display: flex; gap: .35rem; }
.stoich-given input { width: 7rem; }
.stoich-given select { width: auto; }
.stoich-known td { font-weight: 600; }
.stoich-tag { font-size: .75rem; padding: .05rem .35rem; border-radius: .25rem; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); font-weight: 400; }
.stoich-h { font-size: 1rem; font-weight: 600; margin: .75rem 0 .35rem; }
.stoich-steps li { margin-bottom: .2rem; }
.stoich-note { font-size: .9rem; color: var(--bs-secondary-color); margin: .25rem 0 .5rem; }
.stoich-error, .solution-error { color: var(--bs-danger-text-emphasis, #b02a37); margin-top: .5rem; }
.solution-block + .solution-block { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); }
.solution-title { font-weight: 600; margin-bottom: .5rem; }
.solution-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem 1rem; margin-bottom: .6rem; }
.solution-field { display: grid; grid-template-columns: 9rem 1fr 3.5rem; align-items: center; gap: .35rem; margin: 0; }
.solution-field em { font-style: normal; color: var(--bs-secondary-color); font-size: .9rem; }
.solution-steps { margin: .6rem 0 .25rem; }
.solution-answer { font-size: 1.1rem; }
@media print { .stoich-form, .stoich-examples, .stoich-go, .solution-go, .solution-mix, .solution-clear { display: none; } }
