/******************************************************************************************************************************//*
 * Site layout.
 * Begin with the main elements: #page, #header, #navigation, #main.
*********************************************************************************************************************************/

#page {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  float: left;
  overflow: hidden;
  background: #fff;
}

#header,
#navigation,
#main,
#bottom {
  clear: both;
  *zoom: 1;
}
#header:before, #header:after,
#navigation:before,
#navigation:after,
#main:before,
#main:after,
#bottom:before,
#bottom:after {
  content: "";
  display: table;
}
#header:after,
#navigation:after,
#main:after,
#bottom:after {
  clear: both;
}

.not-front .main,
.constrained {
  max-width: 1250px;
  width: 90%;
  margin: 0 auto;
}
@media (min-width: 560px) {
  .not-front .main,
  .constrained {
    width: 92%;
  }
}
@media (min-width: 800px) {
  .not-front .main,
  .constrained {
    width: 95%;
  }
}

#main {
  background: #fff;
}
#main #messages_tabs_area {
  background-color: #fff;
  padding: 0 3%;
  *zoom: 1;
}
#main #messages_tabs_area:before, #main #messages_tabs_area:after {
  content: "";
  display: table;
}
#main #messages_tabs_area:after {
  clear: both;
}

/**
 * Titles.
 */
.node__title,
.block__title,
.comments__title,
.comments__form-title,
.comment__title {
  /* Comment title. */
  margin: 0;
}

/**
 * Blocks.
 */
/* Block wrapper. */
.block {
  margin-bottom: 0;
}

/******************************************************************************************************************************//*
* The content region begins as a full-width item on small screens, then narrows to allow
* one sidebar (if there is one) on medium screens, and finally to allow two sidebars
* (if there are two) on largest screen sizes.
********************************************************************************************************************************/

.front #content,
.earthbeat-landingpage #content {
  width: 100% !important;
  float: none !important;
}
#content {
  *zoom: 1;
  font-family: "Merriweather", Georgia, "Times New Roman", Times, serif;
  background: #fff;
  width: 100%;
}
#content .breadcrumb {
  font-family: "Merriweather", Georgia, "Times New Roman", Times, serif;
  font-size: 0.733333333em;
  padding: 0 0 24px 0;
  text-transform: uppercase;
  line-height: 150%;
}
#content .breadcrumb a {
  padding: 0.25em 0;
}
#content:before, #content:after {
  content: "";
  display: table;
}
#content:after {
  clear: both;
}
.narrow-layout #content {
  max-width: 740px;
  margin: 0 auto;
}
.not-front #content {
  padding-bottom: 2em;
}
@media (min-width: 800px) {
  .not-front #content {
    padding-bottom: 4em;
  }
}

#content-bottom {
  padding-bottom: 2em;
}
@media (min-width: 800px) {
  #content-bottom {
    padding-bottom: 4em;
  }
}

.content-inner {
  margin: 1.75em 0 0 0;
  *zoom: 1;
}
.front .content-inner {
  margin: 0;
}
.content-inner:before,
.content-inner:after {
  content: "";
  display: table;
}
.content-inner:after {
  clear: both;
}
@media (min-width: 900px) {
  .front .content-inner {
    margin-top: 1.75em;
  }
}
@media (min-width: 930px) {
  .not-front .content-inner,
  .front .content-inner {
    margin-top: 2.5em;
  }
}
@media (min-width: 800px) {
  .no-sidebars .content-inner {
    width: 100%;
  }
}

/******************************************************************************************************************************//*
* Views
********************************************************************************************************************************/

.views-row.stacked {
  padding: 1.25em 0;
  border-top: 1px solid #ddd;
  clear: both;
}

/******************************************************************************************************************************//*
* Set up the breakpoint, starting with mobile first. This will help prevent unexpected
* results when, later, we use sass_media_query_combiner. It combines media queries in
* the order it finds them, so we're doing it mobile-first.
********************************************************************************************************************************/

#page,
.region-sidebar-first,
.region-sidebar-floating,
.region-sidebar-floating.sticky .block,
.sidebar-first #content,
.two-sidebars #content {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#page {
  width: 100%;
  float: left;
}

@media all and (min-width: 800px) {

  .region-footer-first {
    float: left;
    width: 45%;
  }
  .region-footer-second {
    float: right;
    width: 45%;
  }
}
@media all and (min-width: 930px) {
  .region-footer-first {
    width: 30%;
  }
  .region-footer-second {
    width: 65%;
  }
}
@media all and (min-width: 1000px) {
  .region-sidebar-first,
  .region-sidebar-floating {
    width: 25%;
    float: right;
    padding-top: 1rem;
  }
  .sidebar-first #content {
    width: 70%;
    float: left;
  }
  .two-sidebars #content {
    width: 68%;
    float: left;
  }
}
@media all and (min-width: 1100px) {
  .two-sidebars #content {
    width: 58.33333%;
    float: left;
  }
}

@media all and (min-width: 1250px) {
  .region-footer-first {
    width: 22%;
  }
  .region-footer-second {
    width: 74%;
  }
}

/**
 * Sidebar Ads
 */

#block-dfptagcontent1,
#block-dfptagcontent2-2 {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}
