/* ========================================================================
 * CHN Utilities — Theme Header/Footer Suppression
 * Owner: Milestone D (layout module)
 *
 * The chnutilities-owned header/footer (registered via wp_body_open + wp_footer)
 * render *in addition to* whatever the active theme outputs. This stylesheet
 * hides the active theme's chrome so only the chnutilities chrome is visible.
 *
 * Loaded AFTER design-system.css via a dependency relationship.
 *
 * !important is used deliberately — themes load their own CSS later in the
 * cascade and we must defeat their selectors regardless of source order.
 * ====================================================================== */

/* --- Header suppression -------------------------------------------------- */
#masthead,
.site-header,
header.site-header,
header#masthead,
#site-header,
.main-header,
header[role="banner"]:not(.chnu-site-header),
.header-main,
.header_wrap,
.header_wrap_inner,
#header,
header#header {
  display: none !important;
}

/* --- Footer suppression -------------------------------------------------- */
#colophon,
.site-footer,
footer.site-footer,
footer#colophon,
#site-footer,
.main-footer,
footer[role="contentinfo"]:not(.chnu-site-footer),
.footer-main,
.footer_wrap,
#footer,
footer#footer {
  display: none !important;
}

/* --- Make sure our chrome is never accidentally suppressed --------------- */
header.chnu-site-header,
footer.chnu-site-footer {
  display: block !important;
}
