

body.s_type {
    overflow: hidden;
}

.Cmod-Detail {
    display: none;
    width: 100%; height: 100%;
    background-color: #fff;
    position: fixed;
    top: 0px; left: 0px;
    z-index: 100000;

    body.s_type_atom &,
    body.s_type_utility &
    {
        display: block;
    }

    &__code {
        width: 400px;//calc( 50% ~'-' 60px );
        float: left;
        height: calc( 100% ~'-' 80px );
        position: absolute;
        top: 40px;
        left: 40px;
        background-color: #eee;
        overflow: auto;
        // overflow-x: hidden;
        border: 1px solid #ddd;

        &__item {
            width: 100%;
            .interactive;
            padding: 2px 6px;
            -webkit-touch-callout: none; /* iOS Safari */
            -webkit-user-select: none;   /* Chrome/Safari/Opera */
            -khtml-user-select: none;    /* Konqueror */
            -moz-user-select: none;      /* Firefox */
            -ms-user-select: none;       /* IE/Edge */
            user-select: none;           /* non-prefixed version, currently
                                              not supported by any browser */

            &:hover {
                background-color: #ccc;
            }

            &--selected {
                background-color: #ddd;
            }
        }
    }

    &__preview {
        width: calc( 100% ~'-' 500px );
        height: calc( 70% ~'-' 60px );
        position: absolute;
        top: 40px;
        right: 40px;
        border: 1px solid #ddd;

        &__iframe {
            width: 100%; height: 100%;
            background-color: #eee;
        }
    }

    &__css{
        width: calc( 100% ~'-' 500px  );
        height: calc( 30% ~'-' 60px );
        position: absolute;
        bottom: 40px;
        right: 40px;
        border: 1px solid #ddd;
        background-color: #eee;
        overflow-y: auto;
        padding: 10px;

        font-size: 14px;
    }

    &__close {
        .interactive;
        width: 40px;
        padding: 10px 0px;
        height: 40px;
        font-size: 20px;
        color: #888;
        text-align: center;
        position: absolute;
        top: 0px; right: 0px;

        &:hover {
            color: #000;
        }
    }
}



.ruleCSS {
    -ctag-tag: page;
    -ctag-example: "...{ .ruleDetail_code }";
    &:extend(
        .ruleDetail_contentContainer
        .ruleDetail_content
    );

    z-index: 100;
    background-color: #fff;
    min-height: 100%;
    padding-top: 20px;

    /*@media ( max-width: @screen-lg-min ) {
        .calc( width , 100% , 100px );
    }*/

    .ruleDetail_textarea {
        /*<csstag tag="content">
            <textarea ...>
                <hi>there</hi>
            </textarea>
        </csstag>*/
        width: 100%;
        background-color: #000;
        color: #eee;
        padding: 20px;
        font-family: 'Muli', sans-serif;
    	font-weight: extralight;
        border: 0px;
        resize: none;
    }

    .ruleDetail_code {
        -ctag-tag: content;
        /* -ctag-example: ...
                { .ruleDetail_title }
                { .ruleDetail_pre };" */

        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        padding-bottom: 50px;
        height: 100%;
        overflow: auto;
        // padding: 30px 30px;

        @media ( max-width: @screen-md-min ) {
            width: @col-7;
        }

        .ruleDetail_title {
            /*<csstag tag="code">
                <div ...>
                    Pseudo Selectors
                    { .ruleDetail_titleButton }
                </div>
            </csstag>*/
            width: 100%;
            border-bottom: 1px solid @gray-lighter;
            font-size: 18px;
            color: #333;
            padding-top: 20px;
            margin-bottom: 10px;
            clear: both;
            position: relative;

            .ruleDetail_titleButton {
                /*<csstag tag="button">
                    <div ...>React</div>
                </csstag>*/
                position: absolute;
                right: 0px;
                bottom: 0px;
                font-size: @font-size;
                .hand();
            }
        }

        .ruleDetail_pre {
            -ctag-tag: code;
            /* -ctag-example:
<pre ...>
a [
    color: #f00;
]
</pre>;*/

            width: 100%;
            font-family: "Muli", sans-serif;
            float: left;
            white-space: pre-wrap;       /* CSS 3 */
            white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
            white-space: -pre-wrap;      /* Opera 4-6 */
            white-space: -o-pre-wrap;    /* Opera 7 */
            word-wrap: break-word;       /* Internet Explorer 5.5+ */
        }

        .ruleDetail_subTitle {
            -ctag-tag: code;
            -ctag-example: ...SubTitle;

            color: @text-color-dark;
            font-size: @font-size-lg;
            padding: 6px 0px;
        }

        .ruleDetail_noneFound {
            -ctag-tag: label;
            -ctag-example: ...None Found;

            color: @text-color-lighter;
            font-size: @font-size;
        }

        .ruleDetail_codeLine {
            -ctag-tag: code;
            -ctag-example: "...{ .ruleDetail_variableName }: #fff";

            color: @csstagged-purple;
            font-size: @font-size;

            > pre {
                overflow: auto;
                background-color: #eee;
                border: 0px;
                padding: 10px;
                line-height: 18px;
                font-size: 12px;

                > code {
                    color: @text-color-dark;
                    font-size: @font-size;
                    font-family: 'Muli', sans-serif;
                	font-weight: light;
                    padding: 0px; margin: 0px;
                    -moz-tab-size: 4;

                }

            }

            &.indent {
                padding-left: 20px;
            }

            .ruleDetail_variableName {
                -ctag-tag: code;
                -ctag-example: ...width;

                color: @text-color-dark;
                font-weight: normal;
            }

            .ruleDetail_selectorSpan {
                -ctag-tag: code;
                -ctag-example: ....dog;

                color: @csstagged-blue;
                font-weight: normal;
            }
        }
    }
}


