/* Mr. Bouyer Science: keeps standalone pages inside the screen on a phone. Loaded last. */
.mbs-fit-tables table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tt-bar{flex-wrap:wrap}
.tt-modes{flex-wrap:wrap;max-width:100%}
.tt-back{white-space:normal;max-width:100%}
.tt-wrap{max-width:100%}
main>.wrap#lesson{min-width:0;max-width:100%}
#lesson .card,#lesson .dia{min-width:0;max-width:100%}
@media(max-width:640px){
  main>.wrap#lesson{flex-direction:column-reverse;padding:0 12px}
  .tt-badge{white-space:normal}
}
