/**
 * @file
 * Article full page styling.
 * Uses CSS custom properties for background image set in template.
 */

/* Header with hero image */

.article-full__header {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 18.75rem;
  background-image: var(--article-bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media (min-width: 768px) {
  .article-full__header {
    min-height: 25rem;
  }
}

/* Dark overlay */

.article-full__header-overlay {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0.3) 100%);
}

/* Header content positioning */

.article-full__header-content {
  position: relative;
  z-index: 2;
  padding-top: 3.75rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .article-full__header-content {
    padding-top: 5rem;
    padding-bottom: 3.75rem;
  }
}

/* Back link styling */

.article-full__back-link {
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.article-full__back-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Article content styling */

.article-full__content {
  line-height: 1.7;
}

.article-full__content p {
  margin-bottom: 1.25rem;
}

.article-full__content h2,
.article-full__content h3,
.article-full__content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-full__content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.625rem;
}

.article-full__content blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: var(--color-greyscale-3);
  border-left: 0.25rem solid var(--color-main-1);
  font-style: italic;
}

.article-full__content ul,
.article-full__content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-full__content li {
  margin-bottom: 0.5rem;
}

/* Tags section */

.article-full__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-top: 0.0625rem solid var(--color-greyscale-5);
  gap: 0.625rem;
}

/* Sidebar styling */

.blog-sidebar {
  position: sticky;
  top: 6.25rem;
}

@media (max-width: 767px) {
  .blog-sidebar {
    position: static;
  }
}

/* Border utility class */

.border-top-greyscale-5 {
  border-top: 0.0625rem solid var(--color-greyscale-5);
}
