/* CSS for WYSIWYG-Generated Content */

/* Twitter Stat Box */

.twitter-stat {
  background: rgba(0,0,0,0.03);
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  padding: 20px;
  text-align: center;
  margin: 20px auto;
}

#tinymce .twitter-stat {
  max-width: 500px;
}

.stat-heading {
  font-size: 30px;
  margin: 30px 0;
}

.stat-heading:before {
  content: '';
  width: 100px;
  border-top: 4px solid #ffca54;
  margin: 0 auto;
  display: block;
  position: relative;
  top: -20px;
}

.stat-description {
  display: block;
  font-size: 16px;
  line-height: 1.8;
  margin: 40px 0;
}

.stat-wrap {
  display: table;
  margin: 0;
  text-align: center;
  width: 100%;
}

.stat {
  display: table-cell;
  vertical-align: top;
  width: 27%;
  padding: 0 3%;
  border-right: 1px solid #ccc;
}

.stat:last-child {
  border-right-width: 0;
}

.stat-value,
.stat-title {
  display: block;
  line-height: 1.3;
}

.stat-value {
  color: #00ade8;
  font-size: 42px;
  overflow: hidden;
}

.stat-title {
  font-size: 16px;
}

/* Tip */

.twitter-tip {
  margin-bottom: 10px;
}

.twitter-tip .accordion-group {
  border-color: #00acee;
}

