/* -------------------------------------------- */
/* Brain Simulation Section */
/* Version: 2 */
/* -------------------------------------------- */
/* Created by @twotribes, Germany */
/* -------------------------------------------- */
/* Browser Scope: ALL */
/* StyleSheet Scope: BLOG PAGES */
/* !-------------------------------------------- */

/* !-------------------------------------------- */
/* !LAYOUT: General layout */
/* !-------------------------------------------- */

/* --- Outer container */
#zwei_content .zwei-ui-container {
}

/* --- Hashtags and latest posts */
#zwei_content .zwei-ui-blognav {
    float: left;
    width: 234px;
    margin-right: 24px;
}

/* Repurposed notice as BSS bloglist header */
#zwei_content .blognav-notice {
    position: absolute;
    top: 0;
    left: 258px;
    width: 936px;
}

/* --- List of posts */
#zwei_content .zwei-ui-bloglist {
    float: left;
    width: 936px;
    padding: 170px 20px 0 254px;
}

/* --- Auxiliary controls */
#zwei_content .zwei-ui-blogcontrol {
    clear: both;
}

/* RSS subscription */
#zwei_content .blogcontrol-subscription {
    position: absolute;
    top: 0;
    left: 258px;
    width: 210px;
    height: 140px;
}

#zwei_content .blogcontrol-external {
}

/* Blogroll */
#zwei_content .blogcontrol-internal {
    display: none;
}

/* --- Built-in pagination */
#zwei_content .zwei-ui-paginator {
    margin: 50px 130px 0 510px;
}

/* !-------------------------------------------- */
/* !COMPONENT: Header elements */
/* !-------------------------------------------- */

/* --- Bloglist headline */
#zwei_content .blognav-notice .substance-header {
    background: transparent url("./img/back_header_news_2659.jpg") center no-repeat;
    background-size: cover;
}

.zwei-blog-entry #zwei_content .blognav-notice .substance-header h2 {
    display: none;
}

/* --- RSS subscription */
#zwei_content .blogcontrol-subscription {
    color: #fff;
    text-align: center;
    background: transparent url("./img/icon_rss.svg") center 40px no-repeat;
}

#zwei_content .blogcontrol-subscription .action-subscribe {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent url("./img/back_vignette.svg") center 20px no-repeat;
    background-size: 67px;
    padding: 95px 30px 0 30px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background-size ease 0.2s, background-position ease 0.2s;
}

#zwei_content .blogcontrol-subscription .action-subscribe:hover {
    background-size: 80px;
    background-position: center 12px;
    transition: background-size ease 0.2s, background-position ease 0.2s;
}

/* !-------------------------------------------- */
/* !COMPONENT: Navigation controls */
/* !-------------------------------------------- */

/* --- Control headlines and blocks */
#zwei_content .zwei-ui-blognav h4 {
    font-weight: 700;
    font-style: italic;
    color: #c51718;
    margin-bottom: 10px;
    padding: 10px 0 5px 44px;
    border-bottom: 1px solid #c51718;
}

/* --- Keyword navigation */
#zwei_content .blognav-keyword {
    margin-bottom: 20px;
}

#zwei_content .blognav-keyword li {
    position: relative;
    padding-left: 44px;
}

/* Action link */
#zwei_content .blognav-keyword li .action {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #006968;
    padding: 7px 0 7px 0;
    display: block;
    transition: color ease 0.2s;
}

#zwei_content .blognav-keyword li:not(:first-child) .action:before {
    content: "#";
}

/* Keyword counter */
#zwei_content .blognav-keyword .keyword-count {
    position: absolute;
    top: 2px;
    left: 12px;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: rgba(115,195,196,0.6);
    color: #fff;
    text-align: center;
    font-size: 11px;
    line-height: 24px;
    font-weight: 800;
    transition: background-color ease 0.2s;
}

/* Active filtering keyword */
#zwei_content .blognav-keyword li:hover .action,
#zwei_content .blognav-keyword .item-active .action {
    color: #c51718;
    transition: color ease 0.2s;
}

#zwei_content .blognav-keyword li:hover .keyword-count, 
#zwei_content .blognav-keyword .item-active .keyword-count {
    background: rgba(236,95,106,0.6);
    transition: background-color ease 0.2s;
}

