/**

    Site Name: D.C. Thomson & Co. Ltd
    Site URI: http://www.dcthomson.co.uk;
    Version: 1.0
    Author: Graeme Pirie


    Colours Used:
  
    Contents:
    
    $PageElements
    $Header
    $Navigation
    $HomePage
    $Pages
    $Companies
    $Brands
    $Contact
    $Blog
    $Footer

*/

/**********************************************************************************************************************************************

$PageElements

******************************************************************************************************************************************** */

* {
    margin: 0;
    padding: 0;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
    font: 400 16px/1.5 Muli, "Helvetica Neue", Helvetica, Arial,sans-serif;
    color: #7e7e7e;
    background: #fafafa;
    margin: 0 auto;
    max-width: 1400px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

nav[role="navigation"], main[role="main"], header[role="banner"] {
    transition: .5s left ease;
    width: 100%;
}

main[role="main"] {
    margin-left: 0;
    float: left;
}

/**********************************************************************************************************************************************

$Header

******************************************************************************************************************************************** */

header[role="banner"] {
    background: #fff;
}

.header-search {
    margin: 0 auto;
    text-align: center;
}

header[role="banner"] .search-form {
    display: none;
}

.active-nav [role="banner"] .search-form {
    display: block;
}

.search-menu li {
    display: inline-block;
    margin: 0 0 0 .25em;
    background: rgb(221, 221, 221) none repeat scroll 0 0;
    border: 1px solid rgb(221, 221, 221);
}

.search-menu li:hover {
    background: #fafafa;
}

.search-menu a {
    display: block;
    float: right;
    font-size: .875em;
    padding: .25em .643em;
    color: #858585;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    font-family: "serif12_beta_rgregular",Georgia,serif;
}

.search-menu a:hover {
    color: #193368;
    text-decoration: none;
}

.site-logo {
    margin: 1.5em 0 1.5em 16%;
    width: 67%;
}

/**********************************************************************************************************************************************

$Navigation

******************************************************************************************************************************************** */

.js .site-nav {
    left: -100%;
    height: auto;
    height: 100%;
    transition: .5s left ease;
}

.menu-site-navigation-container {
    height: 0;
}

.no-js .menu-site-navigation-container {
    clear: right;
    margin: 3.5em 0 0 0;
}

.active-nav {
    left: 65%;
}

.active-nav .site-nav {
    margin-left: 0;
    width: 65%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 1000;
    background: #101010;
    height: auto;
    height: 100%;
    padding: 3em 5% 0 5%;
}

.active-nav .site-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3% 10%;
}

.active-nav .site-nav a {
    color: #fff;
}

.active-nav .menu-site-navigation-container {
    height: auto;
}

.menu-toggle::before {
    background: #5d5d5d none repeat scroll 0 0;
    box-shadow: 0 0.25em 0 0 #5d5d5d, 0 0.5em 0 0 #5d5d5d;
    content: "";
    height: 0.15em;
    left: 0;
    position: absolute;
    top: 0.25em;
    width: 1em;
}

.menu-toggle {
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
    border: medium none;
    font-size: 1.75em;
    margin: 0.179em 0 0;
    padding-left: 1.25em;
    position: absolute;
    left: .5em;
    text-indent: -9999em;
    top: 3em;
    z-index: 2000;
    width: 2em;
    box-shadow: none;
}

.active-nav .menu-toggle {
    top: 0;
    right: 0;
    left: auto;
}

.active-nav .menu-toggle::before {
    background: #fff none repeat scroll 0 0;
    box-shadow: 0 0.25em 0 0 #fff, 0 0.5em 0 0 #fff;
}

.js .site-nav form {
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
}

.no-js header[role="banner"] .site-nav form {
    display: none;
}

.active-nav .site-nav form {
    width: 100%;
    height: auto;
    background: #454d54;
}

.site-nav label {
    display: none;
}

.site-nav input {
    float: left;
    width: 64%;
}

.site-nav input[type="submit"] {
    width: 36%;
    float: left;
    background: none;
    border: 0;
    color: #fff;
    box-shadow: none;
    padding: 0;
    line-height: 2.571em;
}

/**********************************************************************************************************************************************

$HomePage

******************************************************************************************************************************************** */

.home-slider {
    height: 100%;
}

.slider {
    width: 100%;
}

