* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  font-family: Roboto, sans-serif;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
a {
  color: #09334B;
}
a:hover,
a:focus {
  color: #3461A1;
}
svg-map {
  display: none;
}
svg-map[ready] {
  display: block;
}
svg {
  display: block;
}
nav.bar {
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  padding: 10px;
  transform: translateZ(0);
  height: 44px;
  z-index: 99999;
}
@media (max-width: 480px) {
  nav.bar {
    position: relative;
  }
}
nav.bar a {
  border: none;
}
nav.bar .logo {
  height: 100%;
  border: none;
}
nav.bar h2.section-title {
  display: block;
  position: absolute;
  width: 100%;
  text-align: center;
  top: 4px;
  left: 0;
  margin: 0;
  padding: 0;
  font-size: 30px;
  font-family: Georgia;
  font-weight: normal;
  z-index: -10;
}
@media (max-width: 480px) {
  nav.bar h2.section-title {
    display: none;
  }
}
nav.bar .share {
  position: absolute;
  right: 5px;
  bottom: 14px;
}
nav.bar .share label {
  background: #ddd;
}
.ad {
  text-align: center;
  display: block;
}
.ad #adtopright {
  white-space: nowrap;
}
.ad #adtopright > img,
.ad #adtopright > div,
.ad #adtopright > a {
  display: inline-block;
}
.ad #adtopright div {
  float: none !important;
}
@media (max-width: 480px) {
  .ad {
    display: none;
  }
}
div.content {
  max-width: 1024px;
  margin: 50px auto 0;
  overflow: auto;
  padding: 0 16px;
}
@media (max-width: 480px) {
  div.content {
    margin: 0 auto;
  }
}
header.hed .section-fronts {
  font-size: 18px;
}
header.hed .section-fronts a {
  font-weight: bold;
}
header.hed h1 {
  margin: 10px 0 0;
  font-family: Georgia;
  font-size: 40px;
  display: block;
}
@media (max-width: 480px) {
  header.hed h1 {
    font-size: 24px;
  }
}
header.hed .dateline {
  color: #7e838b;
}
.elections {
  width: calc(100% -  325px);
  margin: 0 24px 24px 0;
  float: left;
}
.elections .cutline {
  font-family: Georgia;
  font-size: 18px;
  margin-top: 0;
}
@media (max-width: 1024px) {
  .elections {
    width: 100%;
    float: none;
  }
}
.rail {
  width: 300px;
  float: left;
}
.rail #adright > a,
.rail #adright > div,
.rail #adright > img {
  display: block;
}
@media (max-width: 1024px) {
  .rail {
    display: none;
  }
}
.key {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
footer.bottom {
  clear: both;
  background: #DDD;
  padding: 24px;
}
.elections .tab-container {
  overflow: hidden;
}
.elections .tab-container .tab {
  display: inline-block;
  background: #DDD;
  color: #999;
  text-decoration: none;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 3px;
}
@media (max-width: 480px) {
  .elections .tab-container .tab {
    float: left;
    width: calc(50% - 3px);
    margin-left: 3px;
    text-align: center;
  }
}
.elections .tab-container .tab.active {
  background: #666666;
  color: white;
}
.elections .tab-container .tab:hover {
  background: #666666;
  color: white;
}
.elections .tab-container .tab + .tab {
  margin-left: 3px;
}
.elections h3 {
  margin-bottom: 3px;
  clear: both;
}
.elections .result-block {
  padding: 0 0 4px;
  border-bottom: 1px solid #e0e0e0;
}
.elections .map-icon {
  font-size: 12px;
  cursor: pointer;
  color: white;
  text-transform: uppercase;
  background: #999;
  border-radius: 4px;
  padding: 2px 4px;
  margin-right: 4px;
  font-weight: normal;
  vertical-align: middle;
}
@media (max-width: 1024px) {
  .elections .map-icon {
    display: none;
  }
}
.elections .map-icon svg-map {
  display: none;
  position: absolute;
  background: white;
  z-index: 999;
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
  padding: 8px;
  text-align: center;
  width: auto;
}
.elections .map-icon svg-map svg {
  height: 240px;
  width: auto;
  margin: auto;
}
.elections .map-icon:hover {
  background: #666666;
}
.elections .map-icon:hover svg-map {
  display: block;
}
.elections .related-story {
  font-size: 12px;
  text-transform: uppercase;
  padding: 2px 2px 2px 2px;
  font-weight: normal;
  white-space: nowrap;
}
.elections .related-story a {
  color: #7e838b;
  text-decoration: none;
}
.elections .related-story a:hover {
  color: #666666;
}
.elections .description {
  margin-top: 0;
  font-size: 14px;
  font-style: italic;
}
.elections .results {
  margin: 8px 0 0;
  padding: 0;
  list-style-type: none;
}
.elections .results li {
  overflow: hidden;
  margin-bottom: 4px;
}
.elections .results .candidate {
  width: 40%;
  float: left;
  clear: both;
  padding-right: 4px;
  text-align: right;
  font-weight: bold;
}
@media (max-width: 480px) {
  .elections .results .candidate .party {
    display: none;
  }
}
.elections .results .votes {
  width: 10%;
  float: left;
  text-align: right;
}
.elections .results .votes .numbers {
  padding-right: 4px;
}
@media (max-width: 480px) {
  .elections .results .votes .numbers {
    display: none;
  }
}
.elections .results .bar-container {
  width: 40%;
  float: left;
}
.elections .results .bar {
  height: 20px;
  background: rgba(236, 180, 9, 0.7);
  transition: width 1s ease-in-out 0.5s;
  position: relative;
}
.elections .results .bar .percentage {
  position: absolute;
  top: 1px;
  left: calc(100% + 2px);
}
.elections .results .bar.yes {
  background: #7daf83;
}
.elections .results .bar.no {
  background: #f68c4e;
}
.pending .elections .results .bar {
  width: 0px !important;
}
.elections .results .bar.R {
  background: #c4161c;
}
.elections .results .bar.D {
  background: #005f9a;
}
.elections .results .bar.I,
.elections .results .bar.NA,
.elections .results .bar.L,
.elections .results .bar.Centralist,
.elections .results .bar.Socialist,
.elections .results .bar.Non-partisan {
  background: #bebebe;
}
.elections .map-container {
  text-align: center;
}
.elections .map-container svg-map {
  width: 400px;
  max-width: 100%;
  margin: auto;
}
.elections .map-container svg-map svg {
  min-height: 275px;
  max-height: 300px;
  max-width: 100%;
}
.rail .fake.ad {
  width: 300px;
  height: 700px;
  background: gray;
}
svg-map svg {
  max-width: 100%;
}
svg-map svg .county {
  stroke: #E0E0E0;
  stroke-width: 2px;
}
svg-map svg .active {
  stroke: white;
  stroke-width: 5px;
}
svg-map svg .rep {
  fill: #c4161c;
}
svg-map svg .dem {
  fill: #005f9a;
}
svg-map svg .yes {
  fill: #7daf83;
}
svg-map svg .no {
  fill: #f68c4e;
}
svg-map svg .tie {
  fill: #7e838b;
}
svg-map svg .district {
  fill: #f68c4e;
  stroke-width: 0px;
}
svg-map svg .null {
  fill: #e0e0e0;
  stroke-width: 0px;
}
svg-map .popup {
  background: white;
  color: black;
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}
svg-map .popup .county {
  text-transform: uppercase;
}
svg-map .popup ul {
  text-align: left;
  margin: 0;
  padding: 0 8px;
  list-style-type: none;
}
