/**
 * Article and Interview template styles
 */

/* Header
--------------------------------------------- */

.article-header {
  background-color: #eceff1;
  border-bottom: 1px solid #ccc;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.2));
}

.article-header-content {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    'title title'
    'subtitle subtitle'
    'author-link post-time';
}

.article-header-content.with-disclosure {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    'title title title'
    'subtitle subtitle subtitle'
    'author-link post-time disclosure';
}

.article-title {
  grid-area: title;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  font-size: 36px;
  text-align: center;
}

.article-subtitle {
  grid-area: subtitle;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-author-avatar {
  grid-area: author-avatar;
  width: 50px;
  height: 50px;
  display: none;
}

.article-author-avatar .image-circle {
  border-radius: 50%;
  border: 1px solid #dfdfdf;
}

.article-author-link {
  grid-area: author-link;
}

.article-post-time {
  grid-area: post-time;
  align-self: end;
  justify-self: right;
  color: #888888;
}

.with-disclosure .article-post-time {
  justify-self: center;
}

.article-post-time-mobile {
  display: block;
}

.article-post-time-desktop {
  display: none;
}

.article-disclosure {
  grid-area: disclosure;
  justify-self: end;
  align-self: end;
}

.article-author-link,
.article-post-time,
.article-disclosure {
  font-size: 15px;
}

/* Tablet */

@media (min-width: 768px) {
  .article-header-content,
  .article-header-content.with-disclosure {
    padding: 1.5rem 1.25rem 2rem 1.25rem;
  }

  .article-header-content {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      'title title'
      'subtitle subtitle'
      'author-avatar author-link'
      'author-avatar post-time';
  }

  .article-header-content.with-disclosure {
    grid-template-columns: 60px 1fr 1fr;
    grid-template-areas:
      'title title title'
      'subtitle subtitle subtitle'
      'author-avatar author-link disclosure'
      'author-avatar post-time disclosure';
  }

  .article-title {
    font-size: 40px;
    text-align: center;
  }

  .article-subtitle {
    margin-bottom: 1.5rem;
    font-size: 18px;
    text-align: center;
  }

  .article-author-avatar {
    display: block;
  }

  .article-post-time,
  .with-disclosure .article-post-time {
    justify-self: left;
  }

  .article-post-time-mobile {
    display: none;
  }

  .article-post-time-desktop {
    display: block;
  }
}

/* Desktop */

@media (min-width: 1024px) {
  .article-title {
    font-size: 56px;
    text-align: center;
  }

  .article-subtitle {
    font-size: 20px;
    text-align: center;
  }
}

/* Wide Desktop */

@media (min-width: 1140px) {
  .article-header-content,
  .article-header-content.with-disclosure {
    padding: 2rem 0 2.5rem 0;
    grid-template-columns: 60px 200px 1fr 260px;
    align-items: center;
    grid-template-areas:
      'title title title title'
      'author-avatar author-link subtitle disclosure'
      'author-avatar post-time subtitle disclosure';
  }

  .article-title {
    margin-bottom: 2rem;
  }

  .article-subtitle {
    margin-bottom: 0;
    align-self: end;
  }

  .article-author-link {
    align-self: end;
  }

  .article-post-time,
  .with-disclosure .article-post-time {
    align-self: start;
  }
}

/* Interviews
--------------------------------------------- */

@media (min-width: 768px) {
  /* Fix interviewee image alignment */
  .page-template-page-interview .entry-content .byline + .wp-block-image {
    margin-bottom: 0;
  }
}

/* Editorial Note
--------------------------------------------- */

.entry-editorial-note {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 0.65rem;
  font-size: 13px;
  color: #6e6e6e;
  background-color: #f1f2f4;
}

/* Content Views
--------------------------------------------- */

/* Force content to two columns on mobile */
@media (max-width: 768px) {
  .pt-cv-wrapper .col-md-3 {
    width: 50%;
  }
}

/* Download Buttons
--------------------------------------------- */

.entry-content .download-button {
  margin-bottom: 1.5rem;
}

/* Embedded Charts
--------------------------------------------- */

.entry-content .chart-embed {
  margin-bottom: 1.5rem;
}
