/*
  Theme overrides for XZRO Forum Core V2 mounts.
  Goal: dedicated forum content area (no sidebar/footer) while KEEPING theme header.
  IMPORTANT: keep selectors scoped to content area to avoid breaking theme headers.
*/

/* ---- Hide common footers (site footer only) ---- */
#main-footer,
#footer-bottom,
.et-l--footer,
footer#colophon,
footer.site-footer,
.site-footer,
.footer-widgets,
#colophon {
  display: none !important;
}

/* ---- Hide common sidebars (scoped to main content area) ---- */
body.xfc-mount #main-content #sidebar,
body.xfc-mount #main-content .sidebar,
body.xfc-mount #main-content .widget-area,
body.xfc-mount #main-content #secondary,
body.xfc-mount #main-content .et_right_sidebar #sidebar,
body.xfc-mount #main-content .et_left_sidebar #sidebar,
body.xfc-mount #main-content .et_pb_widget_area,
body.xfc-mount #main-content .et_pb_sidebar_0,
body.xfc-mount #main-content .et_pb_sidebar,
body.xfc-mount #main-content .et_pb_column.et_pb_column_1_4.et_pb_sidebar,
body.xfc-mount #main-content .et_pb_column.et_pb_column_1_3.et_pb_sidebar {
  display: none !important;
}

/* ---- Expand main content when sidebar is removed (Divi + common patterns) ---- */
body.xfc-mount.et_right_sidebar #left-area,
body.xfc-mount.et_left_sidebar #left-area {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.xfc-mount.et_right_sidebar #main-content .container:before,
body.xfc-mount.et_left_sidebar #main-content .container:before {
  display: none !important;
}

/* Some themes wrap content in #primary/#content */
body.xfc-mount #primary,
body.xfc-mount #content,
body.xfc-mount #main,
body.xfc-mount #main-content,
body.xfc-mount #left-area {
  max-width: 100%;
}

/* Reduce excessive theme bottom spacing inside content area only */
body.xfc-mount #main-content .et_pb_post,
body.xfc-mount #main-content .entry-content,
body.xfc-mount #main-content .entry {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
