body {
  font-family: system-ui;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.controls {
  margin-bottom: 1rem;

  label {
    font-weight: bold;
  }

  #slider {
    width: 200px;
    margin-left: 0.5rem;
  }

  #nValue {
    margin-left: 0.5rem;
  }
}

svg {
  display: block;
  margin: 1rem 0;

  .grid-line {
    stroke: #ddd;
    stroke-width: 1.5;
    fill: none;
  }

  .highlight-path {
    stroke-width: 3;
    fill: none;
  }

  .axis-label {
    font-size: 14px;
    cursor: pointer;

    &:hover,
    &.active {
      font-weight: bold;
    }
  }
}

#equation {
  font-size: 1.3rem;
  margin-top: 1rem;
}

.katex {
  .vlist {
    pointer-events: none;
  }
}

.ungrouped-term,
.grouped-term {
  cursor: pointer;
  pointer-events: auto;

  &:hover,
  &.active {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
  }
}
