/* parity-overrides.css ----------------------------------------------------
 * Page-specific FSE container CSS rules in wp-inline-head.css depend on the
 * `wp-container-core-group-is-layout-XXXX` hash classes that WP auto-generates
 * per page. Our markup includes the matching hashes for sample pages we
 * captured (homepage, post). For pages we DIDN'T capture (category pagination,
 * 404, future content), these fallback rules give a sensible 800px constraint.
 *
 * Specificity is intentionally LOW so any captured hash-class rule beats it.
 * -------------------------------------------------------------------------- */

/* Match the captured semibold heading + bold meta weights from live */
.wp-block-post-title             { font-weight: 600; }
.wp-block-post-date,
.wp-block-post-author-name       { font-weight: 700; }

/* Heading hierarchy inside post body matches theme defaults */
.entry-content h1,
.entry-content h2,
.entry-content h3                { font-weight: 600; }

/* Recent Projects gallery rows: live emits `overflow-x: scroll` on the
 * column wrapper which produces a stray horizontal scrollbar even when
 * content fits. Force visible to match the rendered live appearance. */
.recent-work-columns,
.recent-work-columns * {
  overflow: visible !important;
}

/* Fallback content constraint for pages whose hash classes weren't captured.
 * Targets the post-content wrapper which is stable across pages. */
.wp-block-post-content > :where(:not(.alignwide):not(.alignfull)) {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.wp-block-post-content > .alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* The captured wp-inline-head.css concatenates rules from both post + home
 * pages. A duplicate `.is-layout-constrained > * { max-width: 1200px }` from
 * the home section ends up *after* the post-specific 800px container rule,
 * winning the source-order tie at equal specificity. These higher-specificity
 * rules force the post-page width back to 800px without disturbing the home. */
.wp-container-core-group-is-layout-b858d49e > h1.wp-block-post-title,
.wp-container-core-group-is-layout-b858d49e > .wp-block-group:not(.alignwide):not(.alignfull),
.wp-container-core-group-is-layout-b858d49e > .entry-content,
.wp-container-core-group-is-layout-b858d49e > .wp-block-post-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
