/* WORK AROUND WEBCORE TO GET DEFAULT HTML TO LOOK RIGHT AGAIN */
div.holodocs-body {
    margin-left:auto;
    margin-right:auto;
    margin-bottom: 2em;
    line-height: 1.6;
    font-size: 0.95em;
}

    /*
        These tags do appear to work just fine with WebCore; no overrides necessary.
        A, B, DIV, I, IFRAME, SPAN, VIDEO

        First, restore styling for headers.
        H1, H2, H3, H4, H5, H6
    */

    div.holodocs-body h1 {
        display: block;
        margin-top: 1em;
        margin-bottom: 0;
        padding-bottom: 0.1em;
        border-bottom: 1px solid rgba(0,0,0,.3);
    }

    div.holodocs-body h2 {
        display: block;
        margin-top: 1em;
        margin-bottom: 0;
        padding-bottom: 0.1em;
        border-bottom: 1px solid rgba(0,0,0,.3);
    }

    div.holodocs-body h3,
    div.holodocs-body h4,
    div.holodocs-body h5,
    div.holodocs-body h6 {
        display: block;
        margin-top: 0.75em;
        margin-bottom: 0;
    }

    /*
        Now restore paragraph text.
        P
    */

    div.holodocs-body p {
        display: block;
        margin-top: 0.5em;
        margin-bottom: 0.5em;
        font-size: inherit;
        line-height: inherit;
    }

        div.holodocs-body p:first-child {
            margin-top: 0;
        }

        div.holodocs-body p:last-child {
            margin-bottom: 0;
        }

    /*
        Now fix lists.
        UL, OL, LI
    */
    div.holodocs-body ul {
        display: block;
        list-style-type: disc; 
        margin-left: 1.5em;
    }

    div.holodocs-body ol {
        display: block;
        list-style-type: decimal;
        margin-left: 1.5em;
    }

    div.holodocs-body li {
        display: list-item;
        margin-bottom: 0.1em;
    }

    /*
        Shrink images that are larger than their container.
        IMG
    */
    div.holodocs-body img {
        max-width: 100%;
        height: auto;
    }

    /*
        Monospace and code blocks.
        CODE, PRE
    */
    div.holodocs-body code {
        word-break: break-all;
    }

    div.holodocs-body pre {
        display: block;
        white-space: pre;
        padding: 0.5em;
        max-height: 600px;
        line-height: 1.3;
        word-break: initial;
        word-wrap: initial;
        background-color: #eeeeee;
        font-size: 0.9em;
    }

    /*
        Tables, cells and rows.
        TABLE, TD, TH, TR
    */

    div.holodocs-body table {
        display: table;
        border-collapse: collapse;
    	border: 1px #aaa solid;
        margin: 1em 0;
    }

    div.holodocs-body th,
    div.holodocs-body td {
        display: table-cell;
        vertical-align: top;
        padding: 0.4em;
    	border: 1px #aaa solid;
    }

    div.holodocs-body th {
        background-color: #dddddd;
    }

/* ELEMENTS SPECIFICALLY CALLED OUT IN HOLODOCS */

/* Table of contents styles */
div.holodocs-body div#toc {
	border: 1px solid #aaa;
	background-color: #f9f9f9;
	display: table;
	zoom: 1;
    padding: 7px;
    font-size: 0.95em;
    margin-top: 2em;
}

div.holodocs-body div#toc h2 {
	display: block;
    text-align: center;
    margin: 0;
	border: none;
	padding: 0;
	font-size: 1em;
	font-weight: bold;
}

div.holodocs-body div#toc ul {
	list-style-type: none;
	list-style-image: none;
	margin: 0.3em 0;
	padding: 0;
	text-align: left;
}

div.holodocs-body div#toc ul ul {
    margin: 0 0 0 2em;
}

/* Image styles used by Wiki */

div.holodocs-body div.center {
    width: 100%;
    text-align: center;
}

div.holodocs-body *.center * {
    margin-left: auto;
    margin-right: auto;
}

div.holodocs-body div.thumb {
    margin-bottom: 0.5em;
    width: auto;
    background-color: transparent;
}

div.holodocs-body img.thumbborder  {
    border: 1px solid #dddddd;
}

div.holodocs-body div.thumbinner {
    border: 1px solid #ccc;
    padding: 3px;
    background-color: #f9f9f9;
    font-size: 90%;
    text-align: center;
    overflow: hidden;
}

