/*
 *  (c) 2000-2025 deviantART, Inc. All rights reserved.
 */
/*
@@require cssms/lib/survival.css
@@require cssms/pages/misc/megamisc.css
*/

/* core */
#output #news div.catbar {
    margin-bottom:24px;
}
#news h2 {
    font-size:14pt;
    white-space:nowrap;
    overflow:hidden;
}
div.report h3 {
    font-size:18pt;
}
#news h1 small, #news h2 small {
    display:block;
    padding-top:4px;
    font:9pt Verdana,sans-serif;
    opacity:.7;
    letter-spacing:0;
}
#news-special div.line1 small,
#news-special div.line2 small {
    display:block !important
}
div.report div.love {
    position:absolute;
    left:0;
    top:58px;
}
div.love {
    position:relative;
    width:50px;
    height:63px;
    background:#DDD url(/styles/minimal/minish/lover.gif);
}
div.love span {
    display:block;
    vertical-align:middle;
    text-align:center;
    color:white;
    font:14pt/40px "Trebuchet MS",sans-serif;
    cursor:default;
    background:#4E5D5B url(/styles/minimal/minish/lover.gif);
}
div.loved span,
div.love span.loved {
    background-color:#AFC81C;
    background-color:#3E8EB7;
}
div.love a {
    position:absolute;
    z-index:7;
    left:0;
    right:0;
    overflow:hidden;
    padding-top:19px;
    height:0;
    top:44px;
    background:#AFC81C url(/styles/minimal/minish/lover.gif) 0 -44px;
    outline:none;
}
div.love a:active, div.love a.active {
    background-color:#3E8EB7 !important;
}
div.report div.line2 {
    padding-top:4px;
}
div.report div.line2 a.a {
    color:#5EAED7;
}
#news td.pillar {
    width:400px;
    padding:0 15px;
}
#news td.pillar:not(:first-child) {
    border-left:1px solid #DDD;
}
#news table div.report {
    width:auto;
}
#news table div.report div.text {
    height:50px;
    overflow:hidden;
}


#news div.comments {
    width:55%;
}
#news div.report {
    width:55%;
    padding-bottom:2.5em;
    min-height:10em;
}
div.userjournal {
    padding-bottom:3em;
    padding-left:112px !important;
}
div.report div.text, div.userjournal div.text {
    margin:1em 0;
    line-height:1.5em;
}
div.report small, div.report small a.u,
div.userjournal small, div.userjournal small a.u {
    color:#AAA !important;
    font-size:8.5pt;
}
div.report small big,
div.userjournal small big {
    font-size:100%;
    color:#555 !important;
}
div.abridged div.text {
    width:80%;
    height:10em;
    overflow:hidden;
    border-bottom:1px solid #AAA;
}



/* super bothersome IE float glitch */
* html #news-main #jsid-news {
    position:relative;
    overflow-x:hidden;
    width:100%;
}
/* don't ask */
* html #news-main div.comments div.thought a {
    zoom:1 !important
}

#news div sup.new,
#news div.report strong.new {
    color:#E52;
}
#news h1 sup {
    font:9pt Verdana,sans-serif;
    letter-spacing:0 !important;
    color:#7C8A88;
}
#news h1.cat {
    display:none;
    font-family:serif;
    margin-bottom:.5em;
    text-align:center;
    color:#222;
    letter-spacing:0;
}

