/* =========================

HOW AMERICA GIVES

========================= */
body {
    overflow-x: hidden;
    overflow-y: hidden;
}

#how-america-gives {
    position: fixed;
    top: 36px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: #000;
}

div#ie8 {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    padding: 3em;
    color: #fff;
    background-color: #000;
    text-align: center;
}

div#ie8 a img {
    border: 0 none transparent;
}
div#ie8 img.screenshot {
    border: 0 none transparent;
}
/* =========================
SEPTILE COLORS
========================= */

.septile-1 {background: #ffffcc !important;}
.septile-2 {background: #d9f0a3 !important;}
.septile-3 {background: #addd8e !important;}
.septile-4 {background: #78c679 !important;}
.septile-5 {background: #41ab5d !important;}
.septile-6 {background: #238443 !important; color: #fff !important;}
.septile-7 {background: #005a32 !important; color: #fff !important;}

.border-septile-1 {border-color: #ffffcc !important;}
.border-septile-2 {border-color: #d9f0a3 !important;}
.border-septile-3 {border-color: #addd8e !important;}
.border-septile-4 {border-color: #78c679 !important;}
.border-septile-5 {border-color: #41ab5d !important;}
.border-septile-6 {border-color: #238443 !important;}
.border-septile-7 {border-color: #005a32 !important;}

/* =========================

MAP

========================= */

#di-give-nav-buttons {
    position: fixed;
    top: 3px;
    right: 3px;
}
.di-purchase-btn {
    display: none;
}
.di-give-btn:active,
.di-give-btn:hover,
.di-give-btn:focus {
    box-shadow: none;
}

.leaflet-top, .leaflet-bottom {
    z-index: 1;
}
.leaflet-popup-content-wrapper {
    -webkit-border-radius: 5px;
       -moz-border-radius: 5px;
        border-radius: 5px;
}
.leaflet-popup-content {
    text-align: center;
}
#di-map-section {
    display: block;
    position: fixed;
    top: 36px;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
}
#map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
#di-map-controls {
    position: absolute; 
    top: 10px;
    left: 10px; 
    z-index: 1;
    max-width: 78%;
    background-color: #fff;
    padding: 7px;
}
div.di-legend {
    margin-bottom: 5px;
    overflow: hidden;
    font: normal 10px Arial,sans-serif;
}
div.di-legend-row {
    overflow: hidden;
}
div.di-legend-label {
    width: 70px;
    height: 1em;
    float: left;
    margin: 0;
    color: #000;
    font: bold 11px Arial,sans-serif;
    line-height: 20px;
}
div.di-legend-rates {
    width: 25px;
    height: 1em;
    float: left;
    text-align: left;
    line-height: 1em;
}
div.di-legend-rates.hidden-mobile {
    visibility: hidden;
}
div.swatch {
    width: 25px;
    height: 14px;
    float: left;
    margin-bottom: 3px;
    opacity: .7;
}
.gives-tooltip {
    display: block;
    width: auto !important;
    height: auto !important;
    overflow: hidden;
    white-space: nowrap;
    opacity: .9;
    background-color: #fff;
    padding: 5px 10px 7px;
    margin: 15px 0 0 15px !important;
    font: normal 18px 'Roboto Condensed', Arial, sans-serif;
    -webkit-border-radius: 0;
       -moz-border-radius: 0;
            border-radius: 0;
}
/* =========================

AD PLACEMENT 

========================= */
.cubead {
    display: none;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    margin: 3em 0 0;
    padding: 1em 0;
    background-color: #E4E4E4;

}
.cubead div {
    margin: auto !important;
}
.cubead .di-label {
    font: 12px Arial;
    color: #777;
    text-transform: uppercase;
}
#sponsorships-section {
    position: absolute;
    right: 15px;
    bottom: 20px;
    left: 15px;
    z-index: 2;
    padding: 0;
    opacity: .9;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}
.sponsorships {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 10px;
    overflow: hidden;
    background: #fff;
}
#sponsorships-section h6 {
    margin: 0;
    color: #777;
    font: normal 12px Arial,sans-serif;
    text-align: center;
    text-transform: uppercase;
}
#sponsorships-section .close {
    position: absolute;
    right: 5px;
    top: 2px;
}
.sponsorship {
    float: left;
    width: 25%;
    margin-right: 11%;
}
.sponsorship:last-child {
    margin-right: 0;
}
.sponsorship img {
    width: 100%;
    border: 0px none transparent;
}

/* =========================

INFO PANELS

========================= */

#expand-panel {
    position: fixed;
    display: block;
    width: 50%;
    background: #fff;
}
#info-panel {
    position: fixed;
    top: 100%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    width: 100%;
    background-color: #fff;
    -webkit-transition: all 0.2s;  
       -moz-transition: all 0.2s;  
         -o-transition: all 0.2s;  
            transition: all 0.2s; 
}
#info-panel.expanded {
    top: 36px;
    -webkit-transition: all 0.2s;  
       -moz-transition: all 0.2s;  
         -o-transition: all 0.2s;  
            transition: all 0.2s; 
}
#panel-wrapper {
    min-width: 400%;
    width: 400%;
    max-width: 400%;
    -webkit-transition: all 0.2s;  
       -moz-transition: all 0.2s;  
         -o-transition: all 0.2s;  
            transition: all 0.2s; 
}
#panel-wrapper.active-search {
    margin-left: 0%;

}
#panel-wrapper.active-results {
    margin-left: -100%;

}
#panel-wrapper.active-place {
    margin-left: -200%;
}
#panel-wrapper.active-glossary {
    margin-left: -300%;
}
.info-panel-section {
    position: relative;
    width: 25%;
    display: inline-block;
    float: left;
    
}
.di-panel-body {
    padding: 2%;
    background-color: #eee; 
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

/* 'height: calc(x)' options will be overwitten by JS */

#search-panel .di-panel-body {
    padding: 0;
    height: calc(100vh - 36px);
}
#results-panel .di-panel-body {
    height: calc(100vh - 76px);
}
#place-panel .di-panel-body {
    height: calc(100vh - 690px);
}
#di-glossary-panel .di-panel-body {
    height: calc(100vh - 690px);
}