// @import (reference) "../Shared/shared.less";



.ruleDetail {
    /* -ctag:
            "page,modal",
            "...{ .ruleDetail_header }
                { .ruleDetail_contentContainer }"
    */

    width: 100vw; height: 100vh;
    position: absolute;
    top: 0px; left: 0px;
    z-index: 1100;
    overflow: hidden;
    background-color: #fff;
    display: none;

    body.s_tree & {
        display: block;
    }
    body.s_tag & {
        display: block;
    }

    body.s_detailTab & {
        /* state */
    }

    .ruleDetail_contentContainer {
        /* -ctag:
                "placeholder",
                "...{ .ruleDetail_content }"
        */
        // width: @phi;
        .calc( width , 100% , -400px );
        .calc( height , 100% , -70px );
        position: absolute;
        top: 70px; right: 0px;
        overflow: auto;

        .ruleDetail_content {
            .ctag(
                "page",
                "..."
            );
            background-color: #fff;
            width: 100%; height: 100%;
        }
    }

    .ruleDetail_ruleNestingContainer {
        -ctag-tag: navigation;
        -ctag-example: "...{ .ruleNesting }";

        width: 100%;
        .calc( height , 100% , -70px );
        float: left; position: relative;

        body.s_detailTab & {
            width: 400px; // @phi_inv;
        }
    }

    .ruleDetail_header {
        /* -ctag:
                "header",
                "...{ .ruleDetail_back }
                    { .ruleDetail_title }
                    { .ruleDetail_headerNav }"
        */
        width: 100%; height: 70px;
        border-bottom: 1px solid #eee;

        body.s_detailTab & {
            /* state */
        }

        .ruleDetail_title {
            /* -ctag:
                    "container",
                    "...{ .ruleDetail_titleText }
                        { .ruleDetail_iconBox }"
            */
            width: 400px;
            height: 100%;
            position: relative;
            float: left;
            transition: width .3s;

            /*@media ( max-width: @screen-lg-min ) {
                width: 120px;
            }*/

            .ruleDetail_close {
                /* -ctag:
                        "button",
                        "...",
                        "Close the detail",
                        ".hand"
                */

                width: 80px; height: 100%;
                float: left;
                // background-image: url('close_arrow.png');
                color: #555;
                text-align: center;
                padding-top: 26px;
                &:extend( .hand );
                transition: width .3s;

                &:hover {
                    background-color: #eee;
                    // background-image: url('close_arrow_dark.png');
                }

                /*@media ( max-width: @screen-lg-min ) {
                    width: 60px;
                }*/
            }

            .ruleDetail_showTree {
                /* -ctag:
                        "button",
                        "..."
                */
                width: 70px; height: 100%;
                float: right;
                background-image: url('show_tree.png');
                &:extend( .hand );
                display: none;
                transition: width .3s;

                &:hover {
                    background-color: #eee;
                    background-image: url('show_tree_dark.png');
                }

                body.s_detailTab & {
                    display: block;
                }

                /*@media ( max-width: @screen-lg-min ) {
                    width: 60px;
                }*/
            }

            .ruleDetail_titleText {
                /* -ctag:
                        "title",
                        "...A Title"
                */
                .ctag(
                    "label",
                    "...A Title"
                );

                float: left;
                padding: 16px 0px;
                padding-left: 0px;
                height: 100%;
                font-size: 14px;
                color: #555;
                &:extend( .hand );

                &:hover {
                    background-color: #eee;
                }
            }

            .ruleDetail_iconBox {
                /* -ctag:
                        "container,nav_item",
                        "...<div class='rule_icon'></div>"
                */
                width: 50px; height: 100%;
                position: relative; float: left;
            }
        }


    }


    .ruleDetail_ruleNavPlaceholder {
        -ctag-tags: placeholder;
        -ctag-example: "...{ .ruleDetailNav }";

        position: absolute;
        right: 0px; top: 0px;
        width: 100%;
        .calc( width , 100% , -399px );
        height: 70px;
    }
}


// @import (reference) "../../Shared/shared.less";

