/* Chapter 10: equation text in the scenes, step calculators, field-pattern figures, plate-diagram judge and the parallel-plate lab. */

.eq-big { font: 800 120px system-ui, sans-serif; fill: #fff; }
.eq-mid { font: 800 52px system-ui, sans-serif; fill: #fff; }
.eq-mid.gold-fill { fill: #ffd166; }
.eq-line { font: 600 36px system-ui, sans-serif; fill: #e8eefc; }
.eq-note { font: 600 26px system-ui, sans-serif; fill: #9fb4dd; }
.eq-note.small-note { font-size: 22px; }
.eq-note.core-note { fill: #e8eefc; }
.eq-tag { font: 800 34px system-ui, sans-serif; fill: #fff; }
.eq-tag.gold { fill: #ffd166; }

.calc-question { margin: 0; font-size: 1.1em; line-height: 1.45; text-align: center; }
.calc-question b { color: var(--gold); }
.calc-tip { margin: 0; font-size: .85em; color: #9fb4dd; text-align: center; }
.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-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: 8.5em;
  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; }
.calc-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.calc-choices .chip-btn { text-align: center; font-weight: 700; }

.quiz-fig { display: block; width: min(100%, 340px); height: auto; margin: .5em auto 0; border-radius: .6em; background: #0d1730; }

.judge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(8px, 1.2cqw); width: 100%; }
.judge-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: .4em; text-align: center; }
.judge-btn svg { width: 100%; max-width: 300px; height: auto; display: block; }
.judge-cap { font-weight: 700; font-size: .9em; }

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: max(10px, 1.6cqw);
  width: 100%;
  align-items: start;
}
.lab-left { display: flex; flex-direction: column; gap: 6px; }
.lab-picture { width: 100%; border-radius: .8em; overflow: hidden; background: #0d1730; }
.lab-note { margin: 0; font-size: .78em; color: #9fb4dd; line-height: 1.35; }
.lab-controls { display: flex; flex-direction: column; gap: 6px; }
.lab-controls .lab-tools { justify-content: flex-start; }
.lab-controls .chip-btn { padding: .35em .7em; font-size: .9em; }
.fire-btn { border-left: 6px solid; }
.fire-proton { border-left-color: #ff6b6b; }
.fire-electron { border-left-color: #4dabf7; }
.fire-neutral { border-left-color: #adb5bd; }
.slider-row { display: flex; align-items: center; gap: 8px; }
.angle-slider { flex: 1; min-width: 0; accent-color: #ffd166; height: 28px; }
.slider-value { min-width: 4.2em; text-align: right; font-weight: 800; color: var(--gold); }
.lab-readout { margin: 0; font-weight: 700; font-size: .88em; color: #e8eefc; line-height: 1.35; }
.lab-readout.force { color: #ffe7a8; min-height: 2.7em; }
.lab-controls .btn.ghost { align-self: flex-start; }
.lab-task-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lab-task { text-align: left; font-size: .85em; cursor: default; }
.lab-task.correct { border-color: var(--ok); background: #143a28; }
.lab-hit { font: 800 22px system-ui, sans-serif; fill: #ffd166; }

@container (max-width: 620px) {
  .lab-grid { grid-template-columns: 1fr; }
  .calc-input { width: 7em; }
}
