/* Long derivations scroll locally on narrow screens in the Week 05 chapters. */
.week05-chapter main {
  min-width: 0;
}

.week05-chapter .math.display {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 0.25rem;
}

/* Preserve table semantics while keeping wide comparisons keyboard-scrollable. */
.week05-chapter .week05-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1rem;
}
