/*
    $Id$

    TODO:
    Fix hr displaying incorrectly when doesn't use full screen width.
*/

@media screen
{
    body
    {
        font: 1.1em/1.2em Perpetua, serif;
    }
    p, li
    {
        text-align: justify;
    }
    h1, h2, h3, h4
    {
        page-break-after: avoid;
        page-break-inside: avoid;
        font-weight: normal;
        font-family: Baskerville, Perpetua, serif;
        line-height: 1.1em;
    }
    h1
    {
        font-size: 2em;
        color: black;
        margin-top: 0em;
    }
    h2
    {
        font-size: 1.5em;
        color: #393939;
    }
    h3
    {
        font-size: 1.15em;
        color: #777777;
    }
    h4
    {
        font-size: 1.125em;
        color: #888888;
    }
    blockquote
    {
        font-style: italic;
        background-color: #eeeeee;
        padding: 0.8em;
        border-top: #dd7777 solid 0.05em;

        /* Because of an IE bug, if the preceding line is set to border-left
         * or right instead, the left hand side of the page is misaligned. */
    }
    pre
    {
        background-color: #f2f2f2;
        padding: 0.5em;
    }
    hr
    {
        border: 0;
        color: #eeeeee;
        background-color: #d5d5d5;
        height: 1px;
        margin-right: 5%;
    }
    table
    {
        border-collapse: collapse;
        border: 0;
    }
    th
    {
        border-top: 1px dotted #cccccc;
        border-bottom: 1px dotted #cccccc;
        border-right: 0;
        border-left: 0;

        font-variant: small-caps;
        font-weight: normal;
        text-align: left;
        white-space: nowrap;

        padding: 4px 13px;

        background-color: #f9f9f9;
    }
    td
    {
        border-top: 1px dotted #cccccc;
        border-bottom: 1px dotted #cccccc;
        border-right: 0;
        border-left: 0;

        vertical-align: top;

        padding: 4px 8px;
    }
    td.vertical
    {
        text-align: center;
    }
    dl
    {
        margin: 0 0 0 2em;
    }
    dl dt
    {
        font-variant: small-caps;
        float: left;
        margin: 0 0.5em 0 0;
    }
    dl dd
    {
        margin: 0 0 0.125em 2em;
    }
    .callout
    {
        width: 35%;
        font-size: 1.35em;
        line-height: 1.25em;
        padding: 0em 0em 0em 0.5em;
        border-left: #555555 solid 0.15em;
        page-break-inside: avoid;
        float: right;
        margin: .5em 0em .5em 1.5em;
    }

    /* The following declaration sets <q> tags to be rendered with an italic
     * font. This is nececessary because IE doesn't recognise the quote
     * declarations.
     */

    q
    {
        font-style: italic;
        quotes: '\201C' '\201D' '\2018' '\2019';
    }
    q:before
    {
        content: open-quote;
    }
    q:after
    {
        content: close-quote;
    }
}

@media print
{
    div.footer
    {
        padding: 0.25em;
        border-top: 1px solid black;
        margin-top: 2em;
    }
    div.header
    {
        padding: 0.25em;
        border-bottom: 1px solid black;
        margin-bottom: 1.25em;
    }
}

