/* colors */
.bggray { color: #e8edf2; }
.yellow { color: #fac229; }
.dark-yellow { color: #e3801f; }
.red { color: #f54f4f; }
.dark-red { color: #a62633; }
.gop { color: #BD1C00; }
.dark-blue { color: #323b93; }
.darker-blue { color: #334e4a; }

/* candidate colors */
.trump, .c1, .c1p { color:#BD1C00;}
.weld, .c3, .c3p { color: #fac229;; }
.walsh, .c7, .c7p { color:#ff7d52; }
.delafuente, .c4 { color: #66c2a5; }

.writein, .c11, .c11p { color:#b3b3b3; }
.twn.trump, .c1 {fill: #BD1C00; }
.twn.weld, .c3 { fill: #fac229; }
.twn.walsh, .c7 { fill: #ff7d52; }
.twn.delafuente, .c4 { fill: #66c2a5; }

.twn.writein, .c11 { fill: #b3b3b3; }
.twn.tied { fill: #6d4b8a; }
.tied {color: #6d4b8a; }
.tied span { display: inline-block; width: 12px; height: 12px; background-color: #6d4b8a; }

.trump .cand-bar { background-color:#BD1C00; }
.weld .cand-bar { background-color:#fac229; }
.walsh .cand-bar { background-color:#ff7d52; }
.delafuente .cand-bar  { background-color: #66c2a5; }

.writein .cand-bar { background-color:#b3b3b3; }

.graphic {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  font-size: 18px;
  font-family: 'metric', sans-serif;
}
.graphic-headline {
  margin-bottom: 8px;
}
.graphic-description {
  margin-bottom: 10px;
  line-height: 1.1;
}
.infobox {
  padding: 10px;
}
.credit {
  color: #999fa5;
  font-size: 15px;
  text-align: right;
  margin: 0;
  line-height: 1;
}
.note {
  color: #999fa5;
  font-size: 15px;
  margin: 0;
  line-height: 1;
}
.graphic-content .infobox p.info-precinctsreporting {
  color: #999fa5;
  margin-bottom: 10px;
}
#show-nh-total {
  margin:0 auto 14px 0;
  background-color: #eeeeee;
}
#show-nh-total:hover {
  background-color: #666;
}
* {
  box-sizing: border-box;
}

/* responsive svg */
.map {
  margin: 0 auto;
  height: 0;
  width: 60%;
  overflow: hidden;
  padding-bottom: 90%;
  padding-top: 0;
  position: relative;
}
.map svg {
  height: 100%;
  position: absolute;
  top: 0;
  width: 90%;
  left: 0;
  max-width: 100%;
  background-color: transparent;
  display: inline-block;
  z-index: 1000;
}
.twn {
  transition: fill .25s ease;
  fill: #eee;
  stroke: #efefef;
  stroke-width: 0.5;
  cursor: pointer;
  display: block;
}
.twn:hover,
.twn:focus {
  stroke: #000;
  outline: none;
}
.graphic-content .infobox h3 {
  margin-bottom: 0;
}

table caption {
  font-size: 14px;
  text-align: left;
  padding-bottom: 5px;
}

.cand-head {
  width:40px;
}
.win-badge {
  display: inline-block;
  width: 18px;
  margin-left: 5px;
  fill: #a62633;
}
.cand-bar {
  display: inline-block;
  height: 12px;
  margin-right: 5px;
}

@media (min-width: 550px) {
  .graphic-content {
    display: flex;
  }
  .graphic-content .map {
    margin: 0;
    width: 50%;
    padding-bottom: 90%;
  }
  .graphic-content .infobox  {
    width: 50%;
  }
}

@media (min-width: 800px) {
  .graphic-content .map {
    width: 60%;
    padding-bottom: 70%;
  }
  .graphic-content .infobox  {
    width: 40%;
  }
}

.graphic-content .infobox ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.graphic-content .infobox ul li {
  line-height: 1.2;
  white-space: nowrap;
  clear: left;
}
.graphic-content .infobox .cand-head {
  float: left;
  display: block;
  margin: 0 10px 10px 0;
}

.graphic-content .infobox .cand-results{
  white-space: nowrap;
  padding: 0 0 0.5em 0;
}
.graphic-content .infobox p {
  clear: left;
  margin: 0;
}


.button--small {
  font-size: 16px;
  border-radius: 0;
  margin: 0 auto;
  display: block;
  max-width: 250px;
  color: #343c40;
  background-color: #fff;
  border: 1px solid #999fa5;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  vertical-align: baseline;
  text-align: center;
  cursor: pointer;
}