/* Quizzes (theme/quiz.js) and figures, using mdbook's theme variables so every theme works. */
.psync-quiz {
  border: 1px solid var(--quote-border, #ccc);
  border-radius: 6px;
  margin: 1em 0;
  padding: 0.6em 1em 0.8em;
  background: var(--quote-bg, transparent);
}
.psync-quiz legend {
  font-weight: 600;
  padding: 0 0.4em;
}
.psync-quiz p {
  margin: 0.3em 0 0.6em;
}
.psync-quiz-hint {
  font-size: 0.9em;
  opacity: 0.75;
}
.psync-quiz-option {
  display: block;
  padding: 0.25em 0.4em;
  margin: 0.15em 0;
  border-radius: 4px;
  border-left: 3px solid transparent;
  cursor: pointer;
}
.psync-quiz-option.psync-quiz-right {
  border-left-color: #2e8b57;
}
.psync-quiz-option.psync-quiz-wrong {
  border-left-color: #c0392b;
  text-decoration: line-through;
}
.psync-quiz button {
  margin-top: 0.5em;
  padding: 0.3em 1em;
  font: inherit;
  color: var(--fg, inherit);
  background: var(--bg, transparent);
  border: 1px solid var(--quote-border, #888);
  border-radius: 4px;
  cursor: pointer;
}
.psync-quiz-result {
  margin-top: 0.5em;
}
.psync-quiz-result.is-right strong {
  color: #2e8b57;
}
.psync-quiz-result.is-wrong strong {
  color: #c0392b;
}
.psync-figure {
  margin: 1.2em 0;
  text-align: center;
}
.psync-figure figcaption {
  font-size: 0.9em;
  opacity: 0.8;
  margin-top: 0.4em;
}
/* Chart series colors (scripts/figures.py). Light themes, then mdbook's dark themes. */
.psync-chart {
  --psync-series-1: #2a78d6;
}
html.coal .psync-chart,
html.navy .psync-chart,
html.ayu .psync-chart {
  --psync-series-1: #3987e5;
}
.psync-chart svg g:hover path {
  opacity: 0.8;
}
.psync-chart {
  --psync-series-2: #eb6834;
}
html.coal .psync-chart,
html.navy .psync-chart,
html.ayu .psync-chart {
  --psync-series-2: #d95926;
}
