/* The equation visualizer was written against the old palette variables.
 * This maps them onto the current ones so the widget inherits light/dark
 * instead of keeping its own copy of a colour scheme.
 *
 * The panel is a section of the page, not a card: two rules and a label,
 * the same furniture the rest of the site uses. */
:root {
  --c-alt-bg: var(--surface);
  --c-page-fg: var(--ink);
  --c-page-bg: var(--paper);
  --c-lines: var(--line);
}

#equation-container {
  margin: 2.2rem 0;
  padding: .9rem 0 1.2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font: .9rem/1.65 var(--mono);
}

#equation-container label {
  display: block;
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#equation-selector {
  width: 100%;
  padding: .5rem .6rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  font: .88rem/1.4 var(--mono);
}

#equation-form-container { margin-top: 1.2rem; }
#equation-form-container label { color: var(--ink); font-size: .78rem; letter-spacing: .04em; }
#equation-form-container input[type="range"] { width: 100%; accent-color: var(--accent); }

#equation-results {
  margin-top: 1.2rem;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
}
#equation-results h4 { margin: 0 0 .6rem; font: 400 .7rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#equation-results span[style*="color"] { color: var(--ink) !important; }
#equation-results span[style*="999"], #equation-results span[style*="666"] { color: var(--muted) !important; }
