/*
 * CFH chrome strip — hides TT5's default header/footer + post nav on CFH-templated pages.
 * Only fires when body has .cfh-stripped-chrome class (added by functions.php for cfh-* templates).
 *
 * This is a CSS belt-and-braces. The block templates in /templates/ already exclude
 * the parent header/footer parts, but if a TT5 update reintroduces them or someone
 * creates a page with the wrong template, the CSS catches it.
 */

.cfh-stripped-chrome > header.wp-block-template-part,
.cfh-stripped-chrome > footer.wp-block-template-part,
.cfh-stripped-chrome .wp-site-blocks > header,
.cfh-stripped-chrome .wp-site-blocks > footer,
.cfh-stripped-chrome .post-navigation,
.cfh-stripped-chrome #comments {
  /* The CFH block templates render their own header/footer. Hide TT5's. */
  display: none !important;
}

/* Make sure body padding doesn't inherit TT5 defaults that might clash */
.cfh-stripped-chrome.wp-site-blocks {
  padding: 0 !important;
}

/* TT5 sometimes injects a ::before pseudo for navigation — kill it on cfh-stripped pages */
.cfh-stripped-chrome > .wp-site-blocks::before,
.cfh-stripped-chrome > .wp-site-blocks::after {
  display: none !important;
}

/* CFH article (blog post) wraps content with TT5's header/footer staying visible —
   we just override the typography + spacing inside the post-content */
.cfh-article-page main .wp-block-post-content {
  font-family: var(--cfh-font-body);
  color: var(--cfh-ink);
  line-height: 1.7;
  max-width: 70ch;
  margin: 0 auto;
}
