/* Chapter 5: equation text in the scenes, and the calculator and ice-to-steam activities. */

.eq-big { font: 800 120px system-ui, sans-serif; fill: #fff; }
.eq-big.small { font-size: 96px; }
.eq-mid { font: 800 52px system-ui, sans-serif; fill: #fff; }
.eq-mid.dark { fill: #14213d; }
.eq-mid.gold-fill { fill: #ffd166; }
.eq-line { font: 600 36px system-ui, sans-serif; fill: #e8eefc; }
.eq-note { font: 600 24px system-ui, sans-serif; fill: #9fb4dd; }
.eq-tag { font: 800 30px system-ui, sans-serif; }
.eq-tag.small { font-size: 22px; }
.eq-tag.gold { fill: #ffd166; }
.eq-tag.blue { fill: #74c0fc; }
.eq-badge { font: 800 30px system-ui, sans-serif; fill: #14213d; }

.calc-question { margin: 0; font-size: 1.1em; line-height: 1.45; text-align: center; }
.calc-question b { color: var(--gold); }
.calc-body { display: flex; flex-direction: column; gap: max(8px, 1.2cqw); width: 100%; align-items: center; }
.calc-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.calc-step[hidden] { display: none; }
.calc-values { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.calc-field { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #cfd9ef; }
.calc-input {
  width: 9em;
  font: 700 1em ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: .45em .6em;
  border-radius: .6em;
  border: 2px solid #3a4f7d;
  background: #0f1a33;
  color: #fff;
}
.calc-input:focus { outline: none; border-color: var(--gold); }
.calc-input:disabled { opacity: .85; }
.calc-input.wrong { border-color: var(--bad); }
.calc-input.correct { border-color: var(--ok); background: #143a28; }
.calc-unit { font-weight: 700; color: #cfd9ef; }

.stage-constants { margin: 0; font-size: .85em; color: #9fb4dd; text-align: center; line-height: 1.5; }
.stage-table { display: grid; gap: 6px; width: 100%; }
.stage-row {
  display: grid;
  grid-template-columns: 2em minmax(0, 1.6fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: .7em;
  background: rgba(255, 255, 255, .06);
}
.stage-row.total { background: rgba(255, 209, 102, .1); }
.stage-num { font-weight: 800; color: var(--gold); text-align: center; }
.stage-label { font-weight: 600; }
.stage-eqs { display: flex; gap: 6px; }
.stage-eqs .chip-btn { padding: .35em .7em; text-align: center; white-space: nowrap; }
.stage-input { display: flex; align-items: center; gap: 4px; }
.stage-row .btn.small { align-self: center; }

@container (max-width: 620px) {
  .stage-row { grid-template-columns: 2em 1fr; }
  .stage-row > :nth-child(n + 3) { grid-column: 2; }
  .calc-input { width: 7em; }
}