.no-js .slider {
    max-height: 27.375em;
    margin: 0 0 1em 0;
}

.slider li {
    margin: 0;
    width: 100%;
}

.slider-nav {
    bottom: 1%;
    left: 0;
    text-align: center;
    width: 100%;
    z-index: 1000;
}

.slider-nav span {
    background: #02376d;
    border: .125em solid #fff;
    border-radius: 1.25em;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: inline-block;
    height: .625em;
    margin: 0 .5em;
    opacity: 0.74;
    text-indent: -999em;
    transition: background 0.5s ease 0s, opacity 0.5s ease 0s;
    width: .625em;
}

.slider-nav span.active {
    background: #499bcb;
}

.home-brands li {
    float: left;
    margin-right: 1em;
}

.no-js .home-brands li {
    width: 15.625em;
    height: 15.625em;
}

.home-brands li li, .home-brands img {
    width: 15.625em;
    height: 15.625em;
}

.brand-intro {
    background: rgb(69,152,201);
    background: rgba(69, 152, 201, 0.9);   
    padding: 2%;
    text-align: center;
    color: #fff;
    background: #5ba4cf;
}

.home-content {
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: column wrap;
    flex-flow: column wrap;
}

.home-content article:nth-of-type(1)
{
    order: 1;
}

.home-jobs
{
    order: 2;
}

.home-content article:nth-of-type(2)
{
    order: 3;
}

.home-content .text-block {
    order: 5;
    background-size: cover;
}

.home-covers {
    order: 4;
}

.home-post {
    padding: .5em 5%;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 -6px 12px rgba(0, 0, 0, 0.25) inset, 0 6px 12px rgba(0, 0, 0, 0.25) inset;
}

.home-post .content, .text-block-inner {   
    background: #7599c6;
    background: rgb(117,153,198);
    background: -moz-linear-gradient(top,  rgba(117,153,198,.85) 0%, rgba(99,139,190,.85) 100%);
    background: -webkit-linear-gradient(top,  rgba(117,153,198,.85) 0%,rgba(99,139,190,.85) 100%);
    background: linear-gradient(to bottom,  rgba(117,153,198,.85) 0%,rgba(99,139,190,.85) 100%);
    border: 6px solid #638bbe;
    color: #fff;
    padding: 1.5em;
    text-shadow: none;
}

.no-cssgradients .home-post .content {  
    background: #7599c6;
}

.home-post h1 {
    color: #fff;
    text-shadow: none;
    font-size: 1.625em; 
    line-height: 1.2;
}

.no-js .home-jobs {
    margin: 1.5em 0;
}

.home-jobs, .home-covers {
    padding: 1em 5% 0 5%;
    background: #F5F5F6;
}

.home-jobs h1, .home-covers h1 {
    margin: 0;
    color: #144673;
}

.home-jobs h1 a, .home-covers h1 i {
    color: #b3b3b3;
    display: block;
    clear: both;
    font-size: .350em; 
    font-weight: normal;
    margin: -.857em 0 0 0;
}

.home-jobs h2 a {
    color: #558fbf;
}

.home-jobs li {
    border-top: 1px solid #eee;
    padding: 1em 0;
    color: #7e7e7e;
}

.home-jobs .button {
    margin: 1em 0;
}

.text-block {
    background: #638bbe;
}

@media only screen and (min-width: 30em) {
    .home-jobs li {
        float: left;
        width: 45%;
        border: none;
    }

    .home-jobs li:nth-child(even) {
        float: right;
    }

    .home-jobs li:nth-child(2n+1) {
        clear: both;
    }

    .home-jobs .button {
        float: right;
    }
}

.anchor-link {
    margin: 1em 0;
}

.text-block h1 {
    color: #fff;
    text-shadow: none;
    font-size: 1.625em;
}

.text-block-inner {
    width: 73%;
    margin: 1em auto;
    color: #fff;
}

.shop-covers {
    margin: 1.5em 0 0 0;
    text-align: center;
    width: 100%;
}

.shop-covers > li {
    width: 100%;
}

.no-js .shop-covers li {
    float: left;
    margin: 0 1em 1em 3em;
    width: 11.250em;
}

.no-js .shop-covers li:nth-child(5n+1) {
    clear: both;
}

.shop-covers ul {
    text-align: left;
}