#newscats {
    overflow:hidden;
    width:inherit;
}
#news a.a,
body.sleek #news #newscats a,
body.sleek #news div.catbar h1 a {
    color:#528799; 
}
#news {
    min-height:1000px;
}
#news div.pager-panes {
    height:auto !important;
    width:auto !important;
    position:static !important;
    overflow:visible !important;
    white-space:nowrap;
    border-top: 0px;
    background-color: #E5EAE3;
}
#news h1 a.samesite {
    color:#414D4C;
    text-decoration:none;
}
#news div.pager-panes div.side-pager div.page2 {
    position:static !important;
    border-bottom:1px solid #BBB;
    white-space:nowrap;
    overflow:hidden;
    width:100% !important:
    height: 27px;
    line-height: 25px;
}
#news div.pager-panes div.side-pager div.page2 a.f {
    float:left;
    padding:2px 8px;
    font-size:9pt;
}
html #news div.pager-panes div.side-pager div.page2 {
    bbackground:#888 !important;
}
html #news div.pager-panes div.side-pager div.page2 a.alt-selected {
    background:#638B9F !important;
    oopacity:.5;
}
#news div.pager-panes div.side-pager div.page2 a.selected sup.new,
#news div.pager-panes div.side-pager div.page2 a.more-selected sup.new {
    color:white;
}
#news div.pager-panes div.side-pager div.page2 a.f sup {
    line-height:.8em !important;
    vertical-align:top;
}
#news div.pager-panes div.side-pager div.page2 a.more-selected,
#news div.pager-panes div.side-pager div.page2 a.selected {
    text-decoration:none !important;
}
body.sleek #news div.pager-panes div.side-pager div.page2 a.selected, 
body.sleek #news div.pager-panes div.side-pager div.page2 a.more-selected {
    background:transparent none repeat scroll 0% !important;
    color: #1F2629 !important;
    font-weight: bold;
}
#news div.pager-panes div.side-pager div.page2-alt {
    background-color:#EDF5F4;
}
#news div.pager-panes div.side-pager div.page2-alt a.f {
    font-size:8.25pt;
    word-spacing:-1px;
    letter-spacing:-1px;
    padding:2px 6px;
}
#news div.pager-panes div.side-pager div.page2 a.f:hover {
    background:#CED8D5;
}
#news div.pager-panes div.side-pager div.page2 a.f:active {
    background:#AFB8B5;
}
#news div.pager-panes div.side-pager div.page2 a.selected,
#news div.pager-panes div.side-pager div.page2 a.more-selected {
    background:#3E8EB7 !important;
    color:white !important;
}


#news-main {
    margin-right:354px;
}
#news-main div.comments {
    width:auto !important;
}
#news-side {
    float:right;
    width:340px;
}
#news-side-bottom {
    padding-top:16px;
}
#news div.report {
    width:auto !important;
}
#news div.level2 {
    z-index:50;
}
#news #news-side {
    top:240px;
    margin-top: 10px;
}
#news #news-side,
#news #news-side div.level2 {
    z-index:55;
}
#news #news-side div.level2 {
    height:140px;
}
#news-side div.level1 {
    width:240px;
}
#news-side h2 {
    text-indent:7px;
}
#news-side h2.section-head {
    font-size:14pt !important;
}

#news div.level2 {
    background-color:#EAF2EE;
}

body.sleek #news div.love,
body.sleek #bash div.love {
    background:#B5C0B3 url(/minish/main/lover.gif) repeat scroll 0%;
}
body.sleek #news div.love span,
body.sleek #bash div.love span {
    background:#4E5D5B url(/minish/main/lover.gif) repeat scroll 0% 0%;
}

body.sleek #news div.love a,
body.sleek #bash div.love a {
    background:#AFC81C url(/minish/main/lover.gif) repeat scroll 0pt -44px;
}
#news div.report a.loves,
#bash div.report a.loves {
    position:absolute;
    left:0;
    top:58px;
    width:50px;
    height:40px;
    z-index:10;
}

a.news-submit {
    display:block;
    width:147px;
    height:33px;
    margin-bottom:12px;
    background:transparent url(/minish/main/submit-news.gif) no-repeat scroll 0% 0%;
}
a.news-submit:active {
    background-position:0 -33px;
}


#news-submit td.rr {
    /*background-color:#D3E0DC;*/
    width:400px;
    border-left:1px solid #CCC;
    padding-left:8px;
}

#news-comment-side {
    float:right;
    width:30%;
}

#news-submit-categories {
    width:400px;
    border:1px solid #AAA;
}

/*#news-submit div.pager-holder {
    width:500px;
}*/


div.report small, div.report small a.u,
div.userjournal small, div.userjournal small a.u {
    color:#95AA93 !important;
}

#news-submit h1 {
    margin-bottom:16px;
}
#news-submit div.altview,
#news-submit div.altaltview {
    margin-bottom:16px;
    margin-right:42px;
    padding:12px 24px 8px 160px;
}
#news-submit label.l {
    position:absolute;
    left:0;
    text-align:right;
    width:148px;
    font-weight:bold;
}
#news-submit div.preview {
    display:none;
    overflow:scroll;
    background:#EAF2EE;
    border:1px inset #AAA;
}

