@media (max-width: 480px) {
  html, body { width: 100%; min-width: 0; }
  body { overflow-wrap: anywhere; }
  main, article, section, figure, aside { min-width: 0; max-width: 100%; }
  img, video, canvas { max-width: 100%; }
  pre { min-width: 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
  table[data-mobile-stack], table[data-mobile-stack] :is(tbody,tfoot) {
    display: block; width: 100%; min-width: 0; max-width: 100%;
    white-space: normal;
  }
  table[data-mobile-stack] thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  table[data-mobile-stack] tr {
    display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
    margin-block: .4rem; border: 1px solid currentColor; border-radius: .5rem;
  }
  table[data-mobile-stack] :is(td,th) {
    display: block; min-width: 0; max-width: 100%; white-space: normal;
    text-align: start; overflow-wrap: anywhere;
  }
  table[data-mobile-stack] :is(td,th)[data-mobile-label]::before {
    content: attr(data-mobile-label);
    display: block; font-size: .85em; font-weight: 700; margin-bottom: .15rem;
  }
}