/* --- Latest posts */
#zwei_content .blognav-latest li {
    padding-left: 44px;
    position: relative;
}

#zwei_content .blognav-latest li .action {
    font-size: 13px;
    font-weight: 700;
    color: #006968;
    padding: 5px 0 5px 0;
    display: block;
    transition: color ease 0.2s;
}

#zwei_content .blognav-latest li .action:before {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    left: 19px;
    height: 9px;
    width: 9px;
    border-radius: 50%;
    border: 2px solid #8fd6d9;
    transition: border-color ease 0.2s;
}

#zwei_content .blognav-latest li:hover .action, 
#zwei_content .blognav-latest .item-active .action {
    color: #c51718;
    transition: color ease 0.2s;
}

#zwei_content .blognav-latest li:hover .action:before, 
#zwei_content .blognav-latest .item-active .action:before {
    border-color: #c51718;
    transition: border-color ease 0.2s;
}

/* --- Pager controls */
#zwei_content .zwei-ui-paginator .page-control {
    float: left;
    width: 50%;
    text-align: center;
}

.zwei-blog-entry #zwei_content .zwei-ui-paginator .page-control {
    width: calc(100% / 3);
}

/* IE11 is pretty bad at math */
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none), only screen and (max-width: 1199px) {
    .zwei-blog-entry #zwei_content .zwei-ui-paginator .page-control {
        width: calc((100% / 3) - 0.5px);
    }
}
#zwei_content .zwei-ui-paginator .page-control .action {
    font-size: 12px;
    color: #006968;
    text-transform: uppercase;
    font-weight: bolder;
    letter-spacing: 0.1em;
    text-align: center;
    position: relative;
    padding-top: 50px;
    background: transparent center 10px no-repeat;
}

#zwei_content .zwei-ui-paginator .page-control .action:hover {
    color: #c51718;
    transition: color ease 0.2s;
}

#zwei_content .zwei-ui-paginator .page-control .action:before {
    content: "";
    display: block;
    position: absolute;
    width: 40px;
    height: 40px;
    border: 5px solid rgba(153,195,194,0.5);
    border-radius: 50%;
    top: 0;
    left: 50%;
    margin-left: -20px;
    background: transparent url("./img/icon_page_back.svg") center -5px no-repeat;
}

#zwei_content .zwei-ui-paginator .page-control .action:hover:before {
    border-color: rgba(236,95,106,0.5);
    transition: border-color ease 0.2s;
}

#zwei_content .zwei-ui-paginator .page-control .action-page-up:before {
    transform: rotateZ(90deg);
}

#zwei_content .zwei-ui-paginator .page-control .action-page-forward:before {
    transform: rotateZ(180deg);
}

/* !-------------------------------------------- */
/* !COMPONENT: Blog list and basic entries */
/* !-------------------------------------------- */

/* --- List container */
#zwei_content .zwei-ui-bloglist {
}

/* --- Entry container */
#zwei_content .bloglist-entry {
    margin-bottom: 2.1em;
    position: relative;
}

#zwei_content .bloglist-entry:after {
    content: "";
    display: block;
    clear: both;
}

/* --- Publication date */
#zwei_content .bloglist-entry .entry-date {
    position: relative;
    height: 1px;
}

#zwei_content .bloglist-entry .entry-date .substance-timestamp {
    position: absolute;
    left: -220px;
    top: -36px;
}

/* --- Blogpost title */
#zwei_content .bloglist-entry h1 {
    font-size: 20px;
    color: #006968;
    margin-bottom: 10px;
    transition: color ease 0.2s;
}

#zwei_content .bloglist-entry h1 .action {
    display: block;
}

#zwei_content .bloglist-entry h1:hover {
    color: #c51718;
    transition: color ease 0.2s;
}

#zwei_content .bloglist-entry h1:after {
    content: "";
    display: block;
    position: relative;
    left: -258px;
    margin-top: 10px;
    height: 1px;
    width: 916px;
    background: #8fd6d9;
}

#zwei_content .bloglist-entry h1 .action-outlink:before {
    content: "→\00a0";
    color: inherit;
}

/* --- Associated keywords */
#zwei_content .bloglist-entry .entry-keyword {
    clear: left;
    margin-bottom: 0.7em;
    margin-top: -7px;
}

#zwei_content .bloglist-entry .entry-keyword li {
    display: inline-block;
    color: #444;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

