/* Quirks-mode compensation for the assignments, stock and gallery pages.
   The 2008 documents had no (or a system-id-less 4.0) doctype, so they
   rendered in quirks mode; these pages are standards mode. */

/* Quirks: a line holding only an image (no text) is exactly as tall as the
   image (no strut, no descender gap). Bottom-aligning gives the same box. */
.quirk-img img, .frame-image table img { vertical-align: bottom; }

/* Quirks: tables do not inherit font size/style from <font> or <i> around them. */
table.quirk-table { font-size: medium; font-style: normal; font-weight: normal; line-height: normal; }

/* Put the block strut in the same face as the <font face=Verdana size=1> lines. */
.quirk-verdana { font-family: Verdana, Helvetica, Arial; }

/* Quirks: a percentage-height table inside an auto-height block resolves
   against the frame body; give that block the frame's height instead. */
.frame-image .fill { height: 100%; }

/* stock.htm: the cells hold only <font size=1> text, so make the cell strut
   that size too (quirks line boxes ignore the medium-size strut). */
table.stock-grid { font-size: x-small; font-family: Verdana, Arial, Helvetica, sans-serif; }

/* Standards mode draws a broken image that has alt text as an inline run of
   text, dropping its width/height; quirks mode kept the sized box. */
.frame-image img, .quirk-img img { display: inline-block; }

/* The frame body had its bottom margin outside the scrollable area in quirks
   mode, so pages pass padding-bottom:0 (99%-high tables then also match). */

/* Quirks: lines whose text sits inside <font> ignore the block's own (medium)
   strut. Give these blocks the strut of the text they hold. */
.quirk-caption { font-size: x-small; font-family: Helvetica; }               /* ben: <font size=1 face=Helvetica> captions */
.quirk-pager { font-size: small; font-family: Verdana, Arial, Helvetica, sans-serif; } /* PARAMARIBO-ZOO: next/previous page */
.quirk-pager .quirk-strut { font: initial; }                                 /* the bare <br> after it had the body font strut */