.ruleDetailNav {
    -ctag-tag: navigation;
    -ctag-example: "...{ .ruleDetailNav_title }";

    height: 100%; width: 100%;
    //.calc( width , 100% , -299px );
    border-bottom: 1px solid #eee;
    //border-left: 1px solid #eee;
    transition: left .3s;
    z-index: 200;
    background-color: #fff;

    /*display: none;
    body.s_detailTab & {
        display: block;
    }*/

    /*@media ( max-width: @screen-lg-min ) {
        left: 119px;
    }*/

    .ruleDetailNav_title {
        /*<csstag tag="title">
            <div ...>rule_name</div>
        </csstag>*/
        width: 100%;
        position: absolute;
        left: 0px; top: 0px;
        height: 70px;

        padding-left: 0px;
        position: relative;
        overflow: hidden;
        border-left: 1px solid #eee;

        .ruleDetailNav_back {
            width: 40px; height: 100%;
            float: left;
            // background-image: url('back_arrow.png');
            transition: width .3s;

            &:extend( .hand );

            &:hover {
                width: 60px;
                background-color: #eee;
            }
        }

        .ruleDetailNav_titleText {
            padding-top: 24px;
            font-size: 22px;
            color: #555;
            float: left;
            margin-left: 20px;

        }

        .ruleDetailNav_typeIcon {
            float: left;
            width: 16px; height: 100%;
            position: relative;
            margin-left: 20px;

            &:hover {
                background-color: #eee;
            }
        }
    }

    .ruleDetail_headerNav {
        -ctag-tag: nav;
        /* -ctag-example: ...
                { .ruleDetail_item_css }
                { .ruleDetail_item_html }
                { .ruleDetail_item_overview }
                { .ruleDetail_item_example }
                { .ruleDetail_back };*/

        position: absolute;
        right: 0px; top: 0px;
        width: 410px; height: 100%;

        body.s_detailTab & {
            display: block;
        }

        @item_color: #ccc;
        @item_selected: #000;

        .ruleDetail_item {
            -ctag-tag: nav_item;
            -ctag-example: ...link_title;

            &:extend( .hand );
            color: @item_color; height: 100%;
            padding-top: 24px;
            width: @col-1;
            float: right; text-align: center;

            &:hover {
                color: @item_selected;
                border-bottom: 3px solid #ccc;
            }
        }
        .ruleDetail_item_overview {
            /* -ctag:
                    "nav_item",
                    "...overview"
            */
            &:extend(
                .ruleDetailNav
                .ruleDetail_headerNav
                .ruleDetail_item all
            );
            body.s_detailTab_overview & {
                color: @item_selected;
                border-bottom: 3px solid #555;
            }
        }
        .ruleDetail_item_css {
            /* -ctag:
                    "nav_item",
                    "...css stub"
            */
            &:extend(
                .ruleDetailNav
                .ruleDetail_headerNav
                .ruleDetail_item all
            );

            body.s_detailTab_css & {
                color: @item_selected;
                border-bottom: 3px solid #555;
            }
        }

        .ruleDetail_item_html {
            /* -ctag:
                    "nav_item",
                    "...html stub"
            */
            &:extend(
                .ruleDetailNav
                .ruleDetail_headerNav
                .ruleDetail_item all
            );

            body.s_detailTab_html & {
                color: @item_selected;
                border-bottom: 3px solid #555;
            }
        }

        .ruleDetail_item_example {
            /* -ctag:
                    "nav_item",
                    "...example"
            */
            &:extend(
                .ruleDetailNav
                .ruleDetail_headerNav
                .ruleDetail_item all
            );
            body.s_detailTab_example & {
                color: @item_selected;
                border-bottom: 3px solid #555;
            }
        }

        .ruleDetail_back {
            /* -ctag:
                    "button",
                    "..."
            */
            width: 70px; height: 100%;
            background-image: url("close.png");
            background-color: #fff;
            &:extend( .hand );
            margin-right: 0px;
            float: right;
            transition: all .2s;

            &:hover {
                background-color: #eee;
            }
        }
    }
}



.ruleHTML {
    -ctag-tag: page;
    -ctag-example: "...{ .ruleDetail_code }";
    &:extend(
        .ruleDetail_contentContainer
        .ruleDetail_content
    );

    z-index: 100;
    background-color: #fff;
    min-height: 100%;
    padding-top: 20px;

    /*@media ( max-width: @screen-lg-min ) {
        .calc( width , 100% , 100px );
    }*/

    .ruleDetail_textarea {
        /*<csstag tag="content">
            <textarea ...>
                <hi>there</hi>
            </textarea>
        </csstag>*/
        width: 100%;
        background-color: #000;
        color: #eee;
        padding: 20px;
        font-family: 'Muli', sans-serif;
    	font-weight: extralight;
        border: 0px;
        resize: none;
    }

    .ruleDetail_code {
        -ctag-tag: content;
        /* -ctag-example: ...
                { .ruleDetail_title }
                { .ruleDetail_pre };" */

        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        padding-bottom: 50px;
        height: 100%;
        overflow: auto;
        // padding: 30px 30px;

        @media ( max-width: @screen-md-min ) {
            width: @col-7;
        }

        .ruleDetail_title {
            /*<csstag tag="code">
                <div ...>
                    Pseudo Selectors
                    { .ruleDetail_titleButton }
                </div>
            </csstag>*/
            width: 100%;
            border-bottom: 1px solid @gray-lighter;
            font-size: 18px;
            color: #333;
            padding-top: 20px;
            margin-bottom: 10px;
            clear: both;
            position: relative;

            .ruleDetail_titleButton {
                /*<csstag tag="button">
                    <div ...>React</div>
                </csstag>*/
                position: absolute;
                right: 0px;
                bottom: 0px;
                font-size: @font-size;
                .hand();
            }
        }

        .ruleDetail_pre {
            -ctag-tag: code;
            /* -ctag-example:
<pre ...>
a [
    color: #f00;
]
</pre>;*/

            width: 100%;
            font-family: "Muli", sans-serif;
            float: left;
            white-space: pre-wrap;       /* CSS 3 */
            white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
            white-space: -pre-wrap;      /* Opera 4-6 */
            white-space: -o-pre-wrap;    /* Opera 7 */
            word-wrap: break-word;       /* Internet Explorer 5.5+ */
        }

        .ruleDetail_subTitle {
            -ctag-tag: code;
            -ctag-example: ...SubTitle;

            color: @text-color-dark;
            font-size: @font-size-lg;
            padding: 6px 0px;
        }

        .ruleDetail_noneFound {
            -ctag-tag: label;
            -ctag-example: ...None Found;

            color: @text-color-lighter;
            font-size: @font-size;
        }

        .ruleDetail_codeLine {
            -ctag-tag: code;
            -ctag-example: "...{ .ruleDetail_variableName }: #fff";

            color: @csstagged-purple;
            font-size: @font-size;

            > pre {
                overflow: auto;
                background-color: #eee;
                border: 0px;
                padding: 10px;
                line-height: 18px;
                font-size: 12px;

                > code {
                    color: @text-color-dark;
                    font-size: @font-size;
                    font-family: 'Muli', sans-serif;
                	font-weight: light;
                    padding: 0px; margin: 0px;
                    -moz-tab-size: 4;

                }

            }

            &.indent {
                padding-left: 20px;
            }

            .ruleDetail_variableName {
                -ctag-tag: code;
                -ctag-example: ...width;

                color: @text-color-dark;
                font-weight: normal;
            }

            .ruleDetail_selectorSpan {
                -ctag-tag: code;
                -ctag-example: ....dog;

                color: @csstagged-blue;
                font-weight: normal;
            }
        }
    }
}


