/* The original pages had no doctype, so rendered in quirks mode. These rules restore
   the quirks-mode behaviour the layout relied on, now that pages use almost-standards mode. */

/* the main table filled the window height (body has 2px margins) */
html { height: 100%; }
body { height: calc(100% - 4px); }

/* the default margins of paragraphs, headings and lists were dropped at the start and end
   of a table cell (hr margins weren't affected) */
td > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote):first-child { margin-top: 0; }
td > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote):last-child { margin-bottom: 0; }
