pre {
    background-color: #81A5C5;
    padding: 10px;
    color: #111;
}

p code {
    background-color: #eed3aa;
    color: #000;
    padding: 1px;
}

pre,code,table,img {
    overflow-x: auto;
}

div#debug {
    margin-top: 250px;
}

div#pathlinks {
    text-align: right;
    padding-right: 32px;
    display: none;
}


/* tables need some care */

/* pandoc makes mistakes in TH, it uses align instead of text-align
   we just override all to text-align left for the moment... */
div#content_box th {
    text-align: left;
}

/* border style, created using:
   http://www.somacon.com/p141.php */
div#content_box table {
    border-width: 1px;
    border-spacing: 0px;
    border-style: solid;
    border-color: gray;
    border-collapse: separate;
    background-color: white;
}

div#content_box th, div#content_box td {
    border-width: 1px;
    padding: 3px;
    border-style: solid;
    border-color: gray;
}

div.newsentry {
    margin-bottom: 2ex;
    border: 2px solid #dc9f48;
}

.newsentry_primary {
    padding: 0.2rem 1rem 0.2rem 1rem;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #dc9f48;
}

.newsentry_primary h1 {
    margin: 0;
}

.newsentry_primary a {
    text-decoration: none;
}

.newsentry_secondary {
    padding: 1rem;
}

div.newsentry .begin,.location {
    font-size: 1.6ex;
}

div.newsentry .begin {
    font-weight: bold;
}

div.newsentry .begin:before {
    content: "am ";
    font-weight: normal;
}

div.newsentry .location {
    font-weight: bold;
}

div.newsentry .location:before {
    content: "in ";
    font-weight: normal;
}

.newsentry img {
    max-width: 200px !important;
    margin-right: 1rem;
}

div.newsentry figure {
    width: 200px;
}

div.newsentry figcaption {
    display: none;
}


/*  PRINTING  */
@media print {
    div#logo_box, div#gradient_box, div#reel_logo, div#navigation {
        display:none;
    }

    div#content_box {
        width:100%;
        background: white;
        margin-left: 0px;
        margin-top: 0px;
    }

    div#title_box {
        position:relative;
        top: 0px;
        width: 100%;
        margin-left: 0px;
        display:none;
    }

    div#reel {
        width: 100%;
        background: white;
    }

    div.newsentry {
        display: block;
        page-break-inside: avoid;
        border-color: black;
    }

    div.newsentry h1:first-of-type {
        border-color: black;
    }
}
