/**
 * @file
 * Styles are organized using the SMACSS technique. @see http://smacss.com/book/
 *
 * When you turn on CSS aggregation at admin/config/development/performance, all
 * of these @include files will be combined into a single file.
 */

/******************************************************************************************************************************//*
 * Basic styles 
*********************************************************************************************************************************/

.float-left,
.left,
div[data-align="left"] {
  float: left;
  margin: 0 1em 1em 0;
}

.node-type-article div[data-align="left"] {
  float: none;
  margin-right: 0;
}

.float-right,
.right,
div[data-align="right"] {
  float: right;
  margin: 0 0 1em 1em;
}

.is-article .node.node--type-article img.float-left,
.is-article .node.node--type-article img.left,
.is-article .node.node--type-article img.float-right,
.is-article .node.node--type-article img.right {
  max-width: 50%;
}

.center,
div[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contains-floated-image img {
  float: left;
    width: 100%;
}

.relative {
  position: relative;
}

.hidden {
  display: none !important;
}

a.disabled {
  opacity: 0.5;
  cursor: pointer;
}

.clear {
  clear: both;
}

.bold {
  font-weight: 600;
}

.italic {
  font-style: italic;
}

.italic em {
  font-style: normal;
}

.serif {
  font-family: "Crimson Text", "Merriweather", Georgia, "Times New Roman", Times, serif;
}

.sans-serif,
.sans {
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
}

.strike {
  text-decoration: line-through;
}

.gray-bg {
  background: #f5f5f5;
}

.tan {
  color: #aea090;
}

.green {
  color: #73b355;
}

.orange {
  color: #E6AA49 !important;
}

.border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.border-top.dashed {
  border-top: 1px dashed rgba(0, 0, 0, 0.3);
}

.border-bottom {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.border-bottom.dashed {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
}

.thick-border {
  border-width: 3px;
  border-style: solid;
}

.yellow-border {
  border-color: #e6aa49;
}

.no-margin-bottom,
.layout.no-margin-bottom {
  margin-bottom: 0;
}

.with-padding {
  padding: 1.5rem;
}

.padding-top {
  padding-top: 1rem;
}

.extra-padding-top {
  padding-top: 2.5rem;
}

.padding-bottom {
  padding-bottom: 1rem;
}

.extra-padding-bottom {
  padding-bottom: 2.5rem;
}

.margin-bottom {
  margin-bottom: 1rem;
}

.extra-margin-bottom {
  margin-bottom: 2.5rem;
}

@media all and (min-width: 800px) {
  .padding-top {
    padding-top: 1.5rem;
  }
  .extra-padding-top {
    padding-top: 3rem;
  }
  .padding-bottom {
    padding-bottom: 1.5rem;
  }
  .extra-padding-bottom {
    padding-bottom: 3rem;
  }
  .margin-bottom {
    margin-bottom: 1.5rem;
  }
  .extra-margin-bottom {
    margin-bottom: 3rem;
  }
}

@media all and (min-width: 1100px) {
  .padding-top {
    padding-top: 2rem;
  }
  .extra-padding-top {
    padding-top: 4rem;
  }
  .padding-bottom {
    padding-bottom: 2rem;
  }
  .extra-padding-bottom {
    padding-bottom: 4rem;
  }
  .margin-bottom {
    margin-bottom: 2rem;
  }
  .extra-margin-bottom {
    margin-bottom: 4rem;
  }
}

.normal_weight {
  font-weight: 400;
}

.uppercase {
  text-transform: uppercase;
  font-family: "Crimson Text", "Merriweather", Georgia, "Times New Roman", Times, serif;
}

/******************************************************************************************************************************//*
 * Automatically display on different screen sizes
*********************************************************************************************************************************/

.smallest-mobile-display,
.mobile-display,
.mobile-tablet-display {
  display: block !important;
}
.small-tablet-display,
.tablet-display,
.small-desktop-display,
.desktop-display {
  display: none !important;
}
.small-desktop-menu-item-text,
.desktop-menu-item-text {
  text-indent: -10000px;
}

@media all and (min-width: 480px) {
  .smallest-mobile-display {
    display: none !important;
  }
  .small-tablet-display {
    display: block !important;
  }
}

@media all and (min-width: 800px) {
  .mobile-display {
    display: none !important;
  }
  .tablet-display {
    display: block !important;
  }
}
@media all and (min-width: 1050px) {
  .small-desktop-display {
    display: block !important;
  }
  .small-desktop-menu-item-text {
    text-indent: 0;
  }
}
@media all and (min-width: 1250px) {
  .mobile-tablet-display {
    display: none !important;
  }
  .desktop-display {
    display: block !important;
  }
  .desktop-menu-item-text {
    text-indent: 0;
  }
}

/******************************************************************************************************************************//*
 * Titles
*********************************************************************************************************************************/

.title-prefix,
.title-suffix {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  line-height: 100%;
  font-family: "Crimson Text", "Merriweather", Georgia, "Times New Roman", Times, serif;
}
.title-suffix {
  margin-bottom: 2rem;
}
.is-landing-page .constrained .title-prefix {
  width: 100%;
}
@media all and (min-width: 800px) {
  .title-prefix,
  .title-suffix {
    font-size: 1.7rem;
  }
}
@media all and (min-width: 1100px) {
  .title-prefix,
  .title-suffix {
    font-size: 2rem;
  }
}

.article-title:after {
  background: #b7b7b7;
  bottom: -1.5rem;
  content: "";
  height: 2px;
  left: 0;
  margin-top: 2rem;
  position: absolute; /*The relative position is the h1, h2, h3, etc */
  width: 20rem;
}

h2.list-title {
  margin: 0;
  padding: 0;
}
h1.list-title a {
  color: #000;
}

/******************************************************************************************************************************//*
 * Widgets on nodes and lists; pseudo-fields
*********************************************************************************************************************************/

.views-field-field-related-blog {
  margin-top: 1rem;
}

/* This styles feature topic across all pages */
.supertext,
.featured-topic a {
  text-transform: uppercase;
  text-decoration: none !important;
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #a34e47;
  letter-spacing: 0.15rem;
  display: block;
  line-height: 100%;
  padding: 0 0 0.75rem 0;
}

.cc-content-header > .featured-topic a {
  font-size: 0.8rem;
}

@media all and (min-width: 1000px) {
  .cc-content-header > .featured-topic a {
    font-size: 0.9rem;
  }
}

 /* This styles the author byline and issue number in the articles */
.byline-dateline,
.issue-name {
  color: #aea090;
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
  font-size: .95rem;
  font-weight: 400;
}

.is-article .cc-content-header .byline-dateline {
  margin: 0 0 1rem 0;
  float: left;
}

.is-article .issue-name {
  margin: 2rem 0 0 0;
}
.byline-dateline p {
  margin-bottom: 0;
}
.view-content-recent .byline-dateline {
  padding-bottom: 0;
}
a.action-item:link,
a.action-item:visited {
  color: #e6aa49 !important;
}

a.action-item:hover,
a.action-item:active {
  color: #ce8e28 !important;
} 

.social-media-icons img {
  max-height: 1.5rem;
  padding-right: .6rem;
}
div#block-christian-century-login {
  margin-left: 42%;
}
@media all and (min-width: 640px) {
  .is-article .cc-content-header .byline-dateline.extra-margin {
    margin: 0.5rem 0 1.5rem;
  }
}

/******************************************************************************************************************************//*
 * Voices section
*********************************************************************************************************************************/

.list-title.voices {
  font-family: "Crimson Text", "Merriweather", Georgia, "Times New Roman", Times, serif;
}

.list-title.voices a:link,
.list-title.voices a:visited {
  color: #D05D3C;
}

.most-recent-voices-article,
.most-recent-voices-article a:link,
.most-recent-voices-article a:visited {
  color: #007478;
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
}

.most-recent-voices-article h4,
.most-recent-voices-article p {
  font-size: 18px;
  margin: 0 0 0.6rem 0;
  line-height: 24px;
}

/******************************************************************************************************************************//*
 * Sections and other landing pages
*********************************************************************************************************************************/

h3.list-title {
  margin: 0 0 2.5rem 0;
}
h3.search-result__title:after,
h3.list-title a:after {
  background: #b7b7b7;
  bottom: -3.5rem;
  content: "";
  height: 2px;
  left: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
  position: absolute; /*The relative position is the h3 */
  width: 6rem;
}

.views-row .featured-image {
  margin-bottom: 0.75rem;
}

.featured-image.round img {
  border-radius: 50%;
}

.featured-image .double-image {
  width: 50%;
  float: left;
}

.two-column-layout.featured-image-left .featured-image {
  max-width: 225px;
}

.views-row .list-summary {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  line-height: 140%;
}

.views-row .list-summary p {
  display: inline;
  margin: 0;
}

.stacked .views-row,
.two-column-layout .views-row,
.four-column-layout .views-row {
  margin-bottom: 2.5rem;
}

.view-footer p.center {
  margin-top: 2rem;
}

@media (min-width: 560px) {
  .narrow-featured-image-left .views-row,
  .featured-image-left .views-row {
    display: grid;
    grid-template-columns: 31% 65%;
    grid-column-gap: 4%;
  }
  .featured-image-left .featured-image {
    margin-bottom: 0;
  }
  
  /* This creates a responsive grid for the two- and four-column rows */
  .two-column-layout .view-content,
  .four-column-layout .view-content {
    display: grid;
    grid-template-columns: 48% 48%;
    grid-column-gap: 4%;
    grid-row-gap: 2rem;
  }
  .two-column-layout.featured-image-left .view-content {
    display: block;
    grid-template-columns: none;
  }
  .two-column-layout .views-row,
  .four-column-layout .views-row {
    margin-bottom: 0;
  }
  .two-column-layout.featured-image-left .views-row {
    margin-bottom: 2.5rem;
  }
}/*<----@media all and (min-width: 560px) */

@media (min-width: 800px) {
  .two-column-layout.featured-image-left .views-row {
    grid-template-columns: 24% 73%;
    grid-column-gap: 3%;
  }
}/*<----@media all and (min-width: 800px) */

@media (min-width: 1000px) {
  
  /* This styles the four-column-row for larger screens */
  .four-column-layout .view-content { 
    grid-template-columns: 22.75% 22.75% 22.75% 22.75%;
    grid-column-gap: 3%;
  }
  .four-column-layout .views-row {
    margin-bottom: 0;
  }
  
  /* Two-column layout with featured image. */
  .two-column-layout .view-content,
  .two-column-layout.featured-image-left .view-content {
    display: grid;
    grid-template-columns: 48.5% 48.5%;
    grid-column-gap: 3%;
    grid-row-gap: 2rem;
  } 
  .two-column-layout.featured-image-left .views-row {
    grid-template-columns: 30% 65%;
    margin-bottom: 0;
    grid-column-gap: 5%;
  }
  .stacked.featured-image-left .views-row {
    column-gap: 2.5%;
    display: grid;
    grid-template-columns: 25% auto;
  }
  .stacked.narrow-featured-image-left .views-row {
    display: grid;
    grid-template-columns: 12% 85.5%;
    grid-column-gap: 2.5%;
  }
}/*<----@media all and (min-width: 800px) */

@media all and (min-width: 1250px) {
  /* This styles the stacked layout for larger screens */
  .stacked .views-row {
    margin-bottom: 3rem;
  }
  .two-column-layout.featured-image-left .views-row {
    grid-template-columns: 30% 66%;
    margin-bottom: 0;
    grid-column-gap: 4%;
  }
  .two-column-layout .view-content,
  .two-column-layout.featured-image-left .view-content {
    grid-row-gap: 3rem;
  }
  .four-column-layout .view-content {
    grid-row-gap: 4rem;
  }
  .views-row .list-summary {
    font-size: 1.2rem;
  }
}/*<----@media all and (min-width: 1300px) */

/******************************************************************************************************************************//*
 * House and banner ads 
*********************************************************************************************************************************/

.banner-ad {
  text-align: center;
}
.banner-ad.gray-bg {
  padding: 3rem 0;
}
.banner-ad .ad-label {
  color: #666;
  font-family: "Roboto", sans-serif;
  font-size: .6rem;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
}
.banner-ad.one-up .ad,
.banner-ad.two-up .ad {
  margin: 0 auto 1rem;
}

.region-content-top .banner-ad .ad {
  margin-bottom: 1.5rem;
}

.house-ad-constrained {
  padding: 2rem;
  margin-top: 5rem;
  margin-bottom: 4rem !important;
  box-sizing: border-box;
}

.email-signup-fullwidth,
.house-ad-fullwidth {
  background-color: #e6aa49;
  color: #fff;
}
.house-ad-fullwidth h2,
.house-ad-constrained h2 {
  margin-top: 0;
  background: url(../../images/cc-newsletters-black.svg) left center no-repeat;
  background-size: 20px;
  padding-left: 2rem;
  padding-bottom: 0;
  border: 0;
  display: block;
  text-align: left;
  margin-bottom: .5rem;
  font-size: 1.7rem;
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
}
.house-ad-fullwidth h2 {
  background-position-y: .3rem;
  background-size: 1.5rem;
}
.house-ad-constrained p,
.house-ad-fullwidth p {
  color: #000;
  font-style: italic;
  margin-bottom: 0;
  text-transform: none;
  color: #000;
  text-align: left;
  font-size: 1.4rem;
  font-family: "Crimson Text", "Merriweather", Georgia, "Times New Roman", Times, serif;
}
.house-ad-constrained .action-button {
  font-size: 1.2rem;
  background: #e6aa49;
  font-weight: 600;
  margin-top: 2rem;
  display: inline-block;
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
}
.support-banner {
  text-align: left;
  padding: 1rem;
}
.support-banner h3 {
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
  font-size: 3rem;
  line-height: 120%;
}
.support-banner .action-button {
  background-color: #fff;
  color: #e6aa49;
}
.support-banner .action-button:hover {
  color: #fff;
}

@media all and (min-width: 480px) {
  .banner-ad.two-up { /* 2-up square banners */
    display: flex;
    justify-content: center;
  }
  .banner-ad.two-up .ad {
    margin: 0;
    padding: 0 2%;
    box-sizing: border-box;
  }
}

@media all and (min-width: 800px) {
  .house-ad-fullwidth h2 {
    width: 50%;
  }
  .support-banner {
    display: grid;
    grid-template-columns: 50%;
  }
  .support-banner h3 {
    grid-column: 1;
    grid-row: 1
  }
  .support-banner p {
    grid-column: 1;
    grid-row: 2;
  }
  .support-banner .banner-buttons {
    grid-column: 2;
    grid-row: 2;
    padding-left: 20%;
  }
  .house-ad-constrained h2 {
    font-size: 2rem;
    background-size: 26px;
    padding-left: 2.5rem;
  }
}

@media all and (min-width: 1000px) {
  .house-ad-constrained {
    padding: 2.5rem 4rem 2.5rem 6rem;
  }
  .house-ad-constrained h2 {
    font-size: 2.5rem;
    margin-left: -3.2rem;
    background-size: 32px;
    padding-left: 3.2rem;
  }
  .house-ad-constrained p,
  .house-ad-fullwidth p {
    font-size: 1.6rem;
    line-height: 2rem;
  }
  .house-ad-constrained p {
    width: 55%;
  }
  .house-ad-constrained .action-button {
    float: right;
    margin-top: -7rem;
  }
  .house-ad-constrained .support-banner {
    padding: 1rem;
  }
  .house-ad-constrained .support-banner p {
    width: inherit;
  }
  .house-ad-constrained .support-banner .action-button  {
    float: none;
    margin-top: 0;
  }
  .house-ad-constrained .action-button a {
    font-size: 1.5rem;
    padding: 1rem;
  }
}

@media all and (min-width: 1250px) {
  .house-ad-constrained {
    padding: 3rem 4rem 3rem 8rem;
  }
  .house-ad-constrained h2 {
    font-size: 3.5rem;
    margin-left: -4.2rem;
    background-size: 45px;
    padding-left: 4.2rem;
  }
  .house-ad-constrained p,
  .house-ad-fullwidth p {
    font-size: 1.8rem;
    line-height: 1.8rem;
  }
}

/******************************************************************************************************************************//*
 * Blocks
*********************************************************************************************************************************/

.sidebar-nav-block {
  padding: 1.25rem 7%;
}

.sidebar .sidebar-nav-block h2 {
  font-size: 2rem;
}

.sidebar-nav-block .facet-item label,
.sidebar-nav-block .view a,
.sidebar-nav-block .field--name-body a {
  display: block;
  border-top: 1px dotted #ccc;
  padding: 0.5rem 0;
}
