/* Overriding Defaults */

.byline-block { margin-bottom: 10px; border-color: #DFDFDF; }
#content-header .wrapper { padding: 0px; }
#content h1 { padding-top: 30px !important; }
.fmenu.article-tools { height: 19px; position: relative; top: 0px; overflow: visible; }
.app .social-module ul { width: 200px; }
.app .social-module li { padding-left: 0px; }
#guff { margin-bottom: 20px; }

/* Overriding Sortable Table styles */

.sortable, .sortable td, .sortable th {
  border-top: none; border-right: none; border-bottom: none; border-left: none;
}
.sortable tr.even td { background: none; }
.sortable td { 
  vertical-align: middle; 
  border-bottom: 1px solid #EEE;
  padding: 6px 10px;
  /*text-align: center;*/
}

.sortable th {
  border-bottom: 3px solid #D3D3D3;
  background-color: white;
  font-size: 12px;
  font-weight: normal;
  background: none;
}

.sortable tr.even.highlight td, .sortable tr.odd.highlight td {
  background-color: #EEE;
}

.table-body .sortable th.headerSortUp {
  background: white url("http://cdn.propublica.net.s3.amazonaws.com/deploy/images/common/arw-sorter-desc.png") 100% 50% no-repeat;
  background-color: #B2B2B2;
  color: #FFF;
}
.table-body .sortable th.headerSortDown {
  background: white url("http://cdn.propublica.net.s3.amazonaws.com/deploy/images/common/arw-sorter-asc.png") 100% 50% no-repeat;
  background-color: #B2B2B2;
  color: #FFF;
}

td.info.data-total.sorted, .sortable tr.even td.sorted, .sortable tr.odd td.sorted {
  background-color: #e2e2e1;
  border-bottom: 1px solid #FFF;
}

td.name.info{
  cursor: pointer;
}

.data-index { text-align: center; }
.article td.info p {
  margin-bottom: 0px;
  padding-right: 4px;
}

.num {
  text-align: center;
}

/* end of table styles */

.main-container {
  margin: 30px 0 0 0;
  position: relative;
}

.main-nav {
  width: 290px;
  margin: 0 30px 0 0;
  text-align: left;
  float: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
}

.main-nav h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.main-nav li h5 {
  padding: 8px 0 8px 11px;
  background-color: #dddddd;
  margin: 5px 0 0;
  position: relative;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-size: 12px;
  cursor: pointer;
}

.open .tabs {
  background-color: #B2B2B2;
  color: white;
}

.open .tabs:after {
  border-left-color: #B2B2B2;
}

.main-nav li p.desc {
  display: none;
  padding: 9px 11px;
  height: 135px;
}

.main-nav li h5:after {
  left: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(221, 221, 221, 0);
  border-left-color: #ddd;
  border-width: 15px;
  margin-top: -15px;
}

.main-map {
  width: 640px;
  float: left;
}

#landline_tooltip {
  position:absolute;
  background:rgba(222, 222, 222, 0.95);
  z-index:999999;
  font-family: Helvetica, Arial, sans-serif;
  font-size:12px;
  padding:5px;
  border-radius:2px;
  box-shadow:0 0 5px #444;
  display:none;
  width: 140px;
}

#landline_tooltip .answer {
  padding: 3px;
  background-color: #eee;
  margin: 3px 0;
  display: block;
  text-align: center;
  border-radius: 2px;
}

#restraints-legend {
  position: absolute;
  font-family: Helvetica, Arial, sans-serif;
  width: 175px;
  right: 129px;
  bottom: 46px;
}

#restraints-legend .legend-box {
  float: left;
  margin-bottom: 3px;
}

#restraints-legend .legend-box .box {
  width: 18px;
  height: 10px;
  float: left;
  margin-top: 2px;
}

#restraints-legend .legend-box .label {
  float: left;
  margin: 0 15px 0 4px;
}

#restraints-legend .boxes {
  width: 35px;
  height: 12px;
  float: left;
}

#restraints-legend .labels {
  margin-bottom: 5px;
}

#restraints-legend .labels span {
  font-weight: bold;
  font-size: 11px;
}

#restraints-legend span.right {
  margin-left: 20px;
}

.notes {
  font-family: Helvetica, Arial, sans-serif;
  margin-top: 20px;
}


.local-stories {
  border-top: 1px solid #ddd;
  margin-top: 20px;
  padding-top: 20px;
  font-family: Helvetica, Arial, sans-serif;

}

.local-stories h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.local-stories span {
  text-transform: uppercase;
  font-size: 10px;
}

.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

#homeowner { display: none; }

.mobile-only { display: none; }

@media screen and (max-width: 480px) {
  h1.title-link{ width: 380px;} /*more hack*/
  html body #content .article-tools { display: none; }
  .main-nav { width: 300px; margin: 0 0 0 0;}
  .dropdown-nav { margin: 0 0 13px 0; }
  .dropdown-nav select { width: 295px; }
  .main-nav li h5:after { display: none; }
  .main-map { width: 300px; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  thead { display: none; }
  td.state.summary{ width: 87% !important;}
  #data td.info { display: none; }
  #data td.name.info { font-weight: bold; display: block; width: 120px; } 
  #data td.sorted { display: block; text-align: center; }
  #data td {
    display: block;
    width: 120px;
    float: left;
  }
  html body #content .article table { table-layout: auto !important; }
  tr.state-row { width: 300px; }
  p.map-guff.mobile-only {
    width: 300px;
    height: 84px;
    margin: 0 0 10px 0;
  }

  #restraints-legend {
    position: relative;
    right: 0;
    bottom: 0;
    left: 7px;
    font-size: 11px;
    width: 300px;
    height: 30px;
    overflow: hidden;
  }

  #restraints-legend .boxes {
    width: 55px;
  }

  #restraints-legend span.right {
    margin-left: 122px;
  }

}