// @import (reference) "../../Shared/shared.less";
// @import (reference) "../RuleDetail.less";

.ruleNesting {
    -ctag-tag: navigation;
    -ctag-example: ...;

    width: 100%; height: 100%;
    background-color: #fff;
    padding: 20px;
    overflow: auto;
    position: relative;
    z-index: 200;
    transition: width .3s;
    border-right: 1px solid #eee;
    display: block;

    

    /*@media ( max-width: @screen-lg-min ) {
        body.s_detailTab_example &,
        body.s_detailTab_css & {
            width: 120px;
            padding: 10px;
        }
    }*/

    .ruleNesting_noChildren {
        /*<csstag tag="text">
            <div ...>no children</div>
        </csstag>*/
        padding-left: 20px;
        padding-top: 6px;
        font-size: 14px;
    }
}


// @import (reference) "../../Shared/shared.less";
// @import (reference) "../RuleDetail.less";

@columnOffset: 330px;

@transitionBase: 0.3s;
@transitionOffset: 0.05s;

.doubleColumnWidth () {
    //.calc( width , 40vw , -40px/5 * 2 );
    .calc( width , 50vw , -@columnOffset/2 );
}
.columnWidth () {
    //.calc( width , 20vw , -20px/5 * 2 );
    .calc( width , 25vw , -@columnOffset/4 );
}
.columnWidthLeft () {
    //.calc( left , 20vw , -20px/5 * 2 );
    .calc( left , 25vw , -@columnOffset/4 );
}

.ruleNesting .ruleNestingColumn {
    /*<csstag
        tag="column,recursive">

    </csstag>*/
    .doubleColumnWidth();
    float: left;
    font-size: 12px;
    position: relative;
    transition: width ( @transitionBase );

    &.no_children {
        .columnWidth();

        .ruleNestingColumn_children {
            display: none;
        }
    }

    &.first_one {
        .columnWidth();
    }

    body.s_detailTab &
    {
        // width: 40px;
        .calc( width , 100% , 0px );

        &.first_one {
            // width: 20px;
            .calc( width , 100% , -30px );
        }

        .ruleNesting_titleText {
            // display: none;
            white-space: nowrap;
            overflow: hidden;
        }
        .ruleNestingColumn_title {
            // width: 20px;
            .calc( width , 100% , 0px );
            transition: width ( -@transitionOffset + @transitionBase );
        }
        .ruleNestingColumn_children {
            // width: 20px;
            .calc( width , 100% , -20px );
            clear: left;
            transition: width ( -@transitionOffset + @transitionBase );

            &.first_one {
                .calc( width , 100% , -0px );
            }
        }
        .ruleNestingColumn_stackedLine {
            left: 20px; top: 30px;
            //.calc( left , 100% , -20px );

            &.first_one {
                left: 0px;
                top: 0px;
            }
        }

        .ruleNestingColumn_stackedLine {
            display: block;
        }
        .ruleNestingColumn_line {
            display: none;
        }

        .ruleNestingColumn_lineCover {
            display: none;
        }
    }


    .ruleNestingColumn_stackedLine,
    .ruleNestingColumn_line {
        /*<csstag tag="line, graphic">
            <div ... style="height: 100px;"></div>
        </csstag>*/
        width: 1px;
        position: absolute;
        .columnWidthLeft();
        // top: 6px;
        top: 0px;
        background-color: #eee;
        transition: left ( @transitionBase );

        &.first_one {
            left: -1px;
        }
    }

    .ruleNestingColumn_stackedLine {
        display: none;
    }

    .ruleNestingColumn_lineCover {
        width: 5px; height: 6px;
        background-color: #fff;
        position: absolute;
        .columnWidthLeft();
        top: 0px;
    }

    .ruleNestingColumn_title {
        /*<csstag tag="title">
            <div ...>rule_name</div>
        </csstag>*/
        .columnWidth();
        float: left; clear: left;
        height: 30px;
        border-bottom: 1px solid #eee;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
        position: relative;
        overflow: hidden;
        &:extend( .hand );
        transition: width ( @transitionOffset + @transitionBase );
        color: #999;

        &:hover {
            background-color: #ddd;
            color: #222;
        }

        &.selected {
            background-color: #eee;
            color: #000;
        }

        .ruleNesting_titleText {

        }

        .ruleNesting_typeIcon {
            right: 4px; top: 0px;
            width: 20px; height: 30px;
            position: absolute;
            // background-color: #fff;
            left: auto;
            &:hover {
                // background-color: #eee;
            }
        }
    }
    .ruleNestingColumn_children {
        /*<csstag tag="list">
        </csstag>*/
        .columnWidth();
        float: right; clear: right;
        transition: width ( @transitionOffset + @transitionBase );
    }
}


