/* Hide author information throughout the site */

/* Fix spacing in featured article */
.card-meta.list-inline {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

/* Hide author elements but maintain the structure */
.card-meta.list-inline .list-inline-item.author,
.card-meta.list-inline .list-inline-item a.card-meta-author,
.card-meta.list-inline .list-inline-item.author-placeholder,
.card-meta.list-inline a[href*="author"] {
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Keep the date visible and properly spaced */
.card-meta.list-inline .list-inline-item:nth-child(2) {
  margin-left: 0 !important;
}

/* Hide all dividers between metadata items if author is removed */
.card-meta.list-inline .list-inline-item:empty,
.card-meta.list-inline .list-inline-item:contains("|") {
  display: none !important;
}

/* Hide author in post cards */
.post-card .post-meta .author,
.card .post-meta .author,
.article-card .post-meta .author,
.post-meta .author,
.meta .author,
.post-meta a[href*="author"],
.meta a[href*="author"],
.author-box,
.author-card,
.author-section,
.post-author,
.article-author,
.about-author,
.author-bio,
.author-avatar,
.author-thumbnail,
.author-info,
.author-description,
.author-name {
  display: none !important;
}

/* Hide author in article view */
.article .post-meta .author,
.article-meta .author,
.single-post .author,
.post-header .author,
.article-header .author,
.post-meta span:has(a[href*="author"]),
.meta span:has(a[href*="author"]),
.article-info .author,
.article-meta .author-avatar,
.post-meta .author-avatar,
.author-wrapper,
.post-header-meta .author,
.article-header-meta .author,
[class*="author-"] {
  display: none !important;
}

/* Hide author after article content */
.post-footer .author,
.article-footer .author,
.post-footer .about-author,
.article-footer .about-author,
.post-share-author,
.article-share-author,
.post-author-box,
.article-author-box,
.post-footer [class*="author"],
.article-footer [class*="author"],
.article-author-section,
.post-author-section,
.authorbox,
.author-profile,
.author-detail,
.single-author-info,
.author-social,
section.author,
div.author {
  display: none !important;
}

/* Hide "written by" or "by" text */
.post-meta span:contains("by"),
.meta span:contains("by"),
.post-meta:contains("by"),
.meta:contains("by"),
.post-meta span:contains("By"),
.meta span:contains("By"),
.post-meta span:contains("written by"),
.meta span:contains("written by"),
.post-meta span:contains("Written by"),
.meta span:contains("Written by"),
.post-meta span:contains("Posted by"),
.meta span:contains("Posted by"),
.post-meta span:contains("posted by"),
.meta span:contains("posted by") {
  display: none !important;
}

/* Hide specific Hugo theme author classes */
.post-meta .list-inline-item.author,
.post-meta .list-inline-item:has(a[href*="author"]),
[class*="post-author-"],
[class*="article-author-"],
.post-content .author-content,
.post-content .author-image,
.author-socials,
.article-footer .post-author,
.container .author {
  display: none !important;
}