/*
 *  (c) 2000-2017 deviantART, Inc. All rights reserved.
 */
/* @@include cssms/lib/mixins/css3.css */
/* Override typical margin below facet */
.browse-facet.browse-facet-browse-links {
    margin-bottom: 0;
}

.browse-left-bar .mlt-preview {
    border: none;
    padding: 5px 3px 3px;
    height: 66px;
    width: 150px;
    overflow:hidden;
    cursor: pointer;
    margin-bottom: 12px;
    position:relative;
    border-radius: 5px;
    border: 1px solid transparent;
}

.browse-left-bar .preview-container {
    width:150px;
    height:50px;
    overflow:hidden;
    position:static;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.browse-left-bar .mlt-preview .preview-title {
    padding-bottom: 5px;
    font-size:11px;
    line-height:11px;
    color: #247FC3;
}

.browse-left-bar .mlt-preview.active .preview-title,
.browse-left-bar .mlt-preview:not(.active):hover .preview-title {
    background: url("/portal/icon-dna.png") no-repeat scroll 0 -1px;
    padding-left: 14px;
}

.browse-left-bar .mlt-preview.active {
    cursor: default;
    background-color: #E18D43;
    border: 1px solid #D6833E;
}
.browse-left-bar .mlt-preview.active .preview-title {
    font-weight: bold;
}

.browse-left-bar .mlt-preview:not(.active):hover {
    background-color: #348aa1;
    border: 1px solid #348aa1;
}

.browse-left-bar .mlt-preview.active .preview-title,
.browse-left-bar .mlt-preview:hover .preview-title {
    color: #EAEDE8;
    position: relative;
    z-index: 15;
}

.browse-left-bar .mlt-preview .tt-a {
    float:left;
}

.browse-left-bar .mlt-preview span.shadow {
    padding:0;
    display: inline;
}

.browse-left-bar .deviations-preview .tt-a {
    width: 50px;
    height: 50px;
    overflow: hidden;
}
.browse-left-bar .deviations-preview .tt-a .tt-w .thumb {
    width: 49px;
    height: auto;
}

.browse-left-bar .deviations-preview .tt-a.super-wi .tt-w .thumb {
    width: auto;
    height: 49px;
}

.browse-left-bar .artists-preview img {
    width: 25px;
    height: 25px;
    margin-bottom: -3px;
}

.browse-left-bar .collections-preview-contain .collections-preview-restrictor {
    width: 9999px;
    overflow:hidden;
}

.browse-left-bar .collections-preview .tt-a,
.browse-left-bar .collections-preview .tt-a .tt-w,
.browse-left-bar .collections-preview .tt-a .tt-w img,
.browse-left-bar .collections-preview .tt-a .tt-w .thumb,
.browse-left-bar .collections-preview .tt-a .tt-w .lit  {
    width: 50px;
    height: 50px;
    box-shadow:-3px 0px 4px rgba(50, 50, 50, 0.5);
    position: relative; /* needed to stop mature/storage thumbs from overlapping */
}

.browse-left-bar .collections-preview .collections-preview-contain .tt-a:not(:first-child) {
    margin-left: -33px;
    box-shadow:0 0 6px #888;
}

.browse-left-bar .collections-preview .tt-a a.instorage {
    max-width: 50px;
    max-height: 50px;
}

/* @@include cssms/lib/mixins/css3.css */
.artist-container,
.artist-container-full {
    position:relative;
    background-color: #e2ebdf;
    margin: 8px 5px 19px 5px;
    overflow:hidden;
    border: 1px solid rgba(188, 192, 183, 1.0);
    border-bottom: 2px solid rgba(188, 192, 183, 1.0);
    border-radius: 8px;
    padding-bottom: 5px;

    .artist-info .artist-icon {
        float: left;
        width: 50px;
        height: 50px;
    }

    .artist-info {
        padding: 9px;
        position:relative;
        border-top: 1px solid #f7faf6;
        height: 50px;
        border-radius: 4px;
    
        text-decoration: none;
        font-size: 13px;
        font-family: Verdana, sans-serif;
        color: rgba(115, 132, 101, 1.0);

        a {
            color: rgba(115, 132, 101, 1.0);
        }
        a:hover {
            text-decoration: none;
            color: rgba(71, 112, 133, 1.0);
        }
        img {
            width: 50px;
            height: 50px;
        }
    }
    .artist-username {
        margin: 2px 0;
        font-size: 20px;
    }
    .artist-username a {
        line-height: 50px;
        font-weight: bold;
        color: rgba(68, 127, 172, 1.0);
    }

    .artist-username .user-symbol {
        font-size: 70%;
        vertical-align: inherit;
    }
    
    .artist-info .artist-details {
        float: left;
        margin-left: 6px;
    }
    .artist-actions {
        margin-top: 10px;
        margin-right: 10px;

        .artist-devwatch a, .artist-view-link a {
            float: right;
            font-size: 12px;
            margin-left: 12px;
            height: 26px;
            line-height: 26px;
            padding: 0 10px;
            font-weight: bold;
            color: #337287;
            text-shadow: 0px 1px 0px #ffffff;
            box-shadow: inset 0px 1px 0px #fcfdfc;
            .linear-gradient(#e5ece3, #d9e4d7);
            border: 1px solid #9cad9c;
            border-radius: 4px;
            position: relative;

            i.icon {
                background-image: url(/minish/gruzecontrol/icons-gruser.gif?38);
                left: 6px;
                top: 2px;
            }
        }
        .artist-devwatch a {
            padding-left: 31px;

            &.green {
                color: #435f13;
                text-shadow: 0px 1px 0px #eaf2ee;
                border-color: #8bb542;
                box-shadow: 0px 1px 0px #dff581;
                .linear-gradient(#e8fb93, #c2ed6d);
            }
        }
    }

    .artist-devwatch .grbubbletip.watcher {
        display: none;
    }

    .artist-divider {
        border-top: 1px solid #cddacd;
        border-bottom: 1px solid #f4f7f2;
        margin-left: 9px;
        margin-right: 9px;
    }

    .artist-deviations {
        height: 263px;
        overflow: hidden;
    }
    .artist-deviations.torpedo {
        height: auto;
        min-height: 263px;
    }
    .artist-deviations-full {
        padding-top: 10px;
    }

    /* Overrides */
    .shadow>a.thumb>img:not(.lit) {
        box-shadow:none;
    }

    .mini-show-more {
        padding: 0px;
        height: auto;
        margin-top: 5px;
        margin-bottom: 8px;
    }
    .mini-show-more .mini-show-more-link {
        font-size: 11px;

        padding: 4px 20px;
        color: rgba(115, 132, 101, 1.0);
        text-shadow: 0 1px 0 #fff;
        font-weight: bold;
        border-radius: 2px;
        text-decoration: none;
        border-bottom: 1px solid #a2b19c;
        background: rgba(243, 247, 240, 1.0);
    }

    div.stream div.tt-a span.tt-w {
        margin: 6px 0px 0px 0px;
    }

    div.stream div.tt-fh {
        margin-left: 9px;
        margin-right: 9px;
        margin-bottom: 7px;
    }

    .tt-w {
        max-width: 280px;
    }

    .tt-a a.t {
        padding: 0px;
    }
    .tt-fh .category, .tt-fh .details {
        margin: 0px;
    }
}

/** collections **/
.collection-container-inner {
    border-radius: 6px;
    border: 1px solid #b3c0ae;
}
.collection-container,
.collection-container-full {
    margin: 8px 5px 32px 5px;
    background: #c5d1bf;

    border-radius: 6px;
    border-bottom: 1px solid #e7ede4;
}
.collection-container .deviations {
    padding: 10px 5px 0 5px;
    min-height: 235px;
    overflow:hidden;
    
    border-top: 2px solid #b3c0ae;
}

.collection-container .deviations.torpedo-container {
    height: auto;
    min-height: 235px;
}

.collection-container-full .deviations {
    padding-top: 20px;
}
.collection-info {
    padding: 0 13px;
    height: 36px;
    color: #636c64;
    background: url(/morelikethis/collection_info_bg.png) repeat-x;
    border: 1px solid #e7ede4;

    font-family: "Trebuchet MS",Arial,Helvetica,sans-serif;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    text-overflow: ellipsis;
    white-space:nowrap;
    z-index: 100; /* T1451 */
}
.collection-info a {
    font-weight: bold;
    color: #1d70a4;
}
.collection-name {
    display:inline-block;
    line-height: 36px;
    font-size: 20px;
    padding-right: 15px;
}
.collection-owner {
    display:inline-block;
    font-size: 11px;
    line-height: 11px;
}
.owner-details {
    display: inline-block;
    position:relative;
    top: 3px;
    padding-left: 3px;
}
.owner-details a {
    line-height: 14px;
    font-size: 13px;
}
.collection-owner img {
    height: 25px;
    position:relative;
    top: -4px;
    vertical-align: middle;
}
.collection-show-more {
    padding-bottom: 20px;
}

/* hide details of thumbs we difi in, but not the mlt-links */
.collections-row-results .collection-container .deviations .details .t,
.collections-row-results .collection-container .deviations .details .category,
.collections-row-results .collection-container .deviations .details .commentcount {
    display:none;
}

/**
 * @@require cssms/pages/browselikethis/browselikethis.mlt.artists.css
 * @@require cssms/pages/browselikethis/browselikethis.mlt.collections.css
 */

/** large seed **/
#browse-results div.mlt-seed-container {
    display:inline-block;
    position:relative;
    margin: 8px 0;
    text-align: left;
    padding: 0;
}
#browse-results div.mlt-seed-content {
    display:inline-block;
}

#browse-results div.mlt-seed-container div.tt-a {
    display: inline;
    zoom: 1;
}
/* collapsing margins like a boss */
#browse-results div.mlt-seed-container div.tt-fh {
    margin: 0;
}
#browse-results div.mlt-seed-container div.tt-a span.tt-w {
    display: table-cell;
    display: inline-block;
    vertical-align: top;
    margin: 0;
}
#browse-results div.mlt-seed-container div.tt-a span.details {
    display:none;
}
#browse-results div.mlt-seed-container div.tt-a span.shadow,
#browse-results div.mlt-seed-container .mlt-seed-border-lit div.tt-a.tt-boxed span.shadow {
    height:200px;
}
#browse-results .mlt-seed-container div.tt-a span.tt-w span.shadow {
    width: 205px;
    padding: 0;
    vertical-align: middle;
    display: inline-block;
    display: table-cell;
}
#browse-results div.mlt-seed-container div.tt-a.tt-boxed span.shadow {
    /* Need this because images that are narrower than 290px get tt-boxed too but screw up
       if height is 200px. Wish there was a good way to differentiate */
    height:204px;
}
#browse-results div.mlt-seed-container div.tt-a span.shadow img {
    vertical-align: middle;
    margin-left: 1px; /* tt-w has inline width set by thumb code to 2 px wider than image so we us it for padding rather than fall back to !important */
}
#browse-results div.mlt-seed-container div.tt-a span.shadow img.lit,
#browse-results div.mlt-seed-container div.tt-a.tt-boxed span.shadow img.lit {
    margin-left: 8px;
}
#browse-results div.mlt-seed-container div.tt-a.tt-boxed span.tt-bb {
    top: 0;
}
#browse-results div.mlt-seed-container .mlt-seed-border-lit div.tt-a.tt-boxed span.tt-bb {
    display:none;
}
#browse-results div.mlt-seed-container div.tt-a.tt-boxed span.tt-w {
    /* -1px bottom since tt-boxed needs to be 205px for narrow thumbs to work but we don't want to push the More Like This text down */
    margin-bottom:-1px;
}
#browse-results div.mlt-seed-container div.tt-a.crop-w span.tt-w {
    /* 1px left margin to compensate for exta pixels in width - this is effectively padding to image */
    margin-left:1px;
}
#browse-results div.mlt-seed-container .mlt-seed-border-lit div.tt-a.tt-boxed span.tt-w {
    /* none of the above hacks for lit */
    margin: 0;
}
#browse-results div.mlt-seed-container div.tt-a.tt-boxed span.shadow img {
    margin-left: 0;
}
#browse-results div.mlt-seed-container div.tt-fh.tt-boxed.crop-h .shadow,
#browse-results div.mlt-seed-container div.tt-fh.tt-boxed.crop-h .tt-bb {
    left: 0; /* override the -13 to allign with regular title */
}
#browse-results div.mlt-seed-container div.tt-fh.crop-h {
    display: block;
    text-align: center;
}

