
article .tags,
article .item-details {
    margin: 0 145px;
}

article .tags {
    display: block;
}

article .img_0 + .tileFooter .tags,
article .img_0 {
    margin-left: 0;
    margin-right: 0;
}

article .tileFooter {
    padding-left: 0;
}

#content article .h4 {
    margin: 0 0 0.2em 0;
    color: #00abab;
    display: block;
}

article .margin-image {
    margin-right: 0.2em;
}

.bubble {
    border-radius: 4em;
    width: 44px;
    color: #000;
    background: #fff100;
    margin-left: 10px;
    padding: 0.6em 0em 0.3em 0.4em;
}

.bubble .fa-user {
    font-size: 1.8em;
    margin-left: -2px;
    width: 14px;
}

.bubble .fa-comment-o {
    float: right;
    margin-right: 2px;
}

.commentbox {
    text-align: center;
}

.comments {
    font-size: 80%;
}

.tag.blue-button {
    margin-bottom: 5px;
}

.template-document_view_resolve #parent-fieldname-description {
    margin: 0;
}

#plone-document-byline {
    font-size: 90%;
}

.image-inline {
    text-align: center;
    display: block;
    margin: 0.5em auto;
}

.document-footer {
    border-top: 1px solid #eee;
    padding-top: 1em;
    min-height: 60px;
    clear: both;
}

.document-footer .thumb-rating input {
    border: 0;
    height: 35px;
    width: 30px;
    float: left;
}

#portal-column-content input.like-button,
#portal-column-content input.dislike-button {
    background-color:inherit;
    background-image: url(++resource++cioppino.twothumbs.images/thumbs-sprite.png);
    background-repeat: no-repeat;
}

#portal-column-content form input.like-button{
    background-position: -39px -27px;
}

#portal-column-content form input.dislike-button{
    background-position: -12px -33px;
    width: 33px;
    height: 30px;
}

#portal-column-content form .selected input.like-button{
    background-position: -39px 5px;
}

#portal-column-content form .selected input.dislike-button{
    background-position: -13px 10px;
}

#portal-column-content .contributions form input.dislike-button{
    background-position: -12px -33px;
    height: 30px;
}

#portal-column-content .contributions form .selected input.dislike-button{
    background-position: -12px 0px;
}

#portal-column-content .contributions form input.like-button {
    padding-left: 1em;
}

#portal-column-content .like-summary span {
    font-size: 0.9em;
}


.like-summary {
    clear: both;
}

.prettySociable:before {
    content: "\f1e0";
    font-family: FontAwesome;
    padding-right: 0.5em;
}

/* comments styles */

#commenting textarea {
    width: 100%;
    min-height: 200px;
}

.commentBody {
    border: 0;
    background: #eee;
    padding: 1em;
}

.commentBody input {
    margin: 0.5em;
}

div[class^="comment replyTreeLevel"] {
    padding-left: 2.25em;
}

div[class^="comment replyTreeLevel2"] {
    padding-left: 2.25em;
}

div[class^="comment replyTreeLevel1"] {
    padding-left: 1.25em;
}

div[class^="comment replyTreeLevel0"] {
    padding-left: 0;
}

#viewlet-below-content .discussionHeader h2 {
    margin: 1em 0;
    padding: 0.1em 0.75em;
    background: #44465d;
    color: #fff;
    max-width: 100%;
}

.reply textarea {
    width: 100%;
    min-height: 100px
}

/* End comments styles */



/* Overlay */

.overlay-ajax {
    z-index: 1111;
}

.fa-rss {
    color: orange;
}

/* @end */


/* Mobile */

body.mobile article .tags {
    margin: 0 1em;
}

body.mobile article .img_0 + .tileFooter .tags {
    padding-left: 0.5em;
}

body.mobile article img {
    height: 100%;
}

body.mobile article .social {
    margin-right: 0.5em;
}

body.mobile .overlay.overlay-image img {
    max-width: 100%;
}

body.mobile #content img {
    max-width: 100%;
}

article .thumbs-down input {
    width: 33px;
}

body.mobile.template-home #portal-column-content .stats-widgets a.statportletitem span.item-details {
    line-height: 1.3em;
    font-size: 0.8em;
}

@media only screen and (max-width: 1170px) {

    #portal-column-content #homebanner .live {
        min-height: 75px;
    }

    #homebanner .banner-text {
        display: none;
    }
}

@media only screen and (max-width: 700px) {
    body.mobile article {
        position: relative;
    }

    #homebanner .live {
        display: none;
    }

    #homebanner img.mobile-banner {
        display: block;
    }

    .mobile-clear {
        clear: both;
    }

    body.mobile article .landing-image {
        width: 48%;
    }

    body.mobile article .item-details {
        margin: 1em;
    }

    body.mobile article .social {
        width: 50%;
        font-size: 0.8em;
    }

    body.mobile article .commentbox {
        position: absolute;
        top: 1.3em;
        right: 100px;
        margin-right: 1em;
    }

    .template-home #portal-column-content .stats-widgets > * {
        display: none;
    }

    .template-home #portal-column-content .stats-widgets a:first-of-type,
    .template-home #portal-column-content .stats-widgets div:last-of-type {
        display: block;
        width: 100%;
        border-left: 0;
        min-height: 44px;
    }
}


@media only screen and (max-width: 400px) {


    body .container #portal-column-content {
        padding: 0 1em;
    }

    body.mobile article .landing-image {
        min-height: 100px;
    }

    body.mobile article .commentbox {
        position: absolute;
        top: 1em;
        right: 2em;
    }
    body.mobile article .thumb-rating {
        position: absolute;
        right: 2em;
        top: 6em;
    }

}
/* End Mobile */

