/* "Practise my red and amber topics": the button on the RAG sheets and the mixed practice pages (rt-mixed-practice.js). */
.rag-mix { margin: 0 0 1rem; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.rag-mix .btn { min-height: 44px; }
.rag-mix-sub { margin: 0; font-size: 0.9rem; color: var(--text-soft); flex: 1 1 16rem; }
.rag-mix-msg { margin: 0; flex: 1 1 100%; font-weight: 600; color: var(--ink); }
.rag-mix-msg a { color: var(--accent); }
html[data-rt-role="teacher"] .rag-mix, html[data-rt-role="tutor"] .rag-mix { display: none !important; }

.mx-status { padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 600; }
.mx-status a { color: var(--accent); }
.mx-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.mx-tools .btn { min-height: 44px; }
.mx-topic { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--text-soft); }
.mx-topic a { color: var(--accent); font-weight: 600; }
.mx-page #tp-next, .mx-page .tp-board-open { display: none !important; }
/* class mode (?for=teacher / ?for=tutor, opened from Class gaps): the board view is the point, so its button shows */
.mx-page.mx-class .tp-board-open { display: flex !important; }
.mx-page.mx-class.tp-board .tp-board-open { display: none !important; }
.mx-after { margin: 1.5rem 0; }
.mx-after h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.mx-after ul { margin: 0; padding-left: 1.2rem; }
.mx-after li { margin-bottom: 0.3rem; }
.mx-after a { color: var(--accent); font-weight: 600; }
.mx-answers { display: none; }
.mx-ans-topic { font-weight: 700; }
@media print {
  .rag-mix, .mx-tools, .mx-after, .mx-status { display: none !important; }
  .mx-open, .mx-page .tp-a, .mx-page .tp-w { display: none !important; }
  .mx-answers:not([hidden]) { display: block; break-before: page; }
  .mx-answers ol { padding-left: 1.4rem; }
  .mx-answers li { margin-bottom: 0.4rem; }
}