#zwei_content .bloglist-entry .entry-keyword .item-active {
    color: #c51718;
}

#zwei_content .bloglist-entry .entry-keyword li:before {
    content: "#";
}

#zwei_content .bloglist-entry .entry-keyword li:after {
    content: " ";
}

/* --- Permanent link */
#zwei_content .bloglist-entry .action-permalink {
    color: #006968;
    font-weight: 800;
    clear: left;
    margin-bottom: 0.7em;
    transition: color ease 0.2s;
}

#zwei_content .bloglist-entry .action-permalink:hover {
    color: #c51718;
    transition: color ease 0.2s;
}

#zwei_content .bloglist-entry .action-permalink:before {
    content: "→\00a0";
    color: inherit;
}

/* --- Blogpost content */
#zwei_content .bloglist-entry .entry-content {
    position: relative;
    clear: left;
    max-height: 65px;
    margin-bottom: 10px;
}

/* Preceded by a single image attachment in the list */
.stage:not(.zwei-blog-entry) #zwei_content .bloglist-entry .entry-attachment + .entry-content {
    width: calc(100% - 130px);
    float: left;
    clear: none;
    margin-left: 30px;
    max-height: 105px;
}

/* --- Blogpost author */
#zwei_content .bloglist-entry .entry-author {
    font-style: italic;
    position: relative;
    height: 1px;
    width: 210px;
    left: -254px;
    top: 20px;
    text-align: center;
    color: #444;
}

#zwei_content .bloglist-entry .entry-author .author-name {
}

/* --- Blogpost image list */
#zwei_content .bloglist-entry .entry-attachment {
    margin-bottom: 10px;
    float: left;
}

#zwei_content .bloglist-entry .entry-attachment li {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    text-align: center;
}

#zwei_content .bloglist-entry .entry-attachment img {
    height: 100%;
    display: inline-block;
}

#zwei_content .bloglist-entry .entry-attachment .image-caption, 
#zwei_content .bloglist-entry .entry-attachment .attachment-caption {
    display: none;
}

/* !-------------------------------------------- */
/* !LAYOUT: Single blog entries */
/* !-------------------------------------------- */

/* --- List container */
.zwei-blog-entry #zwei_content .zwei-ui-bloglist {
}

/* --- Entry container */
.zwei-blog-entry #zwei_content .bloglist-entry {
    position: static;
}

/* --- Publication date */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-date .substance-timestamp {
    top: -12px;
}

/* --- Blogpost author */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-author {
    top: 50px;
}

/* --- Blogpost title */
.zwei-blog-entry #zwei_content .bloglist-entry h1 {
    position: absolute;
    top: 15px;
    left: 512px;
    width: 662px;
}

.zwei-blog-entry #zwei_content .bloglist-entry h1 .action {
    font-weight: 700;
    font-size: 28px;
    font-style: italic;
    color: #fff;
}

.zwei-blog-entry #zwei_content .bloglist-entry h1:after {
    display: none;
}

/* --- Associated keywords */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-keyword {
    font-size: 14px;
    margin-bottom: 1.4em;
}

/* --- Permanent link */
.zwei-blog-entry #zwei_content .bloglist-entry .action-permalink {
}

/* --- Blogpost content */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-content {
    max-height: none;
    padding-right: 130px;
}

/* --- Blogpost download documents */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-document {
    margin: 30px 100px 30px -32px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 32px 20px 32px;
    border: 3px solid #E3EFEE;
}

.zwei-blog-entry #zwei_content .bloglist-entry .entry-document li + li {
    margin-top: 10px;
}

/* --- Blogpost image list */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment {
    padding-right: 130px;
    float: none;
}

.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment li {
    border: 1px solid rgba(213,205,192,0.7);
    border-radius: 0;
    padding: 10px;
    background: #fff;
    width: calc(100% + 64px);
    height: auto;
    margin: 1.2em -32px 1.2em -32px;
}

.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment img {
    max-width: 100%;
    height: auto;
}

.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment .image-caption, 
.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment .attachment-caption {
    display: block;
    text-align: left;
    font-size: 13px;
    margin: 0.7em 0 0 0;
}

.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment .image-caption > *:last-child, 
.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment .attachment-caption > *:last-child {
    margin-bottom: 0;
}



