html {
  font-size: 100%;
  font-family: Roboto, "Helvetica Nue", Helvetica, sans-serif;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: white;
}

p {
  font-size: 1rem;
}

a {
  text-decoration: none;
  font-weight: inherit;
  color: #2825C1;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

/**
 * HTML content formatting styles
 */

.ContentFormatting,
.ContentFormatting p,
.ContentFormatting li {
  font-size: 1.15rem;
  line-height: 1.6em;
  font-weight: 300;
}

.ContentFormatting.smaller,
.ContentFormatting.smaller p,
.ContentFormatting.smaller li {
  font-size: 1.05rem;
}

.ContentFormatting p {
  margin-bottom: 1.6em;
}
.ContentFormatting p:last-child {
  margin-bottom: 0;
}

.ContentFormatting ol,
.ContentFormatting ul {
  margin: 1.6em 0;
}

.ContentFormatting strong {
  font-weight: 400;
}

.ContentFormatting table {
  margin-bottom: 2em;
}

.ContentFormatting iframe {
  max-width: 100%;
  margin-bottom: 1em;
}

.ContentFormatting h1,
.ContentFormatting h2,
.ContentFormatting h3,
.ContentFormatting h4,
.ContentFormatting h5,
.ContentFormatting h6 {
  line-height: 1.2em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.ContentFormatting h1 {
  font-size: 2rem;
}

.ContentFormatting h2 {
  font-size: 1.6rem;
  color: #343434;
}

.ContentFormatting h3 {
  font-size: 1.35rem;
  color: #535353;
}

.ContentFormatting h4 {
  font-size: 1.2rem;
  color: #838383;
}

.ContentFormatting h5 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.ContentFormatting hr {
  width: 100px;
  height: 2px;
  margin: 2em auto;
  background-color: #d3d3d3;
}

.ContentFormatting blockquote {
  position: relative;
  padding: 0 0 0 3em;
  margin: 1.5em 0;
}

.ContentFormatting blockquote,
.ContentFormatting blockquote p {
  font-size: 1.3rem;
  font-weight: 300;
  font-style: normal;
  color: #666;
}

.ContentFormatting.smaller blockquote p {
  font-size: 1.25rem;
}

.ContentFormatting blockquote p {
  margin: 0.4em 0;
}

.ContentFormatting blockquote:before {
    content: '“';
    position: absolute;
    top: 0.2em;
    left: 0;
    color: #aaa;
    font-size: 5.4em;
    font-weight: 500;
    font-family: sans-serif;
    line-height: 0.4em;
}

.ContentFormatting blockquote:after {
  content: '';
  margin: 0;
}

.ContentFormatting blockquote small {
  color: #888;
  font-size: 0.85em;
  line-height: 1.2em;
}

.ContentFormatting.Section-body blockquote,
.ContentFormatting.Section-body blockquote p,
.ContentFormatting.Section-body blockquote:before,
.ContentFormatting.Section-body blockquote small {
  color: inherit;
}

.ContentFormatting img {
  display: inline-block;
  max-width: 100%;
  border: 0;
}
.ContentFormatting img.center {
  margin: 0.5em auto;
}
.ContentFormatting img.left {
  float: left;
  margin: 0 1em 0.5em 0;
}
.ContentFormatting img.right {
  float: right;
  margin: 0 0 0.5em 1em;
}
.ContentFormatting a.image-link {
  display: inline-block;
  position: relative;
}
.ContentFormatting a.image-link.center {
  display: table;
  margin: 0 auto;
}
.ContentFormatting a.image-link:hover::after {
  content: 'View full image';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 124px;
  height: 26px;
  margin: -13px -62px;
  font-size: 0.85rem;
  line-height: 26px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  color: #333;
  background-color: rgba(255, 255, 255, 0.75);
}

.ContentFormatting table:not(.plain) {
  width: 100%;
  font-size: 0.9em;
  line-height: 1.3em;
  border-collapse: collapse;
}
.ContentFormatting table:not(.plain) th {
  font-weight: 500;
}
.ContentFormatting table:not(.plain) th,
.ContentFormatting table:not(.plain) td {
  padding: 5px 10px;
  border: 1px solid #e3e3e3;
  text-align: left;
  vertical-align: top;
}

.ContentFormatting .button,
.ContentFormatting button,
.ContentFormatting textarea,
.ContentFormatting select,
.ContentFormatting input[type="text"] {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background-color: #464646;
  font-size: 1rem;
  font-weight: 300;
  font-family: Roboto, "Helvetica Nue", Helvetica, sans-serif;
  line-height: 1.1rem;
  /*box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);*/
  border-radius: 3px;
  border: 0;
}

.ContentFormatting textarea,
.ContentFormatting select,
.ContentFormatting input[type="text"] {
  /*height: 38px;*/
  color: #333;
  background-color: #f3f3f3;
  border: 1px solid #d3d3d3;
}

.ContentFormatting .button.small,
.ContentFormatting button.small,
.ContentFormatting textarea.small,
.ContentFormatting select.small,
.ContentFormatting input.small[type="text"] {
  /*height: 32px;*/
  font-size: 0.9rem;
  line-height: 1rem;
  padding: 8px 14px;
}

.ContentFormatting .button.large,
.ContentFormatting button.large,
.ContentFormatting textarea.large,
.ContentFormatting select.large,
.ContentFormatting input.large[type="text"] {
  /*height: 52px;*/
  font-size: 1.2rem;
  line-height: 1.2rem;
  padding: 14px 30px;
}

.ContentFormatting input::-webkit-input-placeholder, /* Safari, Chrome and Opera */
.ContentFormatting input::-moz-placeholder, /* Firefox 19+ */
.ContentFormatting input:-ms-input-placeholder, /* IE 10+ */
.ContentFormatting input::-ms-input-placeholder, /* Edge */
.ContentFormatting input:placeholder-shown { /* Standard one last! */
  line-height: inherit !important;
}

.ContentFormatting .button.with-arrow:after,
.ContentFormatting button.with-arrow:after {
  content: '\02192';
  margin-left: 0.5em;
}

.ContentFormatting .button.center {
  display: table;
  margin: 0 auto;
}

.ContentFormatting .video {
  position: relative;
  max-width: 100%;
  max-height: 360px;
  margin: 0 0 2em 0;
  overflow: hidden;
}
.ContentFormatting .video-wrapper {
  display: block;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
  max-width: 640px;
  margin: 0 auto;
}
.ContentFormatting .video-wrapper iframe {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: 360px;
}

.ContentFormatting .normal {
  font-weight: 400;
}

.ContentFormatting .bold {
  font-weight: 500;
}

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

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

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

.ContentFormatting .float-right {
  float: right;
}

.ContentFormatting .float-left {
  float: left;
}

.ContentFormatting .clear {
  clear: both;
}

.ContentFormatting .clearfix:after {
  content: ' ';
  display: block;
  visibility: hidden;
	font-size: 0;
	height: 0;
  clear: both;
}

/**
 * Advertisement styles
 */

.Advertisement {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  text-align: center;
  box-sizing: content-box;
}

.Advertisement-inner {
  display: inline-block;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.05);
}

.Advertisement-label {
  font-size: 11px;
  line-height: 2em;
  color: #AAA;
  text-align: center;
  text-transform: uppercase;
}

/* Page */

.Page .Advertisement-top {
  padding-top: 0;
}
.Page .Advertisement-top .Advertisement-code {
  width: 728px;
  height: 90px;
}

/* Post */

.Post .Advertisement-top {
  float: right;
  padding: 2.5rem;
}
.Post .Advertisement-top .Advertisement-code {
  width: 336px;
  height: 280px;
}

.Post .Advertisement-body {
  float: right;
  clear: right;
  margin-top: 600px;
  padding: 2.5rem;
}
.Post .Advertisement-body .Advertisement-code {
  width: 300px;
  height: 600px;
}

/* Any */

.Advertisement-bottom .Advertisement-code {
  width: 728px;
  height: 90px;
}

@media screen and (max-width: 1024px) {
  /* Post */

  .Post .Advertisement-body {
    margin-top: 200px;
  }
  .Post .Advertisement-body .Advertisement-code {
    width: 160px;
    height: 600px;
  }
}

@media screen and (max-width: 840px) {
  /* Page */

  .Page .Advertisement-top .Advertisement-code {
    width: 320px;
    height: auto;
  }

  /* Post */

  .Post .Advertisement-top {
    float: none;
    padding: 1rem;
  }
  .Post .Advertisement-top .Advertisement-code {
    width: 300px;
    height: 250px;
  }

  .Post .Advertisement-body {
    display: none;
  }
  .Post .Advertisement-body .Advertisement-code {
    width: 1px;
    height: 1px;
  }

  /* Any */

  .Advertisement-bottom .Advertisement-code {
    width: 320px;
    height: auto;
  }
}

/**
 * Site Header Navigation
 */

@media screen and (max-width: 840px) {
  .SiteHeader-navigation {
    display: none;
  }
}

/**
 * Site Footer
 */

.SiteFooter-MenuItem {
  transition: color 0.2s;
}
.SiteFooter-MenuItem:hover {
  color: rgba(255, 255, 255, 0.5);
}

/**
 * Site Search
 */

@media screen and (max-width: 840px) {
  .SearchBox {
    margin-top: 0 !important;
    border-radius: 0 !important;
  }
}

/**
 * Video embeds
 */

.PostHeader-video {
  height: 420px;
  margin: 0 auto;
  text-align: center;
}
.PostHeader-video iframe {
    display: block;
    width: calc(420px * (16/9));
    height: 420px;
    margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  .PostHeader-video {
    height: 360px;
  }
  .PostHeader-video iframe {
    width: calc(360px * (16/9));
    height: 360px;
  }
}
@media screen and (max-width: 840px) {
  .PostHeader-video {
    height: 220px;
  }
  .PostHeader-video iframe {
    width: calc(220px * (16/9));
    height: 220px;
  }
}

/**
 * MDL styles override
 */

.mdl-layout {
  height: 100vh;
}

.mdl-card {
  overflow: inherit;
  z-index: inherit;
}

.mdl-textfield__error {
  visibility: visible;
}

.mdl-cell .mdl-textfield {
  width: 100%;
}

.mdl-layout__drawer .mdl-navigation .mdl-navigation__link {
  font-size: 15px;
  padding: 14px 30px;
}

.mdl-layout__header .mdl-navigation .mdl-navigation__link {
  font-size: 14px;
  padding: 0 20px;
}

/*.mdl-layout__drawer-button .material-icons {
  font-size: 32px;
  line-height: 1.4em;
}*/

/*@media (max-width: 1024px) {
  .mdl-layout__drawer-button {
    width: 28px;
    height: 28px;
    line-height: 34px;
    background-color: white;
    background-color: rgba(255, 255, 255, 0.8);
  }
}*/
@media screen and (max-width: 1024px) {
  .mdl-layout__header .mdl-layout__drawer-button {
    margin: 6px 10px;
    color: white;
  }
}

