/* The question card, shared by the student practice page and the instructor
   review gate. Both surfaces render the same DOM through question-card.js, so
   the rules have exactly one home here. */

.question-card {
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

/* Grid items refuse to shrink below their content's min-content width, so a
   wide prompt image would blow the card, its slot, and the page grid out past
   the card border. Let every card item shrink; images then cap at card width. */
.question-card > * {
  min-width: 0;
}

.question-card[data-answered="true"] {
  border-color: var(--second);
  background: var(--second-wash);
}

.question-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.question-prompt {
  margin: 0;
}

.choice-list {
  display: grid;
  gap: 0.5rem;
}

.choice-button {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.choice-button:hover {
  border-color: var(--second-mid);
  background: var(--second-wash);
  color: var(--ink);
}

.choice-button.is-selected,
.choice-button.is-selected:hover {
  border: 2px solid var(--second);
  background: var(--second);
  color: var(--node-text);
}

.result {
  margin: 0;
  font-weight: 750;
}

.explanation {
  margin: 0;
  padding-left: 0.75rem;
  border-left: 4px solid var(--line);
}

.content-figure {
  margin: 0.75rem 0;
}

.content-figure img {
  display: block;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prompt-image {
  margin: 0.75rem 0;
}

.prompt-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