/* =========================

INTRO + SEARCH PAGE

========================= */

h1.di-headline {
    margin: 0;
}
.search-panel-intro {
    padding: 1em;
    background-color: #eee;
}
.search-panel-intro h2 {
    display: block;
    margin: 0;
    padding: 10px 0 0;
    color: #1A9957;
    text-align: center;
}
.di-byline {
    display: block;
    font: normal 14px 'Merriweather', serif;
    margin: 15px auto 10px;
    font-style: italic;
}
.di-byline a {
    white-space: nowrap;
}

/* Both search types */
.search-type {
    padding: 2%;
    background-color: #eee;
}
.di-search-type-header {
    cursor: pointer;
    display: block;
    height: 2em;
    line-height: 2em;
    padding-left: 15px;
    padding-right: 15px;
    color: #009dbf;
    background-color: #ccc;
    
}

@media only screen and (min-width: 768px) {
    .di-search-type-header {
        color: #666;
        background-color: #B2B2B2;
    }
}


.di-search-type-label {
    margin: 0;
}
.search-type-radio {
    display: none;
}
.search-type-radio:checked + label {
    color: #fff;
    background-color: #00759c;
    background-image: url('//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/checkmark-white.png');
    background-repeat: no-repeat;
    background-position: 98% 50%;
}
.di-search-type-header:hover {
    color: #fff;
    background-color: #006283;
}
input[type='number']::-webkit-inner-spin-button, 
input[type='number']::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.di-give-select {
    font: normal 12px Arial,sans-serif;
}
.di-give-select[multiple], .di-give-select[size] {
    height: auto;
}
.di-give-select[disabled], .di-give-select[readonly], .di-give-select[disabled] {
    cursor: not-allowed;
    background-color: #eee;
    opacity: 1;
}
.di-form-validation {
    color: #9A0F0F;
    font: normal 14px 'Roboto Condensed', Arial, sans-serif;
    margin: 1em auto 0;
    clear: both;
}
.di-form-validation p {
    margin: 15px;
}

