/* Styleguide rules */
xmp {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 5px;
    max-height: 100px;
    overflow: auto;
}

.stg-menu {
    position: fixed;
    top: 166px;
    left: 50px;
    width: 270px;
    padding: 20px;
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,.1);
    max-height: 445px;
    overflow: auto;
}

.stg-menu  ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stg-menu li:not(:last-child) {
    margin-bottom: 7px;
}

.stg-menu li ul {
    padding: 10px 0 10px 20px;
}

.stg-menu a {
    text-decoration: none;
    color: #9e9e9e;
    font-size: 15px;
}

.stg-code {
    display: block;
    padding: 5px;
    width: 100%;
    font-family: 'Courier', sans-serif;
    background: #232125;
    color: #FF8400;
    border: 0;
    font-size: 14px;
    min-height: 150px;
}

.stg-main-title {
    margin: 0 0 20px;
    font-size: 40px;
}

.stg-sub-title {
    margin: 0 0 10px;
    font-size: 26px;
}

.stg-wrap hr {
    border-style: dashed;
    border-bottom: 0;
    margin: 20px 0;
    border-color: #cacaca;
}

.stg-wrap {
    padding: 30px 30px 30px 400px;
}

.stg-pattern {
    max-width: 1240px;
    padding: 30px 0;
}

.stg-front {
    display: inline-block;
    width: 60%;
    padding-right: 30px;
    vertical-align: top;
}

.stg-markup {
    display: inline-block;
    vertical-align: top;
    width: 38%;
}

.stg-head {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.stg-tag {
    color: #aa1111;
}

.stg-c-box {
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.stg-c-desc {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
}

.stg-c-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stg-c-list li {
    display: inline-block;
    vertical-align: top;
    margin: 0 25px 15px 0;
}

.stg-comment {
    background: #e9e9e9;
    padding: 5px 10px;
    font-style: italic;
    color: #727272;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.stg-icons {
    font-size: 30px;
}

.stg-icons .stg-code {
    font-size: 14px;
    display: inline-block;
    min-height: 0;
    width: auto;
}

.stg-wrap {
    select,
    input[type='text'],
    input[type='tel'],
    input[type='email'],
    input[type='search'],
    input[type='password'],
    input[type='url'],
    input[type='date'],
    textarea {
        width: 100%;
    }
}

.stg-list {
    display: inline-block;
    margin-right: 50px !important;
}

.stg-list li {
    margin-bottom: 5px;
    padding: 0;
}

.stg-n-list {
    list-style: decimal;
    margin: 0;
    padding: 0 0 0 20px;
    display: inline-block
}

.stg-n-list li {
    margin-bottom: 5px;
    padding: 0;
}

.stg-error {
    color: $cr-brand-secondary;
    margin: 5px 0 0;
    font-size: 12px;
}

.note {
    margin-bottom: 2em;
    padding: 1em;
    font-size: 14px;
    position: relative;
    &:after {
        content: '';
        position: absolute;
        height: 2px;
        width: 50px;
        bottom: 0;
        left: 0;
    }
    &--success {
        &:after {
            background-color: $accent-color;
        }
    }
    &--error {
        &:after {
            background-color: $cr-brand-secondary;
        }
    }
    &--warning {
        &:after {
            background-color: $cr-brand-primary;
        }
    }
}

.stg-tabs-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.stg-tabs-list li {
    display: inline-block;
    margin: 0 5px 0 0;
}

.stg-tabs-list label {
    cursor: pointer;
    display: block;
    padding: 5px;
    background: #ccc;
}

.stg-tabs-content div {
    display: none;
    padding: 15px;
    border: 1px solid #ccc;
    background: #fff;
}

.stg-tabs-content input:checked + div {
    display: block;
}

.stg-tabs-content input {
    opacity: 0;
    position: absolute;
}

.stg-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stg-social li {
    display: inline-block;
    margin-right: 20px;
}

.stg-social a {
    text-decoration: none;
    font-size: 25px;
}