div.holodocs-body div.thumbcaption {
    border: none;
    line-height: 1.4em;
    padding: 3px;
    font-size: 90%;
    text-align: left;
}

div.holodocs-body div.floatleft,
div.holodocs-body table.floatleft {
    margin: 0 .5em .5em 0;
    border: 0;
    position: relative;
}

div.holodocs-body div.tleft {
    margin: .5em 1.4em 1.3em 0;
}

div.holodocs-body div.tright {
    margin: .5em 0 1.3em 1.4em;
}

div.holodocs-body div.tleft,
div.holodocs-body div.floatleft,
div.holodocs-body table.floatleft {
    float: left;
    clear: left;
}

div.holodocs-body div.floatright,
div.holodocs-body table.floatright {
    margin: 0 0 .5em .5em;
    border: 0;
    position: relative;
}

div.holodocs-body div.tright,
div.holodocs-body div.floatright,
div.holodocs-body table.floatright {
    clear: right;
    float: right;
}

/* Messageboxes */
div.holodocs-body table.doc-messagebox {
    margin: 0.25em 10%;
    border: 1px solid #aaa;
    border-left: 10px solid #c0504d;
    background: #fbfbfb;
    border-spacing: 2px;
    border-collapse: separate;
}

div.holodocs-body tbody.doc-messagebox {
    border-collapse: initial;
}


div.holodocs-body table.doc-messagebox-notice {
	border-left: 10px solid #70ad47;
}

div.holodocs-body td.doc-messagebox-image {
    min-width: 52px;
    vertical-align: top;
    border: none;
}

div.holodocs-body td.doc-messagebox-text {
    border: none;
    padding: 0.25em 0.9em;
    width: 100%;
    vertical-align: middle;
}

/* Codeboxes */
div.holodocs-body div.CodeBoxFrame {
    margin: 0;
    padding: 0;
}

div.holodocs-body div.CodeBoxHeader {
    font-size: 0.9em;
    line-height: 1.6;
    padding: 0.5em;
    background-color: #ccc;
}

div.holodocs-body span.CodeBoxName {
    font-size: 1.25em;
    font-weight: bold;
    font-family: Consolas,Menlo,Monaco,Lucida Console,monospace;
    margin-right: 1em;
}

div.holodocs-body span.CodeBoxToggle {
    color: #0645ad;
    text-decoration: underline;
    font-weight: normal;
    cursor: pointer;
}

div.holodocs-body div.CodeBoxContent pre { /* Keeps the pre box visually tied to the show/hide header above it */
    margin-top: 0;
}

/* Hero image banners for site pages. Ideal for JPG images that are 1600x230 with focus 
   point vertically centered, and left margin of focus point around 775px from left. */
.hero-banner {
    background-color: #0085ca;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hero-banner .hero-img {
    min-height: 100%;
    min-width: 100%;
    position: absolute;
    top: -9999px;
    bottom: -9999px;
    margin-top: auto;
    margin-bottom: auto;
}

.hero-banner .hero-caption {
    background-color: rgba(30, 117, 187, 0.8);
    color: #fff;
    font-size: 18px;
    padding: 15px;
    position: absolute;
    top: 0px;
    z-index: 99;
    max-width: 20em;
    left: 0px;
    margin: 20px;
    height: auto;
}

.hero-banner .hero-caption h1,
.hero-banner .hero-caption h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-banner .hero-caption .caption-body {
    color: #fff;
    font-family: "SegoeUILight",Helvetica,Arial,sans-serif;
}

@media(min-width:983px) {
    .hero-banner {
        height: 230px;
        position: relative;
    }

    .hero-banner .hero-caption {
        font-size: 20px;
        padding: 25px;
        position: absolute;
        top: 5px;
        z-index: 99;
        max-width: 22em;
    }

    .hero-banner .hero-caption h1,
    .hero-banner .hero-caption h2 {
        font-size: 35px;
        margin-bottom: 15px;
    }
}

/* STYLES THAT ONLY SHOW UP IN DEBUG BUILDS */
div.holodocs-body div.doc-processing-errors {
    border: 3px solid red;
    padding: 0.5em;
}

div.holodocs-body div.doc-processing-errors h2 {
    margin: 0;
    border: none;
}

div.holodocs-body span.doc-span-error, pre.doc-paragraph-error {
    background-color: #f2dcdb;
    color: #c0504d;
    border: 1px #ff0000 solid;
}

div.holodocs-body div.doc-internal {
    background-color: #f89494;
}