/**
 * H5W single-post layout.
 *
 * Keep the article shell aligned to the site's 1290px content canvas while preserving
 * a comfortable reading measure inside the boxed Kadence article card.
 */

body.single-post .content-container.site-container {
  width: 100%;
  max-width: var(--h5w-site-shell, 1290px);
}

body.single-post .site-main,
body.single-post .content-wrap,
body.single-post article.single-entry {
  width: 100%;
}

body.single-post article.single-entry {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.single-post .article-post-thumbnail.alignwide {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.single-post article.single-entry > .entry-content-wrap {
  padding-right: clamp(24px, 5vw, 72px);
  padding-left: clamp(24px, 5vw, 72px);
}

body.single-post article.single-entry > .entry-content-wrap > .entry-header,
body.single-post article.single-entry > .entry-content-wrap > .entry-content,
body.single-post article.single-entry > .entry-content-wrap > .entry-footer {
  width: 100%;
  max-width: var(--h5w-reading-column, 900px);
  margin-right: auto;
  margin-left: auto;
}

body.single-post .entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.single-post .h5w-article-next {
  background: #f6f3ff;
  border: 1px solid #ddd7f5;
  border-radius: 18px;
  margin-top: clamp(48px, 7vw, 72px);
  padding: clamp(24px, 4vw, 38px);
}

body.single-post .h5w-article-next__eyebrow {
  color: #6337e6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

body.single-post .h5w-article-next h2 {
  color: #101735;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 12px;
}

body.single-post .h5w-article-next > p:not(.h5w-article-next__eyebrow) {
  color: #5b6277;
  margin: 0;
}

body.single-post .h5w-article-next__links {
  border-top: 1px solid #ddd7f5;
  margin-top: 24px;
}

body.single-post .h5w-article-next__links a {
  align-items: center;
  border-bottom: 1px solid #ddd7f5;
  color: #242c4d;
  display: flex;
  font-weight: 750;
  gap: 20px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 4px;
  text-decoration: none;
}

body.single-post .h5w-article-next__links a:hover,
body.single-post .h5w-article-next__links a:focus-visible {
  color: #6337e6;
}

body.single-post .h5w-article-next__links a span:last-child {
  color: #6337e6;
  font-size: 20px;
}

body.single-post .h5w-article-next__parent {
  color: #552dcf !important;
}

@media (max-width: 767px) {
  body.single-post .content-container.site-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.single-post article.single-entry > .entry-content-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.single-post .entry-content .wp-block-table:has(th:nth-child(4)) table {
    min-width: 680px;
  }
}
