/* Comfortable reading within the existing game feedback and review surfaces. */
.teaching-explanation { min-width: 0; font-size: .92rem; line-height: 1.75; overflow-wrap: break-word; }
.teaching-explanation p { margin: 0 0 16px; line-height: 1.75; }
.teaching-best { display: grid; gap: 5px; padding: 15px 18px; border: 1px solid #83e0d03d; border-radius: 12px; background: #83e0d00b; }
.teaching-best > span, .teaching-takeaway > span { color: #83e0d0; font-size: .75rem; font-weight: 650; letter-spacing: .06em; }
.teaching-best > strong { color: #f4efe8; font-size: 1rem; line-height: 1.5; }
.teaching-reasoning { padding: 4px 0 7px; }
.teaching-reasoning h3 { margin: 10px 0 10px; color: #f4efe8; font-size: .95rem; letter-spacing: -.015em; }
.teaching-reasoning ul { margin: 0 0 14px; padding-left: 22px; }
.teaching-reasoning li { padding: 0 0 8px 3px; }
.teaching-details { min-width: 0; border: 1px solid #55677966; border-radius: 12px; background: #0d172344; margin: 12px 0; }
.teaching-details summary { display: block; padding: 15px 18px; min-height: 48px; cursor: pointer; font-size: .86rem; line-height: 1.5; font-weight: 650; color: #d9e9e8; list-style: none; }
.teaching-details summary::-webkit-details-marker { display: none; }
.teaching-details summary::after { content: "+"; float: right; margin-left: 10px; color: #83e0d0; }
.teaching-details[open] summary { border-bottom: 1px solid #55677944; }
.teaching-details[open] summary::after { content: "−"; }
.teaching-details summary:focus-visible { outline: 2px solid #83e0d0; outline-offset: 3px; border-radius: 10px; }
.teaching-options, .teaching-steps { list-style: none; padding: 0 18px; margin: 0; }
.teaching-options > li, .teaching-steps > li { padding: 17px 0 2px; border-bottom: 1px solid #55677944; }
.teaching-options > li:last-child, .teaching-steps > li:last-child { border: 0; }
.teaching-options > li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 9px; margin-bottom: 8px; }
.teaching-options strong { flex: 1; min-width: 110px; color: #e4e9eb; font-size: .88rem; line-height: 1.6; }
.teaching-options .is-best strong { color: #9ce2d3; }
.teaching-letter { flex: none; min-width: 22px; font-size: .76rem; color: #9fb1c2; }
.teaching-label { flex: none; padding: 2px 7px; border: 1px solid #83e0d035; border-radius: 6px; color: #83e0d0; font-size: .75rem; }
.teaching-step-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 11px 0 18px; }
.teaching-step-values span { color: #a8b8c6; font-size: .72rem; line-height: 1.5; }
.teaching-step-values b { display: block; color: #e1e9ee; font-weight: 600; font-size: .83rem; font-variant-numeric: tabular-nums; }
.teaching-equation { margin: 17px 18px !important; font-variant-numeric: tabular-nums; color: #dbe8eb; }
.teaching-control-list { list-style: none; padding: 0 18px; margin: 0; }
.teaching-control-list li { padding-top: 16px; }
.teaching-control-list strong { color: #e4eeee; }
.teaching-control-list p { margin: 6px 0 17px; }
.teaching-takeaway { display: grid; gap: 7px; padding: 15px 18px; border-left: 3px solid #83e0d0; background: #83e0d008; border-radius: 0 10px 10px 0; margin: 20px 0 !important; }
.teaching-takeaway strong { color: #e2eae8; font-size: .9rem; font-weight: 550; }
.teaching-references { display: grid; gap: 8px; margin: 16px 0 20px; }
.teaching-references .source-link { margin: 0; font-size: .78rem; line-height: 1.6; overflow-wrap: anywhere; }
.teaching-small { color: #aebdca; font-size: .77rem; line-height: 1.65 !important; }
.teaching-details > .teaching-small { margin: 0 18px 18px; }
.teaching-wrong { padding: 13px 15px; border: 1px solid #f28d8836; border-radius: 10px; margin: 12px 0 16px; background: #f28d8806; }
.teaching-wrong > strong { color: #f4c0b3; font-size: .85rem; }
.teaching-wrong > p { margin: 8px 0 0; line-height: 1.7; }
@media(max-width:760px) {
  .teaching-explanation { font-size: .87rem; }
  .teaching-best { padding: 13px 14px; }
  .teaching-best > strong { font-size: .92rem; }
  .teaching-details summary { padding: 14px; font-size: .82rem; }
  .teaching-options, .teaching-steps, .teaching-control-list { padding-inline: 14px; }
  .teaching-equation { margin-inline: 14px !important; }
  .teaching-step-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .teaching-step-values > span:last-child { grid-column: 1/-1; }
  .teaching-label { font-size: .75rem; }
}