/* Two search types: Disabled */
.disabled {
    opacity: .4; 
    cursor: not-allowed; 
    background: transparent;
}
.disabled .search-option-details {
    display: none;
}
.disabled label, 
.disabled input {
    cursor: not-allowed;
}

/* -----------------
Text search 
----------------- */
#text-search-type-details {
    padding: 15px;
    overflow: hidden;
}
.search-field {
    position: relative;
}
#text-search-button img {
    width: 20px; 
    height: 20px; 
    vertical-align: top
}

/* Disabled */
.disabled #text-search-button {
    background-color: #B5B5B5;
    border: 1px solid #B5B5B5;
}

/* -----------------
Advanced search
----------------- */

#advanced-search-type-details {
    overflow: hidden;
}

/* e.g. Find 'County' within 'United States' */
#places-filter {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.places-filter-options {
    overflow: hidden;
    padding: 2px 2px 2px 0;
    margin-bottom: 10px;
}
.places-filter-options label {
    height: 36px;
    float: left;
    font-size: 14px;
    line-height: 36px;
}
.places-filter-options .di-give-select {
    display: block;
    width: 100%;
}

/* Search option details (Religion, race, politics) */
.search-option {
    overflow: hidden;
}

.search-option-header {
    margin: 0;
}

.di-search-option-checkbox {
    display: none;
    float: right;
    margin-right: 15px;
}
.di-search-option-checkbox + label {
    cursor: pointer;
    display: block;
    height: 2em;
    line-height: 2em;
    margin-bottom: 0;
    padding-left: 10px;
    padding-right: 25px;
    color: #666;
    background-image: url('//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/arrow-right-gray.png');
    background-repeat: no-repeat;
    background-position: 99% 50%;
    border-bottom: 1px solid #ddd;
}
@media only screen and (min-width: 768px) {
    .di-search-option-checkbox + label:hover {
        color: #000;
        background-image: url('//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/arrow-right.png');
    }
}
.di-search-option-checkbox:checked + label {
    color: #fff;
    background-color: #00759c;
    background-image: url('//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/x-white.png');
    background-repeat: no-repeat;
    background-position: 98% 50%;
    border-bottom: 0 none transparent;
}
.di-search-option-checkbox:checked + label {
    -webkit-transition: background-color .2s;
            transition: background-color .2s;
}

.search-option-details {
    border-bottom: 1px solid #ddd;
    max-height: 300px;
    padding: 15px;
    -webkit-transition: max-height .25s, padding .25s linear;
            transition: max-height .25s, padding .25s linear;
    overflow: hidden;
}
.search-option-details.closed {
    border-bottom: 0 none transparent;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    -webkit-transition: max-height .25s, padding .25s linear;
            transition: max-height .25s, padding .25s linear;
}
.di-form-group {
    clear: both;
    overflow: hidden;
}

.di-form-helper {
    /* 'At least' labels */
    float: left;
    height: 34px;
    margin-right: 8px;
    font: normal 14px/34px 'Roboto Condensed', Arial, sans-serif;
}
.di-percent-container {
    float: left;
    width: 115px;
    padding: 4px 0;
    overflow: hidden;
}
@media only screen and (min-width: 992px) {
    .di-percent-container {
        padding: 0;
    }
}

.di-input-group-addon {
    font: normal 14px 'Roboto Condensed', Arial, sans-serif;
}
.search-option-details .di-give-select {
    display: block;
    width: 100%;
}
@media only screen and (min-width: 992px) {
    .search-option-details .di-give-select {
        width: 50%;
        float: right;
    }
}

#politics-category {
    display: block;
    width: 100%;
    line-height: 34px;
    margin-right: 5px;
}

.di-help-block {
    font: normal 14px 'Roboto Condensed', Arial, sans-serif;
}