.ruleOverview {
    /*<csstag tag="page">
        <div ... style="display: block;"></div>
    </csstag>*/
    &:extend(
        .ruleDetail_contentContainer
        .ruleDetail_content
    );
    z-index: 100;

    body.s_detailTab_overview & {
        display: block;
    }

    /*@media ( max-width: @screen-lg-min ) {
        .calc( width , 100% , -100px );
    }*/

    .ruleOverview_context {
        /*<csstag
            tag="row">
        </csstag>*/
        padding: 30px;
        .calc( height , 100% , -30px );
        width: 100%;
        float: left;
        overflow: auto;

        .ruleOverview_subName {
            /*<csstag
                tag="text">
            </csstag>*/
            float: left; clear: left;
            height: 30px; width: 100%;
            padding-top: 8px;
            font-size: 16px;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            &:extend( .hand );
            &:hover {
                background-color: #eee;
            }
        }

        .ruleOverview_stateSubName {
            &:extend(
                .ruleOverview
                .ruleOverview_context
                .ruleOverview_subName
            );

            .unhand();
            &:hover {
                background-color: none;
            }
        }

        .ruleOverview_subTitle {
            /*<csstag
                tag="title,text">
            </csstag>*/
            &:extend(
                .ruleOverview
                .ruleOverview_context
                .ruleOverview_subName
            );

            // border-bottom: 1px solid #eee;
            margin-top: 8px;
            padding-top: 0px;
            font-size: 16px;
            color: #999;
            padding-left: 0px;
            border-bottom: 1px solid #eee;
        }

    }
}


// @import (reference) "../../Shared/shared.less";
// @import (reference) "../RuleDetail.less";

.rulePreview {
    -ctag-tag: page;
    -ctag-example: "...{ .rulePreview_stage }{ .rulePreview_nav }";
    /* -ctag-description:
            This is a description that is long, so needs
            a commented version.
    */

    &:extend(
        .ruleDetail_contentContainer
        .ruleDetail_content
    );
    z-index: 300;

    /*@media ( max-width: @screen-lg-min ) {
        .calc( width , 100% , -120px );
    }*/

    .rulePreview_stage {
        -ctag-tags: page,rulePreview;
        -ctag-example: "...{ .rulePreview_iframe }";

        width: 100%;
        .calc( height , 100% , -40px );
        background-color: #fff;
        position: absolute;
        left: 0px; top: 0px;

        .rulePreview_iframe {
            -ctag-tags: page,rulePreview;
            -ctag-example: "<iframe style='border:none;' ...></iframe>";

            width: 100%; height: 100%;
            background-color: #eee;
        }
    }

    .rulePreview_nav {
        -ctag-tag: navigation;
        /* -ctag-example:
                ...{ .rulePreview_navLabel }
                    { .rulePreview_state }
                    { .rulePreview_stateApplied }
                    { .rulePreview_toggleBGColor }
                    { .rulePreview_outline }
        */

        position: absolute;
        width: 100%; height: 40px;
        background-color: #fff;
        border-top: 0px solid #eee;
        left: 0px; bottom: 0px;
        box-shadow: 0px -3px 3px 0px rgba( 0,0,0,.05);
        z-index: 1000;

        /*@media ( max-width: @screen-lg-min ) {
            width: 119px; left: -120px;
        }*/

        .rulePreview_navLabel {
            -ctag-tag: "label";
            -ctag-example: "...states";

            height: 40px;
            float: left;
            text-align: center;
            font-size: 12px;
            padding: 10px 10px;
        }

        .rulePreview_navItem {
            -ctag-tag: "button";
            -ctag-example: "...";

            width: 80px; height: 100%;
            margin-right: 1px;
            margin-top: 0px;
            float: right;
            text-align: center;
            font-size: 12px;
            padding-top: 14px;


            .handover();
            //&:hover {
            //    background-color: #eee;
            //}
        }

        .rulePreview_state {
            -ctag-tag: "button";
            -ctag-example: "...1";
            &:extend(
                .rulePreview
                .rulePreview_nav
                .rulePreview_navItem all
            );

            float: left;
            min-width: 40px;
            //max-width: 100px;
            overflow: hidden;
            white-space: nowrap;
            width: auto;
            padding-left: 8px;
            padding-right: 8px;

            &.selected {
                background-color: #777;
                color: #fff;
            }
        }

        .rulePreview_stateApplied {
            -ctag-tag: "label";
            -ctag-example: "....myAppliedState";

            padding: 10px;
            font-size: 12px;
            float: left;
        }

        .rulePreview_toggleBGColor {
            -ctag-tag: "button";
            -ctag-example: "...";
            &:extend(
                .rulePreview
                .rulePreview_nav
                .rulePreview_navItem all
            );

            margin-right: 10px;
            background-color: #fff;
            // background-image: url("bg_color_icon.png");
            &:hover {
                // background-image: url("bg_color_icon_dark.png");
            }

            &.selected {
                background-color: #777;
                // background-image: url("bg_color_icon_dark.png");

                &:hover {
                    background-color: #aaa;
                }
            }
        }

        .rulePreview_outline {
            -ctag-tag: "button";
            -ctag-example: "...";

            &:extend(
                .rulePreview
                .rulePreview_nav
                .rulePreview_navItem all
            );
            // background-image: url("outline_icon.png");
            &:hover {
                // background-image: url("outline_icon_dark.png");
            }

            &.selected {
                background-color: #777;
                // background-image: url("outline_icon_dark.png");

                &:hover {
                    background-color: #aaa;
                }
            }
        }

        .rulePreview_html {
            -ctag-tag: "button";
            -ctag-example: "...";
            &:extend(
                .rulePreview
                .rulePreview_nav
                .rulePreview_navItem all
            );

            background-color: #fff;
            // background-image: url("html_icon.png");
            &:hover {
                // background-image: url("html_icon_dark.png");
            }
        }
    }

}