.twitter-tip .accordion-heading {
  background: #00c0f7;
  background-image: linear-gradient(bottom, #00ABEE 0%, #00D0FF 100%);
  background-image: -o-linear-gradient(bottom, #00ABEE 0%, #00D0FF 100%);
  background-image: -moz-linear-gradient(bottom, #00ABEE 0%, #00D0FF 100%);
  background-image: -webkit-linear-gradient(bottom, #00ABEE 0%, #00D0FF 100%);
  background-image: -ms-linear-gradient(bottom, #00ABEE 0%, #00D0FF 100%);
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0, #00ABEE),
    color-stop(1, #00D0FF)
  );
}

.twitter-tip .accordion-toggle {
  color: #fff;
  position: relative;
  padding-right: 30px;
}

.twitter-tip .accordion-toggle:hover {
  text-decoration: none;
}

.twitter-tip .accordion-toggle:after {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  top: 10px;
  right: 10px;
  background: url('../img/sprite.png') -48px -80px no-repeat transparent;
}

.twitter-tip .accordion-toggle.collapsed:after {
  background-position: -48px -64px;
}

.twitter-tip .accordion-body {
  background: #00c0f7;
  color: #fff;
}

.twitter-tip .accordion-inner {
  background: #ddd;
  border-color: #F1F1F1;
  border-radius: 0 0 4px 4px;
  -moz-border-radius: 0 0 4px 4px;
  -webkit-border-radius: 0 0 4px 4px;
  color: #000;
}

.twitter-tip .accordion-inner > p:last-child {
  margin-bottom: 0;
}

#tinymce .accordion-body.collapse {
  height: auto !important;
}

/* Blockquote */

blockquote {
  border-left: 5px solid #EEE !important;
  font-weight: bold;
}

blockquote p,
blockquote .screen-name,
blockquote cite {
  font-weight: normal;
}

blockquote p {
  line-height: 1.3;
  margin-bottom: 20px;
}

blockquote .screen-name {
  margin: 0 10px;
}

blockquote cite {
  color: #bdbdbd;
  display: block;
}

.g-quote.g-tweetable {
  position: relative;
}

.g-quote.g-tweetable .btn-twhite {
  position: absolute;
  top: 40px;
  left: 0;
  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  font-size: 13px;
  padding: 6px 9px !important;
}

/* Columns */

#tinymce .row-fluid {
  border: 2px dashed #eee;
  margin: 6px;
  width: 98%;
}

#tinymce .row-fluid > div,
.row-fluid.divided > div {
  border-right: 2px dashed #eee;
}

.row-fluid.divided > div,
#tinymce .row-fluid.divided > div {
  border-right-style: solid;
}

.row-fluid.divided > div {
  border-right-width: 1px;
}

#tinymce .row-fluid > div:last-child,
.row-fluid.divided > div:last-child {
  border-right: none;
}

#tinymce .row-fluid p:last-child {
  margin-bottom: 0;
}

/* Embedded Tweets */

.g-tweet {
	margin: 20px 0;
}

.twt-tweet img.g-promoted-img {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 4px 3px 0 !important;
}

.align-left {
	text-align: left;
}

.align-right {
	text-align: right;
}

.align-center {
	text-align: center;
}

#tinymce p img,
article .content p img {
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
}

img.align-left {
	float: left;
  margin: 20px 20px 20px 0;
}

img.align-right {
	float: right;
  margin: 20px 0 20px 20px;
	position: relative;
	z-index: 2;
}

img.align-center {
	margin: 20px auto;
  display: block;
}

.video-vimeo,
.video-youtube {
  text-align: center;
  margin: 20px 0;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
}

.video-vimeo iframe,
.video-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

ul.link-list li:before {
  color: #ffcc33;
  content: '\2022';
  position: absolute;
  border: none;
  border-radius: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  counter-increment: none;
  padding: 0;
  top: 14px;
  left: 0;
  margin: -8px 0 0 0;
}

ul.link-list li {
  padding: 5px 0 5px 18px;
  /* line-height: 1.5; */
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Article margins */

#tinymce h2,
#tinymce h3,
#tinymce h4,
article h2,
article h3,
article h4 {
  margin: 40px 0 10px;
}

#tinymce h2,
article h2 {
  font-size: 200%;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

#tinymce h5,
article h5 {
  margin: 25px 0 10px;
}

#tinymce > h2:first-child,
#tinymce > h3:first-child,
#tinymce > h4:first-child,
#tinymce > h5:first-child,
article .d-field-item:first-child > h2:first-child,
article .d-field-item:first-child > h3:first-child,
article .d-field-item:first-child > h4:first-child,
article .d-field-item:first-child > h5:first-child {
  margin: 0 0 10px;
}

/* Article Lists */

#tinymce ol,
.page-node article ol {
  counter-reset: li;
  margin-left: 0;
  padding-left: 0;
}

#tinymce ol > li,
.page-node article ol > li {
  position: relative;
  margin: 0 0 20px 24px;
  padding: 0 0 0 8px;
  list-style: none;
  font-size: 14px;
  color: #333;
}

#tinymce ol > li:before,
.page-node article ol > li:before {
  content: counter(li);
  counter-increment: li;
  position: absolute;
  top: -1px;
  left: -2em;
  padding: 2px;
  color: #1a7ba4;
  border: 2px solid #1a7ba4;
  font-weight: bold;
  text-align: center;
  border-radius: 999px;
  -moz-border-radius: 999px;
  -webkit-border-radius: 999px;
  width: 13px;
  height: 13px;
  font-size: 11px;
  line-height: 14px;
  background: #fff;
  text-align: center;
}

#tinymce ul,
.page-node article ul {
  margin: 20px 0;
  padding-left: 0;
}

#tinymce ul > li,
.page-node article ul > li {
  position: relative;
  margin: 0 0 10px 20px;
  padding: 0 0 0 0px;
  list-style: none;
  font-size: 14px;
  color: #333;
}

#tinymce ul > li:before,
.page-node article ul > li:before {
  position: absolute;
  color: #00acee;
  content: '\2022';
  left: -16px;
  top: 0;
  margin: 0;
}

/* Increase margins on article columns */
article .columns2 .span6:first-child > * { margin-right: 10px; }
article .columns2 .span6:last-child > * { margin-left: 10px; }
article .columns3 .span4 > * { margin-left: 10px; margin-right: 10px; }
article .columns3 .span4:first-child > * { margin-left: 0; }
article .columns3 .span4:last-child > * { margin-right: 0; }

/* Embedded Tweets */
#tinymce .g-tweet {
  background: #fff;
  border-radius: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  box-shadow: 0 0 3px #aaa;
  -moz-box-shadow: 0 0 3px #aaa;
  -webkit-box-shadow: 0 0 3px #aaa;
  padding: 20px;
  margin: 20px 5px;
}

#tinymce .g-tweet > blockquote {
  margin-bottom: 0;
  border: none !important;
  padding-left: 0;
}

#tinymce > p {
  line-height: 1.5;
}

p.indent {
  margin-left: 30px;
}