/* Responsive layer for the older fixed-width table pages (2009 layout). */
img, iframe, embed, object, video { max-width: 100%; }
img { height: auto; }

@media (max-width: 820px) {
  html, body { margin: 0; padding: 0; overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  table, tbody, thead, tfoot, tr { max-width: 100% !important; }
  table { width: 100% !important; height: auto !important; table-layout: auto; }
  td, th { height: auto !important; word-wrap: break-word; overflow-wrap: anywhere; }
  td[width], th[width], col[width] { width: auto !important; }
  input[type="text"], input[type="email"], input:not([type]), select, textarea {
    max-width: 100%; box-sizing: border-box;
  }
  textarea { width: 100%; }
  font[size="1"] { font-size: 13px; }
  p[style*="margin"] { margin: 8px !important; }
}

@media (max-width: 640px) {
  /* Stack layout columns; keep small inline tables (menus, image strips) intact. */
  td, th { display: block; width: 100% !important; box-sizing: border-box; }
  td:empty { display: none; }
  table table table td { display: table-cell; width: auto !important; }
  td img { margin-left: auto; margin-right: auto; }
  input[type="text"], input[type="email"], input:not([type]), select, textarea { width: 100% !important; }
}
