/* Animation helpers for fg-series-deck.qmd (auto-animate equation rows and the two SVG widgets).
   Colours are the _manstyle palette: maroon = r terms, blue = v terms, amber = terms that vanish. */

/* one equation, split into terms that Reveal's auto-animate can move individually */
.reveal .eqrow {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.3em;
  margin: 0.7em 0;
  font-size: 1.05em;
}
.reveal .eqrow > span { display: inline-block; white-space: nowrap; }
.reveal .rt   { color: #6b1f1f; }
.reveal .vt   { color: #2f5ea8; }
.reveal .pt   { color: #b45309; }
.reveal .dim  { opacity: 0.12; }
.reveal .gone { opacity: 0; font-size: 0.3em; }
.reveal .bx   { border: 1.5px solid currentColor; padding: 0.1em 0.45em; }
.reveal .why  { font-size: 0.8em; color: #555; text-align: center; }

/* the crank table: cells that fade in, and the sources of the newest row lit up */
.reveal .crank td, .reveal .crank th { padding: 0.25em 0.9em; }

/* widgets: used by the deck AND by the note fg-series.qmd, so no .reveal prefix */
.fg-widget { width: 100%; margin: 0 auto; }
.fg-svg { width: 100%; height: auto; display: block; }
.fg-lab   { font-size: 21px; fill: #2b2b2b; }
.fg-small { font-size: 17px; fill: #2b2b2b; }
.fg-tick  { font-size: 15px; fill: #555; }
.fg-bar { display: flex; flex-wrap: wrap; gap: 0.5em; justify-content: center; align-items: center; margin: 0.3em 0 0.6em; }
.fg-bar button {
  font: inherit; font-size: 0.85rem; padding: 0.15em 0.7em; border-radius: 4px;
  border: 1px solid #6b1f1f; background: #fffdf7; color: #6b1f1f; cursor: pointer;
}
.fg-bar button.on { background: #6b1f1f; color: #fffdf7; }
.fg-bar input[type=range] { width: 40%; accent-color: #6b1f1f; }
.reveal .fg-bar button { font-size: 0.55em; }