@phi : 161.80339%;
@phi_inv : 61.80339%;


.Cmod-StyleGuide {
    width: 100%; height: 100%;
    background-color: #fff;

    font-family: sans-serif;
    color: #333;


    &__mainNav {
        position: absolute;
        top: 0px; left: 0px;
        height: 60px; width: 100%;
        background-color: #fff;
        padding-left: 10%;
        box-shadow: -1px 3px 3px 0px rgba( 0,0,0,.05);
        // border-bottom: 1px solid #ddd;

        h1 {
            float: left;
            line-height: 64px;
            font-weight: 300;
            font-size: 22px;
            color: #555;
            padding: 0px; margin: 0px;
        }

        /*&__filler {
            display: table-cell;
            position: relative;
            // background-color: #fff;
            height: 60px; width: 40000px;
            // border-bottom: 1px solid #ddd;
            // box-shadow: -1px 3px 3px 0px rgba( 0,0,0,.05);
            z-index: 300;

            h1 {
                float: left;
                line-height: 64px;
                font-weight: 300;
                font-size: 20px;
                color: #555;
                padding: 0px; margin: 0px;
                padding-left: 30px;
            }
        }

        &__link {
            width: 200px; height: 100%;
            position: relative;
            float: right;
            color: #777;
            font-size: 16px;
            background-color: #fff;
            text-align: center;
            border-left: 1px solid #eee;
            // border-bottom: 1px solid #fff;
            z-index: 200;

            .hand();
            display: flex;
            justify-content: center;
            & > div {
                align-self: center;
            }

            &:hover {
                // background-color: #ddd;
                color: #000 !important;
            }

            &.core {
            }
            &.component {
                background-color: #eee;
                // color: #aaa;
                // border-bottom: 1px solid #ddd;
                // box-shadow: 0px 3px 3px 0px rgba( 0,0,0,.05 );
            }
            body.s_page_comps &.component {
                background-color: #fff;
                // border-bottom: 1px solid #fff;

                box-shadow: none;
                z-index: 50;
            }
            body.s_page_comps &.core {
                background-color: #eee;
                // border-bottom: 1px solid #ddd;
                // box-shadow: 0px 3px 3px 0px rgba( 0,0,0,.05);
                z-index: 100;
            }
        }*/
    }
    &__content {
        position: absolute;
        top: 60px; left: 0px;
        height: calc( 100% ~'-' 60px ); width: 100%;
        overflow: auto;
        padding: 30px 0px;

    }

    &__group {
        width: 80%;
        margin: 0px auto;
        clear: both;
        margin-bottom: 30px;
        .clearfix;

        &__title {
            width: 100%;
            font-size: 20px;
            color: #555;
            padding-bottom: 0px;
            margin-bottom: 0px;
            padding-top: 20px;
            // border-bottom: 2px solid #eee;
            //.interactive;
        }
    }

    &__column {
        width: calc( 50% ~'-' 10px );
        float: left;

        &__header {
            width: 100%;
            float: left;
            font-size: 14px;
            color: #999;
            padding-bottom: 10px;
            margin-top: 20px;
            border-bottom: 1px solid #eee;
        }

        &__subHeader {
            width: 100%;
            float: left;
            font-size: 14px;
            color: #999;
            padding-bottom: 8px;
            margin-top: 20px;
            border-bottom: 1px solid #eee;
        }

        &__item {
            width: 100%;
            float: left;
            color: #777;
            font-size: 13px;
            padding: 6px 0px;

            .interactive;
            .singleLine;

            &__text {
                float: left;
            }

            & em {
                font-style: normal;
                font-weight: 400;
                color: #333;
            }


        }
    }
}




.c-styleGuideComps {


    &__group {
        width: 80%;
        margin: 0px auto;
        clear: both;
        margin-bottom: 30px;
        .clearfix;

        &__title {
            width: 100%;
            font-size: 24px;
            color: #777;
            padding-bottom: 16px;
            padding-left: 4px; // doesn't line up with circles
            margin-bottom: 0px;
            padding-top: 20px;
            // border-bottom: 2px solid #eee;
            //.interactive;
        }
    }


    &__componentGroup {
        width: 50%;//@phi_inv/2;
        float: left; clear: left;
        // margin-left: ( 100% - @phi_inv ) /2;
        margin-bottom: 30px;
    }
    &__objectGroup {
        width: 50%;//@phi_inv/2;
        float: right; clear: right;
        // margin-right: ( 100% - @phi_inv ) /2;
        margin-bottom: 30px;
    }

    @componentHeight: 34px;
    &__component {
        width: 100%; height: @componentHeight;
        font-size: 16px;
        line-height: @componentHeight;
        float: left;
        position: relative;
        .interactive;

        &__typeIcon {
            position: relative;
            width: 20px; height: @componentHeight;
            float: left;
        }
    }


    &__key {
        position: fixed;
        bottom: 0px; right: 20px;
        width: 100px; height: 100px;

        &__item {
            font-size: 12px;
            line-height: 30px;
            color: #999;
        }

        &__typeIcon {
            position: relative;
            width: 20px; height: 30px;
            float: left;
        }
    }

}




