/* Planet Mindful article content fixes */

/* Theme reuses .read-details for card overlays (position:absolute).
   Inside single posts that class must stay in normal document flow. */
body.single .entry-content.read-details,
body.single-post .entry-content.read-details,
article.af-single-article .entry-content.read-details {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  max-width: 100%;
  color: inherit !important;
  padding: 0 !important;
  background: transparent !important;
  z-index: auto !important;
}

body.single .entry-content-wrap,
body.single-post .entry-content-wrap,
article.af-single-article .entry-content-wrap {
  position: relative;
  overflow: visible;
}

body.single .entry-content figure.wp-block-image,
body.single-post .entry-content figure.wp-block-image,
article.af-single-article .entry-content figure.wp-block-image {
  display: block;
  float: none !important;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 2.2rem auto 2.6rem;
  padding: 0;
  overflow: hidden;
}

body.single .entry-content figure.wp-block-image img,
body.single-post .entry-content figure.wp-block-image img,
article.af-single-article .entry-content figure.wp-block-image img {
  display: block;
  width: 100%;
  max-width: min(100%, 780px);
  height: auto;
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
}

body.single .entry-content .wp-block-heading,
body.single .entry-content h2,
body.single .entry-content h3,
body.single-post .entry-content .wp-block-heading,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
article.af-single-article .entry-content .wp-block-heading,
article.af-single-article .entry-content h2,
article.af-single-article .entry-content h3 {
  clear: both;
  position: static;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.pm-article-table-wrap {
  width: 100%;
  margin: 2rem 0 2.5rem;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
}

.pm-article-table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: collapse;
}

.pm-article-table th,
.pm-article-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
  vertical-align: top;
}

.pm-article-table th {
  background: #14243a;
  color: #f8fafc;
}

.pm-article-table tbody tr:last-child td {
  border-bottom: 0;
}

.pm-article-table tbody tr:nth-child(even) {
  background: rgba(56, 189, 248, 0.05);
}

@media (max-width: 767px) {
  body.single .entry-content figure.wp-block-image img,
  body.single-post .entry-content figure.wp-block-image img,
  article.af-single-article .entry-content figure.wp-block-image img {
    max-height: 420px;
  }
}
