/* Result disclosure and persistent input labels for student follow-up flows. */
.review-item > summary { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; }
.review-item .review-chevron { flex: none; font-size: 1.5rem; line-height: 1; transition: transform .15s; }
.review-item[open] > summary .review-chevron { transform: rotate(90deg); }
.review-item .review-question { min-width: 0; }
.review-item .review-action { color: var(--brand); margin-left: auto; text-decoration: underline; }
.labelled-doubt { display: block; }
.labelled-doubt > label { display: block; font-weight: 600; margin-bottom: 6px; }
.doubt-entry { display: flex; gap: 8px; align-items: flex-end; }
.doubt-entry textarea { min-width: 0; flex: 1; }
@media (max-width: 560px) {
  .doubt-entry { flex-direction: column; align-items: stretch; }
  .review-item > summary { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
  .review-item .review-chevron { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .review-item .review-question { grid-column: 2; grid-row: 1; }
  .review-item summary > .pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .review-item .review-action { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .review-item .review-chevron { transition: none; }
}

/* Short, predictable instructions without shrinking text on a phone. */
.topic-price-notice p { margin: 0 0 6px; }
.topic-price-notice p:last-child { margin-bottom: 0; }
.maths-typing-help { margin: 0 0 12px; }
.maths-typing-help summary { cursor: pointer; color: var(--brand); }
.maths-typing-help p { margin: 8px 0; }
.concepts .math { min-width: 0; overflow-wrap: anywhere; }
