*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8fdff;
    font-family: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
}

#wrapper {
    margin-left: auto;
    margin-right: auto;
    max-width: 80em;
}

#container {
    float: left;
    padding: 1em;
    width: 100%;
}

ol.organizational-chart,
ol.organizational-chart ol,
ol.organizational-chart li,
ol.organizational-chart li > div {
    position: relative;
}

ol.organizational-chart,
ol.organizational-chart ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

ol.organizational-chart {
    text-align: center;
}

ol.organizational-chart ol {
    padding-top: 1em;
    display: flex;
}

ol.organizational-chart ol:before,
ol.organizational-chart ol:after,
ol.organizational-chart li:before,
ol.organizational-chart li:after,
ol.organizational-chart > li > div:before,
ol.organizational-chart > li > div:after {
    background-color: #b7a6aa;
    content: '';
    position: absolute;
}

ol.organizational-chart ol > li {
    padding: 1em 0 0 1em;
}

ol.organizational-chart > li ol:before {
    height: 1em;
    left: 50%;
    top: 0;
    width: 1px;
}

ol.organizational-chart > li ol:after {
    height: 1px;
    left: 0px;
    top: 1em;
    width: 87%;
    right: 0px;
    margin-left: auto;
    margin-right: auto;
}
ol.organizational-chart > li >  ol > li > ol > li > ol:after  {

}
ol.organizational-chart > li ol > li:not(:last-of-type):before {
    height: 9%;
    left: 47%;
    top: 0%;
    width: 1px;
    visibility: visible;
}

ol.organizational-chart > li ol > li:not(:last-of-type):after {
    height: 16px;
    left: 144%;
    top: 0;
    width: 3px;
    visibility: hidden;
}

ol.organizational-chart > li ol > li:last-of-type:before {
    height: 3px;
    left: 0;
    top: 2em;
    width: 1em;
    visibility: hidden;
}

ol.organizational-chart > li ol > li:last-of-type:after {
    height: 1em;
    left: 60%;
    top: 0;
    width: 1px;
}

