/**
 * Main project styling goes here.
 * http://lesscss.org/
 */
/**
 * Don't display header chrome on wnyc.org pym embeds by default
 * Remove this to show the header anyway
 */
body {
  background-color: #fff;
  font-size: 16px;
}
p {
  margin: 1em 0;
  line-height: 1.6em;
}
a {
  color: #0073d5;
}
@font-face {
  font-family: 'StateFaceRegular';
  src: url('../media/stateface-regular-webfont.eot');
  src: url('../media/stateface-regular-webfont.eot?#iefix') format('embedded-opentype'), url('../media/stateface-regular-webfont.woff') format('woff'), url('../media/stateface-regular-webfont.ttf') format('truetype'), url('../stateface-regular-webfont.svg#StateFaceRegular') format('svg');
  font-weight: normal;
  font-style: normal;
}
div.container {
  padding: 1em;
}
div.container > p,
div.container > h1,
div.details,
div.header {
  margin-left: auto;
  margin-right: auto;
  max-width: 630px;
}
div.maps {
  padding: 1em 0;
}
div.map-section {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
body.wnyc #header {
  display: none;
}
div.map,
div.explanation {
  float: left;
}
div.map {
  width: 48%;
}
div.map.for-image {
  width: 100%;
  padding: 10%;
}
div.explanation {
  width: 52%;
  padding-left: 4%;
  font-size: 14px;
  line-height: 1.6em;
  position: relative;
  vertical-align: top;
}
div.row div {
  display: inline-block;
  font-family: Menlo,monospace;
  margin-right: 1px;
  margin-bottom: 1px;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  letter-spacing: 0.07em;
}
div.map.for-image div.row div {
  font-size: 20px;
}
div.state {
  background-color: #aaa;
  color: #777;
}
div.state.active {
  color: #000;
}
div.map-section.no,
div.map-section.limited {
  margin-bottom: 2.5em;
}
div.yes {
  /* for image.html, where cells have yes/no/limited class individually */
}
div.yes.active {
  background-color: #42a5b3;
}
div.yes div.active,
div.yes div.state-category {
  background-color: #42a5b3;
}
div.yes div.header strong {
  background-color: #42a5b3;
}
div.limited {
  /* for image.html, where cells have yes/no/limited class individually */
}
div.limited.active {
  background-color: #e3ba22;
}
div.limited div.active,
div.limited div.state-category {
  background-color: #e3ba22;
}
div.limited div.header strong {
  background-color: #e3ba22;
}
div.no {
  /* for image.html, where cells have yes/no/limited class individually */
}
div.no.active {
  background-color: #e25a42;
}
div.no div.active,
div.no div.state-category {
  background-color: #e25a42;
}
div.no div.header strong {
  background-color: #e25a42;
}
div.header {
  font-size: 1.5em;
  padding: 1.25em 0;
  text-align: center;
}
div.header strong {
  font-weight: normal;
  padding: 0.08em 0.5em;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.80em;
}
div.map-inner {
  padding: 1em 0 0 0;
}
div.details {
  margin-top: 2em;
}
div.details-row {
  margin-bottom: 1.5em;
  max-width: 800px;
}
div.state-name {
  padding: 12px 16px 16px 14px;
  font-size: 1.25em;
  color: #fff;
  background-color: #222;
  line-height: 140%;
}
span.stateface {
  font-size: 1.5em;
  display: inline-block;
  width: 58px;
  text-align: center;
  position: relative;
  top: 5px;
}
span.stateface.limited {
  color: #e3ba22;
}
span.stateface.no {
  color: #e25a42;
}
span.stateface.yes {
  color: #42a5b3;
}
div.state-category {
  font-size: 0.75rem;
  display: inline-block;
  padding: 0.2rem 0.4rem;
  color: #222;
  line-height: 1rem;
  letter-spacing: 0.03em;
  margin-left: 0.75em;
  position: relative;
  top: 6px;
  float: right;
}
div.state-description {
  background-color: #444;
  color: #fff;
  padding: 24px;
}
div.state-description a {
  text-decoration: underline;
  color: #f0f0f0;
}
div.state-description a:hover {
  text-decoration: underline;
  color: #0073d5;
}
div.explanation p:first-of-type,
div.state-description p:first-of-type {
  margin-top: 0;
}
div.explanation p:last-of-type,
div.state-description p:last-of-type {
  margin-bottom: 0;
}
@media screen and (max-width: 889px) {
  div.map-inner {
    max-width: 500px;
    margin: 0 auto;
  }
  div.map {
    width: auto;
    margin: 0 auto 2em auto;
    float: none;
  }
  div.explanation {
    width: 100%;
    float: none;
    margin-bottom: 1em;
    padding-left: 0;
    margin: 0 auto 1em auto;
  }
  div.header {
    font-size: 1.4em;
  }
  div.maps {
    margin-left: auto;
    margin-right: auto;
    max-width: 630px;
  }
}
@media screen and (max-width: 560px) {
  div.header {
    font-size: 1.4em;
  }
  div.map-section.no,
  div.map-section.limited {
    margin-bottom: 2em;
  }
}
@media screen and (max-width: 425px) {
  div.row div {
    font-size: 10px;
  }
}
/* hide states, show dots */
@media screen and (max-width: 499px) {
  div.header {
    font-size: 1.25em;
  }
  div.state-name {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  span.stateface {
    display: none;
  }
  div.state-category {
    width: 1em;
    height: 1em;
    display: inline-block;
    bottom: auto;
    top: 8px;
    padding: 0;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    float: left;
    margin-left: 0.5em;
    margin-right: 1em;
  }
  div.state-category span {
    display: none;
  }
  div.state-description {
    font-size: 14px;
    padding: 16px;
  }
}
@media screen and (max-width: 339px) {
  div.state-category {
    margin: 0;
    float: right;
  }
  div.container {
    padding: 1em 0.5em;
  }
}