.c-variableDetail {
    display: none;
    width: 100%; height: 100%;
    background-color: #fff;
    position: fixed;
    top: 0px; left: 0px;
    z-index: 100000;

    body.s_type_variable &
    {
        display: block;
    }

    &__varStr {
        line-height: 20px;
        margin: 40px; padding: 10px 20px;
        background-color: #eee;
        height: calc( 100% ~'-' 80px );
        overflow: auto;
    }

    &__close {
        .interactive;
        width: 40px;
        padding: 10px 0px;
        height: 40px;
        font-size: 20px;
        color: #888;
        text-align: center;
        position: absolute;
        top: 0px; right: 0px;

        &:hover {
            color: #000;
        }
    }

}



html {
    width: 100%; height: 100%;
    padding: 0px; margin: 0px;
    overflow: hidden;
}

body {
    width: 100%; height: 100%;
    padding: 0px; margin: 0px;
    overflow: hidden;
    font-weight: 300;
    font-family: sans-serif;
}


* {
    box-sizing: border-box;
}


// VARS

@gray-darkest : #000;
@gray-darker : #333;
@gray-dark : #555;
@gray : #777;
@gray-light : #999;
@gray-lighter : #ccc;
@gray-lightest : #eee;

@csstagged-tagged-rule-color : #79E1DA;
@csstagged-simple-rule-color : #FFE29B;
@csstagged-error-color : #FF8990;

@col-0: 0;
@col-1: 8.33333vw;
@col-2: @col-1 * 2;
@col-3: @col-1 * 3;
@col-4: @col-1 * 4;
@col-5: @col-1 * 5;
@col-6: @col-1 * 6;
@col-7: @col-1 * 7;
@col-8: @col-1 * 8;
@col-9: @col-1 * 9;
@col-10: @col-1 * 10;
@col-11: @col-1 * 11;
@col-12: @col-1 * 12;

// Extra small screen / phone
@screen-xs:                  480px;

// Small screen / tablet
@screen-sm-min:              768px;

// Medium screen / desktop
@screen-md-min:              992px;

// Large screen / wide desktop
@screen-lg-min:              1200px;

// So media queries don't overlap when required, provide a maximum
@screen-xs-max:              (@screen-sm-min - 1);
@screen-sm-max:              (@screen-md-min - 1);
@screen-md-max:              (@screen-lg-min - 1);

@font-size-xxlg: 22px;
@font-size-xlg: 18px;
@font-size-lg: 16px;
@font-size: 14px;
@font-size-sm: 12px;
@font-size-xsm: 10px;
@font-size-xxsm: 10px;

@text-color-darkest : #000;
@text-color-darker : #111;
@text-color-dark : #333;
@text-color : #555;
@text-color-light : #777;
@text-color-lighter : #999;
@text-color-lightest : #999;

@csstagged-purple : #7061AB;
@csstagged-blue : #3B8182;


// ATOMS
.float-right {
    float: right;
}


.width-col-0 { width: @col-0; }
.width-col-1 { width: @col-1; }
.width-col-2 { width: @col-2; }
.width-col-3 { width: @col-3; }
.width-col-4 { width: @col-4; }
.width-col-5 { width: @col-5; }
.width-col-6 { width: @col-6; }
.width-col-7 { width: @col-7; }
.width-col-8 { width: @col-8; }
.width-col-9 { width: @col-9; }
.width-col-10 { width: @col-10; }
.width-col-11 { width: @col-11; }
.width-col-12 { width: @col-12; }


// UTILS
.clearfix {
    &:before,
    &:after {
        content: " ";
        display: table;
        clear: both;
    }
}

.interactive {
    cursor: hand;
    cursor: pointer;

    &:hover {
        background-color: #eee;
    }
}

.singleLine {
    white-space: nowrap;
    overflow: hidden;
}

