/*----------------------

TITLE 

----------------------*/

.content-item__title {
    text-align: left;
    font-size: 30px;
}

.subtitle {
    text-align: left !important;
    margin-top: 1em;
}

@media only screen and (min-width: 768px) {
    .content-item__title {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        font-size: 40px;
    }
    .content-item__byline {
        text-align: center !important;
        margin: 2em auto !important;
    }
    .subtitle {
        text-align: center !important;
    }
}
.content-item__related {
    text-align: left;
    max-width: 800px;
    margin: 1em auto;
}

/*----------------------

BODY TEXT

----------------------*/

p.di-blurb {
    margin: 2em auto;
    font: normal 16px/1.5em 'Merriweather', 'Times New Roman', Times, serif;
    max-width: 600px;
}
@media only screen and (min-width: 768px) {
    p.di-blurb {
        font-size: 18px;
        line-height: 1.7em;
    }
}
@media only screen and (min-width: 992px) {
    p.di-blurb {
        font-size: 20px;
    }
}
p.di-blurb a {
    color: #009dbf;
}
p.di-blurb a:focus,
p.di-blurb a:hover {
    color: #00c7f2;
    text-decoration: underline;
}
.di-credits {
    margin: 2em auto;
    font: normal 14px/1.5em 'Merriweather', 'Times New Roman', Times, serif;
}
.di-credits a {
    color: #009dbf;
}
.di-credits a:focus,
.di-credits a:hover {
    color: #00c7f2;
    text-decoration: underline;
}
.di-error {
    margin: 2em auto;
    font: normal 14px/1.5em 'Merriweather', 'Times New Roman', Times, serif;
}

.ctr p {
    margin: 0 auto 2em auto;
    line-height: 1.82857143em;
    text-align: left;
    max-width: 800px;
}
.blockquote {
    margin-bottom: 10px;
}
.blockquote p {
    margin: 0 0 10px;
}
.blockquote small {
    text-align: right;
}
.ctr {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    text-align: center;
}
.ctr h4 {
    text-align: left;
    margin: 18px auto 10px auto;
    max-width: 800px;
    clear: both;
}
.ctr img {
    width: 85%;
    margin: 3em 0 3em 0;
}
.ctr img.mobile {
    display: none;
    width: 100%;
}
.ctr img.county {
    width: 50%;
    display: inline-block;
    vertical-align: top;
    padding: 0 1em;
}
.inline {
    display: inline-block;
    width: 49%;
}
.inline .show {
    margin: 2em auto;
}
.image-caption {
    max-width: 800px;
    margin: 0 auto 2em auto;
}
@media only screen and (max-width: 768px) {
    .inline {
        display: block;
        width: 100%;
    }
    .ctr img {
        display: none;
        margin: 2em 0em 2em 0em;
    }
    .ctr img.county {
        display: none;
    }
    .ctr img.mobile {
        display: block;
    }
}

.btn-group-vertical>.btn.active, .btn-group-vertical>.btn:active, .btn-group-vertical>.btn:focus, .btn-group-vertical>.btn:hover, .btn-group>.btn.active, .btn-group>.btn:active, .btn-group>.btn:focus, .btn-group>.btn:hover {
    z-index: 0;
    outline: none;
}

/*----------------------

INTERACTIVE

----------------------*/

.button-cluster {
    text-align: left;
    max-width: 800px;
    margin: 4% auto -28px;
}

@media only screen and (max-width: 768px) {
    .button-cluster {
        margin: 10% auto 2%;
        text-align: center;
    }
    .button-cluster .disp {
        display: block;
        margin: 0.5em;
    }
}

.button-cluster span {
    font-family: "Source Sans Pro", sans-serif;
}

.interactive-btn-per, .interactive-btn-usd {
    background-color: #eee;
    padding: 6px;
    cursor: pointer;
}

.selected {
    background-color: #c7c7c7;
}

#interactive {
    margin: 4em 0;
}
#interactive text {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
}

@media only screen and (max-width: 768px) {
    #interactive {
        margin: 2em 0;
    }
    #interactive text {
        font-size: 10px;
    }
}
.axis path,
.axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
}

.y.axis line {
    display: none;
}
.y.axis .minor line {
    display: block;
    stroke: #E0E0E0;
    stroke-dasharray: 2,2;
}
.x.axis line {
    stroke: #E0E0E0;
}

.domain {
    display: none;
}

.bar {
    fill: steelblue;
}

.x.axis path {
    display: none;
}

.d3-tip {
    font-family: "Source Sans Pro", sans-serif;
}
.d3-tip .tbl {
    display: table;
}
.d3-tip .row {
    padding: 4px 0;
    display: table-row;
    font-weight: 300;
}
.d3-tip div span {
    display: table-cell;
    padding: 5px 3px 0 0;
}
.d3-tip .year {
    font-weight: 500;
    font-size: 1.2em;
    margin-bottom: 5px;
    padding-bottom: 0.5em;
    border-bottom: 1px solid dimgrey;
}

/*----------------------

IMAGES

----------------------*/
.content-item__caption {
    max-width: 800px;
    margin: 0 auto 2em;
}
.content-item__caption {
    text-align: center;
}
.chart-item {
    background-repeat: no-repeat;
    background-position: center 25%;
    margin: 4em 0;
}
.chart1 {
    height: 315px;
    background-image: url('img/chart01-desktop.png'); 
}
.chart2 {
    height: 315px;
    background-image: url('img/chart02-desktop.png'); 
}
.chart3 {
    height: 315px;
    background-image: url('img/chart03-desktop.png'); 
}
@media only screen and (max-width: 768px) {
    .chart1 {
        height: 315px;
        background-image: url('img/chart01-mobile.png');
    }
    .chart2 {
        height: 315px;
        background-image: url('img/chart02-mobile.png');
    }
    .chart3 {
        height: 315px;
        background-image: url('img/chart03-mobile.png');
    }
}
