/* Chapter 5: equation text and ray diagrams in the scenes, the step calculator and the ray-box lab. */

.eq-big { font: 800 120px system-ui, sans-serif; fill: #fff; }
.eq-big.small { font-size: 84px; }
.eq-big.xsmall { font-size: 72px; }
.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 30px system-ui, sans-serif; }
.eq-tag.gold { fill: #ffd166; }

.normal-line { stroke: rgba(255, 255, 255, .7); stroke-width: 3; stroke-dasharray: 10 8; }
.angle-arc { fill: none; stroke: #ff8fab; stroke-width: 4; }
.angle-text { font: 800 28px system-ui, sans-serif; fill: #ff8fab; }

.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-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: 6.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; }

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: max(10px, 1.6cqw);
  width: 100%;
  align-items: start;
}
.lab-picture { width: 100%; border-radius: .8em; overflow: hidden; background: #0d1730; }
.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; }
.slider-row { display: flex; align-items: center; gap: 8px; }
.angle-slider { flex: 1; min-width: 0; accent-color: #ffd166; height: 28px; }
.lab-readout { margin: 0; font-weight: 700; font-size: .9em; color: #e8eefc; min-height: 2.6em; }
.lab-task-list { display: flex; flex-direction: column; gap: 6px; }
.lab-task { text-align: left; font-size: .88em; }
.lab-task.correct { border-color: var(--ok); background: #143a28; }

.lab-medium { font: 700 20px system-ui, sans-serif; fill: #cfd9ef; }
.lab-angle { font: 800 22px system-ui, sans-serif; fill: #ff8fab; }
.lab-tir { font: 800 24px system-ui, sans-serif; fill: #ffd166; }

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