/* 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: 1em;
}

    /*
        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,
    div.holodocs-body h2,
    div.holodocs-body h3,
    div.holodocs-body h4,
    div.holodocs-body h5,
    div.holodocs-body h6 {
        font-family: segoe-ui_semibold, "Segoe UI Semibold", "Segoe WP", "Helvetica Neue", Helvetica, sans-serif;
        font-style: normal;
        font-weight: 300;
        line-height: 1.3;
        word-wrap: break-word;
    }

    div.holodocs-body h1 {
        font-family: segoe-ui_light, "Segoe UI Light", "Segoe WP", "Helvetica Neue", Helvetica, sans-serif;
        font-size: 2.5rem;
        margin-top: 10px;
        margin-bottom: 4px;
        padding-bottom: 0.1em;
        border-bottom: 1px solid rgba(0,0,0,.3);
    }

    div.holodocs-body h2 {
        font-family: segoe-ui_normal, "Segoe UI", Segoe, "Segoe WP", "Helvetica Neue", Helvetica, sans-serif;
        font-size: 1.75rem;
        margin-top: 32px;
        margin-bottom: 16px;
        padding-bottom: 0.1em;
        border-bottom: 1px solid rgba(0,0,0,.3);
    }

    div.holodocs-body h3 {
        font-size: 1.188rem;
        margin-top: 30px;
        margin-bottom: 18px;
    }

    div.holodocs-body h4 {
        font-size: 1rem;
        margin-top: 36px;
        margin-bottom: 6px;
    }

    div.holodocs-body h5 {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-top: 36px;
        margin-bottom: 6px;
    }

    div.holodocs-body h6 {
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin-top: 36px;
        margin-bottom: 6px;
    }

    /*
        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-image: none;
        list-style-type: square;
        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;
    }

    div.holodocs-body div.thumb {
        max-width: 100%;
    }

        div.holodocs-body div.thumb div.thumbinner {
            max-width: 100%;
        }

    /*
        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;
            }

    /* Styles used by the responsive tables */

    div.holodocs-body h2 + div.row,
    div.holodocs-body h3 + div.row {
        margin-top: 15px;
    }

    /* 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;
        font-size: 35px;
        text-align: center;
        padding: 6px;
    }

    div.holodocs-body td.doc-messagebox-text {
        border: none;
        padding: 0.25em 0.9em;
        width: 100%;
        vertical-align: middle;
    }

    /* Store app links */
    div.holodocs-body a.doc-storelink {
        position: relative;
        display: block;
        background-color: #f5f5f5;
        margin-bottom: 30px;
        min-height: 100px;
        overflow-y: hidden;
        color:black;
    }

    div.holodocs-body a.doc-storelink:hover {
        background-color: #eaeaea;
    }

        div.holodocs-body a.doc-storelink > div:first-child {
            margin-left: 100px;
            padding: 16px;
            line-height: 1.5;
        }

            div.holodocs-body a.doc-storelink > div:first-child > div:first-child {
                font-weight: bold;
            }

            div.holodocs-body a.doc-storelink > div:first-child > div:nth-child(2) {
                color: #aaa;
            }

        div.holodocs-body a.doc-storelink > div:nth-child(2) {
            position: absolute;
            left: 0px;
            top: 0px;
            width: 100px;
        }

    /* 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: black;
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .hero-banner > div.hero-outer-image-container {
        position: absolute;
        right: 0;
        width: 50%;
        height: 100%;
    }

        .hero-banner > div.hero-outer-image-container > div.hero-inner-image-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden
        }

            .hero-banner > div.hero-outer-image-container > div.hero-inner-image-container > img.hero-img {
                min-height: 100%;
                min-width: 100%;
                position: absolute;
                top: -9999px;
                bottom: -9999px;
                left: -9999px;
                right: -9999px;
                margin: auto auto auto auto;
            }

    .hero-banner .hero-caption {
        display: table;
        color: white;
        height: 100%;
        width: 50%;
        padding-right: 20px;
    }

        .hero-banner .hero-caption .hero-caption-inner-container {
            display: table-cell;
            vertical-align: middle;
        }

        .hero-banner .hero-caption > .hero-caption-inner-container > h1 {
            margin-bottom: 15px;
        }

        .hero-banner .hero-caption > .hero-caption-inner-container > .hero-caption-body {
            font-size: 1em;
            font-weight: 400;
            font-family: "SegoeUILight",Helvetica,Arial,sans-serif;
        }

@media(max-width:768px) {
    .hero-banner > div.hero-outer-image-container {
        visibility: hidden;
    }

    .hero-banner .hero-caption {
        display: table;
        color: white;
        height: 100%;
        width: 100%;
        padding-right: 20px;
    }
}

/* STYLES THAT SHOW UP ON THE MAIN PAGE */

div.holodocs-body a.mainpage-sitepage-link {
    border: 1px solid #f2f2f2;
    display: inline-block;
    text-decoration: none;
    color: black;
    padding: 1em;
    width: 100%;
    min-width: 250px;
    margin-top: 1em;
}


    div.holodocs-body a.mainpage-sitepage-link:hover {
        background-color: #f2f2f2;
    }

    div.holodocs-body a.mainpage-sitepage-link h3 {
        white-space: nowrap;
        margin-bottom: 0.5em;
    }

    div.holodocs-body a.mainpage-sitepage-link ul {
        list-style-type: none;
        margin-left: 0px;
    }

/* 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;
}