/* Styles for Module: Strategic Goals and Objectives */

.diagram {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    margin: 0 0 2em 0;
}
/* .diagram--radial {} */

.diagram .base {
    order: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    padding: 2em;
    /* background-color: var(--hap-turquoise); */
}

.base > p {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0px;
    padding: 0px;
}

.base > p > * { flex-basis: 100%; text-align: center; }

.diagram .support {
    order: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
}

#homeinnerContent .diagram .support .group, 
#tier4innerContent .diagram .support .group {
    position: relative;
    box-sizing: border-box;
    margin: unset;
    padding: unset;
    border-bottom: unset;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1em 1em 50px 1em;
    /* background-color: #666; */
}

#homeinnerContent .group .topic,
#tier4innerContent .group .topic {
    margin: unset;
    padding: unset;
    padding: 1em;
    background-color: #fff;
    color: #666;
}

.group .support {
    margin: 0 0 0 0;
    padding: 1em;
    /* background-color: #666; */
    color: #fff;
    flex-grow: 1;
}

.feed-in:after,
.feed-bottom:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: calc(50% - 60px);
    width: 50%;
    border-style: solid;
    border-width: 60px;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--hap-turquoise-lt);
    border-top-color: transparent;
}


.thirds { width: 32%; }


@media screen and (max-width: 959px) {
    /* Keep Vertical. Reduce pointer sizes. */
    .feed-in:after,
    .feed-bottom:after {
        left: calc(50% - 60px);
        width: 40%;
        border-width: 60px;
    }
}

@media screen and (max-width: 767px) {}

@media screen and (max-width: 640px) {
    /* flip horizontally */
    .diagram {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        font-size: 14px;
        margin: 0 0 2em 0;
        background-color: var(--hap-turquoise-lt);
    }

    .base > p {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        margin: 0px;
        padding: 0px;
    }

    .diagram .support {
        order: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    #homeinnerContent .diagram .support .group, 
    #tier4innerContent .diagram .support .group {
        padding: 1em 1em 1em 1em;
        margin: 0 0 1em 0;
    }

    #homeinnerContent .group .topic,
    #tier4innerContent .group .topic {
        padding: 1em;
        border-radius: 0 0 8px 0;
    }

    .group .support {
        margin: 0 0 0 0;
        padding: 1em 40px 1em 1em;
        /* background-color: #666; */
        color: #fff;
        flex-grow: 1;
    }

    .thirds { width: 95%; }

    .feed-in:after,
    .feed-bottom:after {
        top: calc(50% - 40px);
        bottom: unset;
        left: unset;
        right: 0;
        width: 80px;
        border-width: 40px;
        border-left-color: transparent;
        border-right-color: var(--hap-turquoise-lt);
        border-bottom-color: transparent;
        border-top-color: transparent;
    }

}