/* ClearTheCode ad slot hooks — hidden until site_ad_slots.enabled + html_snippet */

.ctc-ad-slot {
  box-sizing: border-box;
  max-width: 100%;
}

.ctc-ad-slot--hidden {
  display: none !important;
}

.ctc-ad-slot--top {
  width: 100%;
  max-width: 970px;
  margin: 0 auto 1.25rem;
  min-height: 0;
}

.ctc-ad-slot--top.ctc-ad-slot--live,
.ctc-ad-slot--top.ctc-ad-slot--outline {
  display: block;
  min-height: 90px;
}

.ctc-ad-slot--content_right {
  width: 300px;
  max-width: 100%;
}

.ctc-ad-slot--content_right.ctc-ad-slot--live,
.ctc-ad-slot--content_right.ctc-ad-slot--outline {
  display: block;
  min-height: 600px;
}

.ctc-ad-slot--in_article {
  width: 300px;
  max-width: 100%;
  margin: 2rem auto;
  clear: both;
}

.ctc-ad-slot--in_article.ctc-ad-slot--live,
.ctc-ad-slot--in_article.ctc-ad-slot--outline {
  display: block;
  min-height: 250px;
}

.ctc-ad-slot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  border: 1px dashed #ccc;
  background: #fafafa;
  color: #888;
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

.ctc-ad-slot__placeholder-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ctc-ad-slot__creative {
  width: 100%;
  overflow: hidden;
}

.article-page__layout-adrail {
  grid-area: adrail;
}

.article-page__layout-adrail .ctc-ad-slot--content_right {
  position: sticky;
  top: 5.5rem;
}

@media (max-width: 1199px) {
  .article-page__layout-adrail {
    display: none;
  }
}

@media (max-width: 767px) {
  .ctc-ad-slot--top.ctc-ad-slot--live,
  .ctc-ad-slot--top.ctc-ad-slot--outline {
    min-height: 50px;
    max-width: 320px;
  }
}
