.blog-article-content {
  width: 100%;
  min-width: 0;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: #424242;
}

.blog-article-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 220px;
  min-width: min-content;
  font-size: 16px;
  color: #424242;
  font-weight: 600;
  text-decoration: none;
}

.blog-article-meta__author:hover .blog-article-meta__author-name {
  color: #6f7a72;
}

.blog-article-meta__author-image {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 50%;
  background: #f4f4f4;
}

.blog-article-meta__author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-meta__author-name {
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  transition: color 0.2s ease-in-out;
}

.blog-article-meta__dates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 100%;
  margin-left: auto;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.blog-article-meta__date {
  white-space: normal;
}

.blog-article-content h2[id],
.blog-article-content h3[id],
.blog-article-content h4[id],
.blog-article-content h5[id],
.blog-article-content h6[id] {
  scroll-margin-top: 150px;
}

.blog-article-toc {
  /* Keep the TOC beside the floated image without painting over it. */
  display: flow-root;
  margin: 32px 0;
  color: #424242;
}

.blog-article-toc__toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.blog-article-toc__content {
  max-height: 200px;
  overflow: hidden;
}

.blog-article-toc__toggle-input:checked ~ .blog-article-toc__content {
  max-height: none;
}

.blog-article-toc__title {
  display: block;
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.3;
}

.blog-article-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-article-toc__list > li {
  padding-bottom: 0;
  font-size: 12px;
}

.blog-article-toc__list > li::before {
  content: none;
  counter-increment: none;
}

.blog-article-toc__list a {
  color: #424242;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.blog-article-toc__list a:hover {
  color: #6f7a72;
}

.blog-article-toc__item--level-3 {
  padding-left: 20px;
}

.blog-article-toc__item--level-4 {
  padding-left: 40px;
}

.blog-article-toc__item--level-5 {
  padding-left: 60px;
}

.blog-article-toc__item--level-6 {
  padding-left: 80px;
}

.blog-article-toc__toggle {
  display: inline-block;
  margin-top: 16px;
  color: #424242;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article-toc__toggle:hover {
  color: #6f7a72;
}

@media (max-width: 767px) {
  .blog-article-meta {
    margin-bottom: 24px;
  }

  .blog-article-content h2[id],
  .blog-article-content h3[id],
  .blog-article-content h4[id],
  .blog-article-content h5[id],
  .blog-article-content h6[id] {
    scroll-margin-top: 120px;
  }

  .blog-article-toc {
    margin: 24px 0;
  }

  .blog-article-toc__title {
    font-size: 18px;
  }

  .blog-article-toc__item--level-3 {
    padding-left: 14px;
  }

  .blog-article-toc__item--level-4 {
    padding-left: 28px;
  }

  .blog-article-toc__item--level-5 {
    padding-left: 42px;
  }

  .blog-article-toc__item--level-6 {
    padding-left: 56px;
  }
}
