@import url("../../learning/assets/style.css");

.topbar { flex-wrap: wrap; gap: 10px; }
.topbar .brand { min-width: 120px; text-decoration: none; color: var(--ink); }
.section-nav { min-width: 0; flex: 1 1 280px; max-width: 100%; overflow-x: auto; padding: 3px 0 6px; }
.section-nav a { flex-shrink: 0; }
.top-actions { flex-wrap: wrap; max-width: 100%; }
.top-actions .author { font-size: 10px; }
.layout { grid-template-columns: 220px minmax(0, 950px); gap: 30px; }
.board { scroll-margin-top: 155px; }
.board h2 { line-height: 1.15; }
.board > *, .question-card > *, .callout > * { min-width: 0; }
.board .prose, .board .callout, .board .visual { max-width: 100%; }
.board .prose p { max-width: 72ch; }
.callout p { margin: 0; }
.lesson-goal { color: var(--ink-2); }
.lesson-source { font: 12px var(--mono); color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; font-size: 15px; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--c); margin-right: 7px; border: 1px solid var(--ink); }
.table-wrap { min-width: 0; }
.lesson-table th, .lesson-table td { overflow-wrap: anywhere; }
.module-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.module-map a { padding: 12px; background: #fff; border: 2px solid var(--ink); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.module-map a small { display: block; color: var(--mute); }
.module-marker { background: #fffdf3; border-left: 6px solid var(--t5); padding: 10px 14px; }
.qa { margin-top: 10px; }
.qa-body { width: 100%; }
.qa-answer { width: 100%; }
.qa-question { font-weight: 700; }
.game-links { display: flex; flex-wrap: wrap; gap: 14px; }
.source-status { display: block; flex-basis: 100%; color: var(--ink-2); }
.core-only .extra { display: none; }
.overview { min-height: 0; }
.sentence-demo { display: grid; gap: 14px; }
.sentence-stage { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; align-items: center; padding: 10px; border: 2px dashed var(--ink-2); }
.word-card { display: inline-block; padding: 7px 10px; border: 2px solid var(--blue); background: #eaf1fa; transition: transform 700ms ease, background 700ms ease; }
.word-card.verb { background: #fff1df; border-color: var(--t1); }
.demo-caption { font: 700 26px var(--hand); min-height: 60px; }
.ins { padding-left: 30px; margin: 0; }
.ins li { padding: 5px 8px; }
.ins li.current { background: #FFE38A; }
.ins li.executed { color: var(--mute); }
.assessment-shell { max-width: 1050px; }
.question-card { min-width: 0; overflow-wrap: anywhere; }
.options label { padding: 5px 0; }
.option span { min-width: 0; overflow-wrap: anywhere; }
.answer-input { width: 100%; max-width: 600px; }
.question-card fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.question-card legend { font-weight: 700; font-size: 19px; margin-bottom: 12px; }
.order-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.order-item { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px; background: #f2f6fb; border: 1px dashed var(--mute); }
.order-item span { flex: 1; min-width: 100px; }
.order-item button { padding: 3px 9px; }
.match-grid select { min-width: 0; max-width: 100%; }
.question-card .result { scroll-margin-top: 130px; }
.results-summary { scroll-margin-top: 130px; }
.feedback-score { font: 700 27px var(--hand); }
.bibliography li { margin-bottom: 15px; }
@media (max-width: 959px) { .layout { display: block; } }
@media (max-width: 620px) {
  .topbar .top-actions { margin-left: 0; }
  .topbar .section-nav { order: 3; flex-basis: 100%; }
  .topbar .author { display: none; }
  .module-map { grid-template-columns: 1fr; }
  .board { scroll-margin-top: 185px; }
  .board h2 { font-size: 34px; }
  .top-actions .btn { font-size: 13px; padding: 4px 7px; }
  .match-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .word-card { transition: none; } }
