/* article - header */

#article-header {
  background-color: var(--white);
}

#article-header .content {
  display: flex;
  flex-direction: column;
  gap: 88px;
  padding-top: 100px;
}

#article-header .top {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

#article-header .top-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--page-padding);
}

#article-header .read-time {
  color: var(--gray);
}

#article-header img {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

#article-header .image-caption {
  color: var(--black);
  padding: 0 var(--page-padding);
  margin-top: -8px;
}

#article-header .top.has-mobile-image > img:nth-child(3) {
  display: none;
}

#article-header .article-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 var(--page-padding);
}

#article-header .article-info .title {
  color: var(--black);
}

#article-header .info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 120px;
}

#article-header .info-row .left {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

#article-header .author {
  color: var(--black);
}

#article-header .published-date {
  color: var(--gray);
}

#article-header .info-row .right {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  padding-top: 2px;
}

#article-header .info-row .right .tag {
  color: var(--card-tags-gray);
}

@media (max-width: 800px) {
  #article-header .content {
    grid-column-start: 1;
    grid-column-end: -1;
    gap: 48px;
    padding-top: 44px;
  }

  #article-header .top {
    gap: 28px;
  }

  #article-header .top.has-mobile-image > img:nth-child(2) {
    display: none;
  }

  #article-header .top.has-mobile-image > img:nth-child(3) {
    display: block;
  }

  #article-header .image-caption {
    padding: 0 var(--page-padding);
  }

  #article-header .article-info {
    gap: 16px;
  }

  #article-header .info-row {
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
  }

  #article-header .info-row .left {
    justify-content: space-between;
    gap: 4px 16px;
    flex-wrap: wrap;
  }

  #article-header .info-row .right {
    gap: 0 8px;
    padding: 0;
  }
}

/* article - body */

#article-body {
  background-color: var(--white);
}

#article-body .content {
  padding: 72px var(--page-padding) 232px;
}

#article-body h1,
#article-body h2,
#article-body h3,
#article-body h4,
#article-body h5,
#article-body h6 {
  color: var(--black);
}

#article-body h1,
#article-body h2,
#article-body h3 {
  margin: 48px 0 24px;
}

#article-body h4,
#article-body h5,
#article-body h6 {
  margin: 24px 0 8px;
}

#article-body p,
#article-body blockquote {
  margin-bottom: 16px;
}

#article-body li {
  margin-bottom: 12px;
}

.wp-block-embed.is-type-video {
  margin-block: 32px;
}

@media (max-width: 800px) {
  #article-body .content {
    padding: 24px 0 88px;
  }

  #article-body h1,
  #article-body h2,
  #article-body h3,
  #article-body h4,
  #article-body h5,
  #article-body h6 {
    margin: 32px 0 16px;
  }
}

/* article - related articles */

#related-articles {
  background-color: var(--white);
}

#related-articles .content {
  display: flex;
  flex-direction: column;
  padding-bottom: 92px;
}

#related-articles .top {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 48px;
}

#related-articles .top .title {
  color: var(--black);
}

#related-articles .divider-line {
  width: 100%;
  height: 2px;
  background-color: var(--light-gray-4);
}

#related-articles .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#related-articles .bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  margin-top: 60px;
}

#related-articles .bottom .see-more-link {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  color: var(--blue);
}

#related-articles .bottom .see-more-link .plus {
  font-size: 40px;
}

@media (max-width: 800px) {
  #related-articles .content {
    grid-column-start: 1;
    grid-column-end: -1;
    padding-bottom: 60px;
  }

  #related-articles .top {
    gap: 32px;
    margin-bottom: 44px;
  }

  #related-articles .top .title {
    padding: 0 var(--page-padding);
  }

  #related-articles .grid {
    display: flex;
    flex-direction: column;
    padding: 0 var(--page-padding);
  }

  #related-articles .bottom {
    gap: 24px;
    margin-top: 56px;
  }

  #related-articles .bottom .see-more-link {
    margin-right: var(--page-padding);
  }
}

.responsiveEmbed {
  margin-block: 32px;
}

.responsiveEmbed iframe {
  width: 100% !important;
}

.responsiveEmbed .embededYoutube iframe {
  aspect-ratio: 16/9 !important;
}

p img {
  width: 100% !important;
}

.imgLeft,
.imgLeftSmall {
  float: left !important;
  margin-right: 32px !important;
  margin-bottom: 32px !important;
}

#article-body a:not(.button) {
  color: var(--blue) !important;
  text-decoration: underline !important;
}

#article-body .join-button-container {
  width: 100%;
  display: flex;
}

blockquote {
  margin-block: 32px !important;
  padding-left: 32px !important;
  margin-left: 0 !important;
  border-left: 4px solid #555 !important;
}

blockquote footer {
  font-weight: 500 !important;
}

#article-body table {
  border-collapse: collapse !important;
  margin-block: 32px !important;
}

#article-body tbody {
  border-collapse: collapse !important;
}

#article-body tr {
  border: 1px solid #aaa !important;
  border-collapse: collapse !important;
}

#article-body td {
  padding: 8px;
  border-collapse: collapse !important;
  border: 1px solid #aaa !important;
}

#article-body ol {
  padding-left: 24px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

#article-body ul {
  padding-left: 20px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

#article-body ul li {
  padding-left: 4px !important;
}

#article-body strong {
  font-weight: 600 !important;
}

@media (max-width: 800px) {
  .imgLeft,
  .imgLeftSmall {
    width: 100% !important;
  }

  .imgLeft img,
  .imgLeftSmall img {
    width: 100% !important;
  }
}
