/* ============================================================
   Balance Codex — Page-level overrides
   ------------------------------------------------------------
   Stopgap CSS that addresses Blocksy parent theme behavior we
   want to override. Each rule should be documented.
   
   When this file becomes empty, the corresponding wp_enqueue_style
   call in functions.php should be removed.
   ============================================================ */


/* ─── Hide Blocksy's default page/post H1 across the site ─── */
/* Blocksy renders an automatic page title hero above the
   content area of every WordPress page and single post. Every
   page in our system uses a custom BCC block (BCC: Hero or
   BCC: Author Hero) as its first block, which provides its own
   H1 inside our design system. Showing both gives a duplicate
   heading at the top of each page (the meaningless Blocksy one
   above the meaningful BCC one).

   The fix hides Blocksy's auto-rendered page title on:
     - body.home    — the front page (was the only case in v1.0.2)
     - body.page    — all WordPress pages (NEW in 1.4.1 — was the bug)
     - body.single  — all single posts (covered preemptively until
                      the custom single.php template ships in v1.7.0)

   The expanded selectors cover Blocksy's various wrappers and
   standard WordPress class names so the rule survives Blocksy
   minor updates that may shuffle internal markup.
   
   Assumption: every page/post in this site uses a BCC block
   that provides its own H1. If a future page is created WITHOUT
   a BCC: Hero or BCC: Author Hero as first block, no visible H1
   will show on that page — flag this in the editor by adding
   one of those blocks at the top.
   
   Alternative (long-term): disable Blocksy's hero in Customizer
   → Page Elements → Page Title. Either CSS approach OR Customizer
   setting works; using CSS makes the fix portable across sites
   without manual configuration. */
body.home .ct-hero-section,
body.home .ct-page-title,
body.home .entry-header,
body.home .page > .entry-title,
body.page .ct-hero-section,
body.page .ct-page-title,
body.page .entry-header,
body.page .page > .entry-title,
body.single .ct-hero-section,
body.single .ct-page-title,
body.single .entry-header,
body.single .post > .entry-title {
    display: none !important;
}