/* Buttons + Cancel */
#advanced-search-button {
    display: block;
    float: right;
    color: #fff;
    margin: 1em;
}
.di-cancel {
    display: block;
    float: right;
    height: 45px;
    margin: 1em;
    padding: 0;
    border: none;
    font: normal 14px 'Roboto Condensed', Arial, sans-serif;
    color: #ccc;
    background: transparent;
    cursor: pointer;
}
.di-cancel:focus,
.di-cancel:active {
    outline: none;
}
.di-cancel:hover {
    color: #000;
    text-decoration: underline;
}

/* Disabled */
#advanced-search-type-details.disabled button {
    display: none;
}

.disabled .search-option-header-label:hover {
    cursor: not-allowed;
}
.disabled #advanced-form-validation {
    display: none
}
.disabled .di-search-option-checkbox + label {
    color: #666;
    background-color: #eee;
    background-image: url('//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/arrow-right-gray.png');
    background-position: 99% 50%;
    border-bottom: 1px solid #f2f2f2;
    -webkit-transition: background-color .2s;
            transition: background-color .2s;
}
.search-option.disabled {
    display: none;
}



/* =========================

HISTORY / BACK NAVIGATION BAR 

========================= */

ul.history {
    height: 36px;
    line-height: 36px;
    margin: 0;
    padding: 0;
    font: normal 18px/36px 'Roboto Condensed';
    list-style: none inside;
    text-align: center;
    background: #009dbf;
    overflow: hidden;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}
ul.history li {
    display: inline-block;
    float: right;
    margin-left: 14px; 
    padding: 0;
    line-height: 36px;
    color: #fff;
}
ul.history li a {
    color: #fff;
    text-decoration: none;
}
ul.history li a img {
    position: relative;
    top: -2px;
    vertical-align: middle;
    border: 0px none transparent;
}
ul.history li:active,
ul.history li:focus {
    opacity: .8;
} 
@media only screen and (min-width: 768px) {
    ul.history li:hover {
        opacity: .8;
    }
}

/* Search */
ul.history li.search {margin-right: 15px;}
ul.history li.search a img {
    width: 20px; height: 20px;
}

/* Back */
ul.history li.back {
    position: absolute;
    left: 0;
    margin-left: 0;
    cursor: pointer;
}
ul.history li.back img {
    vertical-align: middle;
    width: 22px;
}

/* Embed and popover */
li.embed {
    display: none !important;
    cursor: pointer;
}
li.embed.open {
    opacity: .8;
}
.di-popover {
    position: absolute;
    z-index: 1;
    right: 5px;
    padding: 5px;
    line-height: 9px;
    background: #eee;
    border: 1px solid #666;
}
.di-popover-header {
    overflow: hidden;
}
.di-popover-instructions {
    float: left;
    font: normal 14px 'Roboto Condensed', Arial, sans-serif;
}
.di-popover .di-close {
    float: right;
    text-align: right;
}
.di-popover textarea {
    width: 200px;
    font: normal 10px monospace;
    resize: none;
}

/* =========================

INFO PANEL: RESULTS PAGE AND GLOSSARY

========================= */

/* Results title */

li.results-header h2 {
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

li.results-header {
    float: none !important;
    margin: 0 !important;
}

li.results-header:hover {
    opacity: 1 !important;
}

.search-query-summary {
    height: 36px;
    color: #666;
    background-color: #eee;
    font: normal 16px/36px 'Roboto Condensed', Arial, sans-serif;
    text-align: center;
}

#results {
    list-style: none inside;
    margin: 0;
    padding: 0;
}

a.results-link {
    display: block;
    padding: 15px;
     color: #009dbf;
    background-color: #fff;
    font: normal 18px 'Roboto Condensed', Arial, sans-serif;
    background-repeat: no-repeat;
    background-position: 99% 50%;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}

a.results-link:active,
a.results-link:focus {
    color: #00759c;
    background-color: #ddd;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
}

@media only screen and (min-width: 768px) {
    a.results-link:hover {
        color: #00759c;
        background-color: #ddd;
        border-bottom: 1px solid #ddd;
        text-decoration: none;
    }
}

#spinner {
    position: absolute;
    top: 36px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background-image: url("https://s3.amazonaws.com/chronicle/DI/how-america-gives-2014/spinner.gif");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    opacity: .5;
}
#spinner.hidden {
    display: none;
}