/* home page styles */

#homebanner .live {
    background: url('++resource++ripelabs.theme.images/RIPELabs-banner.png') no-repeat 0 50%;
    min-height: 100px;
    -webkit-background-size: 100%;
    background-size: 100%;
}

body.nav-collapsed #homebanner .live {
    min-height: 131px;
}

#homebanner .banner-text {
    float: right;
    color: #fff;
    text-transform: uppercase;
    width: 39%;
    margin: 2.9em 0.5em 0 0em;
}

body.nav-collapsed #homebanner .banner-text {
    margin: 3.9em 0.5em 0 0em;
}

#homebanner .intro-text {
    font-size: 1.2em;
    display: block;
}

#homebanner .intro-sub-text {
    font-size: 0.8em;
}

img.mobile-banner {
    display: none;
}

.homepage-title {
    max-width:100%;
}

.template-home #portal-column-content .stats-widgets img {
    height: 40px;
}

body.template-home #portal-column-content .nopGraph a,
body.template-home #portal-column-content a.statportletitem {
    border-left: 1em #fff solid;
    min-height: 84px;
}

.template-home #portal-column-content .stat-number-2 .stats-widgets > *,
.template-home #portal-column-content .stat-number-4 .stats-widgets > * {
    width: 50%;
    float: left;
}

.template-home #portal-column-content .stat-number-4 .stats-widgets > a:first-of-type,
.template-home #portal-column-content .stat-number-4 .stats-widgets > a:nth-of-type(3) {
    border-left: 0;
}

.template-home #portal-column-content .stat-number-6 .stats-widgets > * {
    width: 33.333%;
    float: left;
    min-height: 80px;
}

.template-home #portal-column-content .stat-number-6 .stats-widgets > a:first-of-type,
.template-home #portal-column-content .stat-number-6 .stats-widgets > a:nth-of-type(4) {
    border-left: 0;
}

.template-home #portal-column-one .statportlet {
    display: none;
}

body.template-home #portal-column-content .nopGraph a {
    line-height: 1.9em;
}

/* End home page styles */

/* -- Editor colours --- */

body #portal-columns .state-private a,
body #portal-columns .state-private {
    color: red;
}

body #portal-columns .authenticated .state-private {
    background: red;
    color: #fff;
}

body #portal-columns .authenticated .state-pending {
    background: #ffa500;
    color: #fff;
}

body #portal-columns .state-pending a,
body #portal-columns .state-pending {
    color: #ffa500;
}

body #portal-columns .actionMenuHeader .state-private,
body #portal-columns .actionMenuHeader .state-pending {
    background:  #ffa500;
    color: #fff;
    padding: 2px 4px;
}

body #portal-columns .actionMenuHeader .state-private {
    background: red;
}

/* Polls */

.template-collective-polls-poll .label {
    color: #000;
}

#exposeMask {
    z-index: 9998;
    opacity: 0.8;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: #fff;
}

.overlay.overlay-image,
.overlay.overlay-ajax  {
    z-index: 9999;
}

/* plone 5 fixes */

.discussion .commentImage {
    float: left;
    margin-right: 1em;
}

.commentImage img {
    -webkit-border-radius: 4em;
    -moz-border-radius: 4em;
    border-radius: 4em;
}

.commentActions button,
.commentActions a,
.commentActions form,
.commentActions {
    float: right;
}

.commentActions button {
    margin-top: 0.5em;
    margin-right: 0.5em;
    border: 0;
}

.commentBody {
    clear: both;
    padding-bottom: 4em;
    margin-bottom: 2em;
}

#archetypes-fieldname-rights,
#portal-anontools {
    display: none;
}

.commentactionsform.blue-button {
    margin-top: 0.5em;
}

#formfield-overlay-comment-text textarea {
    width: 100%;
    min-height: 300px;
    border: 1px solid #eee;
    padding: 0.5em;
}

.commentactionsform .approve {
    background: #11a900;
}

.commentactionsform .destructive {
    background: #ff002f;
}

.pagination {
    width: 100%
}

.pagination ul {
    margin: 0;
}

.pattern-relateditems-item img,
.pattern-relateditems-result img {
    display:none;
}

.readmore {
    font-style: italic;
}

.sidenote {
    background-color: #d7e2f3;
    padding-bottom: 4px;
    padding-top: 4px;
    max-width: 700px;
}

.portaltype-topic #viewlet-below-content-title .documentByLine .fa-user,
.portaltype-topic #viewlet-below-content-title .documentAuthor,
.portaltype-topic #viewlet-below-content-title .documentModified,
.portaltype-topic #viewlet-below-content-title .documentContributors {
    display: none;
}

#content-core .stat-widget {
    margin: auto;
    display: block;
}

.template-default_error_message #login {
    visibility: hidden;
}

#portal-columns header {
    min-height: 1px;
}

/* readonly mode styles - banner switching is done via js */
body.readonly #siteaction-contact,
body.readonly #siteaction-sitemap,
body.readonly #portal-personaltools-wrapper,
body.readonly #portaltab-Members,
body.readonly #portalfooter-contact,
body.readonly #portalfooter-contactdivider,
body.readonly #commenting,
body.readonly button.reply-to-comment-button,
body.readonly dl.portletTagCloudPortlet,
body.readonly dl.portletRelatedItems dd.portletFooter,
body.readonly .tags,
body.readonly #category,
body.readonly .searchCount,
body.readonly form {
    display: none !important;
}
