/**
 * Template: Newstype
 * Version: 1.0
 * Author: @daviddgolding
 * Website: http://davidgolding.com
 */

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    word-break: break-word;
    word-wrap: break-word;
    font-family: "Open Sans", Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald", "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
}

h1 a:hover, h2 a:hover, h3 a:hover {
    text-decoration: none;
    color: #9c1e1e !important;
    -webkit-transition: color .3s ease-in-out;
    -moz-transition: color .3s ease-in-out;
    transition: color .3s ease-in-out;
}

hr.small {
    max-width: 100px;
    margin: 1.0rem auto;
    border-top: 1px solid #ccc;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

hr.double {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 0;
    border-right: 0;
    margin: 1.0rem auto;
    height: 4px;
}

hr.small.bold {
    margin: 1.8rem 0;
    border-top: 3px solid #333;
}

/**
 * Site header
 */

.intro-header {
    display: table;
    width: 100%;
    margin-top: 50px;
}

.intro-header .site-brand {
    width: 100%;
    min-height: 200px;
    background: #000 url("../img/ji-banner.jpg") no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.intro-header .site-brand:hover {
    cursor: pointer;
}

@media (min-width: 100px) and (max-width: 588px) {
    .intro-header .site-brand {
        min-height: 120px;
    }
}

@media only screen and (min-width: 768px) {
    .intro-header {
        margin-top: 0;
    }
    
    .intro-header .site-brand {
        min-height: 280px;
    }
}

/**
 * Navigation
 */
.navbar-custom {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    text-transform: uppercase;
    font-family: "Oswald", "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
    background-color: #333;
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    display: block;
}

.navbar-custom .navbar-brand:focus {
    outline: 0;
}

.navbar-custom .navbar-brand .navbar-toggle {
    padding: 4px 6px;
    font-size: 16px;
    color: #fff;
    opacity: 1;
}

.navbar-custom .navbar-brand .navbar-toggle:focus,
.navbar-custom .navbar-brand .navbar-toggle:active {
    outline: 0;
}

.navbar-custom a {
    color: #777;
}

.navbar-custom .nav li a {
    -webkit-transition: background .3s ease-in-out;
    -moz-transition: background .3s ease-in-out;
    transition: background .3s ease-in-out;
}

.navbar-custom .nav li a:hover {
    outline: 0;
    color: #9c1e1e;
    background-color: transparent;
}

.navbar-custom .nav li a:focus,
.navbar-custom .nav li a:active {
    outline: 0;
    background-color: transparent;
}

.navbar-custom .nav li.active {
    outline: 0;
}

.navbar-custom .nav li.active a {
    background-color: #9c1e1e;
    color: #fff;
}

.navbar-custom .nav li.active a:hover {
    color: #fff;
}

.navbar-header i.glyphicon {
    color: #777;
}

@media (min-width:768px) {
    .navbar-custom {
        border-bottom: 0;
        letter-spacing: 1px;
        background: 0 0;
        -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
        -moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
        transition: background .5s ease-in-out,padding .5s ease-in-out;
    }
    
    .navbar-custom .navbar-brand {
        display: none;
    }

    .navbar-custom.top-nav-collapse {
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
        background: #333;
    }
    
    .navbar-custom.top-nav-collapse .navbar-brand {
        display: block;
    }
}

/**
 * Main body
 */

.masthead {
    padding-top: 3.0rem;
}

.masthead h2 {
    font-weight: 800;
    font-size: 4.4rem;
    line-height: 5.0rem;
}

byline p {
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.8rem;
}

byline .author {
    font-weight: 800;
    font-size: 1.6rem;
}

byline .datetime:before {
    content: '\00a0\2013\00a0';
}

byline .datetime {
    font-weight: 300;
}

.center-column {
    border-top: 1px solid #ccc;
    margin-top: 1.5rem;
}

.body-column {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

@media only screen and (min-width: 992px) {
    
    .body-column {
        border-right: 1px solid #ccc;
    }
}

.side-column {
    padding-top: 2.4rem;
}

article p {
    font-family: "Merriweather", "Minion Pro", "Minion", Palatino, serif;
    line-height: 2.8rem;
    font-size: 1.6rem;
    color: #111;
    text-shadow: 0 1px 0 #ffffff;
    display: block;
    -webkit-margin-before: 1rem;
    -webkit-margin-after: 1rem;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    margin-top: 0;
    margin-bottom: 1.8rem;
}

article ul, article ol {
    font-family: "Merriweather", "Minion Pro", "Minion", Palatino, serif;
    line-height: 2.8rem;
    font-size: 1.6rem;
    color: #111;
    text-shadow: 0 1px 0 #ffffff;
}

article h1 {
    font-size: 3.0rem;
    line-height: 3.6rem;
    font-weight: 800;
}

article h2 {
    font-size: 2.8rem;
    line-height: 3.4rem;
    font-weight: 400;
}

article h3, article h4, article h5, article h6 {
    font-size: 2.4rem;
    line-height: 3.0rem;
    font-weight: 100;
}

article h3 {
    font-weight: 800;
}

article h4 {
    padding-left: 2.4rem;
}

article h5 {
    text-align: center;
}

article h6 {
    text-align: center;
    font-variant: small-caps;
    text-transform: lowercase;
}

article > p:first-child::first-letter {
    float: left;
    font-size: 60px;
    line-height: 56px;
    padding: 0;
}

article blockquote p {
    font-size: 1.4rem;
    width: 85%;
}

@media (max-width: 600px) {
    img.alignright,
    img.alignleft,
    img.aligncenter,
    .wp-caption.alignright,
    .wp-caption.alignleft,
    .wp-caption.aligncenter {
        display: block;
        clear: both;
        margin: 3.0rem auto;
        width: 100%;
        height: auto;
    }
    
    article img, .story img, .story .wp-caption img {
        display: block;
        width: 100%;
        height: auto;
    }
    
    iframe, object, embed {
        max-width: 100%;
    }
    
    .wp-caption {
        max-width: 100% !important;
    }
}

@media (min-width: 600px) {
    .story .wp-caption.alignright, .story img.alignright,
    article img.alignright, article .wp-caption.alignright {
        float: right;
        margin: 0 0 3.0rem 3.0rem;
    }
    
    .story .wp-caption.alignleft, .story img.alignleft,
    article img.alignleft, article .wp-caption.alignleft {
        float: left;
        margin: 0 3.0rem 3.0rem 0;
    }
    
    .story .wp-caption.aligncenter, .story img.aligncenter,
    article img.aligncenter, article .wp-caption.aligncenter {
        clear: both;
        margin: 3.0rem auto;
    }
}

article .wp-caption, .story .wp-caption {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
}

article .wp-caption img, .story .wp-caption img {
    padding-bottom: 1.0rem;
    margin-bottom: 1.0rem;
}

article .wp-caption p.wp-caption-text,
.story .wp-caption p.wp-caption-text {
    font-size: 1.4rem;
    line-height: 2.0rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
    color: rgb(110, 110, 110);
    text-shadow: #ffffff 0px 1px 0px;
}

h3.new-section {
    text-align: left;
    border-top: 3px solid #333;
    padding-top: 1.0rem;
    max-width: 12rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

sidebar .search-module {
    margin-bottom: 3.0rem;
}

sidebar .panel.recent-comments {
    margin-top: 3.0rem;
    margin-bottom: 3.0rem;
}

sidebar ul {
    list-style-type: none;
    padding-left: 1.0rem;
}

sidebar ul li {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

sidebar h4 {
    margin: 0.8em 0;
}

sidebar li a:link, sidebar li a:active, sidebar li a:visited {
    color: inherit;
}

sidebar hr.small {
    margin-top: 2.0rem;
    margin-bottom: 2.0rem;
    margin-left: 0;
}

a.leave-comment {
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.comment-section {
    margin-top: 3.0rem;
}

.comment-section h3 {
    margin: 0;
}

ol.comment-list {
    counter-reset: li;
    padding-left: 0;
}

ol.comment-list > li:first-child {
    margin-top: 2.0rem;
}

ol.comment-list > li {
    list-style: none;
    position: relative;
    margin: 0 0 6px 2.0rem;
    padding-left: 2.0rem;
    padding-top: 2.0rem;
    padding-bottom: 2.0rem;
    border-top: 1px solid #ccc;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    max-width: 80%;
}

ol.comment-list > li:before {
    content: counter(li);
    counter-increment: li;
    position: absolute;
    font-weight: bold;
    left: -2.2rem;
    top: -1px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-right: 8px;
    padding: 4px 8px;
    text-align: center;
    background: #ccc;
}

@media only screen and (max-width: 768px) {
    
    ol.comment-list > li {
        max-width: 100%;
    }
}

ol.comment-list li p {
    font-size: 1.4rem;
    line-height: 2.2rem;
    margin-top: 1.0rem;
    margin-bottom: 1.0rem;
}

ol.comment-list li p:last-child {
    margin-bottom: 0;
}

ol.comment-list li:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

#leaveComment {
    margin-top: 3.0rem;
}

footer {
    width: 100%;
    height: 200px;
}

/**
 * Home page styles
 */
.story {
    clear: both;
}

.story h5, .section.masthead h5, .masthead h5 {
    font-size: 2.0rem;
    text-transform: lowercase;
    font-variant: small-caps;
    font-weight: normal;
    color: #337ab7;
    letter-spacing: 0.25rem;
    margin: 0 0 1.0rem 0;
}

.story h3 {
    font-size: 4.0rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.story h3 a {
    color: #333;
}

.story p {
    line-height: 2.8rem;
    font-size: 1.6rem;
    color: #111;
    text-shadow: 0 1px 0 #ffffff;
    display: block;
    -webkit-margin-before: 1rem;
    -webkit-margin-after: 1rem;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    margin-top: 0;
    margin-bottom: 1.8rem;
}

.story byline p {
    margin: 2.0rem 0 1.0rem 2.0rem;
    line-height: 1;
}

.story p.continue {
    text-align: right;
}

.section.masthead h5 {
    text-align: center;
}

.section.masthead h5:before {
    content: "\2013\00a0";
}

.section.masthead h5:after {
    content: "\00a0\2013";
}

.section.masthead h2 {
    text-align: center;
    font-weight: 200;
    margin: 0 0 1.0rem 0;
}

p.categories > a:after {
    content: ", ";
}

p.categories > a:last-child::after {
    content: "";
}