/* =========================

INFO PANEL: PLACE PAGE

========================= */

.di-panel-loading {
    color: #666;
    font: normal 16px/36px 'Roboto Condensed', Arial, sans-serif;
    text-align: center;
}
#place-panel .place-header {
    color: #fff;
    background-color: #009dbf;
    overflow: hidden;
}
#place-panel .header-name {
    min-height: 36px;
    padding: 5px 10px;
}
#place-panel .header-name h2 {
    display: block;
    margin: 0;
    font-weight: 300;
    font-size: 24px;
    line-height: 1em;
    text-align: center;
}

/* TABLE ELEMENTS */


.di-table {
    width: 100%;
    font: normal 14px 'Roboto Condensed', Arial, sans-serif;
    border: 0px none transparent;
    border-collapse: collapse;
    border-spacing: 0;
    border-image-width: 0;
    text-align: left;
}
.di-table tr {
    border-bottom: 1px solid #eee;
}

.di-table td {
    padding: 7px 15px;
    background-color: #fff;
}
.di-table td.di-colspan-2 {
    padding: 0;
}
.di-table-top-level-header {
    font: bold 18px/36px 'Roboto Condensed', Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
    padding-top: 1em;
}

.giving-ratio-2006 td:nth-child(1) {
    padding-left: 30px;
}

/* first column */
.di-table td:nth-child(1) {
    text-align: left;
    font-weight: normal;
    padding-right: 0;
}
/* second column */
.di-table td:nth-child(2) {
    text-align: right;
    font-weight: bold;
    padding-left: 10px;
}

.di-subtable {
    margin-left: 15px;
    width: 90%;
    width: calc(100% - 15px);
}

.di-subtable tr {
    border-bottom: 1px dotted #f2f2f2;
}
.di-subtable tr:last-child {
    border-bottom: 0 none transparent;
}

.di-subtable td:nth-child(1) {
    padding-left: 15px;
}

.di-subtable th {
    padding: 5px 8px 5px 0;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
}

.giving-by-agi th {
    text-align: left;
    font-weight: normal;
    font-size: 14px;
    padding: 7px 15px;
}
.giving-by-agi td {
    padding: 0;
}
.giving-by-agi tr {
    border-bottom: 0 none transparent;
}

.table-expandable {
    cursor: pointer;
    margin-left: 30px;
    width: 90%;
    width: calc(100% - 30px);
}
.table-expandable th {
    padding-left: 0;
    color: #009dbf;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 99% center;
    border-bottom: 1px solid #eee;
}
.table-expandable th:active,
.table-expandable th:focus {
    color: #004f69 ;
}
@media only screen and (min-width: 768px) {
    .table-expandable th {
        background-image: url("//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/arrow-right-gray.png");
    }
}


.gte-200k.table-expandable th {
    border-bottom: 0 none transparent;
}
.gte-200k.table-expandable tr:last-child {
    border-bottom: 0 none transparent;
}
.table-expandable tr {
    border-bottom: 1px dotted #f2f2f2;
}
.table-expandable td {
    padding: 4px 15px;
}
.table-expandable thead.open th {
    color: #00759c;
    background-image: url("//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/arrow-down-gray.png");
    border-bottom: 0 none transparent;
}
@media only screen and (min-width: 768px) {
    .table-expandable thead:hover th {
        color: #00759c;
        background-image: url("//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/arrow-right-gray.png");
    }
}

.table-expandable thead.open:hover th {
    background-image: url("//s3.amazonaws.com/chronicle-studio/how-america-gives-2014/src/img/icons/arrow-down-gray.png");
}

/* Glossary links */
a.glossary-link {
    color: #000;
    text-decoration: none;
    border-bottom: 1px dotted #000;
}
a.glossary-link:hover {
    color: #798FA3;
    border-bottom: 1px dotted #798FA3;
}

a.glossary-icon {
    display: inline-block;
    margin-left: 3px;
    width: 18px;
    height: 18px;
    color: #fff;
    background-color: #00759c;
    text-decoration: none;
    text-align: center;
    font: 700 12px/18px 'Roboto Condensed', Arial, sans-serif;
    vertical-align: text-bottom;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
}