.shop-covers li li {
    display: inline-block;
}

.cover-prev, .cover-next {
    left: 2%;
    top: 26%;
    z-index: 1000;
    background: url(../img/icons/arrow-left.png) center center no-repeat rgba(255,255,255,.75);
    width: 7.688em;
    height: 15.375em;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.cover-next {
    left: auto;
    right: 2%;
    background: url(../img/icons/arrow-right.png) center center no-repeat rgba(255,255,255,.75);
}

@media only screen and (min-width: 27.188em) and (max-width: 40.874em) {

    .shop-covers li li:nth-child(odd) {
        clear: both;
    }

    /*.shop-covers li li:nth-child(even) {
        float: right;
    }*/

}
/**********************************************************************************************************************************************

$Blog

******************************************************************************************************************************************** */

.blog main {
    overflow: hidden;
}

.blog-posts {
    margin-left: 6.071428571428571%;
}

.blog-header {
    margin: 2em 0 0 0;
}

.blog-header h1 {
    margin: 0;
}

.blog-list .post {
    background: #e9edf1;
    padding: 1em;
    margin: 0 0 2em 0;
}

.post h1 {
    font-size: 1.750em;
    line-height: 1.25;
}

.post h1 a {
    color: #558fbf;
}

.post .entry-meta {
    display: none;
}

.blog [itemprop="image"] {
    display: none;
}

.posts-navigation {
    margin: 0 0 1.5em 0;
}

.posts-navigation li {
    float: left;
    margin: 0 1em 0 0;
}

.posts-navigation a {
    background: #144673;
    color: #fff;
    display: block;
    padding: .5em;
    line-height: 1;
    border: 1px solid #144673;
}

.posts-navigation .active a, .posts-navigation .active a:visited {
    background: #fff;
    color: #144673;
}

.posts-navigation a:visited {
    color: #fff;
}

.single-post main {
    background: #F5F5F6;
    padding: 2em 5%;
}

.widget_archive {
    margin: 0 0 1.5em 0;
}

.widget_archive label {
    display: none;
}

/**********************************************************************************************************************************************

$Pages

******************************************************************************************************************************************** */

[itemprop="articleSection"], .archive [itemprop="mainContentOfPage"][role="main"] {
    border-bottom: 1px solid #eee;
    padding: 2em 6.071428571428571%;
}

[itemprop="articleSection"]:nth-child(2n+1) {
    background: rgb(245, 245, 246);
}

[itemprop="articleSection"]:last-of-type {
    border: none;
}

.page-inner {
    margin: 2em auto;
    max-width: 76.875em;
    overflow: hidden;
    width: 98%;
}

.companies-list, .brand-list {
    text-align: center;
}

.companies-list li, .brand-list li {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    max-width: 100%;
}

.brand-list li {
    margin: 0 0 .625em 0;
}

.info-slide {
    background: rgb(69,152,201);
    background: rgba(69, 152, 201, 0.9);
    height: 0;
    left: 0;
    padding: 5%;
    position: absolute;
    top: 100%;
    transition: all 0.3s linear 0s;
    width: 100%;
    text-align: center;
    color: #fff;
}

.extra-info li:hover > .info-slide {
    height: 100%;
    top: 0;
}

.info-slide *, .brand-intro * {
    color: #fff;
}

.info-slide h2, .brand-intro h2 {
    line-height: 1;
}

.info-slide .button, .brand-intro .button {
    max-width: 80%;
}

.error404 main {
    padding: 2em 6.071428571428571%;
}

.error404 .search-form {
    margin: 0 0 1.5em 0;
}

.error404 input {
    width: 80%;
    float: left;
}

/**********************************************************************************************************************************************

$Companies

******************************************************************************************************************************************** */

.single-companies {
    background: #F5F5F6;
}

.related-side-content {
    background: #f1eeeb;
    color: #144673;
    font-size: .938em;
    margin: 0 0 1em 0;
    overflow: hidden;
    padding: 3%;
    text-shadow: .067em .067em 0 rgba(255, 255, 255, 0.5);
}

.related-side-content .website {
    background: url("../img/icons/laptop.svg") no-repeat left center / contain;
    padding: 0 0 0 3em;
    font-size: 1.125em; 
}

.related-side-content h2 {
    font-size: 1.2em;
    background: url("../img/icons/envelope.svg") no-repeat left center / contain;
    padding: 0 0 0 2em;
}

.company-image {
    display: none;
}

/**********************************************************************************************************************************************

$Brands

******************************************************************************************************************************************** */

.download {
    background: url("../img/icons/arrow_dwn.svg") no-repeat scroll left center / contain;
    padding: 0 0 0 2.4em;
}

.external {
    background: url("../img/icons/globe.png") no-repeat scroll left center / contain;
    padding: 0 0 0 2.4em;
}

.brand-filter {
    font-family: "serif12_beta_rgitalic",Georgia,serif;
    font-size: 14px;
    list-style: outside none none;
    margin: 1.357em 0 0 0;
    overflow: hidden;
    padding: 0;
    float: right;
}

.brand-filter::before {
    content: "Filter By: ";
    display: inline-block;
}

.brand-filter li {
    display: inline;
}

.brand-filter a {
    border-right: 1px solid #ccc;
    color: inherit;
    display: inline-block;
    padding: 0 1em;
    text-decoration: none;
}

.brand-filter li:last-child a {
    border: medium none;
}

.brand-filter a:hover, .brand-filter li.active a {
    color: #144673;
}

.social-link {
    padding: 0 0 0 2.4em;
}

.twitter-social-link {
    background: url(../img/icons/twitter.png) left center no-repeat;
}

.facebook-social-link {
    background: url(../img/icons/facebook.png) left center no-repeat;
}

.instagram-social-link {
    background: url(../img/icons/instagram.png) left center no-repeat;
}

.linkedin-social-link {
    background: url(../img/icons/linkedin.png) left center no-repeat;
}

/**********************************************************************************************************************************************

$Contact

******************************************************************************************************************************************** */

.contact-page {
    background: #fff;
}

.locations {
    background: #F0F0F0;
    padding: 1em 0;
}

.location-slider li {
    width: 100%;
    padding: 0 20%;
}

.map-prev, .map-next {
    left: 0;
    top: 47%;
    top: calc(50% - 30px);
    text-indent: -9999em;
    background: url(../img/icons/arrow-left.png);
    width: 41px;
    height: 61px;
    z-index: 1000;
    cursor: pointer;
}

.map-next {
    left: auto;
    right: 0;
    background: url(../img/icons/arrow-right.png);
}

.department-contact {
    background: #fff;
}

.department-contact > li, .no-js .location-slider li {
    background: #f1eeeb;
    color: #144673;
    padding: 3%;
    margin: 1%;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    min-height: 17.75em;
}

.no-js .location-slider li {
    background: rgb(245, 245, 246) none repeat scroll 0 0;
    min-height: 0;
}

.department-contact li li {
    margin: 0;
    padding: 0;
    font-size: .938em;
}

/**********************************************************************************************************************************************

$Search

******************************************************************************************************************************************** */

.search-results main > header, .search-no-results main > header {
    margin: 1em 0 0 6.07143%;
}

/**********************************************************************************************************************************************

$Sidebar

******************************************************************************************************************************************** */

.widget_search {
    overflow: hidden;
    margin: 0 0 1em 0;
    width: 100%;
    background: #f1eeeb;
    padding: 3%;
}

.widget_search form {
    width: 100%;
    background: none;
}

.widget_search input {
    width: 75%;
    float: left;
}

.widget_search input[type="submit"] {
    width: 25%;
}

/**********************************************************************************************************************************************

$Footer

******************************************************************************************************************************************** */

footer[role="contentinfo"] {
    padding: 2em 5%;
    margin: 3em 0 0 0;
    background: rgb(245, 245, 246);
}

footer[role="contentinfo"] h4 {
    border-bottom: 1px solid #eee;
}

footer[role="contentinfo"] a {
    color: #858585;
}

footer[role="contentinfo"] ul {
    margin: 0 0 1em 0;
}

footer[role="contentinfo"] li {
    float: left;
    margin: 0 6% 0 0; 
    font-size: .875em; 
}

footer[role="contentinfo"] small {
     border-top: 1px solid #eee;
     color: #858585;
     padding: 1em 0;
}

footer[role="contentinfo"] .footer-menu li {
    margin: 0 3% 0 0;
}

.footer-menu li:last-child {
    margin-right: 0;
}