* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  color: #231f20;
  font-family: "ff-meta-serif-web-pro", Georgia, serif;
  font-size: 19px;
  line-height: 1.42105263;
  padding: 0;
  margin: 0;
}
a {
  -webkit-tap-highlight-color: black;
  transition: color 0.15s ease-in-out;
  color: #0777b3;
  text-decoration: none;
  outline: 0 !important;
}
a:hover {
  color: #2b4d70;
}
img,
video,
embed,
object,
iframe {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #231f20;
  margin: 1.42105263 0 0.71052632 0;
}
h1 {
  font-size: 28px;
  line-height: 30px;
  letter-spacing: -0.5px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 42px;
    line-height: 46px;
    letter-spacing: -1px;
  }
}
h2 {
  font-size: 24px;
  line-height: 1.42105263;
}
h3 {
  font-size: 22px;
  line-height: 23px;
}
h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  margin: 0.71052632 0 0 0;
}
nav.main-nav {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
  position: relative;
  line-height: 1;
}
nav.main-nav .wrapper {
  max-width: 1020px;
  margin: auto;
  position: relative;
  text-align: center;
}
@media (max-width: 768px) {
  nav.main-nav .wrapper {
    height: 40px;
    padding: 10px;
  }
}
nav.main-nav .logo {
  display: block;
  vertical-align: middle;
}
nav.main-nav .logo img {
  width: 310px;
  height: 70px;
  max-height: 100%;
}
@media (max-width: 768px) {
  nav.main-nav .logo img {
    height: 24px;
    width: auto;
  }
}
nav.main-nav .share {
  position: absolute;
  top: 20px;
  right: 10px;
}
@media (max-width: 768px) {
  nav.main-nav .share {
    top: 10px;
    right: 4px;
    width: auto !important;
  }
}
nav.main-nav .share label {
  background: white !important;
}
@media (max-width: 480px) {
  nav.main-nav .share label span {
    display: none;
  }
  nav.main-nav .share .left {
    margin-left: -275px !important;
  }
}
/*
Shims for Flexbox - should work on Safari and IE10+
*/
.display-flex {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
input[type=radio] {
  display: none;
}
input[type=radio] + label {
  padding: 6px 4px;
  border: 1px solid #AFAFAF;
  color: #555;
  text-align: center;
  font-size: 16px;
  margin: 0;
  box-shadow: 0 0 5px 0 rgba(145, 145, 145, 0.5);
}
@media (max-width: 480px) {
  input[type=radio] + label {
    font-size: 13px;
  }
}
.alt input[type=radio] + label {
  background-color: #EFEFEF;
  border: 1px solid white;
}
input[type=radio] + label:first-of-type {
  border-radius: 4px 0 0 4px;
}
input[type=radio] + label:last-of-type {
  border-radius: 0 4px 4px 0;
}
input[type=radio] + label:first-of-type:last-of-type {
  border-radius: 4px;
}
input[type=radio]:checked + label {
  color: white;
  background: #555;
  font-weight: bold;
  border: 1px solid #333;
  letter-spacing: 1px;
}
.alt input[type=radio]:checked + label {
  color: #3279C2;
  background-color: #E1E1E1;
  border: 1px solid #3279C2;
}
.button-bar {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 4px;
}
.button-bar label {
  display: block;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
input.dollars::before {
  content: "$";
}
h3 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  font-family: "ff-dagny-web-pro", Helvetica Neue, Helvetica, sans-serif;
  font-weight: bold;
  padding-bottom: 12px;
}
.presets {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  font-family: "ff-meta-serif-web-pro", Georgia, serif;
}
.presets .generic.button-bar {
  -webkit-flex: 1 1 0%;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
}
.presets .case-study.button-bar {
  -webkit-flex: 3 3 0%;
  -ms-flex: 3 3 0%;
  flex: 3 3 0%;
  margin-right: 4px;
}
.preset-description {
  font-size: 16px;
  padding: 10px 0;
  font-style: italic;
  font-family: "ff-meta-serif-web-pro", Georgia, serif;
}
@media (max-width: 480px) {
  .preset-description {
    font-size: 13px;
  }
}
.tuning {
  margin: 10px 20px;
  padding: 10px;
  border-radius: 3px;
  border: 1px solid #CECECE;
}
.fine-tuning {
  position: relative;
}
@media (max-width: 480px) {
  .fine-tuning {
    cursor: pointer;
  }
  .fine-tuning::after {
    position: absolute;
    top: 0;
    right: 0;
    content: ">";
    font-size: 20px;
    font-weight: bold;
    color: #7e838b;
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }
  .show .fine-tuning::after {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }
}
.params {
  padding: 4px;
}
@media (max-width: 480px) {
  .params {
    display: none;
  }
  .show .params {
    display: block;
  }
}
.params > .param-block {
  float: left;
  width: 25%;
}
@media (max-width: 480px) {
  .params > .param-block {
    display: block;
    float: none;
    width: 100%;
  }
}
.params .full {
  clear: both;
  float: none;
  width: 100%;
  padding: 10px 0 0;
}
.params label.parameter {
  display: block;
  font-size: 14px;
  color: #888;
}
.params input.parameter {
  display: block;
  border: none;
  border-bottom: 1px solid #424648;
  font-size: 17px;
  font-weight: bold;
  width: 100%;
  color: #3279C2;
}
.output {
  font-weight: bold;
}
.hover-dot {
  position: absolute;
  background: #888;
  color: #f8f8f8;
  border-radius: 100%;
  text-align: center;
  width: 20px;
  height: 20px;
  padding: 2px;
  line-height: 18px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: text-top;
  font-family: "ff-dagny-web-pro", Helvetica Neue, Helvetica, sans-serif;
}
@media (max-width: 480px) {
  .hover-dot {
    display: none;
  }
}
.hover-dot .hover-text {
  display: none;
  position: absolute;
  padding: 4px;
  background: white;
  color: #424648;
  border: 1px solid #e0e0e0;
  width: 200px;
  box-shadow: 0 4px 8px rgba(144, 144, 144, 0.5);
  text-align: left;
}
.hover-dot:hover .hover-text {
  display: block;
}
.balloon {
  position: absolute;
  transition: -webkit-transform 0.4s ease-out;
  transition: transform 0.4s ease-out;
  -webkit-transform-origin: bottom 50%;
  transform-origin: bottom 50%;
  top: 0;
  left: 0;
  -webkit-transform: translateX(100px) translateY(100px);
  transform: translateX(100px) translateY(100px);
}
.balloon.hidden {
  display: none;
}
.balloon .contents {
  background: rgba(51, 51, 51, 0.8);
  color: #EEE;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  position: absolute;
  width: 200px;
  padding: 4px;
  box-shadow: 0px 12px 4px rgba(0, 0, 0, 0.3);
  bottom: 10px;
  text-align: center;
}
.balloon .contents::after {
  content: " ";
  height: 0;
  width: 0;
  border-width: 10px;
  border-style: solid;
  border-color: rgba(51, 51, 51, 0.8) transparent transparent transparent;
  position: absolute;
  top: 99%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
.left.balloon .contents {
  -webkit-transform: translateX(-10px);
  transform: translateX(-10px);
}
.left.balloon .contents::after {
  left: 10px;
}
.right.balloon .contents {
  -webkit-transform: translateX(-190px);
  transform: translateX(-190px);
}
.right.balloon .contents::after {
  left: auto;
  right: -10px;
}
body {
  margin: 0;
  padding: 0;
}
main.interactive {
  display: block;
  padding: 8px;
  max-width: 100%;
  margin: auto;
  background: white;
  font-size: 16px;
}
.graph-container {
  position: relative;
  margin: 0 10px;
}
canvas.graph {
  border: 1px solid #eee;
  width: 100%;
}
.graph-key {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.graph-key label {
  -webkit-flex: 1 0 auto;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
  text-align: center;
}
.graph-key .dot {
  border-radius: 100%;
  vertical-align: middle;
  display: inline-block;
  height: 14px;
  width: 14px;
}
.graph-key .value {
  background: #0777b3;
}
.graph-key .remaining {
  background: #7b5aa6;
}
.credit {
  font-size: 14px;
  text-transform: uppercase;
  text-align: right;
}
