.review-item.review-correct {
  padding: 14px 0;
}

.original-question {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.original-question h3 {
  margin: 0 0 12px;
}

.review-prompt {
  font-size: 1.08rem;
}

.review-choices {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.review-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.review-choice-correct {
  border-color: var(--green);
  background: #ecf8f2;
}

.review-choice-selected {
  border-color: var(--red);
  background: #fff2f3;
}

.solution-steps ol {
  margin: 10px 0 0;
  padding-left: 24px;
}

.solution-steps li {
  margin: 7px 0;
}

.sat-figure {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 20px auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.extra-help section + section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.extra-help h4 { margin: 0 0 6px; color: var(--navy); }
.extra-help p, .extra-help ol { margin: 0; }
.extra-help li { margin: 6px 0; }

/* Keep long mathematics usable on narrow screens without widening the page. */
.question-card, .choice > span:last-child, .review-choice > span:last-child {
  min-width: 0;
}
.prompt mjx-container, .choices mjx-container, .review-prompt mjx-container,
.review-choices mjx-container, .explanation mjx-container, .solution-steps mjx-container {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  vertical-align: middle;
  padding-block: 2px;
}