#browse-results div.mlt-seed-container div.tt-fh.crop-h .tt-fh-tc{
    left: 0;
}
.mlt-seed-border {
    background: #E18D43;
    border: 1px solid #c75b1e;
    padding: 2px 1px;
    border-radius: 2px;
    margin-bottom: 3px;
}
.mlt-seed-border-lit {
    padding: 2px; /* No messing about here */
}
.mlt-seed-container .seed-footer .seed-footer-left{
    position:relative;
    float:left;
}
.mlt-seed-container .seed-footer .seed-footer-right{
    position:relative;
    float:right;
    padding-right: 3px;
}
.mlt-seed-container .seed-footer .seed-footer-right a{
    color: #f7d8b7;
    display:inline-block;
    position:relative;
    top: 3px;
    font-size: 11px;
}
.mlt-seed-container .seed-footer .seed-footer-right .seed-question-mark {
    display:inline-block;
    background:url('/morelikethis/mlt_wit.png');
    height: 14px;
    width: 14px;
    position:relative;
    top: 3px;
}
.mlt-seed-container .seed-footer .seed-footer-img {
    background: url("/morelikethis/dna_icon_fallback.png") no-repeat scroll center center transparent; /* IE8 */
    background: url("/portal/icon-dna.png") no-repeat scroll center center rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    height: 13px;
    width: 13px;
    padding: 4px;
    float: left;
    margin: 0 5px 0 0;
}
.mlt-seed-container .seed-footer {
    padding: 2px 1px 5px;
}
.mlt-seed-container .seed-footer .seed-footer-text {
    display:inline-block;
    font-size:12px;
    height:10px;
    line-height:10px;
    color: #fff;
}
.mlt-seed-container .seed-footer .seed-footer-beta {
    display:block;
    color: #fff;
    font-size: 8px;
    line-height: 4px;
}
.mlt-seed-details .seed-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mlt-seed-details .seed-title a {
    font-family: "Trebuchet MS", sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #121516;
}
.similar-poor-results-small,
.mlt-seed-details .category,
.mlt-seed-details .category a,
.mlt-seed-details .commentcount a {
    color: #8C9A88;
}
.non-unique-results a {
    color: #337287;
    font-size: 13px;
}
.mlt-seed-details .category,
.similar-poor-results-small {
    display: block;
    font-family: Verdana, sans-serif;
    font-size: 10px;
    margin: 1px 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.similar-poor-results-small {
    font-size:12px;
    white-space: normal;
}
.mlt-seed-details .commentcount a {
    font-size: 11px;
}
.mlt-seed-details a:hover {
    text-decoration:none;
    color: #337287;
}
.mlt-seed-divider {
    border-top: 1px solid #c2cebd;
    border-bottom: 1px solid #ecefeb;
    margin: 12px 12px 12px 196px;
}

/** common artists/collections properties */
.artist-deviations.stream,
.collection-container.stream {
    text-align: left;
}
/** fully expanded artist/collection row modes **/
.artist-container .artist-deviations.deviations.expanded,
.collection-container .deviations.expanded {
    height: auto;
    overflow: hidden;
}

/* upsell */
.mlt-upgrade-container {
    display:inline-block;
    position:absolute;
    top: 0;
    right: -460px;
}
.mlt-upgrade-caret {
    display: inline-block;
    position: relative;
    background: url(/morelikethis/upgrade_caret.png) no-repeat;
    width: 12px;
    height: 24px;
    top: -120px;
    left: 5px;
    z-index:100;
}
.mlt-upgrade {
    display: inline-block;
    position: relative;
    width: 399px;
    padding: 40px 15px 14px;
    font-size: 11px;
    line-height: 19px;
    color: #37403f;
    
    border-radius: 3px;
    border-color: #CCD7C9;
    border-style: solid;
    border-width: 1px 1px 2px;
    background: #f1f4ef; /* Old browsers */
}
.mlt-upgrade-link {
    color: #ac2c52;
    font-weight: bold;
}
.mlt-upgrade-ribbon-container {
    display:inline-block;
    position: absolute;
    z-index: 100;
    width: 114px;
    top: 8px;
    left: -11px;
    height: 38px;

    background: url(/morelikethis/upgrade_ribbon_sprite.png?3) repeat-x;
    background-position: 0px -71px;
    color: #7d807b;
    line-height: 16px;
    text-align: center;
}
.mlt-upgrade-ribbon-text {
    display: inline-block;
    padding-top: 7px;
    padding-left: 11px;
}
.mlt-upgrade-ribbon-left {
    display:inline-block;
    width: 12px;
    height: 38px;
    background: url(/morelikethis/upgrade_ribbon_sprite.png?3) no-repeat;
    margin-right: -4px;
    position: absolute;
    left: -1px;
}
.mlt-upgrade-ribbon-right {
    position: absolute;
    display:inline-block;
    width: 12px;
    height: 30px;
    right: -12px;
    margin-left: -5px;
    background: url(/morelikethis/upgrade_ribbon_sprite.png?3) no-repeat;
    background-position: 0 -40px;
}

/* Refinement warning based on subble see T3919 */
#browse-results div.refinement-warning {
    background: #F8F8F8;
    border: 2px solid #AB2E50;
    padding: 8px;
    margin: 2px 0 12px 184px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

.browse-top-bar .right-buttons .button.right.full {
    margin-right: 46px;
}

/* Helper mixins */
.colormixin(@color:false) when not (@color=false) {color: @color;}
.bgcolormixin(@color:false) when not (@color=false) {background-color: @color;}
.bordercolormixin(@color:false) when not (@color=false) {border-color: @color;}

.widthmixin(@width:false) when not (@width=false) {width: @width;}
.minwidthmixin(@width:false) when not (@width=false) {min-width: @width;}
.maxwidthmixin(@width:false) when not (@width=false) {max-width: @width;}

.heightmixin(@height:false) when not (@height=false) {height: @height;}
.minheightmixin(@height:false) when not (@height=false) {min-height: @height;}
.maxheightmixin(@height:false) when not (@height=false) {max-height: @height;}

/* Helper variable for retina media queries */
@retina : ~"(-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 2dppx), (min-resolution: 192dpi)";

/*
 * helper function for .linear-gradient
 * @encode - string of svg xml
 */
.base64DataUriBackground (@encode, @type: ~"image/svg+xml") {
    @dataUriPrefix: ~"url(data:@{type};base64,";
    @dataUriSuffix: ~")";
 
    // because our lessc doesn't give access to btoa()
    // we have to make our own
    @b64DataUri: ~`(function(a,b,c){function e(a){a=a.replace(/\r\n/g,'\n');var b='';for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);if(d<128){b+=String.fromCharCode(d)}else if(d>127&&d<2048){b+=String.fromCharCode(d>>6|192);b+=String.fromCharCode(d&63|128)}else{b+=String.fromCharCode(d>>12|224);b+=String.fromCharCode(d>>6&63|128);b+=String.fromCharCode(d&63|128)}}return b}function f(a){var b='';var c,f,g,h,i,j,l;var m=0;a=e(a);while(m<a.length){c=a.charCodeAt(m++);f=a.charCodeAt(m++);g=a.charCodeAt(m++);h=c>>2;i=(c&3)<<4|f>>4;j=(f&15)<<2|g>>6;l=g&63;if(isNaN(f)){j=l=64}else if(isNaN(g)){l=64}b=b+d.charAt(h)+d.charAt(i)+d.charAt(j)+d.charAt(l)}return b}var d='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';return a+f(b)+c})('@{dataUriPrefix}','@{encode}','@{dataUriSuffix}')`;
 
    background: @b64DataUri;
}

/*
 * @angle - 1st param (eg 45deg, top, to left bottom)
 * @legacy_color - Color if no gradient at all is available
 * @ie_gradient_type - 0 (vertical) or 1 (horizontal).  If anybody wants to write a filter to deduce this 
 *                     angle, have at it
 */
.linear-gradient(@start_color, @end_color) {
    .linear-gradient(top, @start_color, @end_color, @start_color);
}
.linear-gradient(@angle, @start_color, @end_color) {
    .linear-gradient(@angle, @start_color, @end_color, @start_color);
}
.linear-gradient(@angle, @start_color, @end_color, @legacy_color: @start_color, @ie_gradient_type: 0) {
    @svg: ~'<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><linearGradient id="grad-ucgg-generated" gradientUnits="userSpaceOnUse" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="@{start_color}" stop-opacity="1"/><stop offset="100%" stop-color="@{end_color}" stop-opacity="1"/></linearGradient><rect x="0" y="0" width="1" height="1" fill="url(#grad-ucgg-generated)" /></svg>';
 
    
    /* base background */
    background: @legacy_color;
    
    /* IE9 you so special */
    .ie.eq9 & {
        .base64DataUriBackground(@svg);
    }
    /* IE8 is the bad kind of special */
    .ie.lt9 & {
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{start_color}', endColorstr='@{end_color}',GradientType=@ie_gradient_type );
    }
    
    /* hooray modern browsers */
    background: -webkit-linear-gradient(@angle, @start_color, @end_color);
    background: -moz-linear-gradient(@angle, @start_color, @end_color);
    background: linear-gradient(@angle, @start_color, @end_color);
}

.linear-gradient-stops(@angle, @legacy_start_color, @legacy_end_color, @legacy_color, @rest...) 
{
    @svg: ~'<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><linearGradient id="grad-ucgg-generated" gradientUnits="userSpaceOnUse" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="@{legacy_start_color}" stop-opacity="1"/><stop offset="100%" stop-color="@{legacy_end_color}" stop-opacity="1"/></linearGradient><rect x="0" y="0" width="1" height="1" fill="url(#grad-ucgg-generated)" /></svg>';
 
    
    /* base background */
    background: @legacy_color;
    
    /* IE9 you so special */
    .ie.eq9 & {
        .base64DataUriBackground(@svg);
    }
    /* IE8 is the bad kind of special */
    .ie.lt9 & {
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{legacy_start_color}', endColorstr='@{legacy_end_color}',GradientType=0 );
    }
    
    /* hooray modern browsers */
    background: -webkit-linear-gradient(@angle, @rest);
    background: -moz-linear-gradient(@angle, @rest);
    background: linear-gradient(@angle, @rest);
}

/*
 * This is not compatible with IE8, don't use it if you have to support old IE
 * 
 * @lhs - Left hand side (height, width, whatever)
 * @rhs - Right hand side, whatever your calculation is.  You probably need a ~
 *
 * Example: .calc(height, ~"100% - 50px")
 *
 * Note, using a guard because less doesn't seem to like using a variable for lhs
 * Annoying, but don't know what else to do
 *
 * http://caniuse.com/calc
 */
.calc(@lhs, @rhs) when (@lhs = width) {
    width: -webkit-calc(@rhs);
    width: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = height) {
    height: -webkit-calc(@rhs);
    height: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = left) {
    left: -webkit-calc(@rhs);
    left: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = right) {
    right: -webkit-calc(@rhs);
    right: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = top) {
    top: -webkit-calc(@rhs);
    top: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = bottom) {
    bottom: -webkit-calc(@rhs);
    bottom: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = min-width) {
    min-width: -webkit-calc(@rhs);
    min-width: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = max-width) {
    max-width: -webkit-calc(@rhs);
    max-width: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = min-height) {
    min-height: -webkit-calc(@rhs);
    min-height: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = max-height) {
    max-height: -webkit-calc(@rhs);
    max-height: calc(@rhs);
}


/*
 * Not compatible with IE8 or IE9 (nothing breaks, they just don't get transitions)
 */
.transition(@arg) {
    -moz-transition: @arg;
    -webkit-transition: @arg;
    transition: @arg;
}

.transition(@transition, @duration, @timingFunction: ease-in-out ) when (@transition = transform) {
    -webkit-transition: -webkit-transform @duration @timingFunction;
    -moz-transition: -moz-transform @duration @timingFunction;
    -ms-transition: -ms-transform @duration @timingFunction;
    transition: transform @duration @timingFunction;
}

.animation (@name, @duration: 300ms, @delay: 0, @ease: ease, @iterationCount: 1) {
    -webkit-animation: @name @duration @delay @ease;
    -moz-animation:    @name @duration @delay @ease;
    -ms-animation:     @name @duration @delay @ease;
    animation-iteration-count: @iterationCount;
    -webkit-animation-iteration-count: @iterationCount;
    -moz-animation-iteration-count: @iterationCount;
}

.transition-delay(@arg) {
    -webkit-transition-delay: @arg;
    -moz-transition-delay: @arg;
    -o-transition-delay: @arg;
    transition-delay: @arg;
}

/*
 * Not supported in <=IE8
 */
.transform(@arg) {
    -ms-transform: @arg;
    -webkit-transform: @arg;
    transform: @arg;
}

.transform-scale(@arg) {
    -ms-zoom: @arg;
    -ms-transform: scale(@arg);
    -webkit-transform: scale(@arg);
    transform: scale(@arg);
}

.transform-origin(@arg) {
    -ms-transform-origin: @arg;
    -moz-transform-origin: @arg;
    -webkit-transform-origin: @arg;
    transform-origin: @arg;
}

.box-sizing(@arg) {
    -moz-box-sizing: @arg;
    -webkit-box-sizing: @arg;
    box-sizing: @arg;
}

.filter(@arg) {
    -ms-filter: @arg;
    -moz-filter: @arg;
    -webkit-filter: @arg;
    filter: @arg;
}

.user-select(@arg) {
    -ms-user-select: @arg;
    -moz-user-select: @arg;
    -webkit-user-select: @arg;
    user-select: @arg;
}

.backface-visibility(@arg) {
    -webkit-backface-visibility: @arg;
    backface-visibility: @arg;
}

.perspective(@arg) {
    -webkit-perspective: @arg;
    perspective: @arg;
}

.cursor-zoom-in(@arg) {
    cursor: @arg;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
}

.cursor-zoom-out(@arg) {
    cursor: @arg;
    cursor: -webkit-zoom-out;
    cursor: -moz-zoom-out;
}

.appearance(@arg) {
    -webkit-appearance: @arg;
    -moz-appearance: @arg;
}

.text-size-adjust(@arg) {
    -webkit-text-size-adjust: @arg;
    -moz-text-size-adjust: @arg;
    -ms-text-size-adjust: @arg;
}

/* 
 *  Make something spin for infinite time, one rotation per @interval 
 *  example: .spin(3000ms)
*/
.spin(@interval) {
    -webkit-animation-name: spin;
    -webkit-animation-duration: @interval;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: spin;
    -moz-animation-duration: @interval;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: spin;
    -ms-animation-duration: @interval;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
    animation-name: spin;
    animation-duration: @interval;
    animation-iteration-count: infinite;
    animation-timing-function: linear;

    @-ms-keyframes spin {
        from { -ms-transform: rotate(0deg); }
        to { -ms-transform: rotate(360deg); }
    }
    @-moz-keyframes spin {
        from { -moz-transform: rotate(0deg); }
        to { -moz-transform: rotate(360deg); }
    }
    @-webkit-keyframes spin {
        from { -webkit-transform: rotate(0deg); }
        to { -webkit-transform: rotate(360deg); }
    }
    @keyframes spin {
        from { transform:rotate(0deg); }
        to { transform:rotate(360deg); }
    }
}

/*
 * CSS3 multi-column layout.
 * Won't do anything for IE8 or 9.
 */
.column-count(@arg) {
    -moz-column-count: @arg;
    -webkit-column-count: @arg;
    column-count: @arg;
}
.column-width(@arg) {
    -moz-column-width: @arg;
    -webkit-column-width: @arg;
    column-width: @arg;
}
.column-gap(@arg) {
    -moz-column-gap: @arg;
    -webkit-column-gap: @arg;
    column-gap: @arg;
}
.column-rule(@arg) {
    -moz-column-rule: @arg;
    -webkit-column-rule: @arg;
    column-rule: @arg;
}

/*
 * Input placeholder text
 */
.placeholder-font-style(@style){
    &::-webkit-input-placeholder {
        font-style: @style;
    }
    &:-moz-placeholder {
        font-style: @style;
    }
    &::-moz-placeholder {
        font-style: @style;
    }
    &:-ms-input-placeholder {
        font-style: @style;
    }
}
.placeholder-color(@color: false, @bgcolor: false, @bordercolor: false){
    &::-webkit-input-placeholder {
        .colormixin(@color);
        .bgcolormixin(@bgcolor);
        .bordercolormixin(@bordercolor);
    }
    &:-moz-placeholder {
        .colormixin(@color);
        .bgcolormixin(@bgcolor);
        .bordercolormixin(@bordercolor);
    }
    &::-moz-placeholder {
        .colormixin(@color);
        .bgcolormixin(@bgcolor);
        .bordercolormixin(@bordercolor);
    }
    &:-ms-input-placeholder {
        .colormixin(@color);
        .bgcolormixin(@bgcolor);
        .bordercolormixin(@bordercolor);
    }
}

/* Full-screen mixin */
.full-screen-width(@width: false, @minwidth: false, @maxwidth: false) {
    &:-webkit-full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
    &:-moz-full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
    &:-ms-full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
    &:-o-full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
    &:full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
}
.full-screen-height(@height: false, @minheight: false, @maxheight: false) {
    &:-webkit-full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
    &:-moz-full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
    &:-ms-full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
    &:-o-full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
    &:full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
}

/* Text hyphenation */
.hyphenate(@style:auto) {
    -webkit-hyphens:@style;
       -moz-hyphens:@style;
        -ms-hyphens:@style;
            hyphens:@style;
}

.clearfix() {
    zoom:1;
    &:before, &:after{ 
        content:""; 
        display:table; 
    }
    &:after{ 
        clear: both; 
    }
}

.font-smoothing(@value: antialiased) when(@value = antialiased) {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.font-smoothing(@value) when (@value = subpixel) {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

.font-default(@font-size: 14px, @line-height: 1.2, @font-weight: 300) {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: @font-size;
    line-height: @line-height;
    font-weight: @font-weight;
}

.font-face-calibre() {
    @font-face {
    font-family: 'Calibre-Bold';
        src: url('//st.deviantart.net/fonts/calibre-bold.otf') format('opentype');
        font-weight: normal;
        font-style: normal;
    }
    @font-face {
    font-family: 'Calibre-Semibold';
        src: url('//st.deviantart.net/fonts/calibre-semibold.otf') format('opentype');
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
    font-family: 'Calibre-Light';
        src: url('//st.deviantart.net/fonts/calibre-light.otf') format('opentype');
        font-weight: normal;
        font-style: normal;
    }
}

.font-heading-bold(@font-size: 40px, @line-height: 1, @font-weight: 300) {
    font-family: 'Calibre-Bold';
    line-height: @line-height;
    font-weight: @font-weight;
    font-size: @font-size;
}

.flexbox() {
    /* order is important here */
    display: -webkit-box;      /* OLD - iOS <6, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox <19 */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Opera 12.1, Firefox >20 */
}

.flex() {
    .flexbox();

    /* but not here */
    flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-direction: row;
    -webkit-flex-direction:row;
    -moz-flex-direction:row;
    justify-content: flex-start;
    -webkit-justify-content:flex-start;
    -moz-justify-content:flex-start;
}
.flex-sizing(@size:1) {
    flex-grow: @size;
    -ms-flex-grow: @size;
    -moz-flex-grow: @size;
    -webkit-flex-grow:@size;
    flex-shrink: @size;
    -ms-flex-shrink: @size;
    -moz-flex-shrink: @size;
    -webkit-flex-shrink: @size;
}
.flex-center() {
    -webkit-box-pack: center; /* OLD - iOS <6, Safari 3.1-6 */
    -webkit-box-align: center;
    -moz-box-pack: center; /* OLD - Firefox <19 */
    -moz-box-align: center;
    -ms-flex-pack: center; /* TWEENER - IE 10 */
    -ms-flex-align: center;
    -webkit-justify-content: center; /* NEW - Chrome, Safari */
    -webkit-align-items: center;
    justify-content: center; /* NEW, Opera 12.1, Firefox >20 */
    align-items: center; 
}

.flexbox-inline() {
    display: -ms-inline-flex;
    display: -webkit-inline-flex;
    display: inline-flex;
}
.flex-direction(@value: row) {
    -webkit-flex-direction: @value;
    -ms-flex-direction: @value;
    flex-direction: @value;
}
.flex-grow(@value: 0) {
    -webkit-flex-grow: @value;
    -ms-flex-grow: @value;
    flex-grow: @value;
}
.flex-shrink(@value: 1) {
    -webkit-flex-shrink: @value;
    -ms-flex-shrink: @value;
    flex-shrink: @value;
}
.flex-justify(@value: flex-start) {
    -webkit-justify-content: @value;
    -ms-justify-content: @value;
    justify-content: @value;
}
.flex-align(@value: stretch) {
    -webkit-align-items: @value;
    -ms-align-items: @value;
    align-items: @value;
}
.flex-align-self(@value: auto) {
    -webkit-align-self: @value;
    -ms-align-self: @value;
    align-self: @value;
}
.flex-wrap(@value: wrap) {
    -webkit-flex-wrap: @value;
    -ms-flex-wrap: @value;
    flex-wrap: @value;
}
.fit(@margin:0) {
    position: absolute;
    top: @margin;
    right: @margin;
    bottom: @margin;
    left: @margin;
}

.fit-fixed(@margin:0) {
    position: fixed;
    top: @margin;
    right: @margin;
    bottom: @margin;
    left: @margin;
}

.transition-cubic-bezier(@property: all, @duration: 0.2s) {
    .transition(@property @duration cubic-bezier(0, 0, 0.58, 1));
}

/*
 * Push lately to have greyscale interfaces.
 * UI likes to think in terms of % grey, so they make mocks with
 * rgba(0,0,0, .74) for 74% grey.
 * This style uses more css room, requires more processing cycles from the browser's paint, and is dangerous
 * if underlying element is ever changed to something other than white.
 *
 * Now you can just do .foo { .grey(74%); color:@grey; }
 */

.grey(@percentage) {
    @grey: darken(#fff, 100% - @percentage);
}


/* Old brand colors */
.brandcolors() {
    @primary-green: #0FCC47;
    @primary-teal: #41CFC7;
    @primary-orange: #F75908;
    @primary-magenta: #ED145A;
    @primary-lightgreen: #BDD023;
    @primary-darkgreen: #026D20;

    @grey1: #111;
    @grey2: #242626;
    @grey3: #2F3131;
    @grey4: #323232;
    @grey5: #363636;
    @grey6: #474747;
    @grey7: #555;
    @grey8: #575757;
    @grey9: #666;
    @grey10: #6F6F6F;
    @grey11: #727272;
    @grey12: #828282;
    @grey13: #999;
    @grey14: #909090;
    @grey15: #CBCBCB;
    @pale-grey: #F2F2F2;

    @black-alpha1: rgba(0,0,0,0.5);
    @black-alpha2: rgba(0,0,0,0.2);

    @white-alpha1: rgba(0,0,0,0.8);
    @white-alpha2: rgba(0,0,0,0.5);
    @white-alpha3: rgba(0,0,0,0.3);
    @white-alpha4: rgba(0,0,0,0.2);
    @white-alpha5: rgba(0,0,0,0.1);
    @white-alpha6: rgba(0,0,0,0.07);

    @list-level-0: #19252C;
    @list-level-1: #273943;
    @list-level-2: #324855;
    @list-level-3: #455C69;
}

/* New brand colors */
.11-14-brandcolors() {
    /* Used by the header */
    @brand-green: #05CC47;
    @header-green: #475C4D;
    @dark-header-green: #46584A;
    @border-green: #38463B;
    @subheader-green: #3D4F42;
    @submit-green: #5FAC75;
    @menu-grey: #313836;
    @hover-blue: #508FA3;

    /* Colors from the brand guidelines */

    @black: #000;
    @grey1: #181A1B;
    @grey2: #4F5254;
    @grey3: #7D8080;
    @grey4: #F2F2F2;
    @white: #FFF;
    @darker-grey: #181A1B;
    @pale-grey: #F2F2F2;


    @blue1: #1F3833;
    @blue2: #36807A;
    @blue3: #40CFC7;
    @blue4: #D4F5F2;

    @green1: #1F3626;
    @green2: #42704F;
    @green3: #4DC47D;
    @green4: #D4F5DE;

    @orange: #F7590A;
    @accent-orange: darken(@orange, 10%);
}