#news-submit div.preview-holder {
    width:608px;
    position:relative;
    overflow:hidden;
}

/* rule removd per ticket #3343 
* html #news-side {
    overflow-x:hidden;
}
*/

#news div.report a.offsite:hover {
    color:#EC821B;
}
#news div.report a.onsite:hover {
    color:#3B5A4A;
}

div.newsbubble {
    position:fixed;
    top:0;
    left:0;
    z-index:200;
    background:#DDE6E1;
    border:1px solid #A6A8AB;
    padding:2px 3px;
    font:8.25pt Verdana, sans-serif;
    color:#86889B;
}

#browsebar2 {
    font-size:8.25pt;
    background-color: #CCD8CA;
}

/* Forum */
#output #thread div.catbar,
#output #forum div.catbar {
    padding-top: 5px;
    padding-bottom: 10px;
}


/** Sleek **/
body.sleek #news div.hh {
    margin-top: 15px !important;
}
ody.sleek #news div.catbar,
body.sleek #news-submit div.catbar {
    padding-top: 8px;
}
body.sleek #news-submit div.catbar h1 {
    margin-bottom: 0;
}
body.sleek #news-submit div.catbar h1 a {
    color: #3E8EB7;
}

#news div.pager-panes div.side-pager div.page2 a.selected sup.new, 
#news div.pager-panes div.side-pager div.page2 a.more-selected sup.new {
    color: #EE5522 !important;
}



/* oldschool */
#browsebar1 {
    position:relative;
    font-size:10pt;
    text-align:center;
    padding-bottom:3px;
    border-bottom:1px solid #BBB;
}
#browsebar1.bare {
    border-bottom:none;
}
#browsebar2 {
    padding:4px;
    text-align:center;
    background:#BFCEC3;
    font-size:9pt;
}
#browsebar1 form,
#browsebar2 form {
    position:absolute;
    display:inline;
    margin-top:1.3em;
    margin-left:-8ex;
    padding:8px;
}
#browsebar2 form {
    background:#D4DFDD;
}
#browsebar1 a,    #browsebar2 a,
#browsebar1 span, #browsebar2 span {
    margin:0 .85em;
}
#browsebar1.formed,
#browsebar2.formed {
    margin-bottom:2.5em;
    white-space:nowrap;
}
#browsebar1.compact a, #browsebar1.compact span,
#browsebar2.compact a, #browsebar2.compact span {
    margin:0 .55em;
}
#browsebar2 span {
    opacity:.4;
}
#browsebar2 form span {
    opacity:1;
}
#browsebar1 span.l,
#browsebar1 form.l,
#browsebar1 div.catpath {
    position:absolute;
    top:0px;
    left:0;
    margin:0;
    padding:0;
    cursor:default;
}
#browsebar1 span.l a {
    margin:0
}
#browsebar1 span.l #catbutton,
#browsebar1 span.l a.catbutton {
    float:none;
    display:block;
    position:relative;
    top:-2px;
}
#browsebar1 span.r {
    position:absolute;
    top:0;
    right:0;
    margin:0;
}
#browsebar1 span.r span {
    opacity:.4;
    margin:0 0 0 8px;
}
#browsebar1 span.r a {
    margin:0 0 0 8px;
}
#browsebar1 form.l input {
    position:relative;
    top:-5px
}


.contestclosed {
    background:transparent url(/news/contests/statusclosed-grad.gif) repeat-x scroll center top;
    border-top:1px solid #000000;
    height:32px;
    width:100%;    
}

.contestopen {
    background:transparent url(/news/contests/statusopen-grad.gif) repeat-x scroll center top;
    border-top:1px solid #000000;
    height:32px;
    width:100%;  
}

.contestclosed img, .contestopen img { 
    margin-left: 10px;
}

/* 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;


    @core-access-icon: #FFB35C;
    @core-plus-icon: #FF815F;
    @core-pro-icon: #E776FF;
    @core-pro-plus-icon: #FF94B4;
    @core-max-icon: #7579FF;


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


