/* Responsive containment only. Preserved original scientific CSS remains in ch26-31.css. */
@media (max-width: 480px) {
  #wave-uncertainty .budget-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #wave-uncertainty .budget-table th,
  #wave-uncertainty .budget-table td {
    overflow-wrap: anywhere;
  }
  #wave-uncertainty .u30-controls label {
    min-width: 0;
    flex-basis: 100%;
  }
}

/* Keep long mathematical notation and technical inline terms in their own
   scrollable or wrappable boxes at 320px instead of widening the document. */
@media (max-width: 480px) {
  #wave-uncertainty { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  #wave-uncertainty .textbook-equations {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto !important;
  }
  #wave-uncertainty .textbook-eqline,
  #wave-uncertainty .textbook-math { min-width: 0; max-width: 100%; }
  #wave-uncertainty .textbook-math { width: 100%; overflow-x: auto; }
  #wave-uncertainty strong,
  #wave-uncertainty .cx-note { overflow-wrap: anywhere; }
}

/* MathML scrolls in the accessible parent box, not in the MathML node itself. */
@media (max-width:480px){#wave-uncertainty .textbook-math math{overflow:visible!important}}