.hand {
	-ctag-tags: base,button;
	-ctag-example: ...Label;
	-ctag-description: "Gives any element a hand rollover...and turns off text selection";

	cursor: pointer;
	cursor: hand;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.handover {
	-ctag-tags: base,button;
	-ctag-example: ...Label;
	-ctag-description: "Gives any element a hand rollover...and turns off text selection";

	._handover();
}


.unhand {
	-ctag-tags: base,button;
	-ctag-example: ...Label;
	-ctag-description: "Counteracts the effects of 'hand'";

	cursor: default;
}


/*
Mixin's
*/
.calc ( @prop , @percent: 100%  , @diff: 0px ) {
	@{prop} : calc( @percent ~'+' @diff );
}

.center ( @prop , @container , @child ) {
    @{prop}: ( @container/2 - @child/2 );
}

._handover ( @bg-color: #eee ) {
	.hand();

	&:hover {
		background-color: @bg-color;
	}
}

.ctag-tag( @tags ) {
    -ctag-tags: @tags;
}
.ctag-tags( @tags ) {
    .ctag-tag( @tags );
}
.ctag-use-on-all-examples() {
    -ctag-global: "true";
}
.ctag-ignore( @ignore ) {
    -ctag-ignore: @ignore;
}

.ctag-example( @example ) when ( isstring( @example ) ) {
    -ctag-example: @example;
}

.ctag-description ( @description ) when ( isstring( @description ) ) {
    -ctag-description: @description;
}


.ctag(
    @tags ,
    @example : false ,
    @description : false
) {
    .ctag-tags( @tags );
    .ctag-example( @example );
    .ctag-description ( @description );
}


.typeIcon {
	/*<csstag tag="visualization">
		<div ...>
			{ .tagged_incomplete_icon }
			{ .extendedIcon }
		</div>
	</csstag>*/
	width: 16px; height: 16px;
	position: absolute;
	left: 50%; top: 50%;
	margin-top: -8px;
	margin-left: -8px;

	.extendedIcon {
		/*<csstag tag="visualization">
			<div ...>
				{ .extendedIcon_content }
			</div>
		</csstag>*/
		width: 100%; height: 50%;
		position: absolute;
		left: 0px; top: 50%;
		overflow: hidden;

		.extendedIcon_content {
			/*<csstag tag="visualization">
				<div ...></div>
			</csstag>*/
			width: 100%; height: 200%;
			border-radius: 50%;
			position: absolute;
			top: -100%; left: 0px;
			border: 3px solid #111;
		}
	}

	.extendeeIcon {
		/*<csstag tag="visualization">
			<div ...>
				{ .extendeeIcon_content }
			</div>
		</csstag>*/
		width: 100%; height: 50%;
		position: absolute;
		left: 0px; top: 0px;
		overflow: hidden;

		.extendeeIcon_content {
			/*<csstag tag="visualization">
				<div ...></div>
			</csstag>*/
			width: 100%; height: 200%;
			border-radius: 50%;
			position: absolute;
			top: 0px; left: 0px;
			border: 3px solid #ccc;
		}
	}

	.type_icon {
		/*<csstag tag="visualization">
			<div ...></div>
		</csstag>*/
		width: 6px; height: 6px;
		border-radius: 50%;
		position: absolute;
		left: 5px; top: 5px;
	    background-color: #000;
	}

	.tagged_icon {
		-ctag-tag: "visualization";
		-ctag-example: "...";

		&:extend(
			.typeIcon
			.type_icon
		);
		background-color: @csstagged-tagged-rule-color;

		&.on {
			width: 300px;
		}
	}

	.tagged_incomplete_icon {
		-ctag-tag: "visualization";
		-ctag-example: "...";

		&:extend(
			.typeIcon
			.type_icon
		);

		border: 1px solid @csstagged-tagged-rule-color;
	    background-color: transparent;

		&.wide {
			width: 400px;
		}
	}

	.rule_icon {
		-ctag-tag: "visualization";
		-ctag-example: "...";

		&:extend(
			.typeIcon
			.type_icon
		);
		background-color: @csstagged-simple-rule-color;
	}

	.dup_icon {
		-ctag-tag: "visualization";
		-ctag-example: "...";

		&:extend(
			.typeIcon
			.type_icon
		);
		background-color: @csstagged-error-color;
	}
}

/**
 * gemini-scrollbar
 * @version 1.2.9
 * @link http://noeldelgado.github.io/gemini-scrollbar/
 * @license MIT
 */

/* @helper: used to measure the scrollbar width on a temporal element */
.gm-test {
  width: 100px;
  height: 100px;
  position: absolute;
  top: -9999px;
  overflow: scroll;
  -ms-overflow-style: scrollbar;
}

/* disable selection while dragging */
.gm-scrollbar-disable-selection {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* fallback for native floating scrollbars */
.gm-prevented {
  -webkit-overflow-scrolling: touch;
}
.gm-prevented .gm-scrollbar {
  display: none;
}


/* actual gemini-scrollbar styles */
.gm-scrollbar-container {
  position: relative;
  overflow: hidden!important;
  width: 100%;
  height: 100%;
}

.gm-scrollbar {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 1;
  border-radius: 3px;
}

.gm-scrollbar.-vertical {
  width: 6px;
  top: 2px;
}

.gm-scrollbar.-horizontal {
  height: 6px;
  left: 2px;
}

.gm-scrollbar .thumb {
  position: relative;
  display: block;
  width: 0;
  height: 0;
  cursor: pointer;
  border-radius: inherit;
  background-color: rgba(0,0,0,.2);
}

.gm-scrollbar .thumb:hover,
.gm-scrollbar .thumb:active {
  background-color: rgba(0,0,0,.3);
}

.gm-scrollbar.-vertical .thumb {
  width: 100%;
}

.gm-scrollbar.-horizontal .thumb {
  height: 100%;
}

.gm-scrollbar-container .gm-scroll-view {
  width: 100%;
  height: 100%;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
}

/* @option: autoshow */
.gm-scrollbar-container.gm-autoshow .gm-scrollbar {
  opacity: 0;
  transition: opacity 120ms ease-out;
}
.gm-scrollbar-container.gm-autoshow:hover .gm-scrollbar,
.gm-scrollbar-container.gm-autoshow:focus .gm-scrollbar {
  opacity: 1;
  transition: opacity 340ms ease-out;
}