a.glossary-icon:active, 
a.glossary-icon:focus {
    background-color: #004f69;
    text-decoration: none;
}
@media only screen and (min-width: 768px) {
    a.glossary-icon:hover {
        background-color: #004f69;
        text-decoration: none;
    }
}



/* Neighbors */
.neighbors {
    padding-top: 1em;
}
.neighbors-header {
    font: bold 18px/20px 'Roboto Condensed', Arial, sans-serif;
    text-transform: uppercase;
    padding: 1em 15px 7px;
    overflow: hidden;
}
.neighbors-header-name {
    float: left;
    width: 50%;

}
.neighbors-header-rate {
    float: right;
    width: 50%;
    text-align: right;
}
ul.neighbors-list {
    list-style: none inside;
    margin: 0;
    padding: 0;

}
li.neighbor-summary-view {
    color: #000;
    background-color: #fff;
    font: normal 18px 'Roboto Condensed', Arial, sans-serif;
    background-repeat: no-repeat;
    background-position: 99% 50%;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}

li.neighbor-summary-view:active,
li.neighbor-summary-view:focus {
    background-color: #ddd;
    border-bottom: 1px solid #ddd;
}

li.neighbor-summary-view:active .neighbor-summary-name,
li.neighbor-summary-view:focus .neighbor-summary-name {
    color: #00759c;
}

@media only screen and (min-width: 768px) {
    li.neighbor-summary-view:hover {
        background-color: #ddd;
        border-bottom: 1px solid #ddd;
    }
    li.neighbor-summary-view:hover .neighbor-summary-name {
        color: #00759c;
        background-color: #ddd;
    }
}

a.neighbor-link {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 15px;
    overflow: hidden;
}

a.neighbor-link:hover {
    color: #000;
    text-decoration: none;
}


.neighbor-summary-name {
    float: left;
    width: 80%;
    width: calc(100% - 50px);
    color: #009dbf;
    line-height: 1em;
}

.neighbor-summary-rate {
    float: right;
    width: 50px;
    font-weight: bold;
    line-height: 1em;
    text-align: right;
}


/* =========================

GLOSSARY

========================= */


#di-glossary-panel header h2 {
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.glossary-term {
    font-weight: bold;
}


/* =========================

RESPONSIVE

========================= */


@media only screen and (max-width: 400px) {
    .di-navbar-logo {
        margin-left: 10px;
    }
    .di-navbar-logo a {
        background-size: 380px 14px;
    }
}

@media only screen and (max-width: 480px) {
    .di-navbar-logo a {
        background-position: -217px center;
    }
}

@media only screen and (min-width: 768px) {

    /* NAVBAR */
    #navbar-toggle-view {display: none;}
    .di-purchase-btn {display: block;}

    /* MAP */
    #di-map-section {
        z-index: 9;
        right: auto; 
        width: 60%;
    }
    #di-map-controls {
        position: absolute; 
        top: 10px;
        left: 10px; 
        max-width: 392px;
    }
    .di-map-select {
        display: inline;
        width: auto;
    }
    select#map-income-range {
        width: 174px;
    }

    div.di-legend {
        margin-bottom: 5px;
    }
    div.di-legend-row {
        margin-top: 1px;
    }
    div.di-legend-label {
        width: 70px;
        height: 1em;
    }
    div.di-legend-rates {
        width: 11.5%;
        height: 1em;
    }
    div.di-legend-rates.hidden-mobile {
        visibility: visible;
    }
    div.swatch {
        width: 11.5%;
        height: 14px;
        margin-bottom: 3px;
    }
    
    /* PANEL */
    #info-panel {
        top: 36px;
        left: 60%;
        width: auto;
        opacity: 1;
    }

    #politics .search-option-details label {
        display: block;
    }
    
    .cubead {
        display: block;
    }

    li.embed { 
        display: block !important;
    }

    #place-panel .di-panel-body {
        height: calc(100vh - 158px);
    }

}
