/* Small additions on top of stock jemdoc.css:
   a readable max width on desktop, and a stacked layout on phones. */

table#tlayout { max-width: 860px; }
#layout-content p, #layout-content li { line-height: 1.45; }

@media (max-width: 700px) {
  table#tlayout, table#tlayout > tbody, table#tlayout > tbody > tr,
  td#layout-menu, td#layout-content {
    display: block;
    width: auto;
  }
  td#layout-menu {
    white-space: normal;
    padding: 0.4em 0.8em 0.6em;
  }
  div.menu-category { margin-top: 0.5em; }
  div.menu-item {
    display: inline-block;
    padding-left: 0;
    text-indent: 0;
  }
  #layout-menu a { margin-left: 0; margin-right: 1em; }
  td#layout-content { padding: 0.5em 0.8em; }
  table.imgtable, table.imgtable > tbody, table.imgtable > tbody > tr,
  table.imgtable td { display: block; }
  img { max-width: 100%; height: auto; }
}
