/* --- Remove background change on buttons --- */
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus,
.wp-block-button .wp-block-button__link:active {
  background-color: inherit !important;
  color: inherit !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* --- Prevent email link highlight (mailto links) --- */
a[href^="mailto"],
a[href^="mailto"]:hover,
a[href^="mailto"]:focus,
a[href^="mailto"]:active {
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* hide meta only on pages (not posts) */
body.page .entry-meta,
body.page .post-meta,
body.page span.posted-on,
body.page .reading-time,
body.page .byline {
  display: none !important;
}

/* ---------- SHOW AUTHOR, HIDE READ-TIME, REMOVE SIDE WIDGETS ---------- */

/* 1️⃣ — Hide all meta except author and post date (keep date visible) */
.entry-meta,
.post-meta,
.meta,
.meta-info,
.post-info,
.entry-header .meta,
.article-meta,
.article-info,
.post__meta,
.postMeta,
.postmeta,
.byline,
.wp-block-post-terms,
.wp-block-post-meta,
.article__meta,
.post-meta-wrapper,
.post-meta-items,
.single .post-meta,
.page .post-meta {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ✅ Keep post date visible */
.posted-on,
.published,
.pubdate,
.post-date,
.wp-block-post-date,
.posted-on time {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  margin-right: 10px !important;
  color: #666 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* 2️⃣ — Explicitly REMOVE all “time to read” blocks */
.reading-time,
.reading_time,
.readtime,
.readingTime,
.wp-block-post-reading-time,
.time.reading-time,
span[class*="reading"],
span[class*="readtime"],
span[class*="read-time"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* 3️⃣ — SHOW Author details (visible everywhere posts appear) */
.wp-block-post-author,
.wp-block-post-author-name,
.post-author,
.author-info,
.author-box {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  color: #555 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Optional: style author line consistently */
.wp-block-post-author::before,
.post-author::before {
  content: "By " !important;
  color: #555 !important;
  font-weight: 400 !important;
}

/* 4️⃣ — Hide sidebar widgets (Recent Posts, Categories, etc.) */
.widget,
.widget-area,
aside.sidebar,
aside.widget,
.sidebar,
.sidebar .widget,
.widget_recent_entries,
.widget_categories,
.widget_archive,
.widget_tag_cloud,
.widget_meta,
.widget-popular-posts,
.trending-articles,
.recent-posts,
.recent-posts-widget,
.wp-block-latest-posts,
.wp-block-categories,
.wp-block-archives,
.wp-block-tag-cloud {
  display: none !important;
}

/* 5️⃣ — Make content full width */
.site-content,
.content-area,
.primary,
.main-content,
.entry-content,
#content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* 6️⃣ — Last-resort cleanup (hide inline “time to read” text) */
a[href*="read"],
span[class*="read"],
span[class*="reading"],
div[class*="reading"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