ol.organizational-chart li > div {background-color: #eafaff;border: 1px solid #009aca33;box-shadow: 0px 0px 10px #ddd;border-radius: 10px;width: fit-content;margin: auto;font-size: 12px;padding: 10px 20px;}

/*** PRIMARY ***/
ol.organizational-chart > li > div {
    background-color: #fff;
    margin-right: 1em;
    border: 1px solid #009aca29;
    box-shadow: 0px 0px 10px #ddd;
    border-radius: 10px;
}

ol.organizational-chart > li > div:before {
    bottom: 2em;
    height: 3px;
    right: -1em;
    width: 1em;
}

ol.organizational-chart > li > div:first-of-type:after {
    bottom: 0;
    height: 2em;
    right: -1em;
    width: 3px;
}

ol.organizational-chart > li > div + div {
    margin-top: 1em;
}

ol.organizational-chart > li > div + div:after {
    height: calc(100% + 1em);
    right: -1em;
    top: -1em;
    width: 3px;
}

/*** SECONDARY ***/
ol.organizational-chart > li > ol:before {
    left: inherit;
    right: 0;
}

ol.organizational-chart > li > ol:after {
    left: 0;
    width: 100%;
}

ol.organizational-chart > li > ol > li > div {background-color: #fff;border: 1px solid #009aca29;box-shadow: 0px 0px 10px #ddd;border-radius: 10px;width: fit-content;margin: auto;font-size: 13px;padding: 10px 20px;}

/*** TERTIARY ***/
ol.organizational-chart > li > ol > li > ol > li > div {
    background-color: #eafaff;
    border: 1px solid #009aca33;
    box-shadow: 0px 0px 10px #ddd;
    border-radius: 10px;
    width: fit-content;
    margin: auto;
    font-size: 12px;
    padding: 10px 20px;
}

/*** QUATERNARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > div {background-color: #ebeaff;border: 1px solid #009aca33;box-shadow: 0px 0px 10px #ddd;border-radius: 10px;width: fit-content;margin: auto;font-size: 12px;padding: 10px 20px;}

/*** QUINARY ***/
ol.organizational-chart > li > ol > li > ol > li > ol > li > ol > li > div {background-color: #faeaff;border: 1px solid #009aca33;box-shadow: 0px 0px 10px #ddd;border-radius: 10px;width: fit-content;margin: auto;font-size: 12px;padding: 10px 20px;}

/*** MEDIA QUERIES ***/
@media only screen and ( min-width: 64em ) {

    ol.organizational-chart {
        margin-left: -1em;
        margin-right: -1em;
    }

    /* PRIMARY */
    ol.organizational-chart > li > div {
        display: inline-block;
        float: none;
        margin: 0 1em 1em 1em;
        vertical-align: bottom;
    }

    ol.organizational-chart > li > div:only-of-type {
        margin-bottom: 0;
        width: auto;
        padding: 10px 20px;
        font-size: 10px;
    }

    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(2),
    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(2) ~ div {
        width: calc((100% / 2) - 2em - 4px);
    }

    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(3),
    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(3) ~ div {
        width: calc((100% / 3) - 2em - 4px);
    }

    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(4),
    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(4) ~ div {
        width: calc((100% / 4) - 2em - 4px);
    }

    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(5),
    ol.organizational-chart > li > div:first-of-type:nth-last-of-type(5) ~ div {
        width: calc((100% / 5) - 2em - 4px);
    }

    ol.organizational-chart > li > div:before,
    ol.organizational-chart > li > div:after {
        bottom: -2em!important;
        top: inherit!important;
    }

    ol.organizational-chart > li > div:before {
        height: 2em!important;
        left: 50%!important;
        width: 1px!important;
    }

    ol.organizational-chart > li > div:only-of-type:after {
        display: none;
    }

    ol.organizational-chart > li > div:first-of-type:not(:only-of-type):after,
    ol.organizational-chart > li > div:last-of-type:not(:only-of-type):after {
        bottom: -1em;
        height: 3px;
        width: calc(50% + 1em + 3px);
    }

    ol.organizational-chart > li > div:first-of-type:not(:only-of-type):after {
        left: calc(50% + 3px);
    }

    ol.organizational-chart > li > div:last-of-type:not(:only-of-type):after {
        left: calc(-1em - 3px);
    }

    ol.organizational-chart > li > div + div:not(:last-of-type):after {
        height: 3px;
        left: -2em;
        width: calc(100% + 4em);
    }

    /* SECONDARY */
    ol.organizational-chart > li > ol {
        display: flex;
        flex-wrap: nowrap;
    }

    ol.organizational-chart > li > ol:before,
    ol.organizational-chart > li > ol > li:before {
        height: 0em!important;
        left: 50%!important;
        top: 0!important;
        width: 1px!important;
    }

    ol.organizational-chart > li > ol:after {
        display: none;
    }

    ol.organizational-chart > li > ol > li {
        flex-grow: 1;
        padding-left: 1em;
        padding-right: 1em;
        padding-top: 1em;
    }

    ol.organizational-chart > li > ol > li:only-of-type {
        padding-top: 0;
    }

    ol.organizational-chart > li > ol > li:only-of-type:before,
    ol.organizational-chart > li > ol > li:only-of-type:after {
        display: none;
    }

    ol.organizational-chart > li > ol > li:first-of-type:not(:only-of-type):after,
    ol.organizational-chart > li > ol > li:last-of-type:not(:only-of-type):after {
        height: 3px;
        top: 0;
        width: 50%;
    }

    ol.organizational-chart > li > ol > li:first-of-type:not(:only-of-type):after {
        left: 50%;
    }

    ol.organizational-chart > li > ol > li:last-of-type:not(:only-of-type):after {
        left: 0;
    }

    ol.organizational-chart > li > ol > li + li:not(:last-of-type):after {
        height: 3px;
        left: 0;
        top: 0;
        width: 100%;
    }

}

.organizational-chart h1, .organizational-chart h2, .organizational-chart h3, .organizational-chart h4, .organizational-chart h5, .organizational-chart h6 {
    font-size: 13px;
    font-weight: 600;
}
.organizational-chart h1 i, .organizational-chart h2 i, .organizational-chart h3 i, .organizational-chart h4 i, .organizational-chart h5 i, .organizational-chart h6 i {
    font-size: 9px;
}